Re: [PATCH 2/2] lkdtm: Provide timing tests for atomic_t vs refcount_t

2017-07-25 Thread Kees Cook
On Tue, Jul 25, 2017 at 11:33 AM, Kees Cook wrote: > While not a crash test, this does provide two tight atomic_t and > refcount_t loops for performance comparisons: > > cd /sys/kernel/debug/provoke-crash > perf stat -B -- cat <(echo ATOMIC_TIMING) > DIRECT

[PATCH 4.12 189/196] drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Philipp Zabel commit 799ee2970485dc206c3bf347d6e6827c04d5e4f9 upstream. The parallel panel driver should continue to work without having an endpoint linking to an

[PATCH 4.12 195/196] smp/hotplug: Move unparking of percpu threads to the control CPU

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 9cd4f1a4e7a858849e889a081a99adff83e08e4c upstream. Vikram reported the following backtrace: BUG: scheduling while atomic: swapper/7/0/0x0002

[PATCH 4.12 185/196] cpufreq: intel_pstate: Correct the busy calculation for KNL

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Srinivas Pandruvada commit 6e34e1f23d780978da65968327cbba6d7013a73f upstream. The busy percent calculated for the Knights Landing (KNL) platform is 1024

[PATCH 4.12 196/196] smp/hotplug: Replace BUG_ON and react useful

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit dea1d0f5f1284e3defee4b8484d9fc230686cd42 upstream. The move of the unpark functions to the control thread moved the BUG_ON() there as well. While it

[PATCH 4.12 149/196] sunrpc: use constant time memory comparison for mac

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit 15a8b93fd5690de017ce665382ea45e5d61811a4 upstream. Otherwise, we enable a MAC forgery via timing attack. Signed-off-by: Jason A. Donenfeld

[PATCH 4.12 176/196] sched/cputime: Rename vtime fields

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Weisbecker commit 60a9ce57e7c5ac1df3a39fb941022bbfa40c0862 upstream. The current "snapshot" based naming on vtime fields suggests we record some past event but

[PATCH 4.12 177/196] sched/cputime: Move the vtime task fields to their own struct

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Weisbecker commit bac5b6b6b11560f323e71d0ebac4061cfe5f56c0 upstream. We are about to add vtime accumulation fields to the task struct. Let's avoid more

[PATCH 4.12 150/196] net/sunrpc/xprt_sock: fix regression in connection error reporting.

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 3ffbc1d65583394be12801655781dd2b079ce169 upstream. Commit 3d4762639dd3 ("tcp: remove poll() flakes when receiving RST") in v4.12 changed the order in which

[PATCH 4.12 159/196] perf/core: Fix scheduling regression of pinned groups

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit 3bda69c1c3993a2bddbae01397d12bfef6054011 upstream. Vince Weaver reported: > I was tracking down some regressions in my

[PATCH 4.12 166/196] RDMA/uverbs: Fix the check for port number

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ismail, Mustafa commit 5a7a88f1b488e4ee49eb3d5b82612d4d9ffdf2c3 upstream. The port number is only valid if IB_QP_PORT is set in the mask. So only check port number

[PATCH 4.12 170/196] drm/mst: Avoid processing partially received up/down message transactions

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 636c4c3e762b62aa93632c645ca65879285b16e3 upstream. Currently we may process up/down message transactions containing uninitialized data. This can happen

[PATCH 4.12 169/196] drm/mst: Avoid dereferencing a NULL mstb in drm_dp_mst_handle_up_req()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 7f8b3987da54cb4d41ad2545cd4d7958b9a36bdf upstream. In case of an unknown broadcast message is sent mstb will remain unset, so check for this. Cc: Dave

[PATCH 4.12 112/196] ovl: mark parent impure on ovl_link()

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Amir Goldstein commit ea3dad18dc5f778cfd931311a91a9315aa0065a3 upstream. When linking a file with copy up origin into a new parent, mark the new parent dir "impure".

Re: [PATCH v2 17/23] percpu: skip chunks if the alloc does not fit in the contig hint

2017-07-25 Thread Josef Bacik
On Mon, Jul 24, 2017 at 07:02:14PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > This patch adds chunk->contig_bits_start to keep track of the contig > hint's offset and the check to skip the chunk if it does not fit. If > the chunk's contig hint starting

[PATCH 4.12 111/196] serial: sh-sci: Uninitialized variables in sysfs files

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 4ab3c51e0540ba8464fe34d84cc35821bb77ae92 upstream. The kstrtol() function returns -ERANGE as well as -EINVAL so these tests are not enough.

Re: [PATCH v2 21/23] percpu: use metadata blocks to update the chunk contig hint

2017-07-25 Thread Josef Bacik
On Mon, Jul 24, 2017 at 07:02:18PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > The largest free region will either be a block level contig hint or an > aggregate over the left_free and right_free areas of blocks. This is a > much smaller set of free

[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

[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

[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

[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

[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

[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

[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.

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

[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

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 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

[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

[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

[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

[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

[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

[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

[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()

[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

[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

[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

[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,

[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

Re: [PATCH v1 02/13] xen/pvcalls: connect to the backend

2017-07-25 Thread Stefano Stabellini
On Mon, 24 Jul 2017, Juergen Gross wrote: > On 22/07/17 02:11, Stefano Stabellini wrote: > > Implement the probe function for the pvcalls frontend. Read the > > supported versions, max-page-order and function-calls nodes from > > xenstore. > > > > Introduce a data structure named pvcalls_bedata.

[PATCH 4.12 025/196] perf intel-pt: Clear FUP flag on error

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit 6a558f12dbe85437acbdec5e149ea07b5554eced upstream. Sometimes a FUP packet is associated with a TSX transaction and a flag is set to indicate

[PATCH 4.12 023/196] perf intel-pt: Ensure never to set last_ip when packet count is zero

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit f952eaceb089b691eba7c4e13686e742a8f26bf5 upstream. Intel PT uses IP compression based on the last IP. For decoding purposes, 'last IP' is not

[PATCH 4.12 024/196] perf intel-pt: Use FUP always when scanning for an IP

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit 622b7a47b843c78626f40c1d1aeef8483383fba2 upstream. The decoder will try to use branch packets to find an IP to start decoding or to recover from

[PATCH 4.12 001/196] disable new gcc-7.1.1 warnings for now

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit bd664f6b3e376a8ef4990f87d08271cc2d01ba9a upstream. I made the mistake of upgrading my desktop to the new Fedora 26 that comes with

[PATCH 4.12 022/196] perf intel-pt: Fix last_ip usage

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit ee14ac0ef6827cd6f9a572cc83dd0191ea17812c upstream. Intel PT uses IP compression based on the last IP. For decoding purposes, 'last IP' is

[PATCH 4.12 005/196] thermal: cpu_cooling: Avoid accessing potentially freed structures

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Viresh Kumar commit 289d72afddf83440117c35d864bf0c6309c1d011 upstream. After the lock is dropped, it is possible that the cpufreq_dev gets freed before we call

[PATCH 4.9 121/125] spmi: Include OF based modalias in device uevent

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson commit d50daa2af2618dab6d21634e65a5fbcf4ae437d6 upstream. Include the OF-based modalias in the uevent sent when registering SPMI devices, so that

[PATCH 4.9 106/125] Revert "perf/core: Drop kernel samples even though :u is specified"

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ingo Molnar commit 6a8a75f3235724c5941a33e287b2f98966ad14c5 upstream. This reverts commit cc1582c231ea041fbc68861dfaf957eaf902b829. This commit introduced a regression that

[PATCH 4.9 122/125] reiserfs: Dont clear SGID when inheriting ACLs

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

[PATCH 4.9 089/125] MIPS: Actually decode JALX in `__compute_return_epc_for_insn

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 063/125] Raid5 should update rdev->sectors after reshape

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 082/125] ubifs: Dont leak kernel memory to the MTD

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 061/125] libnvdimm: fix badblock range handling of ARS range

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

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

2017-07-25 Thread Neil Leeder
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 resulted in a group with both software and L2 events sometimes incorrectly rejecting the L2 event for column

[PATCH 4.9 088/125] MIPS: Save static registers before sysmips

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 49955d84cd9ccdca5a16a495e448e1a06fad9e49 upstream. The MIPS sysmips system call handler may return directly from the MIPS_ATOMIC_SET case

[PATCH 4.9 084/125] Revert "ACPI / EC: Enable event freeze mode..." to fix a regression

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 086/125] x86/ioapic: Pass the correct data to unmask_ioapic_irq()

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 080/125] MIPS: Fix mips_atomic_set() with EVA

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 078/125] ftrace: Fix uninitialized variable in match_records()

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 079/125] MIPS: Fix mips_atomic_set() retry condition

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 068/125] ipmi: use rcu lock around call to intf->handlers->sender()

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 059/125] [media] cx88: Fix regression in initial video standard setting

2017-07-25 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 069/125] ipmi:ssif: Add missing unlock in error branch

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard commit 4495ec6d770e1bca7a04e93ac453ab6720c56c5d upstream. When getting flags, a response to a different message would result in a deadlock because of a

[PATCH 4.9 034/125] scsi: ses: do not add a device to an enclosure if enclosure_add_links() fails.

2017-07-25 Thread Greg Kroah-Hartman
4.9-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.

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-25 Thread Douglas Gilbert
On 2017-07-19 04:36 AM, Johannes Thumshirn wrote: On Wed, Jul 19, 2017 at 03:13:34AM -0500, Jason L Tibbitts III wrote: [ 46.304530] sg_is_valid_dxfer: dxfer_direction: -2, dxfer_len: 0 Ahh now I see the -2 (SG_DXFER_TO_DEV) is the crucial point here. It is 0 in your case. This would "fix"

Re: [PATCH v2 2/4] cgroup: Allow bypass mode in subtree_control

2017-07-25 Thread Waiman Long
On 07/25/2017 01:13 PM, Tejun Heo wrote: > Hello, Waiman. > > On Mon, Jul 24, 2017 at 02:20:59PM -0400, Waiman Long wrote: >> As said in patch 3, enabling bypass mode at subtree_control delegate the >> authority of enabling controllers to the children. The children own the >> resource control

Re: [kernel-hardening] [PATCH v8 3/3] x86/refcount: Implement fast refcount overflow protection

2017-07-25 Thread Kees Cook
On Tue, Jul 25, 2017 at 5:03 AM, Li Kun wrote: > Hi Kees, > > > on 2017/7/25 2:35, Kees Cook wrote: >> >> +static __always_inline __must_check >> +int __refcount_add_unless(refcount_t *r, int a, int u) >> +{ >> + int c, new; >> + >> + c = atomic_read(&(r->refs));

[GIT PULL] uuid updates for 4.13-rc3

2017-07-25 Thread Christoph Hellwig
The following changes since commit cb8c65ccff7f77d0285f1b126c72d37b2572c865: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (2017-07-17 15:08:29 -0700) are available in the git repository at: git://git.infradead.org/users/hch/uuid.git tags/uuid-for-4.13-2 for you to fetch

[PATCH] Staging: rtl8188eu: core: fix brace coding style issue in rtw_mlme_ext.c

2017-07-25 Thread ArminSchoenlieb
From: Armin Schoenlieb This is a patch to the rtw_mlme_ext.c file that fixes up a brace error found by the checkpatch.pl tool Signed-off-by: Armin Schoenlieb --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 3 ++- 1 file changed, 2

[PATCH 3.18 55/60] KVM: PPC: Book3S HV: Context-switch EBB registers properly

2017-07-25 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit ca8efa1df1d15a1795a2da57f9f6aada6ed6b946 upstream. This adds code to save the values of three SPRs (special-purpose registers) used by userspace to

[PATCH 3.18 54/60] drm/mst: Avoid processing partially received up/down message transactions

2017-07-25 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 636c4c3e762b62aa93632c645ca65879285b16e3 upstream. Currently we may process up/down message transactions containing uninitialized data. This can happen

[PATCH 3.18 14/60] Bluetooth: use constant time memory comparison for secret values

2017-07-25 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit 329d82309824ff1082dc4a91a5bbed8c3bec1580 upstream. This file is filled with complex cryptography. Thus, the comparisons of MACs and secret keys and

[PATCH 3.18 38/60] MIPS: Fix mips_atomic_set() with EVA

2017-07-25 Thread Greg Kroah-Hartman
3.18-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

[PATCH 4.4 33/83] ipvs: SNAT packet replies only for NATed connections

2017-07-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Julian Anastasov commit 3c5ab3f395d66a9e4e937fcfdf6ebc63894f028b upstream. We do not check if packet from real server is for NAT connection before performing SNAT. This causes

[PATCH 4.4 57/83] x86/acpi: Prevent out of bound access caused by broken ACPI tables

2017-07-25 Thread Greg Kroah-Hartman
4.4-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[]

[PATCH 4.4 79/83] drm/mst: Avoid processing partially received up/down message transactions

2017-07-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 636c4c3e762b62aa93632c645ca65879285b16e3 upstream. Currently we may process up/down message transactions containing uninitialized data. This can happen if

[PATCH 4.9 013/125] NFC: nfcmrvl: use nfc-device for firmware download

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit e5834ac22948169bbd7c45996d8d4905edd20f5e upstream. Use the nfc- rather than phy-device in firmware-management code that needs a valid struct device. This

[PATCH 4.9 072/125] f2fs: Dont clear SGID when inheriting ACLs

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jaegeuk Kim commit c925dc162f770578ff4a65ec9b08270382dba9e6 upstream. This patch copies commit b7f8a09f80: "btrfs: Don't clear SGID when inheriting ACLs" written by Jan.

[PATCH 4.9 074/125] ovl: drop CAP_SYS_RESOURCE from saved mounters credentials

2017-07-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 51f8f3c4e22535933ef9aecc00e9a6069e051b57 upstream. If overlay was mounted by root then quota set for upper layer does not work because

[PATCH 4.12 099/196] ipmi:ssif: Add missing unlock in error branch

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard commit 4495ec6d770e1bca7a04e93ac453ab6720c56c5d upstream. When getting flags, a response to a different message would result in a deadlock because of a

[PATCH 4.12 035/196] ASoC: zx-i2s: flip I2S master/slave mode

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Shawn Guo commit a205c159f9e2db586a5ea475f4d22fa22e78fed8 upstream. The SND_SOC_DAIFMT_MASTER bits are defined to specify the master/slave mode for Codec, not I2S. So

[PATCH 4.12 153/196] NFS: only invalidate dentrys that are clearly invalid.

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit cc89684c9a265828ce061037f1f79f4a68ccd3f7 upstream. Since commit bafc9b754f75 ("vfs: More precise tests in d_invalidate") in v3.18, a return of '0' from

[PATCH 4.12 148/196] IB/core: Namespace is mandatory input for address resolution

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Moni Shoua commit bebb2a473a43c8f84a8210687d1cbdde503046d7 upstream. In function addr_resolve() the namespace is a required input parameter and not an output. It is passed

[PATCH 4.12 144/196] MIPS: Send SIGILL for R6 branches 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 a60b1a5bf88a250f1a77977c0224e502c901c77b upstream. Fix: * commit 8467ca0122e2 ("MIPS: Emulate the new MIPS R6 branch compact (BC) instruction"), *

[PATCH 4.12 184/196] vmbus: re-enable channel tasklet

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Hemminger commit 6463a4571ceefc43908df4b016d8d5d8b8e85357 upstream. This problem shows up in 4.11 when netvsc driver is removed and reloaded. The problem

[PATCH 4.12 179/196] sched/fair: Fix load_balance() affinity redo path

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jeffrey Hugo commit 65a4433aebe36c8c6abeb69b99ef00274b971c6c upstream. If load_balance() fails to migrate any tasks because all tasks were affined, load_balance()

[PATCH 4.12 178/196] sched/cputime: Accumulate vtime on top of nsec clocksource

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Wanpeng Li commit 2a42eb9594a1480b4ead9e036e06ee1290e5fa6d upstream. Currently the cputime source used by vtime is jiffies. When we cross a context boundary and

[PATCH 4.12 180/196] percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Borisov commit 104b4e5139fe384431ac11c3b8a6cf4a529edf4a upstream. Currently, percpu_counter_add is a wrapper around __percpu_counter_add which is preempt safe due

[PATCH 4.12 181/196] writeback: rework wb_[dec|inc]_stat family of functions

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Borisov commit 3e8f399da490e6ac20a3cfd6aa404c9aa961a9a2 upstream. Currently the writeback statistics code uses a percpu counters to hold various statistics.

[PATCH 4.12 171/196] drm/i915: Make DP-MST connector info work

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 50740024bc393b608f7e391ac35e70f33938dd24 upstream. Commit 9a148a96fc3a ("drm/i915/debugfs: add dp mst info") adds support for

[PATCH 4.12 182/196] kernel/fork.c: virtually mapped stacks: do not disable interrupts

2017-07-25 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Lameter commit 112166f88cf83dd11486cf1818672d42b540865b upstream. The reason to disable interrupts seems to be to avoid switching to a different processor while

[PATCH 4.12 143/196] MIPS: Send SIGILL for linked branches 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 fef40be6da856afead4177aaa9d869a66fb3381f upstream. Fix commit 319824eabc3f ("MIPS: kernel: branch: Do not emulate the branch likelies on MIPS R6")

[PATCH 4.12 104/196] f2fs: sanity check checkpoint segno and blkoff

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 15d3042a937c13f5d9244241c7a9c8416ff6e82a upstream. Make sure segno and blkoff read from raw image are valid. Signed-off-by: Jin Qian

[PATCH 4.12 154/196] udf: Fix races with i_size changes during readpage

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 9795e0e8ac0d6a3ee092f1b555b284b57feef99e upstream. __udf_adinicb_readpage() uses i_size several times. When truncate changes i_size while the function is

[PATCH 4.12 145/196] MIPS: Fix a typo: s/preset/present/ in r2-to-r6 emulation error message

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 27fe2200dad2de8207a694024a7b9037dff1b280 upstream. This is a user-visible message, so we want it to be spelled correctly. Fixes: 5f9f41c474be

[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

[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

[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

[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,

<    4   5   6   7   8   9   10   11   12   13   >