Re: [PATCH v2 2/2] riscv/atomic: Strengthen implementations with fences

2018-03-09 Thread Palmer Dabbelt
On Fri, 09 Mar 2018 13:30:08 PST (-0800), parri.and...@gmail.com wrote: On Fri, Mar 09, 2018 at 10:54:27AM -0800, Palmer Dabbelt wrote: On Fri, 09 Mar 2018 10:36:44 PST (-0800), parri.and...@gmail.com wrote: [...] >This belongs to the "few style fixes" (in the specific, 80-chars lines) >men

Re: WARNING in __proc_create

2018-03-09 Thread Eric Dumazet
On 03/09/2018 02:56 PM, Eric Dumazet wrote: I sent a patch a while back, but Pablo/Florian wanted more than that simple fix. We also need to filter special characters like '/' Or maybe I am mixing with something else. Yes, Florian mentioned that we also had to reject "." and ".."

Re: Make set_handle_irq and handle_arch_irq generic, v3

2018-03-09 Thread Thomas Gleixner
On Fri, 9 Mar 2018, Palmer Dabbelt wrote: > On Fri, 09 Mar 2018 02:20:12 PST (-0800), t...@linutronix.de wrote: > > This looks sensible. We have two options for getting this merged: > > > > 1) I'll take the whole lot through tip/irq/core > > > > 2) I'll apply patch 1/N to a special branch in

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-09 Thread Pavel Machek
Hi! > > Hmm. Looks like there's a lot of fun to be had with sysfs. > > > > > > pavel@n900:~$ uname -a > > Linux n900 4.16.0-rc4-59690-g7f84626-dirty #543 Thu Mar 8 19:53:30 CET > > 2018 armv7l GNU/Linux > > > > [ 306.402496] bq2415x: command Timer reset > > [ 312.761322] adp1653 2-0030: Read

Re: [PATCH v6 2/6] regulator: bindings: Add properties for coupled regulators

2018-03-09 Thread Rob Herring
On Fri, Mar 09, 2018 at 01:22:04PM +0100, Maciej Purski wrote: > Some regulators require keeping their voltage spread below defined > max_spread. > > Add properties to provide information on regulators' coupling. > > Signed-off-by: Maciej Purski > --- > Documentation/devicetree/bindings/regulat

Re: WARNING in __proc_create

2018-03-09 Thread Florian Westphal
Eric Dumazet wrote: > >>fs/proc/generic.c:354 > > > >We need to reject empty names. > > > > I sent a patch a while back, but Pablo/Florian wanted more than that simple > fix. > > We also need to filter special characters like '/' > > Or maybe I am mixing with something else. Argh, sorry, this

Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-03-09 Thread Rob Herring
On Sun, Mar 04, 2018 at 04:14:47PM -0800, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Create a cache of the nodes that contain a phandle property. Use this > cache to find the node for a given phandle value instead of scanning > the devicetree to find the node. If the phandle value i

Re: WARNING in __proc_create

2018-03-09 Thread Cong Wang
On Fri, Mar 9, 2018 at 2:58 PM, Eric Dumazet wrote: > > > On 03/09/2018 02:56 PM, Eric Dumazet wrote: > >> >> I sent a patch a while back, but Pablo/Florian wanted more than that >> simple fix. >> >> We also need to filter special characters like '/' proc_create_data() itself accepts '/', so it m

Re: [PATCH v4] cpuset: Enable cpuset controller in default hierarchy

2018-03-09 Thread Waiman Long
On 03/09/2018 05:17 PM, Peter Zijlstra wrote: > On Fri, Mar 09, 2018 at 03:43:34PM -0500, Waiman Long wrote: >> The isolcpus= parameter just reduce the cpus available to the rests of >> the system. The cpuset controller does look at that value and make >> adjustment accordingly, but it has no depen

Re: Nokia N900: refcount_t underflow, use after free

2018-03-09 Thread Suman Anna
On 03/09/2018 04:18 PM, Pavel Machek wrote: > On Fri 2018-03-09 16:13:36, Suman Anna wrote: >> On 03/09/2018 06:08 AM, Robin Murphy wrote: >>> On 08/03/18 18:50, Pavel Machek wrote: Hi! >> * Pavel Machek [180308 14:31]: >>> Hi! >>> >>> I'm getting this warning... Has anyo

[PATCH] firmware: add a function to load optional firmware v2

2018-03-09 Thread Andres Rodriguez
Currently the firmware loader only exposes one silent path for querying optional firmware, and that is request_firmware_direct(). This function also disables the usermodehelper fallback which might not always be the desired behaviour. This patch introduces request_firmware_optional(), which will n

Re: [PATCH v2 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings

2018-03-09 Thread Rob Herring
On Mon, Mar 05, 2018 at 02:02:38PM -0800, Tim Harvey wrote: > This patch adds documentation of device-tree bindings for the > Gateworks System Controller (GSC). > > Signed-off-by: Tim Harvey > --- > Documentation/devicetree/bindings/mfd/gsc.txt | 159 > ++ > 1 file chang

[PATCH v2, simpler] ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb)

2018-03-09 Thread Sergei Trofimovich
The strace breakage looks like that: ./strace: get_regs: get_regs_error: Input/output error It happens because ia64 needs to load unwind tables to read certain registers in 'PTRACE_GETREGS'. Unwind tables fail to load at kernel startup due to GCC quirk on the following code (logged as PR 84184):

Re: WARNING in __proc_create

2018-03-09 Thread Florian Westphal
Cong Wang wrote: > On Fri, Mar 9, 2018 at 2:58 PM, Eric Dumazet wrote: > > > > > > On 03/09/2018 02:56 PM, Eric Dumazet wrote: > > > >> > >> I sent a patch a while back, but Pablo/Florian wanted more than that > >> simple fix. > >> > >> We also need to filter special characters like '/' > > proc

Re: WARNING in __proc_create

2018-03-09 Thread Eric Dumazet
On 03/09/2018 03:05 PM, Cong Wang wrote: BTW, the warning itself is all about empty names, so perhaps it's better to fix them separately. Huh ? You want more syzbot reports ? I do not. I unblocked this report today [1], you can be sure that as soon as syzbot gets the correct tag (Reported-b

[PATCH v4 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously

2018-03-09 Thread Lina Iyer
Platform drivers that want to send a request but do not want to block until the RPMH request completes have now a new API - rpmh_write_async(). The API allocates memory and send the requests and returns the control back to the platform driver. The tx_done callback from the controller is handled in

[PATCH v4 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-03-09 Thread Lina Iyer
Platform drivers need make a lot of resource state requests at the same time, say, at the start or end of an usecase. It can be quite inefficient to send each request separately. Instead they can give the RPMH library a batch of requests to be sent and wait on the whole transaction to be complete.

[PATCH v4 10/10] drivers: qcom: rpmh-rsc: allow active requests from wake TCS

2018-03-09 Thread Lina Iyer
Some RSCs may only have sleep and wake TCS, i.e, there is no dedicated TCS for active mode request, but drivers may still want to make active requests from these RSCs. In such cases re-purpose the wake TCS to send active state requests. The requirement for this is that the driver is aware that the

[PATCH v4 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-03-09 Thread Lina Iyer
Sleep and wake requests are sent when the application processor subsystem of the SoC is entering deep sleep states like in suspend. These requests help lower the system power requirements when the resources are not in use. Sleep and wake requests are written to the TCS slots but are not triggered

[PATCH v4 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-03-09 Thread Lina Iyer
Add controller driver for QCOM SoCs that have hardware based shared resource management. The hardware IP known as RSC (Resource State Coordinator) houses multiple Direct Resource Voter (DRV) for different execution levels. A DRV is a unique voter on the state of a shared resource. A Trigger Control

[PATCH v4 06/10] drivers: qcom: rpmh-rsc: allow invalidation of sleep/wake TCS

2018-03-09 Thread Lina Iyer
Allow sleep and wake commands to be cleared from the respective TCSes, so that they can be re-populated. Signed-off-by: Lina Iyer --- Changes in v4: - refactored the rphm_rsc_invalidate() --- drivers/soc/qcom/rpmh-internal.h | 1 + drivers/soc/qcom/rpmh-rsc.c | 48

[PATCH v4 07/10] drivers: qcom: rpmh: cache sleep/wake state requests

2018-03-09 Thread Lina Iyer
Active state requests are sent immediately to the mailbox controller, while sleep and wake state requests are cached in this driver to avoid taxing the mailbox controller repeatedly. The cached values will be sent to the controller when the rpmh_flush() is called. Generally, flushing is a system P

[PATCH v4 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-03-09 Thread Lina Iyer
Add device binding documentation for Qualcomm Technology Inc's RPMH RSC driver. The driver is used for communicating resource state requests for shared resources. Cc: devicet...@vger.kernel.org Signed-off-by: Lina Iyer --- Changes in v3: - Move to soc/qcom - Amend text per Stephe

Re: [PATCH v5 1/3] Input: gpio-keys - add support for wakeup event action

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 03:32:11PM +0800, Jeffy Chen wrote: > Add support for specifying event actions to trigger wakeup when using > the gpio-keys input device as a wakeup source. > > This would allow the device to configure when to wakeup the system. For > example a gpio-keys input device for pe

[PATCH v4 00/10] drivers/qcom: add RPMH communication support

2018-03-09 Thread Lina Iyer
Changes in v4: - Rename variables as suggested by Stephen and Evan - Lot of minor syntax and style fixes - Fix FTRACE compilation error - Improve doc comments and DT description Changes in v3: - Address Steven's comments in FTRACE - Fix DT documentation as suggested by Rob H - Fix error handling i

[PATCH v4 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-03-09 Thread Lina Iyer
Log sent RPMH requests and interrupt responses in FTRACE. Cc: Steven Rostedt Signed-off-by: Lina Iyer --- Changes in v4: - fix compilation issues, use __assign_str - use %#x instead of 0x%08x Changes in v3: - Use __string() instead of char * - fix TRACE_INCLUDE_P

[PATCH v4 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-03-09 Thread Lina Iyer
Sending RPMH requests and waiting for response from the controller through a callback is common functionality across all platform drivers. To simplify drivers, add a library functions to create RPMH client and send resource state requests. rpmh_write() is a synchronous blocking call that can be us

Re: WARNING in __proc_create

2018-03-09 Thread Cong Wang
On Fri, Mar 9, 2018 at 3:21 PM, Eric Dumazet wrote: > > > On 03/09/2018 03:05 PM, Cong Wang wrote: >> >> >> BTW, the warning itself is all about empty names, so perhaps >> it's better to fix them separately. > > > Huh ? You want more syzbot reports ? I do not. I always prefer one patch to fix one

Re: [PATCH] Input: stmpe-keypad - remove VLA usage

2018-03-09 Thread Dmitry Torokhov
On Fri, Mar 09, 2018 at 04:42:08PM -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA and replace it > with a fixed-length array instead. > > Fixed as part of the directive to remove all VLAs from > the kernel: https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Gu

[PATCH] drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.

2018-03-09 Thread Eric Anholt
In the cleanup, I didn't notice that we needed to dereference the connector for the bus_format. Fix the regression by looking up the first (and only) connector attached to us, and assume that its bus_format is what we want. Some day it would be good to have that part of display_info attached to t

[PATCH] drm/panel: simple: Fix the bus_format for the Ontat panel.

2018-03-09 Thread Eric Anholt
This fixes bad color output. When I was first testing the device I had the DPI hardware set to 666 mode, but apparently in the refactor to use the bus_format information from the panel driver, I failed to actually update the panel. Signed-off-by: Eric Anholt Fixes: e8b6f561b2ee ("drm/panel: simp

[PATCH] ARM: bcm2835: Add the DPI hardware to the device tree.

2018-03-09 Thread Eric Anholt
It's currently marked disabled, as it's not useful without a panel associated with it and the GPIO pins routed to ALT2. Signed-off-by: Eric Anholt --- This patch got misplaced as part of the original VC4 DPI work (which included the binding). I've got a full branch demoing a panel at https://gi

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-09 Thread Milton Miller II
About 03/07/2018 04:12PM in some time zone, Pavel Machek wrote: >Subject: Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: >Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs > >Hi! > >> >Are these SoCs x86-based? >> >> Yes, these are ARM SoCs. Please see Andrew's answe

Re: WARNING in __proc_create

2018-03-09 Thread Eric Dumazet
On 03/09/2018 03:32 PM, Cong Wang wrote: On Fri, Mar 9, 2018 at 3:21 PM, Eric Dumazet wrote: On 03/09/2018 03:05 PM, Cong Wang wrote: BTW, the warning itself is all about empty names, so perhaps it's better to fix them separately. Huh ? You want more syzbot reports ? I do not. I alw

[PATCH 1/4] staging:iio:ad2s1210: Remove end of line with '['

2018-03-09 Thread Rodrigo Siqueira
This patch fixes the checkpatch.pl check: iio/resolver/ad2s1210.c:202: CHECK: Lines should not end with a '[' Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/resolver/ad2s1210.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/resolver/ad2s1

[PATCH 0/4] staging:iio:ad2s1210: Driver cleanup

2018-03-09 Thread Rodrigo Siqueira
This patchset removes some unused #define directive and variables. Additionally, it fixes two checkpatch problems. Finally, the last patch adds struct documentation and comments to some part of the code. All of the changes have the intention to improve the readability of new updates. Rodrigo Siqu

[PATCH 4/4] staging:iio:ad2s1210: Add comments/documentation

2018-03-09 Thread Rodrigo Siqueira
The original code of AD2S1210 does not have documentation for structs and register configurations; this difficult the code comprehension. This patch adds structs documentation, briefly comments some register settings and acronyms, and adds little explanations of some calculation found in the code.

[PATCH 2/4] staging:iio:ad2s1210: Remove unused #define directive

2018-03-09 Thread Rodrigo Siqueira
This patch removes some #define directives not used in the code. Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/resolver/ad2s1210.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index 0cd

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-09 Thread Jae Hyun Yoo
Hi Milton, Thanks for sharing your time to review this patch. Please see my answer inline. Jae On 3/9/2018 3:41 PM, Milton Miller II wrote: About 03/07/2018 04:12PM in some time zone, Pavel Machek wrote: Subject: Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of

[PATCH 3/4] staging:iio:ad2s1210: Remove old_data from ad2s1210_state

2018-03-09 Thread Rodrigo Siqueira
The variable old_data is a bool type, which only receives the value 'true' in the function ad2s1210_config_write and ad2s1210_config_read. There is no other use for this variable. This patch removes old_data from the ad2s1210_state and from all the function that use it. Signed-off-by: Rodrigo Siqu

Re: [PATCH 2/4] ARM: sunxi: mc-smp: Use DT enable-method for sun9i A80 SMP

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 11:00:10PM +0800, Chen-Yu Tsai wrote: > Instead of having an early init function check the machine compatible > and installing multi-cluster SMP support for the A80 if it matches, > use a new cpu enable-method string. This makes the platform support > future proof in case an

Re: [PATCH v4 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-03-09 Thread Steven Rostedt
On Fri, 9 Mar 2018 16:25:36 -0700 Lina Iyer wrote: > Log sent RPMH requests and interrupt responses in FTRACE. > > Cc: Steven Rostedt > Signed-off-by: Lina Iyer > --- > > Changes in v4: > - fix compilation issues, use __assign_str > - use %#x instead of 0x%08x Hmm, I don't belie

ip6tables - last base chain position %u doesn't match underflow %u (hook %u

2018-03-09 Thread valdis . kletnieks
Am hitting an issue with this commit: commit 0d7df906a0e78079a02108b06d32c3ef2238ad25 Author: Florian Westphal Date: Tue Feb 27 19:42:37 2018 +0100 netfilter: x_tables: ensure last rule in base chain matches underflow/policy This trips on my system: [ 64.402790] ip6_tables: last ba

Re: [RFC PATCH -tip 0/9] kprobes: Cleanup jprobe implementation

2018-03-09 Thread Steven Rostedt
On Fri, 9 Mar 2018 21:35:17 +0900 Masami Hiramatsu wrote: > Hello, > > Since we decided to remove jprobe from kernel last year, > its APIs are disabled and we worked on moving in-kernel > jprobe users to kprobes or trace-events. And now no jprobe > users are here anymore. > > I think it is goo

Re: [PATCH v2 01/12] dt-bindings: Document STM32MP1 Reset Clock Controller (RCC) bindings

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 05:53:54PM +0100, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > The RCC block is responsible of the management of the clock and reset > generation for the complete circuit. > > Signed-off-by: Gabriel Fernandez > --- > .../devicetree/bindings/clock/st,stm

Re: [PATCH v2 02/12] clk: stm32mp1: Introduce STM32MP1 clock driver

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 05:53:55PM +0100, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch introduces the mechanism to probe stm32mp1 driver. > It also defines registers definition. > This patch also introduces the generic mechanism to register > a clock (a simple gate, di

Re: [PATCH v2 2/2] dt-bindings: backlight: Add binding for RAVE SP backlight driver

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 11:20:46AM -0800, Andrey Smirnov wrote: > Add Device Tree bindings for RAVE SP backlight driver - an MFD cell of > parent RAVE SP driver (documented in > Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). > > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > Cc

Re: [PATCH 1/2] dt-bindings: trivial: add various mcp4017/18/19 potentiometers

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 08:58:29PM +0100, Peter Rosin wrote: > They come in 5 kOhm, 10 kOhm, 50 kOhm and 100 kOhm variations. > > Signed-off-by: Peter Rosin > --- > Documentation/devicetree/bindings/trivial-devices.txt | 12 > 1 file changed, 12 insertions(+) I've applied to avoid

Re: [PATCH 1/2] of: unittest: remove unneeded local return value variables

2018-03-09 Thread Rob Herring
On Thu, Mar 08, 2018 at 02:39:04PM -0800, frowand.l...@gmail.com wrote: > From: Frank Rowand > > A common pattern in many unittest functions is to save the return > value of a function in a local variable, then test the value of > the local variable, without using that return value for any furthe

Re: [PATCH v2 0/2] check I2C device id for pca984x chips

2018-03-09 Thread Peter Rosin
On 2018-03-05 21:58, Peter Rosin wrote: > Hi! > > This series tries to check the I2C device id, but instead of open > coding the check in the pca954x driver, I have a new function in > the core doing the work. > > Changes since v1: > - Added Tested-by tag from Adrian > - Added Reviewed-by tag fro

Re: [PATCH] proc: register filesystem last

2018-03-09 Thread Alexey Dobriyan
On Fri, Mar 09, 2018 at 02:49:38PM -0800, Andrew Morton wrote: > On Sat, 10 Mar 2018 01:27:09 +0300 Alexey Dobriyan > wrote: > > > As soon as register_filesystem() exits, filesystem can be mounted. > > It is better to present fully operational /proc. > > > > Of course it doesn't matter because

Re: [PATCH v2] kconfig: make unmet dependency warnings readable

2018-03-09 Thread Eugeniu Rosca
Hi Masahiro, Thanks for constantly improving the user experience of Kconfig. Just one small remark below. On Tue, Mar 06, 2018 at 07:51:39PM +0900, Masahiro Yamada wrote: > Currently, the unmet dependency warnings end up with endlessly long > expressions, most of which are false positives. > > H

Re: [PATCH v3] kernel.h: Skip single-eval logic on literals in min()/max()

2018-03-09 Thread Andrew Morton
On Fri, 9 Mar 2018 12:05:36 -0800 Kees Cook wrote: > When max() is used in stack array size calculations from literal values > (e.g. "char foo[max(sizeof(struct1), sizeof(struct2))]", the compiler > thinks this is a dynamic calculation due to the single-eval logic, which > is not needed in the li

Re: [PATCH 4.14 1/4] powerpc/mm/slice: Remove intermediate bitmap copy

2018-03-09 Thread Greg Kroah-Hartman
On Fri, Mar 09, 2018 at 04:48:59PM +0100, Christophe Leroy wrote: > Upstream 326691ad4f179e6edc7eb1271e618dd673e4736d There is no such git commit id in Linus's tree :( Please fix up and resend the series. thanks, greg k-h

[PATCH 1/4] gpio: Remove VLA from gpiolib

2018-03-09 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces several VLAs with an appropriate call to kmalloc_array. Signed-off-by: Laura Abbott --- drivers/gpio/gpiolib.c | 55 +++--- 1 file chang

[PATCH 3/4] gpio: Remove VLA from xra1403 driver

2018-03-09 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces a VLA with an appropriate call to kmalloc_array. Signed-off-by: Laura Abbott --- drivers/gpio/gpio-xra1403.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 4/4] gpio: Remove VLA from stmpe driver

2018-03-09 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces a VLA with an appropriate call to kmalloc_array. Signed-off-by: Laura Abbott --- drivers/gpio/gpio-stmpe.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 0/4] VLA removal from the GPIO subsystem

2018-03-09 Thread Laura Abbott
Hi, For those who haven't seen it, there's an effort to remove VLAs from the kernel so we can turn on -Wvla in the name of security. See https://lkml.org/lkml/2018/3/7/621 for more details and discussion. This is a series to remove a few VLAs from the gpio subsystem. These are compile tested only

[PATCH 2/4] gpio: Remove VLA from MAX3191X driver

2018-03-09 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces several a VLA with an appropriate call to kmalloc_array. Signed-off-by: Laura Abbott --- drivers/gpio/gpio-max3191x.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) di

[PATCH] proc: reject "." and ".." as filenames

2018-03-09 Thread Alexey Dobriyan
Various subsystems can create files and directories in /proc with names directly controlled by userspace. Which means "/", "." and ".." are no-no. "/" split is already taken care of, do the other 2 prohibited names. Signed-off-by: Alexey Dobriyan --- fs/proc/generic.c |8 1 file

[PATCH 3.18 00/21] 3.18.99-stable review

2018-03-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.99 release. There are 21 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 Mon Mar 12 00:17:44 UTC 2018. Anything receiv

[PATCH 3.18 03/21] ALSA: usb-audio: Add a quirck for B&W PX headphones

2018-03-09 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Erik Veijola commit 240a8af929c7c57dcde28682725b29cf8474e8e5 upstream. The capture interface doesn't work and the playback interface only supports 48 kHz sampling rate even though it advertise

[PATCH 4.4 13/36] ARM: dts: LogicPD Torpedo: Fix I2C1 pinmux

2018-03-09 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Adam Ford commit 74402055a2d3ec998a1ded599e86185a27d9bbf4 upstream. The pinmuxing was missing for I2C1 which was causing intermittent issues with the PMIC which is connected to I2C1. The bootl

[PATCH 3.18 06/21] net: fec: introduce fec_ptp_stop and use in probe fail path

2018-03-09 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Lucas Stach commit 32cba57ba74be58589aeb4cb6496183e46a5e3e5 upstream. This function frees resources and cancels delayed work item that have been initialized in fec_ptp_init(). Use this to do

[PATCH 4.4 15/36] leds: do not overflow sysfs buffer in led_trigger_show

2018-03-09 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nathan Sullivan commit 3b9b95363c45365d606ad4bbba16acca75fdf6d3 upstream. Per the documentation, use scnprintf instead of sprintf to ensure there is never more than PAGE_SIZE bytes of trigger n

[PATCH 4.4 25/36] ppp: prevent unregistered channels from connecting to PPP units

2018-03-09 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 77f840e3e5f09c6d7d727e85e6e08276dd813d11 ] PPP units don't hold any reference on the channels connected to it. It is the channel's responsibility to ensure th

[PATCH 4.4 27/36] sctp: fix dst refcnt leak in sctp_v4_get_dst

2018-03-09 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tommi Rantala [ Upstream commit 4a31a6b19f9ddf498c81f5c9b089742b7472a6f8 ] Fix dst reference count leak in sctp_v4_get_dst() introduced in commit 410f03831 ("sctp: add routing output fallback"

[PATCH 4.9 19/65] ARM: mvebu: Fix broken PL310_ERRATA_753970 selects

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ulf Magnusson commit 8aa36a8dcde3183d84db7b0d622ffddcebb61077 upstream. The MACH_ARMADA_375 and MACH_ARMADA_38X boards select ARM_ERRATA_753970, but it was renamed to PL310_ERRATA_753970 by com

[PATCH 4.9 13/65] cpufreq: s3c24xx: Fix broken s3c_cpufreq_init()

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Viresh Kumar commit 0373ca74831b0f93cd4cdbf7ad3aec3c33a479a5 upstream. commit a307a1e6bc0d "cpufreq: s3c: use cpufreq_generic_init()" accidentally broke cpufreq on s3c2410 and s3c2412. These t

[PATCH 4.9 11/65] timers: Forward timer base before migrating timers

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lingutla Chandrasekhar commit c52232a49e203a65a6e1a670cd5262f59e9364a0 upstream. On CPU hotunplug the enqueued timers of the unplugged CPU are migrated to a live CPU. This happens from the cont

[PATCH 4.9 00/65] 4.9.87-stable review

2018-03-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.87 release. There are 65 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 Mon Mar 12 00:18:06 UTC 2018. Anything receive

[PATCH 4.9 17/65] media: m88ds3103: dont call a non-initalized function

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mauro Carvalho Chehab commit b9c97c67fd19262c002d94ced2bfb513083e161e upstream. If m88d3103 chip ID is not recognized, the device is not initialized. However, it returns from probe without any

[PATCH 4.9 07/65] tpm-dev-common: Reject too short writes

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Steffen commit ee70bc1e7b63ac8023c9ff9475d8741e397316e7 upstream. tpm_transmit() does not offer an explicit interface to indicate the number of valid bytes in the communication buffer

[PATCH 4.9 03/65] tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jeremy Boone commit f9d4d9b5a5ef2f017bc344fb65a58a902517173b upstream. Discrete TPMs are often connected over slow serial buses which, on some platforms, can have glitches causing bit flips. I

[PATCH 4.9 43/65] mlxsw: spectrum_switchdev: Check success of FDB add operation

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shalom Toledo [ Upstream commit 0a8a1bf17e3af34f1f8d2368916a6327f8b3bfd5 ] Until now, we assumed that in case of error when adding FDB entries, the write operation will fail, but this is not t

[PATCH 4.9 46/65] rxrpc: Fix send in rxrpc_send_data_packet()

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 93c62c45ed5fad1b87e3a45835b251cd68de9c46 ] All the kernel_sendmsg() calls in rxrpc_send_data_packet() need to send both parts of the iov[] buffer, but one of th

[PATCH 4.9 35/65] hdlc_ppp: carrier detect ok, dont turn off negotiation

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Denis Du [ Upstream commit b6c3bad1ba83af1062a7ff6986d9edc4f3d7fc8e ] Sometimes when physical lines have a just good noise to make the protocol handshaking fail, but the carrier detect still g

[PATCH 4.9 51/65] s390/qeth: fix overestimated count of buffer elements

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann [ Upstream commit 12472af89632beb1ed8dea29d4efe208ca05b06a ] qeth_get_elements_for_range() doesn't know how to handle a 0-length range (ie. start == end), and returns 1 when it

[PATCH 4.9 40/65] ppp: prevent unregistered channels from connecting to PPP units

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 77f840e3e5f09c6d7d727e85e6e08276dd813d11 ] PPP units don't hold any reference on the channels connected to it. It is the channel's responsibility to ensure th

[PATCH 4.9 38/65] net: ipv4: dont allow setting net.ipv4.route.min_pmtu below 68

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sabrina Dubroca [ Upstream commit c7272c2f1229125f74f22dcdd59de9bbd804f1c8 ] According to RFC 1191 sections 3 and 4, ICMP frag-needed messages indicating an MTU below 68 should be rejected:

[PATCH 4.9 57/65] net: mpls: Pull common label check into helper

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern commit b7b386f42f079b25b942c756820e36c6bd09b2ca upstream. mpls_route_add and mpls_route_del have the same checks on the label. Move to a helper. Avoid duplicate extack messages in t

[PATCH 4.15 10/11] scsi: mpt3sas: wait for and flush running commands on shutdown/unload

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Sreekanth Reddy commit c666d3be99c000bb889a33353e9be0fa5808d3de upstream. This patch finishes all outstanding SCSI IO commands (but not other commands, e.g., task management) in the shutdown a

[PATCH 4.14 3/9] bpf: fix rcu lockdep warning for lpm_trie map_free callback

2018-03-09 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Yonghong Song [ upstream commit 6c5f61023c5b0edb0c8a64c902fe97c6453b1852 ] Commit 9a3efb6b661f ("bpf: fix memory leak in lpm_trie map_free callback function") fixed a memory leak and removed

[PATCH 4.14 1/9] bpf: fix mlock precharge on arraymaps

2018-03-09 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit 9c2d63b843a5c8a8d0559cc067b5398aa5ec3ffc ] syzkaller recently triggered OOM during percpu map allocation; while there is work in progress by Dennis Zhou to ad

[PATCH 4.9 59/65] bpf: fix wrong exposure of map_flags into fdinfo for lpm

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit a316338cb71a3260201490e615f2f6d5c0d8fb2c ] trie_alloc() always needs to have BPF_F_NO_PREALLOC passed in via attr->map_flags, since it does not support preallo

[PATCH 4.9 30/65] md: only allow remove_and_add_spares when no sync_thread running.

2018-03-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 39772f0a7be3b3dc26c74ea13fe7847fd1522c8b upstream. The locking protocols in md assume that a device will never be removed from an array during resync/recovery/reshape. When tha

[PATCH 4.14 6/9] bpf: add schedule points in percpu arrays management

2018-03-09 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ upstream commit 32fff239de37ef226d5b66329dd133f64d63b22d ] syszbot managed to trigger RCU detected stalls in bpf_array_free_percpu() It takes time to allocate a huge percpu map

[PATCH 4.15 05/11] bpf, arm64: fix out of bounds access in tail call

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit 16338a9b3ac30740d49f5dfed81bac0ffa53b9c7 ] I recently noticed a crash on arm64 when feeding a bogus index into BPF tail call helper. The crash would not occur

[PATCH 4.15 06/11] bpf: add schedule points in percpu arrays management

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ upstream commit 32fff239de37ef226d5b66329dd133f64d63b22d ] syszbot managed to trigger RCU detected stalls in bpf_array_free_percpu() It takes time to allocate a huge percpu map

[PATCH 4.15 09/11] scsi: mpt3sas: fix oops in error handlers after shutdown/unload

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Mauricio Faria de Oliveira commit 9ff549ffb4fb4cc9a4b24d1de9dc3e68287797c4 upstream. This patch adds checks for 'ioc->remove_host' in the SCSI error handlers, so not to access pointers/resourc

[PATCH 4.15 07/11] bpf: allow xadd only on aligned memory

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit ca36960211eb228bcbc7aaebfa0d027368a94c60 ] The requirements around atomic_add() / atomic64_add() resp. their JIT implementations differ across architectures.

[PATCH 4.15 00/11] 4.15.9-stable review

2018-03-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.15.9 release. There are 11 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 Mon Mar 12 00:18:21 UTC 2018. Anything receive

[PATCH 4.15 02/11] bpf: fix memory leak in lpm_trie map_free callback function

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Yonghong Song [ upstream commit 9a3efb6b661f71d5675369ace9257833f0e78ef3 ] There is a memory leak happening in lpm_trie map_free callback function trie_free. The trie structure itself does not

[PATCH 4.15 08/11] bpf, ppc64: fix out of bounds access in tail call

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit d269176e766c71c998cb75b4ea8cbc321cc0019d ] While working on 16338a9b3ac3 ("bpf, arm64: fix out of bounds access in tail call") I noticed that ppc64 JIT is par

[PATCH 4.15 04/11] bpf, x64: implement retpoline for tail call

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit a493a87f38cfa48caaa95c9347be2d914c6fdf29 ] Implement a retpoline [0] for the BPF tail call JIT'ing that converts the indirect jump via jmp %rax that is used t

[PATCH 4.15 03/11] bpf: fix rcu lockdep warning for lpm_trie map_free callback

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Yonghong Song [ upstream commit 6c5f61023c5b0edb0c8a64c902fe97c6453b1852 ] Commit 9a3efb6b661f ("bpf: fix memory leak in lpm_trie map_free callback function") fixed a memory leak and removed

[PATCH 4.14 7/9] bpf: allow xadd only on aligned memory

2018-03-09 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit ca36960211eb228bcbc7aaebfa0d027368a94c60 ] The requirements around atomic_add() / atomic64_add() resp. their JIT implementations differ across architectures.

[PATCH 4.14 8/9] bpf, ppc64: fix out of bounds access in tail call

2018-03-09 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit d269176e766c71c998cb75b4ea8cbc321cc0019d ] While working on 16338a9b3ac3 ("bpf, arm64: fix out of bounds access in tail call") I noticed that ppc64 JIT is par

[PATCH 4.14 0/9] 4.14.26-stable review

2018-03-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.26 release. There are 9 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 Mon Mar 12 00:18:16 UTC 2018. Anything receive

[PATCH 4.15 01/11] bpf: fix mlock precharge on arraymaps

2018-03-09 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ upstream commit 9c2d63b843a5c8a8d0559cc067b5398aa5ec3ffc ] syzkaller recently triggered OOM during percpu map allocation; while there is work in progress by Dennis Zhou to ad

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