Re: [PATCH v1 0/9] platform/x86: hp-wmi: Driver refactoring and cleanups

2017-04-20 Thread Andy Shevchenko
On Thu, Apr 20, 2017 at 5:25 AM, Darren Hart wrote: > From: "Darren Hart (VMware)" > > This series factors out some redundant code, cleans up a number of style > issues, > modernizes the sysfs usage, and cleans up the return paths. All told, the >

RE: [PATCH 0/2] fs, ceph filesystem refcount conversions

2017-04-20 Thread Reshetova, Elena
> On Fri, Mar 3, 2017 at 10:15 AM, Elena Reshetova > wrote: > > Now when new refcount_t type and API are finally merged > > (see include/linux/refcount.h), the following > > patches convert various refcounters in the ceph filesystem from atomic_t > > to refcount_t. By

Re: [PATCH] ASoC: codec: wm9860: avoid maybe-uninitialized warning

2017-04-20 Thread Arnd Bergmann
On Thu, Apr 20, 2017 at 8:48 AM, Daniel Baluta wrote: > Hi Arnd, > > On Wed, Apr 19, 2017 at 8:04 PM, Arnd Bergmann wrote: >> The new PLL configuration code triggers a harmless warning: >> >> sound/soc/codecs/wm8960.c: In function

Re: [PATCH 3.18 049/124] tty/serial: atmel: fix race condition (TX+DMA)

2017-04-20 Thread Richard Genoud
On 20/04/2017 08:35, Greg Kroah-Hartman wrote: > 3.18-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Richard Genoud > > commit 31ca2c63fdc0aee725cbd4f207c1256f5deaabde upstream. > > If uart_flush_buffer() is

Re: [PATCH 3/3] powerpc/mm: Implement CONFIG_DEBUG_RODATA on PPC32

2017-04-20 Thread Michael Ellerman
christophe leroy writes: > Le 19/04/2017 à 16:22, Christophe LEROY a écrit : >> >> >> Le 19/04/2017 à 16:01, Michael Ellerman a écrit : >>> Christophe Leroy writes: >>> diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 32509de6ce4c..4af81fb23653 100644

Re: [PATCH v3 3/7] kprobes: validate the symbol name length

2017-04-20 Thread Michael Ellerman
"Naveen N. Rao" writes: > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 6a128f3a7ed1..bb86681c8a10 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -1382,6 +1382,28 @@ bool within_kprobe_blacklist(unsigned long addr) > return false; > } > > +bool

Re: [patch] mm, vmscan: avoid thrashing anon lru when free + file is low

2017-04-20 Thread Minchan Kim
Hi David, On Wed, Apr 19, 2017 at 04:24:48PM -0700, David Rientjes wrote: > On Wed, 19 Apr 2017, Minchan Kim wrote: > > > diff --git a/mm/vmscan.c b/mm/vmscan.c > > index 24efcc20af91..5d2f3fa41e92 100644 > > --- a/mm/vmscan.c > > +++ b/mm/vmscan.c > > @@ -2174,8 +2174,17 @@ static void

Re: [PATCH v3 6/7] powerpc: kprobes: emulate instructions on kprobe handler re-entry

2017-04-20 Thread Michael Ellerman
"Naveen N. Rao" writes: > Excerpts from Masami Hiramatsu's message of April 19, 2017 20:13: >> >> BTW, as I pointed, 5/7 and 6/7 should be merged since this actually >> makes meaningful change. > > Yes, sorry if I wasn't clear in my previous reply in the (!) previous > patch series. > > Since

linux-next: build failure after merge of the akpm tree

2017-04-20 Thread Stephen Rothwell
Hi all, After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) failed like this: fs/gfs2/bmap.c: In function 'sweep_bh_for_rgrps': fs/gfs2/bmap.c:1075:5: error: 'CURRENT_TIME' undeclared (first use in this function) CURRENT_TIME; ^ fs/gfs2/bmap.c:1075:5: note:

[PATCH 00/11] block: assorted cleanup for bio splitting and cloning.

2017-04-20 Thread NeilBrown
This series contains more work towards getting rid of the bioset work queues and generally improving the splitting and cloning of bios. The first three patches are similar to ones that I sent previously. They have been rebased on the current block for-next tree and improved a little.

[PATCH 08/11] xen-blkfront: remove bio splitting.

2017-04-20 Thread NeilBrown
bios that are re-submitted will pass through blk_queue_split() when blk_queue_bio() is called, and this will split the bio if necessary. There is no longer any need to do this splitting in xen-blkfront. Signed-off-by: NeilBrown --- drivers/block/xen-blkfront.c | 54

Re: [PATCH 4.10 00/69] 4.10.12-stable review

2017-04-20 Thread Greg Kroah-Hartman
On Wed, Apr 19, 2017 at 04:22:09PM -0700, Guenter Roeck wrote: > On Wed, Apr 19, 2017 at 04:36:29PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.10.12 release. > > There are 69 patches in this series, all will be posted as a response > > to this one.

Re: [linux-sunxi] Re: [PATCH v3 02/12] arm64: allwinner: a64: add NMI controller on A64

2017-04-20 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 06:56:43PM +0800, Icenowy Zheng wrote: > > > 于 2017年4月18日 GMT+08:00 下午3:00:16, Maxime Ripard > 写到: > >On Mon, Apr 17, 2017 at 07:57:37PM +0800, Icenowy Zheng wrote: > >> Allwinner A64 SoC features a NMI controller, which is usually > >connected > >> to the AXP PMIC. >

[PATCH] ASoC: fsl_asrc_dma: use correct direction enum type

2017-04-20 Thread Stefan Agner
The direction argument is of type enum dma_transfer_direction, and not enum dma_data_direction. The enumeration values are the same so this did not had an effect in practise. Signed-off-by: Stefan Agner --- sound/soc/fsl/fsl_asrc_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 4.10 00/69] 4.10.12-stable review

2017-04-20 Thread Greg Kroah-Hartman
On Wed, Apr 19, 2017 at 02:38:21PM -0600, Shuah Khan wrote: > On 04/19/2017 08:36 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.10.12 release. > > There are 69 patches in this series, all will be posted as a response > > to this one. If anyone has any

[PATCH 3.18 016/124] drm/vmwgfx: Type-check lookups of fence objects

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit f7652afa8eadb416b23eb57dec6f158529942041 upstream. A malicious caller could otherwise hand over handles to other objects causing all sorts of interesting problems.

[PATCH 3.18 011/124] ftrace: Fix removing of second function probe

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 82cc4fc2e70ec5baeff8f776f2773abc8b2cc0ae upstream. When two function probes are added to set_ftrace_filter, and then one of them is removed, the update to the

[PATCH 3.18 013/124] char: lack of bool string made CONFIG_DEVPORT always on

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Max Bires commit f2cfa58b136e4b06a9b9db7af5ef62fbb5992f62 upstream. Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport.

[PATCH 3.18 001/124] CIFS: store results of cifs_reopen_file to avoid infinite wait

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Germano Percossi commit 1fa839b4986d648b907d117275869a0e46c324b9 upstream. This fixes Continuous Availability when errors during file reopen are encountered. cifs_user_readv and

[PATCH 3.18 003/124] perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit f2200ac311302fcdca6556fd0c5127eab6c65a3e upstream. When the perf_branch_entry::{in_tx,abort,cycles} fields were added, intel_pmu_lbr_read_32() wasn't updated to

[PATCH 3.18 025/124] metag/ptrace: Preserve previous registers for short regset write

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit a78ce80d2c9178351b34d78fec805140c29c193e upstream. Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers, the thread's old

[PATCH 3.18 000/124] 3.18.50-stable review

2017-04-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.50 release. There are 124 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Apr 22 06:35:33 UTC 2017. Anything

[PATCH 3.18 004/124] x86/vdso: Plug race between mapping and ELF header setup

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 6fdc6dd90272ce7e75d744f71535cfbd8d77da81 upstream. The vsyscall32 sysctl can racy against a concurrent fork when it switches from disabled to enabled:

[PATCH 3.18 006/124] iscsi-target: Fix TMR reference leak during session shutdown

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit efb2ea770bb3b0f40007530bc8b0c22f36e1c5eb upstream. This patch fixes a iscsi-target specific TMR reference leak during session shutdown, that could occur when a TMR

[PATCH 3.18 047/124] xen/acpi: upload PM state from init-domain to Xen

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ankur Arora commit 1914f0cd203c941bba72f9452c8290324f1ef3dc upstream. This was broken in commit cd979883b9ed ("xen/acpi-processor: fix enabling interrupts on syscore_resume"). do_suspend

[PATCH 3.18 045/124] scsi: sg: check length passed to SG_NEXT_CMD_LEN

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: peter chang commit bf33f87dd04c371ea33feb821b60d63d754e3124 upstream. The user can control the size of the next command passed along, but the value passed to the ioctl isn't checked against

[PATCH 3.18 050/124] zram: do not use copy_page with non-page aligned address

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Minchan Kim commit d72e9a7a93e4f8e9e52491921d99e0c8aa89eb4e upstream. The copy_page is optimized memcpy for page-alinged address. If it is used with non-page aligned address, it can corrupt

[PATCH 3.18 062/124] catc: Combine failure cleanup code in catc_probe()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit d41149145f98fe26dcd0bfd1d6cc095e6e041418 upstream. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman ---

[PATCH 3.18 065/124] sctp: deny peeloff operation on asocs with threads sleeping on it

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Ricardo Leitner commit dfcb9f4f99f1e9a49e43398a7bfbf56927544af1 upstream. commit 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf") attempted to avoid a BUG_ON call when the

[PATCH 3.18 070/124] arm/arm64: KVM: Take mmap_sem in kvm_arch_prepare_memory_region

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 72f310481a08db821b614e7b5d00febcc9064b36 upstream. We don't hold the mmap_sem while searching for VMAs (via find_vma), in kvm_arch_prepare_memory_region, which can end up

[PATCH 3.18 063/124] catc: Use heap buffer for memory size test

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 2d6a0e9de03ee658a9adc3bfb2f0ca55dff1e478 upstream. Allocating USB buffers on the stack is not portable, and no longer works on x86_64 (with VMAP_STACK enabled as per

[PATCH 3.18 055/124] rtc: tegra: Implement clock handling

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Thierry Reding commit 5fa4086987506b2ab8c92f8f99f2295db9918856 upstream. Accessing the registers of the RTC block on Tegra requires the module clock to be enabled. This only works because the

[PATCH 3.18 102/124] xfs: dont allow di_size with high bit set

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit ef388e2054feedaeb05399ed654bdb06f385d294 upstream. The on-disk field di_size is used to set i_size, which is a signed integer of loff_t. If the high bit of di_size is

[PATCH 3.18 037/124] ALSA: seq: Fix racy cell insertions during snd_seq_pool_done()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c520ff3d03f0b5db7146d9beed6373ad5d2a5e0e upstream. When snd_seq_pool_done() is called, it marks the closing flag to refuse the further cell insertions. But

[PATCH 3.18 092/124] mmc: ushc: fix NULL-deref at probe

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 181302dc7239add8ab1449c23ecab193f52ee6ab upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 097/124] ext4: mark inode dirty after converting inline directory

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit b9cf625d6ecde0d372e23ae022feead72b4228a6 upstream. If ext4_convert_inline_data() was called on a directory with inline data, the filesystem was left in an inconsistent

[PATCH 3.18 086/124] net/mlx5: Increase number of max QPs in default profile

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Maor Gottlieb commit 5f40b4ed975c26016cf41953b7510fe90718e21c upstream. With ConnectX-4 sharing SRQs from the same space as QPs, we hit a limit preventing some applications to allocate needed

[PATCH 3.18 101/124] igb: add i211 to i210 PHY workaround

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Todd Fujinaka commit 5bc8c230e2a993b49244f9457499f17283da9ec7 upstream. i210 and i211 share the same PHY but have different PCI IDs. Don't forget i211 for any i210 workarounds.

[PATCH 3.18 103/124] xfs: fix up xfs_swap_extent_forks inline extent handling

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit 4dfce57db6354603641132fac3c887614e3ebe81 upstream. There have been several reports over the years of NULL pointer dereferences in xfs_trans_log_inode during xfs_fsr

[PATCH 3.18 114/124] mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Chris Salls commit cf01fb9985e8deb25ccf0ea54d916b8871ae0e62 upstream. In the case that compat_get_bitmap fails we do not want to copy the bitmap to the user as it will contain uninitialized

[PATCH 3.18 082/124] Input: cm109 - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ac2ee9ba953afe88f7a673e1c0c839227b1d7891 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 107/124] serial: 8250_pci: Detach low-level driver during PCI error recovery

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Gabriel Krisman Bertazi commit f209fa03fc9d131b3108c2e4936181eabab87416 upstream. During a PCI error recovery, like the ones provoked by EEH in the ppc64 platform, all IO to the device must

[PATCH 3.18 118/124] metag/usercopy: Fix alignment error checking

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2257211942bbbf6c798ab70b487d7e62f7835a1a upstream. Fix the error checking of the alignment adjustment code in raw_copy_from_user(), which mistakenly considers it safe to

[PATCH 3.18 122/124] metag/usercopy: Fix src fixup in from user rapf loops

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2c0b1df88b987a12d95ea1d6beaf01894f3cc725 upstream. The fixup code to rewind the source pointer in __asm_copy_from_user_{32,64}bit_rapf_loop() always rewound the source by a

[PATCH 3.18 117/124] metag/usercopy: Drop unused macros

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit ef62a2d81f73d9cddef14bc3d9097a57010d551c upstream. Metag's lib/usercopy.c has a bunch of copy_from_user macros for larger copies between 5 and 16 bytes which are completely

[PATCH 3.18 123/124] metag/usercopy: Add missing fixups

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit b884a190afcecdbef34ca508ea5ee88bb7c77861 upstream. The rapf copy loops in the Meta usercopy code is missing some extable entries for HTP cores with unaligned access

[PATCH 3.18 124/124] give up on gcc ilog2() constant optimizations

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 474c90156c8dcc2fa815e6716cc9394d7930cb9c upstream. gcc-7 has an "optimization" pass that completely screws up, and generates the code expansion for the (impossible) case

[PATCH 3.18 074/124] isdn/gigaset: fix NULL-deref at probe

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 68c32f9c2a36d410aa242e661506e5b2c2764179 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 121/124] metag/usercopy: Set flags before ADDZ

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit fd40eee1290ad7add7aa665e3ce6b0f9fe9734b4 upstream. The fixup code for the copy_to_user rapf loops reads TXStatus.LSM_STEP to decide how far to rewind the source pointer.

Re: [PATCH] ASoC: fsl_asrc_dma: use correct direction enum type

2017-04-20 Thread Nicolin Chen
On Wed, Apr 19, 2017 at 11:36:07PM -0700, Stefan Agner wrote: > The direction argument is of type enum dma_transfer_direction, and > not enum dma_data_direction. The enumeration values are the same > so this did not had an effect in practise. > > Signed-off-by: Stefan Agner Acked-by: Nicolin

Re: [PATCH v2 2/3] dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster

2017-04-20 Thread Mikko Perttunen
Rob, Mark, could you review this and the 3/3 in the series (which I'm sending to you momentarily)? Thanks, Mikko. On 04.04.2017 16:43, Mikko Perttunen wrote: The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by:

[PATCH 3.18 119/124] metag/usercopy: Add early abort to copy_to_user

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit fb8ea062a8f2e85256e13f55696c5c5f0dfdcc8b upstream. When copying to userland on Meta, if any faults are encountered immediately abort the copy instead of continuing on and

Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

2017-04-20 Thread Heiko Stuebner
Hi Guillaume, Am Donnerstag, 20. April 2017, 06:44:56 CEST schrieb Guillaume Tucker: > On 19/04/17 09:59, Heiko Stuebner wrote: > > Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker: > >> Add Mali GPU device tree node for the rk3288 SoC, with devfreq > >> opp table. > >> > >>

[PATCH 3.18 120/124] metag/usercopy: Zero rest of buffer from copy_from_user

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 563ddc1076109f2b3f88e6d355eab7b6fd4662cb upstream. Currently we try to zero the destination for a failed read from userland in fixup code in the usercopy.c macros. The rest

Re: [PATCH v2 3/3] arm64: tegra: Add CCPLEX_CLUSTER area in Tegra186

2017-04-20 Thread Mikko Perttunen
On 04.04.2017 16:43, Mikko Perttunen wrote: The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by: Mikko Perttunen --- v2: - Only one regs entry arch/arm64/boot/dts/nvidia/tegra186.dtsi | 7 +++ 1 file changed, 7

linux-next: Tree for Apr 20

2017-04-20 Thread Stephen Rothwell
Hi all, Changes since 20170419: The pm tree gained conflicts against the arm-soc tree. The crypto tree gained a conflict against the arm-soc tree. The rcu tree lost its build failure but gained another in the powerpc pseries_le_defconfig build which I have left broken for today. The kvm-ppc

[PATCH 3.18 081/124] Input: yealink - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 5cc4a1a9f5c179795c8a1f2b0f4361829d6a070e upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 079/124] Input: ims-pcu - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 1916d319271664241b7aa0cd2b05e32bdb310ce9 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 115/124] ring-buffer: Fix return value check in test_ringbuffer()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Wei Yongjun commit 62277de758b155dc04b78f195a1cb5208c37b2df upstream. In case of error, the function kthread_run() returns ERR_PTR() and never returns NULL. The NULL test in the return value

[PATCH 3.18 083/124] Input: kbtab - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit cb1b494663e037253337623bf1ef2df727883cb7 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 080/124] Input: hanwang - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ba340d7b83703768ce566f53f857543359aa1b98 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 116/124] MIPS: Flush wrong invalid FTLB entry for huge page

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Huacai Chen commit 0115f6cbf26663c86496bc56eeea293f85b77897 upstream. On VTLB+FTLB platforms (such as Loongson-3A R2), FTLB's pagesize is usually configured the same as PAGE_SIZE. In such a

[PATCH 3.18 112/124] mm, hugetlb: use pte_present() instead of pmd_present() in follow_huge_pmd()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Naoya Horiguchi commit c9d398fa237882ea07167e23bcfc5e6847066518 upstream. I found the race condition which triggers the following bug when move_pages() and soft offline are called on a single

[PATCH 3.18 078/124] Input: iforce - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 59cf8bed44a79ec42303151dd014fdb6434254bb upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory that lie beyond the

[PATCH 3.18 100/124] igb: Workaround for igb i210 firmware issue

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Chris J Arges commit 4e684f59d760a2c7c716bb60190783546e2d08a1 upstream. Sometimes firmware may not properly initialize I347AT4_PAGE_SELECT causing the probe of an igb i210 NIC to fail. This

[PATCH 3.18 110/124] virtio_balloon: init 1st buffer in stats vq

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ladi Prosek commit fc8653228c8588a120f6b5dad6983b7b61ff669e upstream. When init_vqs runs, virtio_balloon.stats is either uninitialized or contains stale values. The host updates its state

[PATCH 3.18 111/124] pinctrl: qcom: Dont clear status bit on irq_unmask

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson commit a6566710adaa4a7dd5e0d99820ff9c9c30ee5951 upstream. Clearing the status bit on irq_unmask will discard any pending interrupt that did arrive after the irq_ack, i.e.

[PATCH 3.18 106/124] ACPI: Do not create a platform_device for IOAPIC/IOxAPIC

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit 08f63d97749185fab942a3a47ed80f5bd89b8b7d upstream. No platform-device is required for IO(x)APICs, so don't even create them. [ rjw: This fixes a problem with leaking

[PATCH 3.18 108/124] [media] uvcvideo: uvc_scan_fallback() for webcams with broken chain

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Henrik Ingo commit e950267ab802c8558f1100eafd4087fd039ad634 upstream. Some devices have invalid baSourceID references, causing uvc_scan_chain() to fail, but if we just take the entities we

[PATCH 3.18 109/124] block: allow WRITE_SAME commands with the SG_IO ioctl

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mauricio Faria de Oliveira commit 25cdb64510644f3e854d502d69c73f21c6df88a9 upstream. The WRITE_SAME commands are not present in the blk_default_cmd_filter write_ok list, and thus are failed

Re: [PATCH] ASoC: codec: wm9860: avoid maybe-uninitialized warning

2017-04-20 Thread Daniel Baluta
Hi Arnd, On Wed, Apr 19, 2017 at 8:04 PM, Arnd Bergmann wrote: > The new PLL configuration code triggers a harmless warning: > > sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': > sound/soc/codecs/wm8960.c:735:3: error: 'best_freq_out' may be used > uninitialized in this

[PATCH 3.18 105/124] ACPI: Fix incompatibility with mcount-based function graph tracing

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit 61b79e16c68d703dde58c25d3935d67210b7d71b upstream. Paul Menzel reported a warning: WARNING: CPU: 0 PID: 774 at

[PATCH 3.18 104/124] xfs: clear _XBF_PAGES from buffers when readahead page

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 2aa6ba7b5ad3189cc27f14540aa2f57f0ed8df4b upstream. If we try to allocate memory pages to back an xfs_buf that we're trying to read, it's possible that we'll be so short

[PATCH 3.18 077/124] Input: i8042 - add noloop quirk for Dell Embedded Box PC 3000

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit 45838660e34d90db8d4f7cbc8fd66e8aff79f4fe upstream. The aux port does not get detected without noloop quirk, so external PS/2 mouse cannot work as result. The PS/2 mouse

Re: [PATCH] gpu: host1x: select IOMMU_IOVA

2017-04-20 Thread Mikko Perttunen
Ah, had to forget something :) Reviewed-by: Mikko Perttunen On 19.04.2017 21:24, Arnd Bergmann wrote: When IOMMU_IOVA is not built-in but host1x is, we get a link error: drivers/gpu/host1x/dev.o: In function `host1x_remove': dev.c:(.text.host1x_remove+0x50): undefined reference to

[PATCH 3.18 051/124] powerpc: Disable HFSCR[TM] if TM is not supported

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7ed23e1bae8bf7e37fd555066550a00b95a3a98b upstream. On Power8 & Power9 the early CPU inititialisation in __init_HFSCR() turns on HFSCR[TM] (Hypervisor Facility

[PATCH 3.18 094/124] uwb: i1480-dfu: fix NULL-deref at probe

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 4ce362711d78a4999011add3115b8f4b0bc25e8c upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 099/124] iommu/vt-d: Fix NULL pointer dereference in device_to_iommu

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Koos Vriezen commit 5003ae1e735e6bfe4679d9bed6846274f322e77e upstream. The function device_to_iommu() in the Intel VT-d driver lacks a NULL-ptr check, resulting in this oops at boot on some

Re: [PATCH v4 04/18] dt-bindings: syscon: Add DT bindings documentation for Allwinner syscon

2017-04-20 Thread Corentin Labbe
On Thu, Apr 20, 2017 at 12:38:50AM +0100, André Przywara wrote: > On 12/04/17 12:13, Corentin Labbe wrote: > > This patch adds documentation for Device-Tree bindings for the > > syscon present in allwinner devices. > > > > Signed-off-by: Corentin Labbe > > --- > >

[PATCH 3.18 098/124] mmc: sdhci: Do not disable interrupts while waiting for clock

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit e2ebfb2142acefecc2496e71360f50d25726040b upstream. Disabling interrupts for even a millisecond can cause problems for some devices. That can happen when sdhci changes

[PATCH 3.18 096/124] iio: adc: ti_am335x_adc: fix fifo overrun recovery

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Michael Engl commit e83bb3e6f3efa21f4a9d883a25d0ecd9dfb431e1 upstream. The tiadc_irq_h(int irq, void *private) function is handling FIFO overruns by clearing flags, disabling and enabling the

[PATCH 3.18 095/124] USB: usbtmc: add missing endpoint sanity check

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 687e0687f71ec00e0132a21fef802dee88c2f1ad upstream. USBTMC devices are required to have a bulk-in and a bulk-out endpoint, but the driver failed to verify this, something

[PATCH 3.18 076/124] ipv4: provide stronger user input validation in nl_fib_input()

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit c64c0b3cac4c5b8cb093727d2c19743ea3965c0b upstream. Alexander reported a KMSAN splat caused by reads of uninitialized field (tb_id_in) from user provided struct

Re: copy_page() on a kmalloc-ed page with DEBUG_SLAB enabled (was "zram: do not use copy_page with non-page alinged address")

2017-04-20 Thread Minchan Kim
On Thu, Apr 20, 2017 at 10:45:42AM +0900, Sergey Senozhatsky wrote: > On (04/19/17 04:51), Matthew Wilcox wrote: > [..] > > > > > Another approach is the API does normal thing for non-aligned prefix > > > > > and > > > > > tail space and fast thing for aligned space. > > > > > Otherwise, it would

[PATCH 3.18 093/124] uwb: hwa-rc: fix NULL-deref at probe

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit daf229b15907fbfdb6ee183aac8ca428cb57e361 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack

[PATCH 3.18 089/124] net: unix: properly re-increment inflight counter of GC discarded candidates

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ulanov commit 7df9c24625b9981779afb8fcdbe2bb4765e61147 upstream. Dmitry has reported that a BUG_ON() condition in unix_notinflight() may be triggered by a simple code that forwards

[PATCH 3.18 091/124] tcp: initialize icsk_ack.lrcvtime at session start time

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 15bb7745e94a665caf42bfaabf0ce062845b533b upstream. icsk_ack.lrcvtime has a 0 value at socket creation time. tcpi_last_data_recv can have bogus value if no payload is ever

[PATCH 3.18 075/124] percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Tahsin Erdogan commit 320661b08dd6f1746d5c7ab4eb435ec64b97cd45 upstream. Update to pcpu_nr_empty_pop_pages in pcpu_alloc() is currently done without holding pcpu_lock. This can lead to bad

[PATCH 3.18 088/124] net: properly release sk_frag.page

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 22a0e18eac7a9e986fec76c60fa4a2926d1291e2 upstream. I mistakenly added the code to release sk->sk_frag in sk_common_release() instead of sk_destruct() TCP sockets using

Re: [PATCH V5 4/9] PM / QOS: Add DEV_PM_QOS_PERFORMANCE request

2017-04-20 Thread Ulf Hansson
On 20 April 2017 at 06:46, Viresh Kumar wrote: > Some platforms have the capability to configure the performance state of > their Power Domains. The performance levels are identified by positive > integer values, a lower value represents lower performance state. The > power domain driver should

[PATCH 3.18 090/124] socket, bpf: fix sk_filter use after free in sk_clone_lock

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 95aa915c2f04c27bb3935c8b9446435f40f17f9d upstream. In sk_clone_lock(), we create a new socket and inherit most of the parent's members via sock_copy() which memcpy()'s

Re: Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-20 Thread Michal Hocko
On Wed 19-04-17 15:50:01, Linus Torvalds wrote: > On Wed, Apr 19, 2017 at 1:17 AM, Michal Hocko wrote: > > > > Thanks for the testing. Linus will you take the patch from this thread > > or you prefer a resend? > > I'll take it from this branch since I'm looking at it now, but in > general I

[PATCH 3.18 032/124] Drivers: hv: balloon: dont crash when memory is added in non-sorted order

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Vitaly Kuznetsov commit 77c0c9735bc0ba5898e637a3a20d6bcb50e3f67d upstream. When we iterate through all HA regions in handle_pg_range() we have an assumption that all these regions are sorted

[PATCH] nl80211: fix enumeration type

2017-04-20 Thread Stefan Agner
Use type enum nl80211_rate_info for bitrate information. This fixes a warning when compiling with clang: warning: implicit conversion from enumeration type 'enum nl80211_rate_info' to different enumeration type 'enum nl80211_attrs' Signed-off-by: Stefan Agner --- net/wireless/nl80211.c | 2

[PATCH 3.18 087/124] net: bcmgenet: Do not suspend PHY if Wake-on-LAN is enabled

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 5371bbf4b295eea334ed453efa286afa2c3ccff3 upstream. Suspending the PHY would be putting it in a low power state where it may no longer allow us to do Wake-on-LAN.

[PATCH 3.18 084/124] Input: sur40 - validate number of endpoints before using them

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 92461f5d723037530c1f36cce93640770037812c upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory that lie beyond the

[PATCH 3.18 040/124] powerpc: Dont try to fix up misaligned load-with-reservation instructions

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit 48fe9e9488743eec9b7c1addd3c93f12f2123d54 upstream. In the past, there was only one load-with-reservation instruction, lwarx, and if a program attempted a lwarx on a

[PATCH 3.18 038/124] ALSA: seq: Fix race during FIFO resize

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 2d7d54002e396c180db0c800c1046f0a3c471597 upstream. When a new event is queued while processing to resize the FIFO in snd_seq_fifo_clear(), it may lead to a use-after-free,

[PATCH 3.18 041/124] powerpc/boot: Fix zImage TOC alignment

2017-04-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 97ee351b50a49717543533cfb85b4bf9d88c9680 upstream. Recent toolchains force the TOC to be 256 byte aligned. We need to enforce this alignment in the zImage linker

Re: [PATCH] blutooth: try to improve CONFIG_SERIAL_DEV_BUS dependency

2017-04-20 Thread Marcel Holtmann
Hi Sebastian, >> With CONFIG_SERIAL_DEV_BUS=m, the hci_serdev.o file does not actually >> get built into hci_uart.o as the Makefile doesn't pick it up, leading >> to a link error with anything referring to it: >> >> ERROR: "hci_uart_register_device" [drivers/bluetooth/hci_nokia.ko] undefined! >>

<    6   7   8   9   10   11   12   13   14   15   >