GitHub/exynos8895/android_kernel_samsung_universal8895.git
7 years agodmaengine: ipu: Make sure the interrupt routine checks all interrupts.
Magnus Lilja [Sun, 12 Mar 2017 08:24:54 +0000 (08:24 +0000)]
dmaengine: ipu: Make sure the interrupt routine checks all interrupts.
am: afee78f03e

Change-Id: I7b67e6fe82f33fe1a7cc32ac0e28f6c99bea87b0

7 years agobcma: use (get|put)_device when probing/removing device driver
Rafa Miecki [Sun, 12 Mar 2017 08:24:45 +0000 (08:24 +0000)]
bcma: use (get|put)_device when probing/removing device driver
am: 79a7ff1443

Change-Id: I3356c2eb32abf2e6d9cfb2152642349caba5941b

7 years agomd linear: fix a race between linear_add() and linear_congested()
colyli@suse.de [Sun, 12 Mar 2017 08:24:35 +0000 (08:24 +0000)]
md linear: fix a race between linear_add() and linear_congested()
am: 5a1f03f1ee

Change-Id: I3fd7c0c0cbf911b61d8aca203a75e13e698d7840

7 years agortc: sun6i: Switch to the external oscillator
Maxime Ripard [Sun, 12 Mar 2017 08:24:25 +0000 (08:24 +0000)]
rtc: sun6i: Switch to the external oscillator
am: 037cd23726

Change-Id: If84426848aa7178fc564d0bdaac39babd56e04ba

7 years agortc: sun6i: Add some locking
Maxime Ripard [Sun, 12 Mar 2017 08:24:16 +0000 (08:24 +0000)]
rtc: sun6i: Add some locking
am: ee360e99da

Change-Id: I0aaebc20574db0f6c3ebde4e0db355b4c6f12a1c

7 years agoNFSv4: fix getacl ERANGE for some ACL buffer sizes
Weston Andros Adamson [Sun, 12 Mar 2017 08:24:07 +0000 (08:24 +0000)]
NFSv4: fix getacl ERANGE for some ACL buffer sizes
am: a0378b5bfc

Change-Id: I4e78d196a895302acaac4ce91b1c72613ca3563a

7 years agoNFSv4: fix getacl head length estimation
J. Bruce Fields [Sun, 12 Mar 2017 08:23:58 +0000 (08:23 +0000)]
NFSv4: fix getacl head length estimation
am: 5d23e89065

Change-Id: I6fe895f8a7cbd023c380ec78803e0ed5a4abaa35

7 years agoNFSv4: Fix memory and state leak in _nfs4_open_and_get_state
Trond Myklebust [Sun, 12 Mar 2017 08:23:48 +0000 (08:23 +0000)]
NFSv4: Fix memory and state leak in _nfs4_open_and_get_state
am: 52fb4bdcea

Change-Id: Ib5b96d8d3c2f97ae498aaecf58a5b2db01552478

7 years agonfsd: special case truncates some more
Christoph Hellwig [Sun, 12 Mar 2017 08:23:38 +0000 (08:23 +0000)]
nfsd: special case truncates some more
am: 3ee4f442e5

Change-Id: I1d0858825f170caedb52ad76d321ac5249ebfe65

7 years agonfsd: minor nfsd_setattr cleanup
Christoph Hellwig [Sun, 12 Mar 2017 08:23:28 +0000 (08:23 +0000)]
nfsd: minor nfsd_setattr cleanup
am: 6030493a34

Change-Id: I14e3bf413e9594a771468a9fc6388822c8a67693

7 years agortlwifi: rtl8192c-common: Fix "BUG: KASAN:
Larry Finger [Sun, 12 Mar 2017 08:23:19 +0000 (08:23 +0000)]
rtlwifi: rtl8192c-common: Fix "BUG: KASAN:
am: 781e6a0838

Change-Id: Iacb0435f45bfd2a508e4a0fc352df9bf3234f6b3

7 years agortlwifi: Fix alignment issues
Ping-Ke Shih [Sun, 12 Mar 2017 08:23:09 +0000 (08:23 +0000)]
rtlwifi: Fix alignment issues
am: 6e10c33cb8

Change-Id: I404361f27bcb75884fbfe272696f59c67916154f

7 years agogfs2: Add missing rcu locking for glock lookup
Andrew Price [Sun, 12 Mar 2017 08:23:00 +0000 (08:23 +0000)]
gfs2: Add missing rcu locking for glock lookup
am: 70a09029b7

Change-Id: I936502d0217b7206108e4ff5eb087ff22044da40

7 years agordma_cm: fail iwarp accepts w/o connection params
Steve Wise [Sun, 12 Mar 2017 08:22:49 +0000 (08:22 +0000)]
rdma_cm: fail iwarp accepts w/o connection params
am: 44dd30e04c

Change-Id: I74cd1d6f0c218f84c037f088b4b39569c97c38dd

7 years agoRDMA/core: Fix incorrect structure packing for booleans
Jason Gunthorpe [Sun, 12 Mar 2017 08:22:39 +0000 (08:22 +0000)]
RDMA/core: Fix incorrect structure packing for booleans
am: 88326fe95f

Change-Id: I324f6a5c39fde9a0b603c3a4576375124d4e68d1

7 years agoDrivers: hv: util: Backup: Fix a rescind processing issue
K. Y. Srinivasan [Sun, 12 Mar 2017 08:22:30 +0000 (08:22 +0000)]
Drivers: hv: util: Backup: Fix a rescind processing issue
am: f414af249f

Change-Id: I80ae316d5d7c94bfc9c8610a42fcee7138688b75

7 years agoDrivers: hv: util: Fcopy: Fix a rescind processing issue
K. Y. Srinivasan [Sun, 12 Mar 2017 08:22:18 +0000 (08:22 +0000)]
Drivers: hv: util: Fcopy: Fix a rescind processing issue
am: 9b45ab2853

Change-Id: Ie39ca59a15db54a99d05b83db89d25550b030521

7 years agoDrivers: hv: util: kvp: Fix a rescind processing issue
K. Y. Srinivasan [Sun, 12 Mar 2017 08:22:07 +0000 (08:22 +0000)]
Drivers: hv: util: kvp: Fix a rescind processing issue
am: abaeda7f70

Change-Id: I62b201fc485b6d7729bcfd5384513b1dffe6ebb1

7 years agohv: init percpu_list in hv_synic_alloc()
Vitaly Kuznetsov [Sun, 12 Mar 2017 08:21:58 +0000 (08:21 +0000)]
hv: init percpu_list in hv_synic_alloc()
am: 862d2b7d21

Change-Id: I927eb14d83669dd186fc5401d127d2e34f39d7bb

7 years agohv: allocate synic pages for all present CPUs
Vitaly Kuznetsov [Sun, 12 Mar 2017 08:21:43 +0000 (08:21 +0000)]
hv: allocate synic pages for all present CPUs
am: 374907e8d1

Change-Id: I02cedccd5cf715fd4b48f75daa30d1316f8048bc

7 years agousb: gadget: udc: fsl: Add missing complete function.
Magnus Lilja [Sun, 12 Mar 2017 08:21:32 +0000 (08:21 +0000)]
usb: gadget: udc: fsl: Add missing complete function.
am: 80190fcc48

Change-Id: Ib4f93f39b176b203c78a63bcdd8ab6b215db5b31

7 years agousb: host: xhci: plat: check hcc_params after add hcd
William wu [Sun, 12 Mar 2017 08:21:22 +0000 (08:21 +0000)]
usb: host: xhci: plat: check hcc_params after add hcd
am: 61e9e9bcfd

Change-Id: I34fa79dc6db2afab25940511c4993bf616a194bc

7 years agousb: musb: da8xx: Remove CPPI 3.0 quirk and methods
Alexandre Bailon [Sun, 12 Mar 2017 08:21:12 +0000 (08:21 +0000)]
usb: musb: da8xx: Remove CPPI 3.0 quirk and methods
am: 900466a746

Change-Id: Icbe05d3d58966174fac972609a3b0aeba34c01d3

7 years agow1: ds2490: USB transfer buffers need to be DMAable
Maciej S. Szmigiero [Sun, 12 Mar 2017 08:21:03 +0000 (08:21 +0000)]
w1: ds2490: USB transfer buffers need to be DMAable
am: 89eb5ed153

Change-Id: I03eeec3eed9a3d21d893cc2f68274ddd99755852

7 years agow1: don't leak refcount on slave attach failure in w1_attach_slave_device()
Maciej S. Szmigiero [Sun, 12 Mar 2017 08:20:53 +0000 (08:20 +0000)]
w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
am: 1df66c4524

Change-Id: I60200dc28a2dd8d0349261225764a64e1991c789

7 years agocan: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
Marc Kleine-Budde [Sun, 12 Mar 2017 08:20:43 +0000 (08:20 +0000)]
can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
am: 20bc8a897e

Change-Id: Ieef9c24ff41bdc07f95887c9192d325328962a25

7 years agoiio: pressure: mpl3115: do not rely on structure field ordering
Peter Rosin [Sun, 12 Mar 2017 08:20:34 +0000 (08:20 +0000)]
iio: pressure: mpl3115: do not rely on structure field ordering
am: 3584716db1

Change-Id: I1d115f813e9101c65802745e6ac5c9b9b09237f0

7 years agoiio: pressure: mpl115: do not rely on structure field ordering
Peter Rosin [Sun, 12 Mar 2017 08:20:24 +0000 (08:20 +0000)]
iio: pressure: mpl115: do not rely on structure field ordering
am: 2ab6b8c717

Change-Id: Ic82b55fc5ed4a3f92939355b4324427ec52c5436

7 years agoarm/arm64: KVM: Enforce unconditional flush to PoC when mapping to stage-2
Marc Zyngier [Sun, 12 Mar 2017 08:20:15 +0000 (08:20 +0000)]
arm/arm64: KVM: Enforce unconditional flush to PoC when mapping to stage-2
am: e83a28c521

Change-Id: I0e1de5d2d64401624e0cb37b9b92cb9941081869

7 years agofuse: add missing FR_FORCE
Miklos Szeredi [Sun, 12 Mar 2017 08:20:05 +0000 (08:20 +0000)]
fuse: add missing FR_FORCE
am: d4a8db66b9

Change-Id: I0ab1ff44762da9ee940038bb84dfbc74af15c637

7 years agocrypto: testmgr - Pad aes_ccm_enc_tv_template vector
Laura Abbott [Sun, 12 Mar 2017 08:19:54 +0000 (08:19 +0000)]
crypto: testmgr - Pad aes_ccm_enc_tv_template vector
am: 434ed4aff1

Change-Id: Ia925d3cad8b56e754efcc7b981e0b91692b86b5a

7 years agoath9k: use correct OTP register offsets for the AR9340 and AR9550
Christian Lamparter [Sun, 12 Mar 2017 08:19:44 +0000 (08:19 +0000)]
ath9k: use correct OTP register offsets for the AR9340 and AR9550
am: 7666ef1a36

Change-Id: Ide87c402232ce2e615b68676692dac446b645022

7 years agoath9k: fix race condition in enabling/disabling IRQs
Felix Fietkau [Sun, 12 Mar 2017 08:19:35 +0000 (08:19 +0000)]
ath9k: fix race condition in enabling/disabling IRQs
am: 1aeced70f7

Change-Id: Ifcf5e90179052b66d3e1d97ade82f98a92c0b14d

7 years agoath5k: drop bogus warning on drv_set_key with unsupported cipher
Felix Fietkau [Sun, 12 Mar 2017 08:19:25 +0000 (08:19 +0000)]
ath5k: drop bogus warning on drv_set_key with unsupported cipher
am: dc7bbf895e

Change-Id: I2c600fe8403bb76a3417d33eee4c27cb0a7d57fc

7 years agotarget: Fix multi-session dynamic se_node_acl double free OOPs
Nicholas Bellinger [Sun, 12 Mar 2017 08:19:16 +0000 (08:19 +0000)]
target: Fix multi-session dynamic se_node_acl double free OOPs
am: 6af0acc0b6

Change-Id: Iaa5c0362e6956f9303e5ec68b70567cb3b583dbb

7 years agotarget: Obtain se_node_acl->acl_kref during get_initiator_node_acl
Nicholas Bellinger [Sun, 12 Mar 2017 08:19:07 +0000 (08:19 +0000)]
target: Obtain se_node_acl->acl_kref during get_initiator_node_acl
am: 4a3c526ced

Change-Id: I0fb88f8fdf1fdc1a6e70cba5e0dac48c18996871

7 years agosamples/seccomp: fix 64-bit comparison macros
Mathias Svensson [Sun, 12 Mar 2017 08:18:55 +0000 (08:18 +0000)]
samples/seccomp: fix 64-bit comparison macros
am: da259399e4

Change-Id: Ia3823255a3bea3a9d52b96c5729817c1d9221ff1

7 years agoext4: return EROFS if device is r/o and journal replay is needed
Theodore Ts'o [Sun, 12 Mar 2017 08:18:46 +0000 (08:18 +0000)]
ext4: return EROFS if device is r/o and journal replay is needed
am: 6ad4196f19

Change-Id: Id2fea1964520c451afc4bfd2d903526bff0ff090

7 years agoext4: preserve the needs_recovery flag when the journal is aborted
Theodore Ts'o [Sun, 12 Mar 2017 08:18:36 +0000 (08:18 +0000)]
ext4: preserve the needs_recovery flag when the journal is aborted
am: 9a79248c08

Change-Id: I46020005a8613c856baf796a1bd799958e9345d0

7 years agoext4: fix inline data error paths
Theodore Ts'o [Sun, 12 Mar 2017 08:18:26 +0000 (08:18 +0000)]
ext4: fix inline data error paths
am: 6ec4583e9b

Change-Id: I288454fe8c77883f859f8bb7705727bd8c52c378

7 years agoext4: fix data corruption in data=journal mode
Jan Kara [Sun, 12 Mar 2017 08:18:16 +0000 (08:18 +0000)]
ext4: fix data corruption in data=journal mode
am: 9d636818db

Change-Id: Idc4320c3f0fa867216d8770b5ad186226e61152a

7 years agoext4: trim allocation requests to group size
Jan Kara [Sun, 12 Mar 2017 08:18:07 +0000 (08:18 +0000)]
ext4: trim allocation requests to group size
am: 8774c73cf6

Change-Id: I7ef4daf4451a8e8373f8e6e0cf07e08c676c9921

7 years agoext4: do not polute the extents cache while shifting extents
Roman Pen [Sun, 12 Mar 2017 08:17:57 +0000 (08:17 +0000)]
ext4: do not polute the extents cache while shifting extents
am: a3068b3e80

Change-Id: I8a8eb01160a8dca91e99709f5247b9d159847c70

7 years agoext4: Include forgotten start block on fallocate insert range
Roman Pen [Sun, 12 Mar 2017 08:17:48 +0000 (08:17 +0000)]
ext4: Include forgotten start block on fallocate insert range
am: 3daefdae5f

Change-Id: I96ed2bfb756e3a37c07656d632660757c100065b

7 years agoloop: fix LO_FLAGS_PARTSCAN hang
Omar Sandoval [Sun, 12 Mar 2017 08:17:38 +0000 (08:17 +0000)]
loop: fix LO_FLAGS_PARTSCAN hang
am: cd3db55c64

Change-Id: I19b2069183011982702a38dfad5f2b589bbd3f4e

7 years agoblock/loop: fix race between I/O and set_status
Ming Lei [Sun, 12 Mar 2017 08:17:29 +0000 (08:17 +0000)]
block/loop: fix race between I/O and set_status
am: 356d71df73

Change-Id: I57316c57bb82477bd2e6d24047b9399016c48348

7 years agojbd2: don't leak modified metadata buffers on an aborted journal
Theodore Ts'o [Sun, 12 Mar 2017 08:17:19 +0000 (08:17 +0000)]
jbd2: don't leak modified metadata buffers on an aborted journal
am: 973f40f368

Change-Id: I3c95a6a0e9d2daa4713da89a47c3aac6b6193d02

7 years agoFix: Disable sys_membarrier when nohz_full is enabled
Mathieu Desnoyers [Sun, 12 Mar 2017 08:17:10 +0000 (08:17 +0000)]
Fix: Disable sys_membarrier when nohz_full is enabled
am: c0ef1f537a

Change-Id: I3650becd64c5156d24dee601990d48c68057e81d

7 years agosd: get disk reference in sd_check_events()
Hannes Reinecke [Sun, 12 Mar 2017 08:17:00 +0000 (08:17 +0000)]
sd: get disk reference in sd_check_events()
am: ea240cfed9

Change-Id: Ie5d8f2f3588859d8a4f4466c158223afbf8e2ecb

7 years agoscsi: use 'scsi_device_from_queue()' for scsi_dh
Hannes Reinecke [Sun, 12 Mar 2017 08:16:50 +0000 (08:16 +0000)]
scsi: use 'scsi_device_from_queue()' for scsi_dh
am: 33950b56d2

Change-Id: Ie22776722d50f3c91cfdebd8e89284e123cf2648

7 years agoscsi: aacraid: Reorder Adapter status check
Raghava Aditya Renukunta [Sun, 12 Mar 2017 08:16:41 +0000 (08:16 +0000)]
scsi: aacraid: Reorder Adapter status check
am: 2dc9a859eb

Change-Id: Idbd0d6bc38a75a802547ad44280c72f83d930604

7 years agoscsi: storvsc: properly set residual data length on errors
Long Li [Sun, 12 Mar 2017 08:16:33 +0000 (08:16 +0000)]
scsi: storvsc: properly set residual data length on errors
am: 18dbfcae65

Change-Id: Icd112397502c0caed46d5c3613e9cb2720901e6f

7 years agoscsi: storvsc: properly handle SRB_ERROR when sense message is present
Long Li [Sun, 12 Mar 2017 08:16:23 +0000 (08:16 +0000)]
scsi: storvsc: properly handle SRB_ERROR when sense message is present
am: 80bccab34a

Change-Id: Ia376c2f0f0a0b1328b60ed5fb707fe5a12ec64ad

7 years agoscsi: storvsc: use tagged SRB requests if supported by the device
Long Li [Sun, 12 Mar 2017 08:16:12 +0000 (08:16 +0000)]
scsi: storvsc: use tagged SRB requests if supported by the device
am: 5cdc8193ac

Change-Id: Id08acaf5e82dcfb9f447ba4e375f97423ae216b4

7 years agodm stats: fix a leaked s->histogram_boundaries array
Mikulas Patocka [Sun, 12 Mar 2017 08:16:03 +0000 (08:16 +0000)]
dm stats: fix a leaked s->histogram_boundaries array
am: 6a284310d5

Change-Id: Iffdf38daa52f8e2386d20f50ae62dae523c41991

7 years agodm cache: fix corruption seen when using cache > 2TB
Joe Thornber [Sun, 12 Mar 2017 08:15:54 +0000 (08:15 +0000)]
dm cache: fix corruption seen when using cache > 2TB
am: fdea1f9721

Change-Id: Ife7330de88f3c77653c946783ea95ca393b3d1b4

7 years agoipc/shm: Fix shmat mmap nil-page protection
Davidlohr Bueso [Sun, 12 Mar 2017 08:15:46 +0000 (08:15 +0000)]
ipc/shm: Fix shmat mmap nil-page protection
am: f0ae01568e

Change-Id: I53489954b39ece583120b8462d57a969ab1e972f

7 years agomm: do not access page->mapping directly on page_endio
Minchan Kim [Sun, 12 Mar 2017 08:15:36 +0000 (08:15 +0000)]
mm: do not access page->mapping directly on page_endio
am: c5c893e7c4

Change-Id: Ic37f4022408ccc77d7702ebc4be606bd94ad20e1

7 years agomm: vmpressure: fix sending wrong events on underflow
Vinayak Menon [Sun, 12 Mar 2017 08:15:27 +0000 (08:15 +0000)]
mm: vmpressure: fix sending wrong events on underflow
am: 66f43a5768

Change-Id: I914c9c65e90dc02251788277937daca32fd59818

7 years agomm/page_alloc: fix nodes for reclaim in fast path
Gavin Shan [Sun, 12 Mar 2017 08:15:17 +0000 (08:15 +0000)]
mm/page_alloc: fix nodes for reclaim in fast path
am: 612e4679b8

Change-Id: I134dc72c598a798d4f3dead4421c269ae7bb3791

7 years agoiommu/vt-d: Tylersburg isoch identity map check is done too late.
Ashok Raj [Sun, 12 Mar 2017 08:15:08 +0000 (08:15 +0000)]
iommu/vt-d: Tylersburg isoch identity map check is done too late.
am: 31dac0e870

Change-Id: I0e8dacd983deed5a478e50a4ce4c48622668e563

7 years agoiommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
CQ Tang [Sun, 12 Mar 2017 08:14:59 +0000 (08:14 +0000)]
iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
am: 07852563db

Change-Id: I19ddfcf5d9f41e3fc8580b6449b27c1485b06e16

7 years agoregulator: Fix regulator_summary for deviceless consumers
Leonard Crestez [Sun, 12 Mar 2017 08:14:49 +0000 (08:14 +0000)]
regulator: Fix regulator_summary for deviceless consumers
am: 5cc0cd0e3a

Change-Id: I9bcef233094a090abaa0d344853f8f249ff5351f

7 years agostaging: rtl: fix possible NULL pointer dereference
Arnd Bergmann [Sun, 12 Mar 2017 08:14:40 +0000 (08:14 +0000)]
staging: rtl: fix possible NULL pointer dereference
am: 272d60bfce

Change-Id: I49cd1afa12c293484de6c18eb31e67d2baa0a4d4

7 years agoALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
Hui Wang [Sun, 12 Mar 2017 08:14:31 +0000 (08:14 +0000)]
ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
am: 8c8f42c9a4

Change-Id: I0075697f99a22a1364d3ecdc993c1257662f9eb5

7 years agoALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
Takashi Iwai [Sun, 12 Mar 2017 08:14:21 +0000 (08:14 +0000)]
ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
am: cd585d3ba5

Change-Id: I7d9b34fdcf5dcc2d88d5cd0c1ebf263eefcf6acf

7 years agoALSA: seq: Fix link corruption by event error handling
Takashi Iwai [Sun, 12 Mar 2017 08:14:11 +0000 (08:14 +0000)]
ALSA: seq: Fix link corruption by event error handling
am: 003aa34372

Change-Id: I5c14157cc11ff09f45950d0b9a58dcc2c22535d4

7 years agoALSA: ctxfi: Fallback DMA mask to 32bit
Takashi Iwai [Sun, 12 Mar 2017 08:14:01 +0000 (08:14 +0000)]
ALSA: ctxfi: Fallback DMA mask to 32bit
am: 70dbc00f7e

Change-Id: If4ce0b2e8a727aa341bdd484eb920ba33f09707d

7 years agoALSA: timer: Reject user params with too small ticks
Takashi Iwai [Sun, 12 Mar 2017 08:13:51 +0000 (08:13 +0000)]
ALSA: timer: Reject user params with too small ticks
am: 9879f9d01a

Change-Id: I3fb699e66b0e89da94eea1124c89fedf9f2cc576

7 years agoALSA: hda - fix Lewisburg audio issue
Jaroslav Kysela [Sun, 12 Mar 2017 08:13:42 +0000 (08:13 +0000)]
ALSA: hda - fix Lewisburg audio issue
am: b9bf1f0657

Change-Id: Ib9f0327ded792418c9c5d5531257fdacfef23ad8

7 years agoALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
Kai-Heng Feng [Sun, 12 Mar 2017 08:13:33 +0000 (08:13 +0000)]
ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
am: 1f4f37076d

Change-Id: I644061092b4149f275fa5de0354a57ad2711b9a7

7 years agoARM: dts: at91: Enable DMA on sama5d2_xplained console
Alexandre Belloni [Sun, 12 Mar 2017 08:13:24 +0000 (08:13 +0000)]
ARM: dts: at91: Enable DMA on sama5d2_xplained console
am: 6b1d7b6f54

Change-Id: Id2e050faf5544cd7ea2cd5f414c851550ea59f70

7 years agoARM: dts: at91: Enable DMA on sama5d4_xplained console
Alexandre Belloni [Sun, 12 Mar 2017 08:13:15 +0000 (08:13 +0000)]
ARM: dts: at91: Enable DMA on sama5d4_xplained console
am: be83ed085f

Change-Id: Ia3caad88499707a3c3c011e29b89dc2197231ba4

7 years agoARM: at91: define LPDDR types
Alexandre Belloni [Sun, 12 Mar 2017 08:13:05 +0000 (08:13 +0000)]
ARM: at91: define LPDDR types
am: b401418c6c

Change-Id: I3a3a6313fb6e75193fd502aa2b54401d218493c0

7 years agomedia: fix dm1105.c build error
Randy Dunlap [Sun, 12 Mar 2017 08:12:57 +0000 (08:12 +0000)]
media: fix dm1105.c build error
am: f3a0b20040

Change-Id: Icd2cd4503a794b66d64c45659b73f870d032eb65

7 years agouvcvideo: Fix a wrong macro
Guennadi Liakhovetski [Sun, 12 Mar 2017 08:12:47 +0000 (08:12 +0000)]
uvcvideo: Fix a wrong macro
am: b0bde9f6a0

Change-Id: I5c521825b9659f7ff74b8708550930f86a278b91

7 years agoam437x-vpfe: always assign bpp variable
Nicolas Iooss [Sun, 12 Mar 2017 08:12:38 +0000 (08:12 +0000)]
am437x-vpfe: always assign bpp variable
am: 5988e73201

Change-Id: I2bdb0d627980fa6a38dd774e1f27c400edcbae76

7 years agoMIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
Paul Burton [Sun, 12 Mar 2017 08:12:28 +0000 (08:12 +0000)]
MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
am: ab7546e491

Change-Id: Idcfd907ca44b5d0e5231e07e1945eb7a1e874f39

7 years agoMIPS: Calculate microMIPS ra properly when unwinding the stack
Paul Burton [Sun, 12 Mar 2017 08:12:19 +0000 (08:12 +0000)]
MIPS: Calculate microMIPS ra properly when unwinding the stack
am: cc387ae089

Change-Id: Ic8e08f715b0137db795069024c05dbbdcba65355

7 years agoMIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
Paul Burton [Sun, 12 Mar 2017 08:12:09 +0000 (08:12 +0000)]
MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
am: d75d675a05

Change-Id: I21332f13b7cb7a85cca19151ef909445879e2b44

7 years agoMIPS: Fix get_frame_info() handling of microMIPS function size
Paul Burton [Sun, 12 Mar 2017 08:12:01 +0000 (08:12 +0000)]
MIPS: Fix get_frame_info() handling of microMIPS function size
am: 72a0cfae59

Change-Id: Id3a27d9cecbf32d7796c41fbd66865e04a0bf5a4

7 years agoMIPS: Prevent unaligned accesses during stack unwinding
Paul Burton [Sun, 12 Mar 2017 08:11:51 +0000 (08:11 +0000)]
MIPS: Prevent unaligned accesses during stack unwinding
am: 2998bf60d3

Change-Id: I35cd0b6a76195d79d0416447d90f5168637c00dd

7 years agoMIPS: Clear ISA bit correctly in get_frame_info()
Paul Burton [Sun, 12 Mar 2017 08:11:42 +0000 (08:11 +0000)]
MIPS: Clear ISA bit correctly in get_frame_info()
am: 0d45490221

Change-Id: I531d407a5a29d93c60ac199b7ff7d13ced328c05

7 years agoMIPS: Lantiq: Keep ethernet enabled during boot
Felix Fietkau [Sun, 12 Mar 2017 08:11:34 +0000 (08:11 +0000)]
MIPS: Lantiq: Keep ethernet enabled during boot
am: f1be0f5814

Change-Id: Id823b48dec5de9b66ca8f98eaffd4cb5eba52efe

7 years agoMIPS: OCTEON: Fix copy_from_user fault handling for large buffers
James Cowgill [Sun, 12 Mar 2017 08:11:25 +0000 (08:11 +0000)]
MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
am: 093292b8f8

Change-Id: I366bdcba20ff678b6796f1805be0940297292dcd

7 years agoMIPS: BCM47XX: Fix button inversion for Asus WL-500W
Mirko Parthey [Sun, 12 Mar 2017 08:11:15 +0000 (08:11 +0000)]
MIPS: BCM47XX: Fix button inversion for Asus WL-500W
am: b32e43cf3f

Change-Id: Ida853a4548c2f09b1fe2d070c25cad409d022525

7 years agoMIPS: Fix special case in 64 bit IP checksumming.
Ralf Baechle [Sun, 12 Mar 2017 08:11:06 +0000 (08:11 +0000)]
MIPS: Fix special case in 64 bit IP checksumming.
am: 5636da7aba

Change-Id: I9ca72b7b7dbf94ecc4be5aaa910024ead497165c

7 years agosamples: move mic/mpssd example code from Documentation
Shuah Khan [Sun, 12 Mar 2017 08:10:58 +0000 (08:10 +0000)]
samples: move mic/mpssd example code from Documentation
am: faf6aa4b12

Change-Id: I7ed0b2c9987635d6e46fa9207cc9c7457896b536

7 years agodmaengine: ipu: Make sure the interrupt routine checks all interrupts.
Magnus Lilja [Wed, 21 Dec 2016 21:13:58 +0000 (22:13 +0100)]
dmaengine: ipu: Make sure the interrupt routine checks all interrupts.

commit adee40b265d7568296e218f079f478197ffa15bf upstream.

Commit 3d8cc00073d6 ("dmaengine: ipu: Consolidate duplicated irq handlers")
consolidated the two interrupts routines into one, but the remaining
interrupt routine only checks the status of the error interrupts, not the
normal interrupts.

This patch fixes that problem (tested on i.MX31 PDK board).

Fixes: 3d8cc00073d6 ("dmaengine: ipu: Consolidate duplicated irq handlers")
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agobcma: use (get|put)_device when probing/removing device driver
Rafał Miłecki [Sat, 28 Jan 2017 13:31:22 +0000 (14:31 +0100)]
bcma: use (get|put)_device when probing/removing device driver

commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream.

This allows tracking device state and e.g. makes devm work as expected.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agomd linear: fix a race between linear_add() and linear_congested()
colyli@suse.de [Sat, 28 Jan 2017 13:11:49 +0000 (21:11 +0800)]
md linear: fix a race between linear_add() and linear_congested()

commit 03a9e24ef2aaa5f1f9837356aed79c860521407a upstream.

Recently I receive a bug report that on Linux v3.0 based kerenl, hot add
disk to a md linear device causes kernel crash at linear_congested(). From
the crash image analysis, I find in linear_congested(), mddev->raid_disks
contains value N, but conf->disks[] only has N-1 pointers available. Then
a NULL pointer deference crashes the kernel.

There is a race between linear_add() and linear_congested(), RCU stuffs
used in these two functions cannot avoid the race. Since Linuv v4.0
RCU code is replaced by introducing mddev_suspend().  After checking the
upstream code, it seems linear_congested() is not called in
generic_make_request() code patch, so mddev_suspend() cannot provent it
from being called. The possible race still exists.

Here I explain how the race still exists in current code.  For a machine
has many CPUs, on one CPU, linear_add() is called to add a hard disk to a
md linear device; at the same time on other CPU, linear_congested() is
called to detect whether this md linear device is congested before issuing
an I/O request onto it.

Now I use a possible code execution time sequence to demo how the possible
race happens,

seq    linear_add()                linear_congested()
 0                                 conf=mddev->private
 1   oldconf=mddev->private
 2   mddev->raid_disks++
 3                              for (i=0; i<mddev->raid_disks;i++)
 4                                bdev_get_queue(conf->disks[i].rdev->bdev)
 5   mddev->private=newconf

In linear_add() mddev->raid_disks is increased in time seq 2, and on
another CPU in linear_congested() the for-loop iterates conf->disks[i] by
the increased mddev->raid_disks in time seq 3,4. But conf with one more
element (which is a pointer to struct dev_info type) to conf->disks[] is
not updated yet, accessing its structure member in time seq 4 will cause a
NULL pointer deference fault.

To fix this race, there are 2 parts of modification in the patch,
 1) Add 'int raid_disks' in struct linear_conf, as a copy of
    mddev->raid_disks. It is initialized in linear_conf(), always being
    consistent with pointers number of 'struct dev_info disks[]'. When
    iterating conf->disks[] in linear_congested(), use conf->raid_disks to
    replace mddev->raid_disks in the for-loop, then NULL pointer deference
    will not happen again.
 2) RCU stuffs are back again, and use kfree_rcu() in linear_add() to
    free oldconf memory. Because oldconf may be referenced as mddev->private
    in linear_congested(), kfree_rcu() makes sure that its memory will not
    be released until no one uses it any more.
Also some code comments are added in this patch, to make this modification
to be easier understandable.

This patch can be applied for kernels since v4.0 after commit:
3be260cc18f8 ("md/linear: remove rcu protections in favour of
suspend/resume"). But this bug is reported on Linux v3.0 based kernel, for
people who maintain kernels before Linux v4.0, they need to do some back
back port to this patch.

Changelog:
 - V3: add 'int raid_disks' in struct linear_conf, and use kfree_rcu() to
       replace rcu_call() in linear_add().
 - v2: add RCU stuffs by suggestion from Shaohua and Neil.
 - v1: initial effort.

Signed-off-by: Coly Li <colyli@suse.de>
Cc: Shaohua Li <shli@fb.com>
Cc: Neil Brown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agortc: sun6i: Switch to the external oscillator
Maxime Ripard [Mon, 23 Jan 2017 10:41:48 +0000 (11:41 +0100)]
rtc: sun6i: Switch to the external oscillator

commit fb61bb82cb46a932ef2fc62e1c731c8e7e6640d5 upstream.

The RTC is clocked from either an internal, imprecise, oscillator or an
external one, which is usually much more accurate.

The difference perceived between the time elapsed and the time reported by
the RTC is in a 10% scale, which prevents the RTC from being useful at all.

Fortunately, the external oscillator is reported to be mandatory in the
Allwinner datasheet, so we can just switch to it.

Fixes: 9765d2d94309 ("rtc: sun6i: Add sun6i RTC driver")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agortc: sun6i: Add some locking
Maxime Ripard [Mon, 23 Jan 2017 10:41:47 +0000 (11:41 +0100)]
rtc: sun6i: Add some locking

commit a9422a19ce270a22fc520f2278fb7e80c58be508 upstream.

Some registers have a read-modify-write access pattern that are not atomic.

Add some locking to prevent from concurrent accesses.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoNFSv4: fix getacl ERANGE for some ACL buffer sizes
Weston Andros Adamson [Thu, 23 Feb 2017 19:54:21 +0000 (14:54 -0500)]
NFSv4: fix getacl ERANGE for some ACL buffer sizes

commit ed92d8c137b7794c2c2aa14479298b9885967607 upstream.

We're not taking into account that the space needed for the (variable
length) attr bitmap, with the result that we'd sometimes get a spurious
ERANGE when the ACL data got close to the end of a page.

Just add in an extra page to make sure.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoNFSv4: fix getacl head length estimation
J. Bruce Fields [Thu, 23 Feb 2017 19:53:39 +0000 (14:53 -0500)]
NFSv4: fix getacl head length estimation

commit 6682c14bbe505a8b912c57faf544f866777ee48d upstream.

Bitmap and attrlen follow immediately after the op reply header.  This
was an oversight from commit bf118a342f.

Consequences of this are just minor efficiency (extra calls to
xdr_shrink_bufhead).

Fixes: bf118a342f10 "NFSv4: include bitmap in nfsv4 get acl data"
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoNFSv4: Fix memory and state leak in _nfs4_open_and_get_state
Trond Myklebust [Wed, 8 Feb 2017 16:29:46 +0000 (11:29 -0500)]
NFSv4: Fix memory and state leak in _nfs4_open_and_get_state

commit a974deee477af89411e0f80456bfb344ac433c98 upstream.

If we exit because the file access check failed, we currently
leak the struct nfs4_state. We need to attach it to the
open context before returning.

Fixes: 3efb9722475e ("NFSv4: Refactor _nfs4_open_and_get_state..")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agonfsd: special case truncates some more
Christoph Hellwig [Mon, 20 Feb 2017 06:21:33 +0000 (07:21 +0100)]
nfsd: special case truncates some more

commit 783112f7401ff449d979530209b3f6c2594fdb4e upstream.

Both the NFS protocols and the Linux VFS use a setattr operation with a
bitmap of attributes to set to set various file attributes including the
file size and the uid/gid.

The Linux syscalls never mix size updates with unrelated updates like
the uid/gid, and some file systems like XFS and GFS2 rely on the fact
that truncates don't update random other attributes, and many other file
systems handle the case but do not update the other attributes in the
same transaction.  NFSD on the other hand passes the attributes it gets
on the wire more or less directly through to the VFS, leading to updates
the file systems don't expect.  XFS at least has an assert on the
allowed attributes, which caught an unusual NFS client setting the size
and group at the same time.

To handle this issue properly this splits the notify_change call in
nfsd_setattr into two separate ones.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agonfsd: minor nfsd_setattr cleanup
Christoph Hellwig [Mon, 20 Feb 2017 22:04:42 +0000 (17:04 -0500)]
nfsd: minor nfsd_setattr cleanup

commit 758e99fefe1d9230111296956335cd35995c0eaf upstream.

Simplify exit paths, size_change use.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agortlwifi: rtl8192c-common: Fix "BUG: KASAN:
Larry Finger [Sun, 5 Feb 2017 16:24:22 +0000 (10:24 -0600)]
rtlwifi: rtl8192c-common: Fix "BUG: KASAN:

commit 6773386f977ce5af339f9678fa2918909a946c6b upstream.

Kernels built with CONFIG_KASAN=y report the following BUG for rtl8192cu
and rtl8192c-common:

==================================================================
BUG: KASAN: slab-out-of-bounds in rtl92c_dm_bt_coexist+0x858/0x1e40
     [rtl8192c_common] at addr ffff8801c90edb08
Read of size 1 by task kworker/0:1/38
page:ffffea0007243800 count:1 mapcount:0 mapping:          (null)
     index:0x0 compound_mapcount: 0
flags: 0x8000000000004000(head)
page dumped because: kasan: bad access detected
CPU: 0 PID: 38 Comm: kworker/0:1 Not tainted 4.9.7-gentoo #3
Hardware name: Gigabyte Technology Co., Ltd. To be filled by
     O.E.M./Z77-DS3H, BIOS F11a 11/13/2013
Workqueue: rtl92c_usb rtl_watchdog_wq_callback [rtlwifi]
  0000000000000000 ffffffff829eea33 ffff8801d7f0fa30 ffff8801c90edb08
  ffffffff824c0f09 ffff8801d4abee80 0000000000000004 0000000000000297
  ffffffffc070b57c ffff8801c7aa7c48 ffff880100000004 ffffffff000003e8
Call Trace:
  [<ffffffff829eea33>] ? dump_stack+0x5c/0x79
  [<ffffffff824c0f09>] ? kasan_report_error+0x4b9/0x4e0
  [<ffffffffc070b57c>] ? _usb_read_sync+0x15c/0x280 [rtl_usb]
  [<ffffffff824c0f75>] ? __asan_report_load1_noabort+0x45/0x50
  [<ffffffffc06d7a88>] ? rtl92c_dm_bt_coexist+0x858/0x1e40 [rtl8192c_common]
  [<ffffffffc06d7a88>] ? rtl92c_dm_bt_coexist+0x858/0x1e40 [rtl8192c_common]
  [<ffffffffc06d0cbe>] ? rtl92c_dm_rf_saving+0x96e/0x1330 [rtl8192c_common]
...

The problem is due to rtl8192ce and rtl8192cu sharing routines, and having
different layouts of struct rtl_pci_priv, which is used by rtl8192ce, and
struct rtl_usb_priv, which is used by rtl8192cu. The problem was resolved
by placing the struct bt_coexist_info at the head of each of those private
areas.

Reported-and-tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agortlwifi: Fix alignment issues
Ping-Ke Shih [Wed, 28 Dec 2016 21:40:04 +0000 (15:40 -0600)]
rtlwifi: Fix alignment issues

commit 40b368af4b750863b2cb66a3a9513241db2f0793 upstream.

The addresses of Wlan NIC registers are natural alignment, but some
drivers have bugs. These are evident on platforms that need natural
alignment to access registers.  This change contains the following:
 1. Function _rtl8821ae_dbi_read() is used to read one byte from DBI,
    thus it should use rtl_read_byte().
 2. Register 0x4C7 of 8192ee is single byte.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>