[PATCH 3.12 043/142] netlink: remove mmapped netlink support

2017-04-10 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit d1b4c689d4130bcfd3532680b64db562300716b6 upstream. mmapped netlink has a number of unresolved issues: - TX zerocopy support had to be disabled more than a year ago via

[PATCH 3.12 041/142] xfs: fix up xfs_swap_extent_forks inline extent handling

2017-04-10 Thread Jiri Slaby
From: Eric Sandeen 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4dfce57db6354603641132fac3c887614e3ebe81 upstream. There have been several reports over the years of NULL pointer dereferences in xfs_trans_log_inode during xfs_fsr processes,

[PATCH 3.12 045/142] crypto: cryptd - Assign statesize properly

2017-04-10 Thread Jiri Slaby
From: "Wang, Rui Y" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1a07834024dfca5c4bed5de8f8714306e0a11836 upstream. cryptd_create_hash() fails by returning -EINVAL. It is because after 8996eafdc ("crypto: ahash - ensure statesize is non-z

[PATCH 3.12 037/142] futex: Fix potential use-after-free in FUTEX_REQUEUE_PI

2017-04-10 Thread Jiri Slaby
From: Peter Zijlstra 3.12-stable review patch. If anyone has any objections, please let me know. === commit c236c8e95a3d395b0494e7108f0d41cf36ec107c upstream. While working on the futex code, I stumbled over this potential use-after-free scenario. Dmitry triggered it later with sy

Re: [PATCH -v6 13/13] futex: futex_lock_pi() vs PREEMPT_RT_FULL

2017-04-10 Thread Darren Hart
On Mon, Apr 10, 2017 at 11:08:18AM +0200, Peter Zijlstra wrote: > On Fri, Apr 07, 2017 at 07:26:10PM -0700, Darren Hart wrote: > > Peter, I presume there will be a v7 with the u32 change and hopefully a > > couple > > text updates? > > Well, tglx already committed these here patches, so no -v7. W

[PATCH 3.12 026/142] ipv4: mask tos for input route

2017-04-10 Thread Jiri Slaby
From: Julian Anastasov 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 6e28099d38c0e50d62c1afc054e37e573adf3d21 ] Restore the lost masking of TOS in input route code to allow ip rules to match it properly. Problem [1] noticed by S

[PATCH 3.12 033/142] ipv6: avoid write to a possibly cloned skb

2017-04-10 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 79e49503efe53a8c51d8b695bedc8a346c5e4a87 ] ip6_fragment, in case skb has a fraglist, checks if the skb is cloned. If it is, it will move to the 'slow path' and

[PATCH 3.12 032/142] uapi: fix linux/packet_diag.h userspace compilation error

2017-04-10 Thread Jiri Slaby
From: "Dmitry V. Levin" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 745cb7f8a5de0805cade3de3991b7a95317c7c73 ] Replace MAX_ADDR_LEN with its numeric value to fix the following linux/packet_diag.h userspace compilation error: /

[PATCH 3.12 038/142] futex: Add missing error handling to FUTEX_REQUEUE_PI

2017-04-10 Thread Jiri Slaby
From: Peter Zijlstra 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9bbb25afeb182502ca4f2c4f3f88af0681b34cae upstream. Thomas spotted that fixup_pi_state_owner() can return errors and we fail to unlock the rt_mutex in that case. Reported-by

[PATCH 3.12 030/142] dccp: Unlock sock before calling sk_free()

2017-04-10 Thread Jiri Slaby
From: Arnaldo Carvalho de Melo 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit d5afb6f9b6bb2c57bd0c05e76e12489dc0d037d9 ] The code where sk_clone() came from created a new socket and locked it, but then, on the error path didn't un

[PATCH 3.12 036/142] net sched actions: decrement module reference count after table flush.

2017-04-10 Thread Jiri Slaby
From: Roman Mashak 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit edb9d1bff4bbe19b8ae0e71b1f38732591a9eeb2 ] When tc actions are loaded as a module and no actions have been installed, flushing them would result in actions removed

[PATCH 3.12 034/142] dccp/tcp: fix routing redirect race

2017-04-10 Thread Jiri Slaby
From: Jon Maxwell 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 45caeaa5ac0b4b11784ac6f932c0ad4c6b67cda0 ] As Eric Dumazet pointed out this also needs to be fixed in IPv6. v2: Contains the IPv6 tcp/Ipv6 dccp patches as well. We

Re: [PATCH 1/1] pwm: pca9685: fix gpio-only operation.

2017-04-10 Thread Sven Van Asbroeck
Thanks for the feedback Mika, I really appreciate it. > How about implementing a real runtime PM in the driver? Then when the > device is idle regardless of whether it is GPIO or PWM, the SLEEP bit is > set and cleared accordingly. The current code will keep driving pwms/leds even when these are

Re: [PATCH -v2 0/9] mm: make movable onlining suck less

2017-04-10 Thread Michal Hocko
On Mon 10-04-17 16:27:49, Igor Mammedov wrote: [...] > -object memory-backend-ram,id=mem1,size=256M -object > memory-backend-ram,id=mem0,size=256M \ > -device pc-dimm,id=dimm1,memdev=mem1,slot=1,node=0 -device > pc-dimm,id=dimm0,memdev=mem0,slot=0,node=0 are you sure both of them should be node=

[PATCH 3.12 028/142] net: don't call strlen() on the user buffer in packet_bind_spkt()

2017-04-10 Thread Jiri Slaby
From: Alexander Potapenko 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 540e2894f7905538740aaf122bd8e0548e1c34a4 ] KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of uninitialized memory in packet_bind_spkt(

[PATCH 3.12 035/142] dccp: fix memory leak during tear-down of unsuccessful connection request

2017-04-10 Thread Jiri Slaby
From: Hannes Frederic Sowa 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 72ef9c4125c7b257e3a714d62d778ab46583d6a3 ] This patch fixes a memory leak, which happens if the connection request is not fulfilled between parsing the DCCP

[PATCH 3.12 031/142] tcp: fix various issues for sockets morphing to listen state

2017-04-10 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 02b2faaf0af1d85585f6d6980e286d53612acfc2 ] Dmitry Vyukov reported a divide by 0 triggered by syzkaller, exploiting tcp_disconnect() path that was never really consi

[PATCH 3.12 027/142] l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv

2017-04-10 Thread Jiri Slaby
From: Paul Hüber 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 51fb60eb162ab84c5edf2ae9c63cf0b878e5547e ] l2tp_ip_backlog_recv may not return -1 if the packet gets dropped. The return value is passed up to ip_local_deliver_finish

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-10 Thread Ilia Mirkin
On Mon, Apr 10, 2017 at 11:09 AM, Pekka Paalanen wrote: > On Mon, 10 Apr 2017 16:17:27 +0200 > Gerd Hoffmann wrote: > >> Hi, >> >> > which software have you used as representative of "reality"? >> >> ppc64 (big endian) virtual machine, running with qemu stdvga & bochs-drm >> driver. Xorg with

[PATCH 3.12 025/142] vxlan: correctly validate VXLAN ID against VXLAN_N_VID

2017-04-10 Thread Jiri Slaby
From: Matthias Schiffer 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 4e37d6911f36545b286d15073f6ff840e81c ] The incorrect check caused an off-by-one error: the maximum VID 0xff was unusable. Fixes: d342894c5d2f ("vxlan:

[PATCH 3.12 013/142] MIPS: DEC: Avoid la pseudo-instruction in delay slots

2017-04-10 Thread Jiri Slaby
From: Ralf Baechle 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3021773c7c3e75e20b693931a19362681e744ea9 upstream. When expanding the la or dla pseudo-instruction in a delay slot the GNU assembler will complain should the pseudo-instructio

[PATCH 3.12 023/142] mvsas: fix misleading indentation

2017-04-10 Thread Jiri Slaby
From: Luis de Bethencourt 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7789cd39274c51bf475411fe22a8ee7255082809 upstream. Fix a smatch warning: drivers/scsi/mvsas/mv_sas.c:740 mvs_task_prep() warn: curly braces intended? The code is corre

[PATCH 3.12 029/142] net: net_enable_timestamp() can be called from irq contexts

2017-04-10 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 13baa00ad01bb3a9f893e3a08cbc2d072fc0c15d ] It is now very clear that silly TCP listeners might play with enabling/disabling timestamping while new children are adde

[PATCH 3.12 017/142] USB: serial: safe_serial: fix information leak in completion handler

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8c76d7cd520ebffc1ea9ea0850d87a224a50c7f2 upstream. Add missing sanity check to the bulk-in completion handler to avoid an integer underflow that could be triggered by a malici

[PATCH 3.12 015/142] usb: dwc3: gadget: make Set Endpoint Configuration macros safe

2017-04-10 Thread Jiri Slaby
From: Felipe Balbi 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7369090a9fb57c3fc705ce355d2e4523a5a24716 upstream. Some gadget drivers are bad, bad boys. We notice that ADB was passing bad Burst Size which caused top bits of param0 to be o

[PATCH 3.12 006/142] USB: serial: digi_acceleport: fix OOB-event processing

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2e46565cf622dd0534a9d8bffe152a577b48d7aa upstream. A recent change claimed to fix an off-by-one error in the OOB-port completion handler, but instead introduced such an error.

[PATCH 3.12 019/142] USB: iowarrior: fix NULL-deref at probe

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit b7321e81fc369abe353cf094d4f0dc2fe11ab95f upstream. Make sure to check for the required interrupt-in endpoint to avoid dereferencing a NULL-pointer should a malicious device la

[PATCH 3.12 014/142] tracing: Add #undef to fix compile error

2017-04-10 Thread Jiri Slaby
From: Rik van Riel 3.12-stable review patch. If anyone has any objections, please let me know. === commit bf7165cfa23695c51998231c4efa080fe1d3548d upstream. There are several trace include files that define TRACE_INCLUDE_FILE. Include several of them in the same .c file (as I cur

[PATCH 3.12 024/142] locking/static_keys: Add static_key_{en,dis}able() helpers

2017-04-10 Thread Jiri Slaby
From: Peter Zijlstra 3.12-stable review patch. If anyone has any objections, please let me know. === commit e33886b38cc82a9fc3b2d655dfc7f50467594138 upstream. Add two helpers to make it easier to treat the refcount as boolean. [js] do not involve WARN_ON_ONCE as it causes build f

Re: [PATCHv3 02/10] serdev: add serdev_device_wait_until_sent

2017-04-10 Thread Rob Herring
+ Andrey On Mon, Apr 10, 2017 at 9:03 AM, Greg Kroah-Hartman wrote: > On Mon, Apr 10, 2017 at 08:46:57AM -0500, Rob Herring wrote: >> On Sat, Apr 8, 2017 at 11:57 AM, Greg Kroah-Hartman >> wrote: >> > On Tue, Mar 28, 2017 at 05:59:31PM +0200, Sebastian Reichel wrote: >> >> Add method, which wait

[PATCH 3.12 012/142] cpmac: remove hopeless #warning

2017-04-10 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit d43e6fb4ac4abfe4ef7c102833ed02330ad701e0 upstream. The #warning was present 10 years ago when the driver first got merged. As the platform is rather obsolete by now, it seems

[PATCH 3.12 021/142] USB: serial: io_ti: fix NULL-deref in interrupt callback

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0b1d250afb8eb9d65afb568bac9b9f9253a82b49 upstream. Fix a NULL-pointer dereference in the interrupt callback should a malicious device send data containing a bad port number by

[PATCH 3.12 022/142] USB: serial: io_ti: fix information leak in completion handler

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 654b404f2a222f918af9b0cd18ad469d0c941a8e upstream. Add missing sanity check to the bulk-in completion handler to avoid an integer underflow that can be triggered by a maliciou

[PATCH 3.12 005/142] USB: serial: digi_acceleport: fix OOB data sanity check

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2d380889215fe20b8523345649dee0579821800c upstream. Make sure to check for short transfers to avoid underflow in a loop condition when parsing the receive buffer. Also fix an

[PATCH 3.12 020/142] USB: iowarrior: fix NULL-deref in write

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit de46e56653de7b3b54baa625bd582635008b8d05 upstream. Make sure to verify that we have the required interrupt-out endpoint for IOWarrior56 devices to avoid dereferencing a NULL-p

[PATCH 3.12 009/142] MIPS: ip22: Fix ip28 build for modern gcc

2017-04-10 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit 23ca9b522383d3b9b7991d8586db30118992af4a upstream. kernelci reports a failure of the ip28_defconfig build after upgrading its gcc version: arch/mips/sgi-ip22/Platform:29: **

[PATCH 3.12 018/142] USB: serial: omninet: fix reference leaks at open

2017-04-10 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 30572418b445d85fcfe6c8fe84c947d2606767d8 upstream. This driver needlessly took another reference to the tty on open, a reference which was then never released on close. This l

[PATCH 3.12 016/142] usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers

2017-04-10 Thread Jiri Slaby
From: Guenter Roeck 3.12-stable review patch. If anyone has any objections, please let me know. === commit dcc7620cad5ad1326a78f4031a7bf4f0e5b42984 upstream. Upstream commit 98d74f9ceaef ("xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers") fixes a proble

[PATCH 3.12 007/142] crypto: improve gcc optimization flags for serpent and wp512

2017-04-10 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7d6e9105026788c497f0ab32fa16c82f4ab5ff61 upstream. An ancient gcc bug (first reported in 2003) has apparently resurfaced on MIPS, where kernelci.org reports an overly large s

[PATCH 3.12 011/142] MIPS: ralink: Cosmetic change to prom_init().

2017-04-10 Thread Jiri Slaby
From: John Crispin 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9c48568b3692f1a56cbf1935e4eea835e6b185b1 upstream. Over the years the code has been changed various times leading to argc/argv being defined in a different function to where w

Re: [PATCH 2/2] serial: omap: suspend device on probe errors

2017-04-10 Thread Tony Lindgren
* Johan Hovold [170410 02:27]: > Make sure to actually suspend the device before returning after a failed > (or deferred) probe. > > Note that autosuspend must be disabled before runtime pm is disabled in > order to balance the usage count due to a negative autosuspend delay as > well as to make

Re: [PATCH v2 2/2] mtd: spi-nor: add driver for STM32 quad spi flash controller

2017-04-10 Thread Marek Vasut
On 04/10/2017 11:08 AM, Ludovic BARRE wrote: > > On 04/07/2017 01:55 AM, Marek Vasut wrote: >> On 03/31/2017 07:02 PM, Ludovic Barre wrote: >>> From: Ludovic Barre >>> >>> The quadspi is a specialized communication interface targeting single, >>> dual or quad SPI Flash memories. >>> >>> It can op

Re: [PATCH 1/2] serial: omap: fix runtime-pm handling on unbind

2017-04-10 Thread Tony Lindgren
* Johan Hovold [170410 02:27]: > An unbalanced and misplaced synchronous put was used to suspend the > device on driver unbind, something which with a likewise misplaced > pm_runtime_disable leads to external aborts when an open port is being > removed. > > Unhandled fault: external abort on non-

[PATCH 3.12 010/142] mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy

2017-04-10 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit 906b268477bc03daaa04f739844c120fe4dbc991 upstream. kernelci.org reports a warning for this driver, as it copies a local variable into a 'const char *' string: drivers/mt

[PATCH 3.12 008/142] MIPS: ip27: Disable qlge driver in defconfig

2017-04-10 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit b617649468390713db1515ea79fc772d2eb897a8 upstream. One of the last remaining failures in kernelci.org is for a gcc bug: drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1:

Re: [PATCH] mfd: menelaus: remove obsolete local_irq_disable() and local_irq_enable()

2017-04-10 Thread Tony Lindgren
* Martin Kepplinger [170410 02:40]: > Since > > commit e6229bec25be ("rtc: make rtc_update_irq callable with irqs enabled") > > rtc_update_irq() is callable with irqs enabled, see the rtc drivers. > So update this accordingly. Adding Aaro to Cc, would be nice to get an ack from him. Regards,

[PATCH 3.12 002/142] xfs: pass total block res. as total xfs_bmapi_write() parameter

2017-04-10 Thread Jiri Slaby
From: Brian Foster 3.12-stable review patch. If anyone has any objections, please let me know. === commit dbd5c8c9a28899c6ca719eb21afc0afba9dd5574 upstream. The total field from struct xfs_alloc_arg is a bit of an unknown commodity. It is documented as the total block requirement

Re: [PATCH 4/9] mm, memory_hotplug: get rid of is_zone_device_section

2017-04-10 Thread Jerome Glisse
On Mon, Apr 10, 2017 at 01:03:46PM +0200, Michal Hocko wrote: > From: Michal Hocko > > device memory hotplug hooks into regular memory hotplug only half way. > It needs memory sections to track struct pages but there is no > need/desire to associate those sections with memory blocks and export >

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-10 Thread Laura Abbott
On 04/08/2017 03:38 AM, Greg Kroah-Hartman wrote: > On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: >> Hi, >> >> This is v3 of the series to do some serious Ion cleanup in preparation for >> moving out of staging. I didn't hear much on v2 so I'm going to assume >> people are okay with

Re: [PATCH] ppc64/kprobe: Fix oops when kprobed on 'stdu' instruction

2017-04-10 Thread Naveen N. Rao
Excerpts from Ravi Bangoria's message of April 10, 2017 20:50: If we set a kprobe on a 'stdu' instruction on powerpc64, we see a kernel OOPS: [ 1275.165932] Bad kernel stack pointer cd93c840 at c0009868 [ 1275.166378] Oops: Bad kernel stack pointer, sig: 6 [#1] ... GPR00: c0

Re: [PATCH v3 0/9] Fix issues and factorize arm/arm64 capacity information code

2017-04-10 Thread Juri Lelli
Hi, On 10/04/17 16:05, Russell King - ARM Linux wrote: > On Mon, Mar 27, 2017 at 02:18:16PM +0100, Juri Lelli wrote: > > arm and arm64 topology.c share a lot of code related to parsing of capacity > > information. This is v3 of a solution [1] (based on Will's, Catalin's and > > Mark's off-line sug

[PATCH] ipmi_si: use smi_num for init_name

2017-04-10 Thread Tony Camuso
Commit 1abf71e moved the creation of new_smi->dev to earlier in the init sequence in order to provide infrastructure for log printing. However, the init_name was created with a hard-coded value of zero. This presents a problem in systems with more than one interface, producing a call trace in dmes

Re: [PATCH v3 5/9] arm, arm64: factorize common cpu capacity default code

2017-04-10 Thread Juri Lelli
Hi, On 10/04/17 09:18, Catalin Marinas wrote: > On Mon, Mar 27, 2017 at 02:18:21PM +0100, Juri Lelli wrote: > > arm and arm64 share lot of code relative to parsing CPU capacity > > information from DT, using that information for appropriate scaling and > > exposing a sysfs interface for chaging su

Re: [PATCH v2 2/2] dt-bindings: document: add firefly-rk3399 board support

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 05:33:20PM +0800, Kever Yang wrote: > Use "firefly,firefly-rk3399" compatible string for firefly-rk3399 board. > > Signed-off-by: Kever Yang > --- > > Changes in v2: None > > Documentation/devicetree/bindings/arm/rockchip.txt | 4 > 1 file changed, 4 insertions(+)

Re: [patch 3/3] x86/vdso: Sanitize vdso*_enabled handling

2017-04-10 Thread Thomas Gleixner
On Mon, 10 Apr 2017, Andy Lutomirski wrote: > On Mon, Apr 10, 2017 at 8:14 AM, Thomas Gleixner wrote: > > +static int vdso32_sysctl; > > + > > +static int vdso_update_handler(struct ctl_table *table, int write, > > + void __user *buffer, size_t *lenp, > > +

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-10 Thread Alex Deucher
On Mon, Apr 10, 2017 at 10:45 AM, Ilia Mirkin wrote: > On Mon, Apr 10, 2017 at 10:17 AM, Gerd Hoffmann wrote: >> Hi, >> >>> which software have you used as representative of "reality"? >> >> ppc64 (big endian) virtual machine, running with qemu stdvga & bochs-drm >> driver. Xorg with modesetti

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-10 Thread Greg Kroah-Hartman
On Mon, Apr 10, 2017 at 09:20:27AM -0700, Laura Abbott wrote: > On 04/08/2017 03:38 AM, Greg Kroah-Hartman wrote: > > On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: > >> Hi, > >> > >> This is v3 of the series to do some serious Ion cleanup in preparation for > >> moving out of stagin

[PATCH v3 6/9] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-04-10 Thread Michal Hocko
This contains two minor fixes spotted based on testing by Igor Mammedov. --- >From d829579cc7061255f818f9aeaa3aa2cd82fec75a Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 29 Mar 2017 16:07:00 +0200 Subject: [PATCH] mm, memory_hotplug: do not associate hotadded memory to zones until online

Re: [PATCH] drivers: pwm: pwm-atmel: implement suspend/resume functions

2017-04-10 Thread Boris Brezillon
On Mon, 10 Apr 2017 18:01:37 +0200 Boris Brezillon wrote: > On Mon, 10 Apr 2017 17:10:11 +0200 > Thierry Reding wrote: > > > On Mon, Apr 10, 2017 at 04:35:58PM +0200, Boris Brezillon wrote: > > > On Mon, 10 Apr 2017 17:20:20 +0300 > > > Claudiu Beznea wrote: > > > > > > > Implement susp

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-10 Thread Alex Deucher
On Mon, Apr 10, 2017 at 8:02 AM, Daniel Vetter wrote: > On Mon, Apr 10, 2017 at 12:12:01PM +0200, Gerd Hoffmann wrote: >> Ok, this is really a kickstart for a discussion. While working on >> graphics support for virtual machines on ppc64 (which exists in both >> little and big endian variants) I'

Re: [PATCH 4/9] mm, memory_hotplug: get rid of is_zone_device_section

2017-04-10 Thread Michal Hocko
On Mon 10-04-17 12:20:02, Jerome Glisse wrote: > On Mon, Apr 10, 2017 at 01:03:46PM +0200, Michal Hocko wrote: [...] > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > > index 342332f29364..1570b3eea493 100644 > > --- a/mm/memory_hotplug.c > > +++ b/mm/memory_hotplug.c > > @@ -493,7 +493,

Re: [PATCH v3 6/9] drivers: remove useless comment from base/arch_topology.c

2017-04-10 Thread Russell King - ARM Linux
On Mon, Apr 10, 2017 at 03:02:14PM +0100, Juri Lelli wrote: > Hi, > > On 10/04/17 14:51, Russell King - ARM Linux wrote: > > On Mon, Mar 27, 2017 at 02:18:22PM +0100, Juri Lelli wrote: > > > Printing out an error message when we failed to get the cpu device is > > > not helping anyone. Remove it.

Re: [PATCH 1/2] PM / Runtime: fix autosuspend documentation

2017-04-10 Thread Tony Lindgren
* Johan Hovold [170410 04:41]: > Update the autosuspend documentation which claimed that the autosuspend > delay is not taken into account when using the non-autosuspend helper > functions, something which is no longer true since commit d66e6db28df3 > ("PM / Runtime: Respect autosuspend when idle

Re: [PATCH 2/2] PM / Runtime: document autosuspend-helper side effects

2017-04-10 Thread Tony Lindgren
* Johan Hovold [170410 04:41]: > Document the fact that the autosuspend delay and enable helpers may > change the power.usage_count and resume or suspend a device depending on > the values of power.autosuspend_delay and power.use_autosuspend. > > Note that this means that a driver must disable au

Re: [PATCH -v2 0/9] mm: make movable onlining suck less

2017-04-10 Thread Jerome Glisse
On Mon, Apr 10, 2017 at 01:03:42PM +0200, Michal Hocko wrote: > Hi, > The last version of this series has been posted here [1]. It has seen > some more serious testing (thanks to Reza Arbab) and fixes for the found > issues. I have also decided to drop patch 1 [2] because it turned out to > be more

[GIT PULL] ARM: at91: DT for 4.12

2017-04-10 Thread Alexandre Belloni
Arnd, Olof, Here is the AT91 DT pull request for 4.12. The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git tags/at91

Re: [PATCH v2 4/5] iio: dac: stm32: add support for trigger events

2017-04-10 Thread Fabrice Gasnier
On 04/09/2017 11:04 AM, Jonathan Cameron wrote: > On 06/04/17 17:11, Fabrice Gasnier wrote: >> STM32 DAC supports triggers to synchronize conversions. When trigger >> occurs, data is transferred from DHR (data holding register) to DOR >> (data output register) so output voltage is updated. >> Both

[tip:x86/urgent] x86/vdso: Ensure vdso32_enabled gets set to valid values only

2017-04-10 Thread tip-bot for Mathias Krause
Commit-ID: c06989da39cdb10604d572c8c7ea8c8c97f3c483 Gitweb: http://git.kernel.org/tip/c06989da39cdb10604d572c8c7ea8c8c97f3c483 Author: Mathias Krause AuthorDate: Mon, 10 Apr 2017 17:14:27 +0200 Committer: Thomas Gleixner CommitDate: Mon, 10 Apr 2017 18:31:41 +0200 x86/vdso: Ensure vdso

[PATCH 4.4 05/32] drm/vmwgfx: Remove getparam error message

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit 53e16798b0864464c5444a204e1bb93ae246c429 upstream. The mesa winsys sometimes uses unimplemented parameter requests to check for features. Remove the error message to avo

[PATCH 4.4 03/32] drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Murray McAllister commit 63774069d9527a1aeaa4aa20e929ef5e8e9ecc38 upstream. In vmw_get_cap_3d_ioctl(), a user can supply 0 for a size that is used in vzalloc(). This eventually calls dump_stack

[PATCH 4.4 00/32] 4.4.61-stable review

2017-04-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.61 release. There are 32 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 Wed Apr 12 16:38:14 UTC 2017. Anything receive

[PATCH 4.4 16/32] metag/usercopy: Fix alignment error checking

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 skip

[PATCH 4.4 04/32] drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit fe25deb7737ce6c0879ccf79c99fa1221d428bf2 upstream. Previously, when a surface was opened using a legacy (non prime) handle, it was verified to have been created by a cli

[PATCH 4.4 09/32] arm/arm64: KVM: Take mmap_sem in stage2_unmap_vm

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 90f6e150e44a0dc3883110eeb3ab35d1be42b6bb upstream. We don't hold the mmap_sem while searching for the VMAs when we try to unmap each memslot for a VM. Fix this properly to a

[PATCH 4.4 25/32] s390/decompressor: fix initrd corruption caused by bss clear

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Henrique Cerri commit d82c0d12c92705ef468683c9b7a8298dd61ed191 upstream. Reorder the operations in decompress_kernel() to ensure initrd is moved to a safe location before the bss sectio

[PATCH 4.4 32/32] mm/mempolicy.c: fix error handling in set_mempolicy and mbind.

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 sta

[PATCH 4.4 15/32] metag/usercopy: Drop unused macros

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 u

[PATCH 4.4 30/32] MIPS: Lantiq: fix missing xbar kernel panic

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hauke Mehrtens commit 6ef90877eee63a0d03e83183bb44b64229b624e6 upstream. Commit 08b3c894e565 ("MIPS: lantiq: Disable xbar fpi burst mode") accidentally requested the resources from the pmu addr

[PATCH 4.4 31/32] MIPS: Flush wrong invalid FTLB entry for huge page

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 cas

[PATCH 4.4 22/32] powerpc/mm: Add missing global TLB invalidate if cxl is active

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Frederic Barrat commit 88b1bf7268f56887ca88eb09c6fb0f4fc970121a upstream. Commit 4c6d9acce1f4 ("powerpc/mm: Add hooks for cxl") converted local TLB invalidates to global if the cxl driver is ac

[PATCH 4.4 29/32] MIPS: End spinlocks with .insn

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paul Burton commit 4b5347a24a0f2d3272032c120664b484478455de upstream. When building for microMIPS we need to ensure that the assembler always knows that there is code at the target of a branch

[PATCH 4.4 17/32] metag/usercopy: Add early abort to copy_to_user

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 rep

[PATCH 4.4 28/32] MIPS: ralink: Fix typos in rt3883 pinctrl

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: John Crispin commit 7c5a3d813050ee235817b0220dd8c42359a9efd8 upstream. There are two copy & paste errors in the definition of the 5GHz LNA and second ethernet pinmux. Fixes: f576fb6a0700 ("MIP

[PATCH 4.4 27/32] MIPS: Force o32 fp64 support on 32bit MIPS64r6 kernels

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2e6c7747730296a6d4fd700894286db1132598c4 upstream. When a 32-bit kernel is configured to support MIPS64r6 (CPU_MIPS64_R6), MIPS_O32_FP64_SUPPORT won't be selected as it shoul

[PATCH 4.4 24/32] nios2: reserve boot memory for device tree

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tobias Klauser commit 921d701e6f31e1ffaca3560416af1aa04edb4c4f upstream. Make sure to reserve the boot memory for the flattened device tree. Otherwise it might get overwritten, e.g. when initia

[PATCH 4.4 26/32] s390/uaccess: get_user() should zero on failure (again)

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit d09c5373e8e4eaaa09233552cbf75dc4c4f21203 upstream. Commit fd2d2b191fe7 ("s390: get_user() should zero on failure") intended to fix s390's get_user() implementation which d

Re: [Patch V2 2/2] x86/mm/numa: remove the numa_nodemask_from_meminfo()

2017-04-10 Thread Wei Yang
On Mon, Apr 10, 2017 at 02:43:20PM +0200, Borislav Petkov wrote: >On Sun, Apr 09, 2017 at 11:12:14AM +0800, Wei Yang wrote: >> Oops, sorry to bring in the regression with my cleanup. >> I haven't noticed there is a kernel command line "numa=fake", which >> is the cause of the crash I think. > >Of c

[PATCH 4.4 08/32] staging: android: ashmem: lseek failed due to no FMODE_LSEEK.

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shuxiao Zhang commit 97fbfef6bd597888485b653175fb846c6998b60c upstream. vfs_llseek will check whether the file mode has FMODE_LSEEK, no return failure. But ashmem can be lseek, so add FMODE_LSE

[PATCH 4.9 002/152] ppdev: fix registering same device name

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee commit 9a69645dde1188723d80745c1bc6ee9af2cbe2a7 upstream. Usually every parallel port will have a single pardev registered with it. But ppdev driver is an exception. This usersp

[PATCH 4.4 14/32] ring-buffer: Fix return value check in test_ringbuffer()

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 ch

[PATCH 4.4 23/32] powerpc: Dont try to fix up misaligned load-with-reservation instructions

2017-04-10 Thread Greg Kroah-Hartman
4.4-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 misali

[PATCH 4.9 003/152] drm/vmwgfx: Type-check lookups of fence objects

2017-04-10 Thread Greg Kroah-Hartman
4.9-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. Test

[PATCH 4.9 018/152] mm/page_alloc.c: fix print order in show_free_areas()

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Polakov commit 1f06b81aea5ecba2c1f8afd87e0ba1b9f8f90160 upstream. Fixes: 11fb998986a72a ("mm: move most file-based accounting to the node") Link: http://lkml.kernel.org/r/1490377730.3

[PATCH v7 4/4] arm64/syscalls: Architecture specific pre-usermode check

2017-04-10 Thread Thomas Garnier
kernel on an explicit check. Signed-off-by: Thomas Garnier --- Based on next-20170410 --- arch/arm64/Kconfig| 1 + arch/arm64/kernel/entry.S | 13 + 2 files changed, 14 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9b8fcab7da56..3f9e8e7d9376

[PATCH 4.9 006/152] drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit fe25deb7737ce6c0879ccf79c99fa1221d428bf2 upstream. Previously, when a surface was opened using a legacy (non prime) handle, it was verified to have been created by a cli

[PATCH 4.9 033/152] metag/usercopy: Set flags before ADDZ

2017-04-10 Thread Greg Kroah-Hartman
4.9-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. Ther

[PATCH 4.9 023/152] Kbuild: use cc-disable-warning consistently for maybe-uninitialized

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit b334e19ae9381f12a7521976883022385d2b7eef upstream. In commit a76bcf557ef4 ("Kbuild: enable -Wmaybe-uninitialized warning for "make W=1""), I reverted another change that ha

[PATCH 4.9 000/152] 4.9.22-stable review

2017-04-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.22 release. There are 152 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 Wed Apr 12 16:41:34 UTC 2017. Anything receiv

[PATCH 4.9 024/152] orangefs: move features validation to fix filesystem hang

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Martin Brandenburg commit cefdc26e86728812aea54248a534fd4a5da2a43d upstream. Without this fix (and another to the userspace component itself described later), the kernel will be unable to proce

[PATCH 4.9 045/152] s390/uaccess: get_user() should zero on failure (again)

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit d09c5373e8e4eaaa09233552cbf75dc4c4f21203 upstream. Commit fd2d2b191fe7 ("s390: get_user() should zero on failure") intended to fix s390's get_user() implementation which d

<    4   5   6   7   8   9   10   11   >