[PATCH 4.12 038/196] PM / Domains: Fix unsafe iteration over modified list of device links

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Krzysztof Kozlowski commit c6e83cac3eda5f7dd32ee1453df2f7abb5c6cd46 upstream. pm_genpd_remove_subdomain() iterates over domain's master_links list and removes matching element thus it has to u

[PATCH 4.12 039/196] PM / Domains: Fix unsafe iteration over modified list of domain providers

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Krzysztof Kozlowski commit b556b15dc04e9b9b98790f04c21acf5e24f994b2 upstream. of_genpd_del_provider() iterates over list of domain provides and removes matching element thus it has to use safe

[PATCH 4.12 040/196] PM / Domains: Fix unsafe iteration over modified list of domains

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Krzysztof Kozlowski commit a7e2d1bce4c1db471f1cbc0c4666a3112bbf0994 upstream. of_genpd_remove_last() iterates over list of domains and removes matching element thus it has to use safe version

[PATCH 4.12 034/196] spi: atmel: fix corrupted data issue on SAM9 family SoCs

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Cyrille Pitchen commit 7094576ccdc3acfe1e06a1e2ab547add375baf7f upstream. This patch disables the use of the DMA for data transfer and forces the use of PIO transfers instead as a quick fixup

[PATCH 4.12 041/196] scsi: ses: do not add a device to an enclosure if enclosure_add_links() fails.

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maurizio Lombardi commit 62e62ffd95539b9220894a7900a619e0f3ef4756 upstream. The enclosure_add_device() function should fail if it can't create the relevant sysfs links. Signed-off-by: Maurizi

[PATCH 4.12 044/196] scsi: Add STARGET_CREATED_REMOVE state to scsi_target_state

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ewan D. Milne commit f9279c968c257ee39b0d7bd2571a4d231a67bcc1 upstream. The addition of the STARGET_REMOVE state had the side effect of introducing a race condition that can cause a crash. sc

[PATCH 4.12 042/196] scsi: virtio_scsi: let host do exception handling

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit e72c9a2a67a6400c8ef3d01d4c461dbbbfa0e1f0 upstream. virtio_scsi tries to do exception handling after the default 30 seconds timeout expires. However, it's better to let th

[PATCH 4.12 037/196] ASoC: atmel: tse850: fix off-by-one in the "ANA" enumeration count

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Peter Rosin commit a00cebf51d5ceed8ba9f6fac5fb189b38cd5a7c2 upstream. At some point I added the "Low" entry at the beginning of the array without bumping the enumeration count from 9 to 10. Fi

[PATCH 4.12 045/196] scsi: Avoid that scsi_exit_rq() triggers a use-after-free

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 8e6882545d8c06f99e9e117741cc87f3338b0bef upstream. Dereferencing shost from scsi_exit_rq() is not safe because the SCSI host may already have been freed when scsi_exit_r

[PATCH 4.12 046/196] iscsi-target: Add login_keys_workaround attribute for non RFC initiators

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 138d351eefb727ab9e41a3dc5f112ceb4f6e59f2 upstream. This patch re-introduces part of a long standing login workaround that was recently dropped by: commit 1c99de981

[PATCH 4.12 027/196] wlcore: fix 64K page support

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 4a4274bf2dbbd1c7a45be0c89a1687c9d2eef4a0 upstream. In the stable linux-3.16 branch, I ran into a warning in the wlcore driver: drivers/net/wireless/ti/wlcore/spi.c: In fu

[PATCH 4.12 048/196] scsi: virtio_scsi: always read VPD pages for multiqueue too

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit a680f1d463aeaeb00d22af257a56e111967c2f18 upstream. Multi-queue virtio-scsi uses a different scsi_host_template struct. Add the .device_alloc field there, too. Fixes: 25d

[PATCH 4.12 047/196] xen/scsiback: Fix a TMR related use-after-free

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 9f4ab18ac51dc87345a9cbd2527e6acf7a0a9335 upstream. scsiback_release_cmd() must not dereference se_cmd->se_tmr_req because that memory is freed by target_free_cmd_mem() b

[PATCH 4.12 043/196] scsi: qla2xxx: Allow ABTS, PURX, RIDA on ATIOQ for ISP83XX/27XX

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 3c4810ffdc8e4f34d387f59baf0abefcfa4ada6a upstream. Driver added mechanism to move ABTS/PUREX/RIDA mailbox to ATIO queue as part of commit id 41dc529a4602ac737020f423f84686a81

Re: [PATCH V2 net-next 01/21] net-next/hinic: Initialize hw interface

2017-07-25 Thread Francois Romieu
Aviad Krawczyk : [...] > module_pci_driver - is not used in other drivers in the same segments, it > is necessary ? /me checks... Ok, there seems to be some overenthusiastic copy'paste. See drivers/net/ethernet/intel/ixgb/ixgb_main.c: [...] /** * ixgb_init_module - Driver Registration Routine

[PATCH 4.12 049/196] powerpc/mm/radix: Only add X for pages overlapping kernel text

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 9abcc981de9775659a0f6e4a52a3448ea72e59da upstream. Currently we map the whole linear mapping with PAGE_KERNEL_X. Instead we should check if the page overlaps the kernel

[PATCH 4.12 054/196] powerpc: Fix emulation of mfocrf in emulate_step()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Anton Blanchard commit 64e756c55aa46fc18fd53e8f3598b73b528d8637 upstream. >From POWER4 onwards, mfocrf() only places the specified CR field into the destination GPR, and the rest of it is set

[PATCH 4.12 055/196] powerpc/asm: Mark cr0 as clobbered in mftb()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Oliver O'Halloran commit 2400fd822f467cb4c886c879d8ad99feac9cf319 upstream. The workaround for the CELL timebase bug does not correctly mark cr0 as being clobbered. This means GCC doesn't know

Re: [PATCH 1/3] arm/syscalls: Move address limit check in loop

2017-07-25 Thread Thomas Garnier
On Tue, Jul 25, 2017 at 3:38 AM, Russell King - ARM Linux wrote: > On Tue, Jul 25, 2017 at 01:28:01PM +0300, Leonard Crestez wrote: >> On Mon, 2017-07-24 at 10:07 -0700, Thomas Garnier wrote: >> > On Wed, Jul 19, 2017 at 10:58 AM, Thomas Garnier > > > wrote: >> > > >> > > The work pending loop can

[PATCH 4.12 056/196] powerpc/mm/radix: Properly clear process table entry

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit c6bb0b8d426a8cf865ca9c8a532cc3a2927cfceb upstream. On radix, the process table entry we want to clear when destroying a context is entry 0, not entry 1. This has

[PATCH 4.12 050/196] powerpc/pseries: Fix passing of pp0 in updatepp() and updateboltedpp()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Balbir Singh commit e71ff982ae4c17d176e9f0132157d54973788377 upstream. Once upon a time there were only two PP (page protection) bits. In ISA 2.03 an additional PP bit was added, but because o

[PATCH 4.12 057/196] powerpc/perf: Fix SDAR_MODE value for continous sampling on Power9

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Madhavan Srinivasan commit 20dd4c624d25156d5ec3345bbb690b98175ef879 upstream. In case of continous sampling (non-marked), the code currently sets MMCRA[SDAR_MODE] to 0b01 (Update on TLB miss)

[PATCH 4.12 059/196] PCI: vmd: Move SRCU cleanup after bus, child device removal

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jon Derrick commit 0cb259c47a4df466d641c1f07ae3eccaa9ba3ccb upstream. Recent __call_srcu() changes have exposed that we need to cleanup SRCU structures after pci_stop_root_bus() calls into vmd

[PATCH 4.12 051/196] powerpc/mm/radix: Fix execute permissions for interrupt_vectors

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Balbir Singh commit 7f6d498ed3354740cfd100e4aa99e388f1a95be7 upstream. Commit 9abcc981de97 ("powerpc/mm/radix: Only add X for pages overlapping kernel text") changed the linear mapping on Radi

[PATCH 4.12 058/196] xen/x86: fix cpu hotplug

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Juergen Gross commit c185ddec54657c145a0c2055e4b87918da24974f upstream. Commit dc6416f1d711eb4c1726e845d653235dcaae12e1 ("xen/x86: Call cpu_startup_entry(CPUHP_AP_ONLINE_IDLE) from xen_play_de

[PATCH 4.12 060/196] PCI: Work around poweroff & suspend-to-RAM issue on Macbook Pro 11

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 13cfc732160f7bc7e596128ce34cda361c556966 upstream. Neither soft poweroff (transition to ACPI power state S5) nor suspend-to-RAM (transition to state S3) works on the Macbo

[PATCH 4.12 052/196] powerpc/64: Fix atomic64_inc_not_zero() to return an int

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 01e6a61aceb82e13bec29502a8eb70d9574f97ad upstream. Although it's not documented anywhere, there is an expectation that atomic64_inc_not_zero() returns a result which fi

[PATCH 4.12 061/196] PCI: rockchip: Use normal register bank for config accessors

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Shawn Lin commit dc8cca5ef25ac4cb0dfc37467521a759767ff361 upstream. Rockchip's RC has two banks of registers for the root port: a normal bank that is strictly compatible with the PCIe spec, an

[PATCH 4.12 062/196] PCI/PM: Restore the status of PCI devices across hibernation

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Chen Yu commit e60514bd4485c0c7c5a7cf779b200ce0b95c70d6 upstream. Currently we saw a lot of "No irq handler" errors during hibernation, which caused the system hang finally: ata4.00: qc tim

[PATCH 4.12 065/196] xhci: fix memleak in xhci_run()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Shu Wang commit d6f5f071f1e13cadecf8aef1faa7e5d6fbc9f33b upstream. Found this issue by kmemleak. xhci_run() did not check return val and free command for xhci_queue_vendor_command() unreferen

[PATCH 4.12 063/196] PCI/MSI: Ignore affinity if pre/post vector count is more than min_vecs

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Michael Hernandez commit 6f9a22bc5775d231ab8fbe2c2f3c88e45e3e7c28 upstream. min_vecs is the minimum amount of vectors needed to operate in MSI-X mode which may just include the vectors that do

[PATCH 4.12 053/196] powerpc: Fix emulation of mcrf in emulate_step()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Anton Blanchard commit 87c4b83e0fe234a1f0eed131ab6fa232036860d5 upstream. The mcrf emulation code was using the CR field number directly as the shift value, without taking into account that CR

[PATCH 4.12 074/196] HID: multitouch: do not blindly set EV_KEY or EV_ABS bits

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Torokhov commit 4cf56a89c696e66d10612b43b7e95852611e76c2 upstream. Now that input core insists on having dev->absinfo when device claims to generate EV_ABS in its dev->evbit, we should

[PATCH 4.12 036/196] ASoC: compress: Derive substream from stream based on direction

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Satish Babu Patakokila commit 01b8cedfd0422326caae308641dcadaa85e0ca72 upstream. Currently compress driver hardcodes direction as playback to get substream from the stream. This results in get

[PATCH 4.12 076/196] md: fix deadlock between mddev_suspend() and md_write_start()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit cc27b0c78c79680d128dbac79de0d40556d041bb upstream. If mddev_suspend() races with md_write_start() we can deadlock with mddev_suspend() waiting for the request that is currentl

[PATCH 4.12 078/196] [media] cx88: Fix regression in initial video standard setting

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Devin Heitmueller commit 4e0973a918b9a42e217093f078e04a61e5dd95a5 upstream. Setting initial standard at the top of cx8800_initdev would cause the first call to cx88_set_tvnorm() to return with

[PATCH 4.12 075/196] md: dont use flush_signals in userspace processes

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit f9c79bc05a2a91f4fba8bfd653579e066714b1ec upstream. The function flush_signals clears all pending signals for the process. It may be used by kernel threads when we need t

[PATCH 4.12 084/196] ext2: Dont clear SGID when inheriting ACLs

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit a992f2d38e4ce17b8c7d1f7f67b2de0eebdea069 upstream. When new directory 'DIR1' is created in a directory 'DIR0' with SGID bit set, DIR1 is expected to have SGID bit set (and owni

[PATCH 4.12 085/196] dm raid: stop using BUG() in __rdev_sectors()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Heinz Mauelshagen commit 4d49f1b4a1fcab16b6dd1c79ef14f2b6531d50a6 upstream. Return 0 rather than BUG() if __rdev_sectors() fails and catch invalid rdev size in the constructor. Reported-by: H

[PATCH 4.12 086/196] Raid5 should update rdev->sectors after reshape

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Xiao Ni commit b5d27718f38843a74552e9a93d32e2391fd3999f upstream. The raid5 md device is created by the disks which we don't use the total size. For example, the size of the device is 5G and

[PATCH 4.12 081/196] libnvdimm, btt: fix btt_rw_page not returning errors

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Vishal Verma commit c13c43d54f2c6a3be1c675766778ac1ad8dfbfcc upstream. btt_rw_page was not propagating errors frm btt_do_bvec, resulting in any IO errors via the rw_page path going unnoticed.

[PATCH 4.12 087/196] s390/syscalls: Fix out of bounds arguments access

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Olsa commit c46fc0424ced3fb71208e72bd597d91b9169a781 upstream. Zorro reported following crash while having enabled syscall tracing (CONFIG_FTRACE_SYSCALLS): Unable to handle kernel poi

[PATCH 4.12 082/196] libnvdimm: fix the clear-error check in nsio_rw_bytes

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Vishal Verma commit 7e5a21dfe5524a85705d3bc7b540c849cc13e9a1 upstream. A leftover from the 'bandaid' fix that disabled BTT error clearing in rw_bytes resulted in an incorrect check. After we c

[PATCH 4.12 088/196] drm/amdgpu/gfx8: drop per-APU CU limits

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit 943c05bdb53da273c43ec44eec37c6a70409b5e9 upstream. Always use the max for the family rather than the per sku limits. This makes sure the mask is always the max size to avoi

[PATCH 4.12 066/196] xhci: fix 20000ms port resume timeout

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit a54408d0a004757789863d74e29c2297edae0b4d upstream. A uncleared PLC (port link change) bit will prevent furuther port event interrupts for that port. Leaving it uncleared c

[PATCH 4.12 067/196] xhci: Fix NULL pointer dereference when cleaning up streams for removed host

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 4b895868bb2da60a386a17cde3bf9ecbc70c79f4 upstream. This off by one in stream_id indexing caused NULL pointer dereference and soft lockup on machines with USB attached SCSI

[PATCH 4.12 083/196] libnvdimm: fix badblock range handling of ARS range

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Toshi Kani commit 4e3f0701f25ab194c5362576b1146a1e6cc6c2e7 upstream. __add_badblock_range() does not account sector alignment when it sets 'num_sectors'. Therefore, an ARS error record range

[PATCH 4.12 080/196] tools/testing/nvdimm: fix nfit_test buffer overflow

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Yasunori Goto commit a117699c6c4a4b1b4e90ed51e393590986567cb4 upstream. The root cause of panic is the num_pm of nfit_test1 is wrong. Though 1 is specified for num_pm at nfit_test_init(), it m

[PATCH 4.12 100/196] xfs: Dont clear SGID when inheriting ACLs

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 8ba358756aa08414fa9e65a1a41d28304ed6fd7f upstream. When new directory 'DIR1' is created in a directory 'DIR0' with SGID bit set, DIR1 is expected to have SGID bit set (and owni

[PATCH 4.12 098/196] ipmi: use rcu lock around call to intf->handlers->sender()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Tony Camuso commit cdea46566bb21ce309725a024208322a409055cc upstream. A vendor with a system having more than 128 CPUs occasionally encounters the following crash during shutdown. This is not

[PATCH 4.12 102/196] f2fs: load inodes flag from disk

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jaegeuk Kim commit 93607124c5450148e592c3d18ac533b4e5f25b8b upstream. This patch fixes missing inode flag loaded from disk, reported by Tom. [tom@localhost ~]$ sudo mount /dev/loop0 /mnt/ [to

[PATCH 4.12 101/196] CIFS: Reconnect expired SMB sessions

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Shilovsky commit 511c54a2f69195b28afb9dd119f03787b1625bb4 upstream. According to the MS-SMB2 spec (3.2.5.1.6) once the client receives STATUS_NETWORK_SESSION_EXPIRED error code from a se

[PATCH] tools/power x86_energy_perf_policy: fix shift wrapping bug

2017-07-25 Thread Dan Carpenter
"pkg" goes up to 63 so there is a potential shift wrapping bug here. Fixes: 4beec1d75196 ("tools/power x86_energy_perf_policy: support HWP.EPP") Signed-off-by: Dan Carpenter diff --git a/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c b/tools/power/x86/x86_energy_perf_policy/x86

[PATCH 4.12 097/196] drm/etnaviv: Expose our reservation object when exporting a dmabuf.

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Eric Anholt commit 8555137e26618490cbeb12c243818539875d12f4 upstream. Without this, polling on the dma-buf (and presumably other devices synchronizing against our rendering) would return immed

[PATCH 4.12 103/196] f2fs: wake up all waiters in f2fs_submit_discard_endio

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Chao Yu commit e31b98215779e66a490471c6ad886ae231316699 upstream. There could be more than one waiter waiting discard IO completion, so we need use complete_all() instead of complete() in f2fs

[PATCH 4.12 068/196] xhci: Bad Ethernet performance plugged in ASM1042A host

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jiahau Chang commit 9da5a1092b13468839b1a864b126cacfb72ad016 upstream. When USB Ethernet is plugged in ASMEDIA ASM1042A xHCI host, bad performance was manifesting in Web browser use (like down

[PATCH 4.12 069/196] [media] mxl111sf: Fix driver to use heap allocate buffers for USB messages

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Devin Heitmueller commit d90b336f3f652ff0441e631a06236f785581c8f7 upstream. The recent changes in 4.9 to mandate USB buffers be heap allocated broke this driver, which was allocating the buffe

[PATCH 4.12 071/196] USB: cdc-acm: add device-id for quirky printer

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit fe855789d605590e57f9cd968d85ecce46f5c3fd upstream. Add device-id entry for DATECS FP-2000 fiscal printer needing the NO_UNION_NORMAL quirk. Reported-by: Anton Avramov Sig

[PATCH 4.12 116/196] vfio: Fix group release deadlock

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 811642d8d8a82c0cce8dc2debfdaf23c5a144839 upstream. If vfio_iommu_group_notifier() acquires a group reference and that reference becomes the last reference to the group,

[PATCH 4.12 070/196] usb: storage: return on error to avoid a null pointer dereference

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 446230f52a5bef593554510302465eabab45a372 upstream. When us->extra is null the driver is not initialized, however, a later call to osd200_scsi_to_ata is made that derefere

[PATCH 4.12 105/196] f2fs: try to freeze in gc and discard threads

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jaegeuk Kim commit 1d7be2708277edfef95171d52fb65ee26eaa076b upstream. This allows to freeze gc and discard threads. Signed-off-by: Jaegeuk Kim Signed-off-by: Greg Kroah-Hartman --- fs/f2f

[PATCH 4.12 117/196] vfio: New external user group/file match

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 5d6dee80a1e94cc284d03e06d930e60e8d3ecf7d upstream. At the point where the kvm-vfio pseudo device wants to release its vfio group reference, we can't always acquire a new

[PATCH 4.12 119/196] nvme-rdma: remove race conditions from IB signalling

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Marta Rybczynska commit 5e599d73c1c1816af07f94ddba879499aa39b43c upstream. This patch improves the way the RDMA IB signalling is done by using atomic operations for the signalling variable. Th

Re: USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4

2017-07-25 Thread Alan Stern
On Tue, 25 Jul 2017, Zdenek Kabelac wrote: > Dne 25.7.2017 v 19:02 Alan Stern napsal(a): > > On Tue, 25 Jul 2017, Zdenek Kabelac wrote: > > > >> And in fact it's the very same commit - which adds this message > >> (just check current 4.13 with and without this commit reverted) > >> > >> So here g

[PATCH 4.12 118/196] vfio: Remove unnecessary uses of vfio_container.group_lock

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 7f56c30bd0a232822aca38d288da475613bdff9b upstream. The original intent of vfio_container.group_lock is to protect vfio_container.group_list, however over time it's becom

[PATCH 4.12 114/196] drm/amd/powerplay: fix memory leak in cz_hwmgr backend

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Hawking Zhang commit b1e8b9c5b19c58e3159c2acc77167f4a4c74621f upstream. vddc_dep_on_dal_pwrl is allocated and initialized in cz_hwmgr_backend_init Thus free the memory in cz_hwmgr_backend_fini

[PATCH 4.12 121/196] iommu/arm-smmu: Plumb in new ACPI identifiers

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Robin Murphy commit 84c24379a783c514e5ff7c8fc8a21cf8d64fd05f upstream. Revision C of IORT now allows us to identify ARM MMU-401 and the Cavium ThunderX implementation. Wire them up so that we

Re: [PATCH v2 23/23] percpu: update header to contain bitmap allocator explanation.

2017-07-25 Thread Josef Bacik
On Mon, Jul 24, 2017 at 07:02:20PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > The other patches contain a lot of information, so adding this > information in a separate patch. It adds my copyright and a brief > explanation of how the bitmap allocator works. There is a minor ty

Re: [PATCH] arm64: dts: rockchip: Add rk3328 io-domain node

2017-07-25 Thread Heiko Stuebner
Am Dienstag, 25. Juli 2017, 18:08:01 CEST schrieb David Wu: > Signed-off-by: David Wu applied for 4.14 Thanks Heiko

[PATCH 4.12 064/196] usb: xhci: fix spinlock recursion for USB2 test mode

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Peter Chen commit 576d55460e7f209139545a348746c2fcadf61bc3 upstream. Both xhci_hub_control and xhci_disable_slot tries to hold spinlock, the spinlock recursion occurs when enters USB2 test mod

[PATCH 4.12 123/196] drm/atomic: Add missing drm_atomic_state_clear to atomic_remove_fb

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maarten Lankhorst commit 4086d90cffb8f48400d51fbab575fe50458512e3 upstream. All atomic state should be cleared when drm_modeset_backoff() is called, because it drops all locks and the state be

Re: [RFC PATCH 1/5] ima: extend clone() with IMA namespace support

2017-07-25 Thread Mimi Zohar
On Tue, 2017-07-25 at 12:08 -0700, James Bottomley wrote: > On Tue, 2017-07-25 at 14:04 -0500, Serge E. Hallyn wrote: > > On Tue, Jul 25, 2017 at 11:49:14AM -0700, James Bottomley wrote: > > > > > > On Tue, 2017-07-25 at 12:53 -0500, Serge E. Hallyn wrote: > > > > > > > > On Thu, Jul 20, 2017 at

[PATCH 4.12 073/196] usb: renesas_usbhs: gadget: disable all eps when the driver stops

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit b8b9c974afee685789fcbb191b52d1790be3608c upstream. A gadget driver will not disable eps immediately when ->disconnect() is called. But, since this driver assumes all e

[PATCH 4.12 124/196] MIPS: Fix mips_atomic_set() retry condition

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2ec420b26f7b6ff332393f0bb5a7d245f7ad87f0 upstream. The inline asm retry check in the MIPS_ATOMIC_SET operation of the sysmips system call has been backwards since commit f1e

Re: [PATCH v2 22/23] percpu: update pcpu_find_block_fit to use an iterator

2017-07-25 Thread Josef Bacik
On Mon, Jul 24, 2017 at 07:02:19PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > The simple, and expensive, way to find a free area is to iterate over > the entire bitmap until an area is found that fits the allocation size > and alignment. This patch makes use of an iterate that

[PATCH 4.12 106/196] f2fs: Do not issue small discards in LFS mode

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Damien Le Moal commit acfd2810c75b0625897fc119a2d3a9c26cc0e405 upstream. clear_prefree_segments() issues small discards after discarding full segments. These small discards may not be section

[PATCH 4.12 125/196] MIPS: Fix mips_atomic_set() with EVA

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 4915e1b043d6286928207b1f6968197b50407294 upstream. EVA linked loads (LLE) and conditional stores (SCE) should be used on EVA kernels for the MIPS_ATOMIC_SET operation of the

[PATCH 4.12 072/196] usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 59a0879a0e17b2e43ecdc5e3299da85b8410d7ce upstream. This patch fixes an issue that some registers may be not initialized after resume if the USBHSF_RUNTIME_PWCTRL is no

[PATCH 4.12 126/196] MIPS: Negate error syscall return in trace

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 4f32a39d49b25eaa66d2420f1f03d371ea4cd906 upstream. The sys_exit trace event takes a single return value for the system call, which MIPS passes the value of the $v0 (result)

[PATCH 4.12 127/196] mtd: nand: tango: Fix incorrect use of SEQIN command

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Boris Brezillon commit a186493237a9d8559997c2f97c33c4716d602fd2 upstream. SEQIN is supposed to be used when one wants to start programming a page. What we want here is just to change the colum

[PATCH 4.12 120/196] ftrace: Fix uninitialized variable in match_records()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 2e028c4fe12907f226b8221815f16c2486ad3aa7 upstream. My static checker complains that if "func" is NULL then "clear_filter" is uninitialized. This seems like it could be tr

[PATCH 4.12 129/196] ubifs: Dont leak kernel memory to the MTD

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit 4acadda74ff8b949c448c0282765ae747e088c87 upstream. When UBIFS prepares data structures which will be written to the MTD it ensues that their lengths are multiple of 8

[PATCH 4.12 128/196] ubifs: Correctly evict xattr inodes

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit 272eda8298dc82eb411ece82bbb2c62911087b24 upstream. UBIFS handles extended attributes just like files, as consequence of that, they also have inodes. Therefore UBIFS d

[PATCH 4.12 130/196] ubifs: Dont encrypt special files on creation

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: David Gstir commit f34e87f58dabc31eb69f61cf4a79e951d4176743 upstream. When a new inode is created, we check if the containing folder has a encryption policy set and inherit that. This should h

[PATCH 4.12 122/196] drm/i915/gvt: Fix inconsistent locks holding sequence

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Chuanxiao Dong commit f16bd3dda2c8bf6699e808cd9cc540cfab10e60e upstream. There are two kinds of locking sequence. One is in the thread which is started by vfio ioctl to do the iommu unmapping

[PATCH 4.12 133/196] Revert "ACPI / EC: Enable event freeze mode..." to fix a regression

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Lv Zheng commit 9c40f956ce9b331493347d1b3cb7e384f7dc0581 upstream. On Lenovo ThinkPad X1 Carbon - the 5th Generation, enabling an earlier EC event freezing timing causes acpitz-virtual-0 to re

[PATCH 4.12 107/196] f2fs: sanity check size of nat and sit cache

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jin Qian commit 21d3f8e1c3b7996ce239ab6fa82e9f7a8c47d84d upstream. Make sure number of entires doesn't exceed max journal size. Signed-off-by: Jin Qian Reviewed-by: Chao Yu Signed-off-by: J

[PATCH 4.12 135/196] x86/ioapic: Pass the correct data to unmask_ioapic_irq()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Seunghun Han commit e708e35ba6d89ff785b225cd07dcccab04fa954a upstream. One of the rarely executed code pathes in check_timer() calls unmask_ioapic_irq() passing irq_get_chip_data(0) as argumen

[PATCH 4.12 132/196] ACPI / EC: Drop EC noirq hooks to fix a regression

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Lv Zheng commit 662591461c4b9a1e3b9b159dbf37648a585ebaae upstream. According to bug reports, although the busy polling mode can make noirq stages execute faster, it causes abnormal fan blowing

[PATCH 4.12 134/196] x86/acpi: Prevent out of bound access caused by broken ACPI tables

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Seunghun Han commit dad5ab0db8deac535d03e3fe3d8f2892173fa6a4 upstream. The bus_irq argument of mp_override_legacy_irq() is used as the index into the isa_irq_to_gsi[] array. The bus_irq argume

Re: [PATCH] perf: qcom_l2: fix column exclusion check

2017-07-25 Thread Leeder, Neil
On 7/25/2017 1:01 PM, Mark Rutland wrote: > On Mon, Jul 24, 2017 at 05:17:02PM -0400, Neil Leeder wrote: >> The check for column exclusion did not verify that the event being >> checked was an L2 event, and not a software event. >> Software events should not be checked for column exclusion. >> This

[PATCH 4.12 136/196] MIPS: Fix MIPS I ISA /proc/cpuinfo reporting

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit e5f5a5b06e51a36f6ddf31a4a485358263953a3d upstream. Correct a commit 515a6393dbac ("MIPS: kernel: proc: Add MIPS R6 support to /proc/cpuinfo") regression that caused MI

Re: [RFC PATCH 2/5] ima: Add ns_status for storing namespaced iint data

2017-07-25 Thread Serge E. Hallyn
... > +static void free_ns_status_cache(struct ima_namespace *ns) > +{ > + struct ns_status *status, *next; > + > + write_lock(&ns->ns_status_lock); > + rbtree_postorder_for_each_entry_safe(status, next, > + &ns->ns_status_tree, rb_node) > +

[PATCH] alarmtimer: don't rate limit one-shot timers

2017-07-25 Thread Greg Hackmann
Commit ff86bf0c65f1 ("alarmtimer: Rate limit periodic intervals") sets a minimum bound on the alarm timer interval. This minimum bound shouldn't be applied if the interval is 0. Otherwise, one-shot timers will be converted into periodic ones. This patch is specific to 4.11.y and 4.12.y. Older -

[PATCH 4.12 139/196] MIPS: Fix unaligned PC interpretation in `compute_return_epc

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 11a3799dbeb620bf0400b1fda5cc2c6bea55f20a upstream. Fix a regression introduced with commit fb6883e5809c ("MIPS: microMIPS: Support handling of delay slots.") and defer

[PATCH 4.12 141/196] MIPS: Send SIGILL for BPOSGE32 in `__compute_return_epc_for_insn

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 7b82c1058ac1f8f8b9f2b8786b1f710a57a870a8 upstream. Fix commit e50c0a8fa60d ("Support the MIPS32 / MIPS64 DSP ASE.") and send SIGILL rather than SIGBUS whenever an unim

[PATCH 4.12 140/196] MIPS: math-emu: Prevent wrong ISA mode instruction emulation

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 13769ebad0c42738831787e27c7c7f982e7da579 upstream. Terminate FPU emulation immediately whenever an ISA mode switch has been observed. This is so that we do not interp

[PATCH 4.12 142/196] MIPS: Rename `sigill_r6 to `sigill_r2r6 in `__compute_return_epc_for_insn

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 1f4edde422961397cf4470b347958c13c6a740bb upstream. Use the more accurate `sigill_r2r6' name for the label used in the case of sending SIGILL in the absence of the inst

[PATCH 4.12 138/196] MIPS: Actually decode JALX in `__compute_return_epc_for_insn

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit a9db101b735a9d49295326ae41f610f6da62b08c upstream. Complement commit fb6883e5809c ("MIPS: microMIPS: Support handling of delay slots.") and actually decode the regular

[PATCH 4.12 108/196] f2fs: use spin_{,un}lock_irq{save,restore}

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Chao Yu commit d1aa245354ae4605d1183f542ed8d45811c439f6 upstream. generic/361 reports below warning, this is because: once, there is someone entering into critical region of sbi.cp_lock, if wr

<    2   3   4   5   6   7   8   9   10   11   >