Re: [PATCH 25/26] isdn: eicon: mark divascapi incompatible with kasan

2017-03-03 Thread Andrey Ryabinin
On 03/02/2017 07:38 PM, Arnd Bergmann wrote: > When CONFIG_KASAN is enabled, we have several functions that use rather > large kernel stacks, e.g. > > drivers/isdn/hardware/eicon/message.c: In function 'group_optimization': > drivers/isdn/hardware/eicon/message.c:14841:1: warning: the frame size

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

2017-03-03 Thread Borislav Petkov
On Fri, Mar 03, 2017 at 09:11:52PM +0800, Baoquan He wrote: > And another meaning of defining kernel iamge size and mapping size > differently is we can randomize the limited kernel image in the mapping > area. If they are the same or kernel image can be very large, the > position will be fixed or

[PATCH v3 4/5] staging: rts5208: Remove unnecessary cast on void pointer

2017-03-03 Thread simran singhal
The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: simran singhal --- drivers/staging/rts5208/rtsx_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletio

Re: [PATCH v3 6/6] iio: adc: stm32: add support for EXTI trigger

2017-03-03 Thread Fabrice Gasnier
On 03/03/2017 12:45 PM, Lars-Peter Clausen wrote: > On 02/28/2017 05:51 PM, Fabrice Gasnier wrote: >> EXTi (external interrupt) signal can be routed internally as trigger >> source for ADC conversions: STM32F4 ADC can use EXTI11. >> >> Retrieve interrupt trigger from DT, so it can be muxed into ADC

Re: [PATCH v4] x86/mce: Don't participate in rendezvous process once nmi_shootdown_cpus() was made

2017-03-03 Thread Xunlei Pang
Ping Boris On 02/23/2017 at 09:36 PM, Xunlei Pang wrote: > We met an issue for kdump: after kdump kernel boots up, > and there comes a broadcasted mce in first kernel, the > other cpus remaining in first kernel will enter the old > mce handler of first kernel, then timeout and panic due > to MCE s

[PATCH 03/13] rtc: bq32k: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 3/4] tty/serial: mxs-auart: remove uneeded IS_ERR_OR_NULL calls

2017-03-03 Thread Richard Genoud
Since commit 1d267ea6539f ("serial: mctrl-gpio: simplify init routine"), the mctrl_gpio_to_gpiod() function can't return an error anymore. So, just testing for a NULL pointer is ok. Signed-off-by: Richard Genoud --- drivers/tty/serial/mxs-auart.c | 6 ++ 1 file changed, 2 insertions(+), 4 de

[PATCH 06/13] rtc: ds3232: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 13/13] rtc: rs5c372: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 12/13] rtc: m41t80: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 08/13] rtc: ds1374: Set .of_match_table to OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver has a OF device ID table but the struct i2c_driver .of_match_table field is not set. Signed-off-by: Javier Martinez Canillas --- drivers/rtc/rtc-ds1374.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c index 52429f0a57cc..4cd115

[PATCH 10/13] rtc: s35390a: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

Re: [PATCH 01/26] compiler: introduce noinline_for_kasan annotation

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 2:55 PM, Alexander Potapenko wrote: > On Fri, Mar 3, 2017 at 2:50 PM, Andrey Ryabinin > wrote: >>> @@ -416,6 +416,17 @@ static __always_inline void __write_once_size(volatile >>> void *p, void *res, int s >>> */ >>> #define noinline_for_stack noinline >>> >>> +/* >>>

[PATCH 11/13] rtc: rx8581: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 07/13] rtc: rtc-ds1672: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 09/13] rtc: isl1208: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 02/13] rtc: rv3029: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 04/13] rtc: ds1307: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 05/13] rtc: rx8010: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 01/13] rtc: rv8803: Add OF device ID table

2017-03-03 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-03 Thread Richard Genoud
Since commit 1d267ea6539f ("serial: mctrl-gpio: simplify init routine"), the mctrl_gpio_to_gpiod() function can't return an error anymore. So, just testing for a NULL pointer is ok. Signed-off-by: Richard Genoud --- drivers/tty/serial/sh-sci.c | 12 +--- 1 file changed, 5 insertions(+),

[PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it

2017-03-03 Thread Javier Martinez Canillas
Hello, This series add OF device ID tables to RTC I2C drivers whose devices are either used in Device Tree source files or are listed in binding docs as a compatible string. That's done because the plan is to change the I2C core to report proper OF modaliases instead of always reporting a MODALIA

Re: [PATCH 01/26] compiler: introduce noinline_for_kasan annotation

2017-03-03 Thread Alexander Potapenko
On Fri, Mar 3, 2017 at 3:30 PM, Arnd Bergmann wrote: > On Fri, Mar 3, 2017 at 2:55 PM, Alexander Potapenko wrote: >> On Fri, Mar 3, 2017 at 2:50 PM, Andrey Ryabinin >> wrote: > @@ -416,6 +416,17 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s

Re: [PATCH] HID: hid-multitouch: change for touch height/width

2017-03-03 Thread Benjamin Tissoires
On Mar 03 2017 or thereabouts, hn.c...@weidahitech.com wrote: > From: HungNien Chen > > This change is from Jonathan Clarke and have been discussed in previous > thread(2017/01/24). Just doing a slight change in quirk name from Benjamin's > comment. Hi, The patch looks fine now, but this is not

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Guenter Roeck
On 03/02/2017 08:52 PM, Peter Chen wrote: On Thu, Mar 02, 2017 at 08:29:07PM -0800, Guenter Roeck wrote: On 03/02/2017 07:35 PM, Peter Chen wrote: On Tue, Feb 21, 2017 at 05:24:04PM +0300, Heikki Krogerus wrote: +/* --- */ +/* Driver callbacks to report role

Re: [PATCH 1/3] firmware: dmi_scan: Add dmi_product_name kernel cmdline option

2017-03-03 Thread Hans de Goede
Hi, On 03-03-17 10:24, Jean Delvare wrote: Hi Hans, On Sat, 25 Feb 2017 18:23:55 +0100, Hans de Goede wrote: Unfortunately some firmware has all the DMI strings filled with: "Default String" (or something equally useless). This makes it impossible to apply DMI based quirks to certain machines.

Re: [PATCH v2 6/9] kasan: improve slab object description

2017-03-03 Thread Andrey Ryabinin
On 03/03/2017 04:52 PM, Alexander Potapenko wrote: > On Fri, Mar 3, 2017 at 2:31 PM, Andrey Ryabinin > wrote: >> On 03/02/2017 04:48 PM, Andrey Konovalov wrote: >>> Changes slab object description from: >>> >>> Object at 880068388540, in cache kmalloc-128 size: 128 >>> >>> to: >>> >>> The b

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Heikki Krogerus
Hi Peter, On Fri, Mar 03, 2017 at 11:35:29AM +0800, Peter Chen wrote: > On Tue, Feb 21, 2017 at 05:24:04PM +0300, Heikki Krogerus wrote: > > +/* --- */ > > +/* Driver callbacks to report role updates */ > > + > > +/** > > + * typec_set_data_role - Report data ro

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Heikki Krogerus
Hi, On Fri, Mar 03, 2017 at 08:29:18AM +0100, Mats Karrman wrote: > On 2017-03-03 04:13, Guenter Roeck wrote: > > > On 03/02/2017 07:22 AM, Mats Karrman wrote: > > > > > > Looking forward, one thing I have run into is how to connect the typec > > > driver with a > > > driver for an alternat

Re: [PATCH v3] lockdep: Teach lockdep about memalloc_noio_save

2017-03-03 Thread Peter Zijlstra
On Fri, Mar 03, 2017 at 09:37:24AM +0100, Michal Hocko wrote: > Btw. can I assume your Acked-by? Yeah, Acked-by: Peter Zijlstra (Intel)

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Guenter Roeck
On 03/02/2017 11:29 PM, Mats Karrman wrote: On 2017-03-03 04:13, Guenter Roeck wrote: On 03/02/2017 07:22 AM, Mats Karrman wrote: Looking forward, one thing I have run into is how to connect the typec driver with a driver for an alternate mode. E.g. the DisplayPort Alternate Mode specifi

[PATCH v6 0/4] drm/dp: Implement CRC debugfs API

2017-03-03 Thread Tomeu Vizoso
Hi, this series builds up on the API for exposing captured CRCs through debugfs. It adds new DP helpers for starting and stopping CRC capture and gets the Rockchip driver to use it. With these patches, tests in IGT such as kms_pipe_crc_basic and kms_plane do pass on RK3288. In this v6, the back

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-03 Thread Benjamin Gaignard
2017-03-03 11:27 GMT+01:00 Daniel Vetter : > On Fri, Mar 03, 2017 at 11:04:33AM +0100, Daniel Vetter wrote: >> On Thu, Mar 02, 2017 at 01:44:32PM -0800, Laura Abbott wrote: >> > Hi, >> > >> > There's been some recent discussions[1] about Ion-like frameworks. There's >> > apparently interest in just

[PATCH 1/4] tty/serial: atmel: move atmel_serial header into driver directory

2017-03-03 Thread Richard Genoud
atmel_serial.h is only used by atmel_serial.c, so there's no need for it to lie in include/linux. Suggested-by: Joe Perches Signed-off-by: Richard Genoud --- MAINTAINERS | 2 +- drivers/tty/serial/atmel_serial.c| 2 +- {include/linux

[PATCH v3] clk: imx: clk-imx6ul: The i.mx6ul has no aips_tz3 clock

2017-03-03 Thread Robin van der Gracht
The clock was mapped on CG15 (gpio2_clocks) in the CCRG0 register. Reviewed-by: Fabio Estevam Signed-off-by: Robin van der Gracht --- Fixed another title typo in v3 drivers/clk/imx/clk-imx6ul.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx

[for-next][PATCH 0/7] tracing: Fixes for 4.11

2017-03-03 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 65a50c656276b0846bea09dd011c0a3d35b77f3e Boris Ostrovsky (1): jump_label: Fix anonymous union initialization Chunyu Hu (1): tracing: Fix code comment for ftrace_ops_get_func() David Daney (1

[for-next][PATCH 2/7] ftrace/graph: Do not modify the EMPTY_HASH for the function_graph filter

2017-03-03 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" On boot up, if the kernel command line sets a graph funtion with the kernel command line options "ftrace_graph_filter" or "ftrace_graph_notrace" then it updates the corresponding function graph hash, ftrace_graph_hash or ftrace_graph_notrace_hash respectively. Unfo

[for-next][PATCH 1/7] tracing: Fix code comment for ftrace_ops_get_func()

2017-03-03 Thread Steven Rostedt
From: Chunyu Hu There is no function 'ftrace_ops_recurs_func' existing in the current code, it was renamed to ftrace_ops_assist_func() in commit c68c0fa29341 ("ftrace: Have ftrace_ops_get_func() handle RCU and PER_CPU flags too"). Update the comment to the correct function name. Link: http://lk

[for-next][PATCH 6/7] tracing: Add #undef to fix compile error

2017-03-03 Thread Steven Rostedt
From: Rik van Riel There are several trace include files that define TRACE_INCLUDE_FILE. Include several of them in the same .c file (as I currently have in some code I am working on), and the compile will blow up with a "warning: "TRACE_INCLUDE_FILE" redefined #define TRACE_INCLUDE_FILE syscall

[for-next][PATCH 7/7] ftrace/graph: Add ftrace_graph_max_depth kernel parameter

2017-03-03 Thread Steven Rostedt
From: Todd Brandt Early trace callgraphs can be extremely large on systems with several seconds of boot time. The max_depth parameter limits how deep the graph trace goes and reduces the output size. This parameter is the same as the max_graph_depth file in tracefs. Link: http://lkml.kernel.org

[for-next][PATCH 5/7] jump_label: Add comment about initialization order for anonymous unions

2017-03-03 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Commit 3821fd35b58d ("jump_label: Reduce the size of struct static_key") broke old compilers that could not handle static initialization of anonymous unions. Boris fixed it with a patch that added brackets around the static initializer. But this creates a dependenc

[for-next][PATCH 4/7] jump_label: Fix anonymous union initialization

2017-03-03 Thread Steven Rostedt
From: Boris Ostrovsky Pre-4.6 gcc do not allow direct static initialization of members of anonymous structs/unions. After commit 3821fd35b58d ("jump_label: Reduce the size of struct static_key") STATIC_KEY_INIT_{TRUE|FALSE} definitions cannot be compiled with those older compilers. Placing initi

[for-next][PATCH 3/7] module: set __jump_table alignment to 8

2017-03-03 Thread Steven Rostedt
From: David Daney For powerpc the __jump_table section in modules is not aligned, this causes a WARN_ON() splat when loading a module containing a __jump_table. Strict alignment became necessary with commit 3821fd35b58d ("jump_label: Reduce the size of struct static_key"), currently in linux-nex

Re: [linux-sunxi] Re: [PATCH 2/3] clk: sunxi-ng: add support for PRCM CCUs

2017-03-03 Thread maxime.rip...@free-electrons.com
On Thu, Mar 02, 2017 at 11:13:53PM +0800, Icenowy Zheng wrote: > > > 02.03.2017, 22:09, "Maxime Ripard" : > > On Wed, Mar 01, 2017 at 08:22:13PM +0800, Icenowy Zheng wrote: > >>  > I'm a bit worried by that to be honest. You claim to support the A31, > >>  > yet jugdging by the current state of t

mm: use-after-free in zap_page_range

2017-03-03 Thread Dmitry Vyukov
Hello, Yesterday Andrea helped me to extend syzkaller descriptions to accommodate the new userfaultfd features: https://github.com/google/syzkaller/commit/e7fc37e3cc9909ac38afc13e4f00c299d05cabf5 And here we go. UFFDIO_API seems to be necessary to trigger this. If you add new APIs don't neglect to

[PATCH 02/10] Updated max98927_reg table with physical defaults. Replaced max98927.h for better legibility

2017-03-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Some register values in 'max98927_reg_map' table was not physical default. Random mix of strangely formatted #defines and numbers was fixed. Reclassified register definition in 'max98927.h' for better legibility. Unused definition has been removed, too. sound/soc/cod

Re: [PATCH 3/4] watchodg: sama5d4: simplify probe

2017-03-03 Thread Guenter Roeck
On 03/03/2017 01:29 AM, Alexandre Belloni wrote: On 03/03/2017 at 09:03:25 +0100, Thomas Petazzoni wrote: On Thu, 2 Mar 2017 18:31:13 +0100, Alexandre Belloni wrote: + irq = irq_of_parse_and_map(pdev->dev.of_node, 0); Any reason to use irq_of_parse_and_map() over the more conventional

Re: [PATCH 26/26] kasan: rework Kconfig settings

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 3:51 PM, Andrey Ryabinin wrote: > > > On 03/02/2017 07:38 PM, Arnd Bergmann wrote: > >> >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >> index 97d62c2da6c2..27c838c40a36 100644 >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -216,10 +216,9 @@ config ENABL

Re: [PATCH 2/3] mmc: sdhci-acpi: Check device status before calling fix_up_power()

2017-03-03 Thread Jean Delvare
Hi Hans, Adrian, On Sat, 25 Feb 2017 18:23:56 +0100, Hans de Goede wrote: > Calling acpi_device_fix_up_power() on a device which is not present > is not a good idea. How bad is it? This was introduced by commit e5bbf30733f9, which was backported to several stable branches. If it causes real trou

Re: Conversion of w83627ehf to hwmon_device_register_with_info ?

2017-03-03 Thread Jean Delvare
Hi Peter, On Fri, 3 Mar 2017 01:33:01 +0100, Peter Hüwe wrote: > is anybody else working on the conversion of the w83627ehf to the new > hwmon_device_register_with_info interface? Not me. -- Jean Delvare SUSE L3 Support

Re: [PATCH 25/26] isdn: eicon: mark divascapi incompatible with kasan

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 3:20 PM, Andrey Ryabinin wrote: > > > On 03/02/2017 07:38 PM, Arnd Bergmann wrote: >> When CONFIG_KASAN is enabled, we have several functions that use rather >> large kernel stacks, e.g. >> >> drivers/isdn/hardware/eicon/message.c: In function 'group_optimization': >> driver

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

2017-03-03 Thread Baoquan He
On 03/03/17 at 11:07pm, Baoquan He wrote: > On 03/03/17 at 03:28pm, Borislav Petkov wrote: > > On Fri, Mar 03, 2017 at 09:11:52PM +0800, Baoquan He wrote: > > > And another meaning of defining kernel iamge size and mapping size > > > differently is we can randomize the limited kernel image in the m

Re: [PATCH 26/26] kasan: rework Kconfig settings

2017-03-03 Thread Andrey Ryabinin
On 03/02/2017 07:38 PM, Arnd Bergmann wrote: > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 97d62c2da6c2..27c838c40a36 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -216,10 +216,9 @@ config ENABLE_MUST_CHECK > config FRAME_WARN > int "Warn for stack fram

Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it

2017-03-03 Thread Alexandre Belloni
Hi, On 03/03/2017 at 11:29:11 -0300, Javier Martinez Canillas wrote: > This series add OF device ID tables to RTC I2C drivers whose devices are > either used in Device Tree source files or are listed in binding docs as > a compatible string. > > That's done because the plan is to change the I2C c

Re: [PATCH 01/26] compiler: introduce noinline_for_kasan annotation

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 3:33 PM, Alexander Potapenko wrote: > On Fri, Mar 3, 2017 at 3:30 PM, Arnd Bergmann wrote: >> On Fri, Mar 3, 2017 at 2:55 PM, Alexander Potapenko >> wrote: >> >> Would KMSAN also force local variables to be non-overlapping the way that >> asan-stack=1 and -fsanitize-addre

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-03 Thread Chris Metcalf
On 3/3/2017 7:27 AM, Jiri Slaby wrote: There is code duplicated over all architecture's headers for futex_atomic_op_inuser. Namely op decoding, access_ok check for uaddr, and comparison of the result. Remove this duplication and leave up to the arches only the needed assembly which is now in arc

Re: [RFC PATCH 11/12] staging: android: ion: Make Ion heaps selectable

2017-03-03 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 01:44:43PM -0800, Laura Abbott wrote: > > Currently, all heaps are compiled in all the time. In switching to > a better platform model, let's allow these to be compiled out for good > measure. > > Signed-off-by: Laura Abbott I'm not the biggest fan of making everything K

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-03-03 Thread Dmitry Vyukov
On Fri, Mar 3, 2017 at 4:06 PM, Dmitry Vyukov wrote: > On Fri, Mar 3, 2017 at 3:48 PM, Eric Dumazet wrote: >> On Fri, 2017-03-03 at 06:32 -0800, Eric Dumazet wrote: >>> On Fri, 2017-03-03 at 15:11 +0100, Dmitry Vyukov wrote: >>> > On Mon, Feb 13, 2017 at 11:29 PM, Cong Wang >>> > wrote: >>> > >

Re: [tpmdd-devel] [PATCH v2] tpm: do not suspend/resume if power stays on

2017-03-03 Thread Jarkko Sakkinen
On Thu, Mar 02, 2017 at 04:42:57PM +0100, Enric Balletbo i Serra wrote: > From: Sonny Rao > > The suspend/resume behavior of the TPM can be controlled by setting > "powered-while-suspended" in the DTS. This is useful for the cases > when hardware does not power-off the TPM. > > Signed-off-by: So

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

2017-03-03 Thread Baoquan He
On 03/03/17 at 03:28pm, Borislav Petkov wrote: > On Fri, Mar 03, 2017 at 09:11:52PM +0800, Baoquan He wrote: > > And another meaning of defining kernel iamge size and mapping size > > differently is we can randomize the limited kernel image in the mapping > > area. If they are the same or kernel im

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-03-03 Thread Eric Dumazet
On Fri, 2017-03-03 at 16:06 +0100, Dmitry Vyukov wrote: > Something that compiles is definitely better :) > Reapplied. Just to be clear : This is not the proper patch. This only reduces the race. bh_lock_sock() does not prevent a user process from owning the socket. We need another protection,

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-03-03 Thread Eric Dumazet
On Fri, 2017-03-03 at 06:32 -0800, Eric Dumazet wrote: > On Fri, 2017-03-03 at 15:11 +0100, Dmitry Vyukov wrote: > > On Mon, Feb 13, 2017 at 11:29 PM, Cong Wang > > wrote: > > > On Mon, Feb 13, 2017 at 11:19 AM, Andrey Konovalov > > > wrote: > > >> Hi, > > >> > > >> I've got the following error

[PATCH v3 3/7] tpm: export tpm2_flush_context_cmd

2017-03-03 Thread Jarkko Sakkinen
Signed-off-by: Jarkko Sakkinen Tested-by: James Bottomley Reviewed-by: James Bottomley --- drivers/char/tpm/tpm.h | 2 ++ drivers/char/tpm/tpm2-cmd.c | 62 + 2 files changed, 31 insertions(+), 33 deletions(-) diff --git a/drivers/char/tpm/tpm.h

Re: [PATCH] scsi: lpfc: replace init_timer by setup_timer

2017-03-03 Thread James Smart
looks good -- james Signed-off-by: James Smart On 3/3/2017 4:45 AM, Jiri Slaby wrote: From: Tomas Jasek This patch shortens every init_timer in lpfc module followed by function and data assignment using setup_timer. This is purely cleanup patch, it does not add new functionality nor remove

Re: [Outreachy kernel] [PATCH 1/3] staging: wlan-ng: Replace "the the " with "the"

2017-03-03 Thread Julia Lawall
You should have a cover letter for the series. julia On Fri, 3 Mar 2017, simran singhal wrote: > This patch replace "the the " with "the". The replacement couldn't be > automated because sometimes the first "the" was meant to be another > word. > > Signed-off-by: simran singhal > --- > drivers

Re: [PATCH 25/26] isdn: eicon: mark divascapi incompatible with kasan

2017-03-03 Thread Andrey Ryabinin
On 03/03/2017 05:54 PM, Arnd Bergmann wrote: > On Fri, Mar 3, 2017 at 3:20 PM, Andrey Ryabinin > wrote: >> >> >> On 03/02/2017 07:38 PM, Arnd Bergmann wrote: >>> When CONFIG_KASAN is enabled, we have several functions that use rather >>> large kernel stacks, e.g. >>> >>> drivers/isdn/hardware/e

[PATCH v3 4/7] tpm: infrastructure for TPM spaces

2017-03-03 Thread Jarkko Sakkinen
Added an ability to virtualize TPM commands into an isolated context that we call a TPM space because the word context is already heavily used in the TPM specification. Both the handle areas and bodies (where necessary) are virtualized. The mechanism works by adding a new parameter struct tpm_spac

[PATCH v3 0/7] in-kernel resource manager

2017-03-03 Thread Jarkko Sakkinen
This patch set adds support for TPM spaces that provide an isolated execution context for transient objects and HMAC and policy sessions. A space is swapped into TPM volatile memory only when it is used and swapped out after the use. There's a test script for trying out TPM spaces in git://git.

[PATCH v3 7/7] tpm2: add session handle context saving and restoring to the space code

2017-03-03 Thread Jarkko Sakkinen
From: James Bottomley Sessions are different from transient objects in that their handles may not be virtualized (because they're used for some hmac calculations). Additionally when a session is context saved, a vestigial memory remains in the TPM and if it is also flushed, that will be lost and

[PATCH v3 1/7] tpm: move length validation to tpm_transmit()

2017-03-03 Thread Jarkko Sakkinen
Check that the length matches the length reported by the response header already in tpm_transmit() to improve validation. Signed-off-by: Jarkko Sakkinen Tested-by: James Bottomley Reviewed-by: James Bottomley --- drivers/char/tpm/tpm-interface.c | 20 1 file changed, 12 in

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

2017-03-03 Thread Baoquan He
On 03/03/17 at 01:16pm, Borislav Petkov wrote: > On Fri, Mar 03, 2017 at 08:06:16PM +0800, Baoquan He wrote: > > OK, I am trying to make things clearer, seems I failed. I thought kernel > > iamge size is only allowed to be 512M at most, but can be mapped into 1G > > region. > > It doesn't look lik

Re: + mm-reclaim-madv_free-pages.patch added to -mm tree

2017-03-03 Thread Johannes Weiner
On Fri, Mar 03, 2017 at 11:52:37AM +0900, Minchan Kim wrote: > On Tue, Feb 28, 2017 at 04:32:38PM -0800, a...@linux-foundation.org wrote: > > > > The patch titled > > Subject: mm: reclaim MADV_FREE pages > > has been added to the -mm tree. Its filename is > > mm-reclaim-madv_free-pages.

[PATCH v3 6/7] tpm: expose spaces via a device link /dev/tpmrm

2017-03-03 Thread Jarkko Sakkinen
From: James Bottomley Currently the tpm spaces are not exposed to userspace. Make this exposure via a separate device, which can now be opened multiple times because each read/write transaction goes separately via the space. Concurrency is protected by the chip->tpm_mutex for each read/write tr

[PATCH 1/3] staging: wlan-ng: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/wlan-ng/prism2sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stagin

[PATCH] vmw_vmci: handle the return value from pci_alloc_irq_vectors correctly

2017-03-03 Thread Christoph Hellwig
It returns the number of vectors allocated when successful, so check for a negative error only. Fixes: 3bb434cd ("vmw_vmci: switch to pci_irq_alloc_vectors") Signed-off-by: Christoph Hellwig Reported-by: Loïc Yhuel --- drivers/misc/vmw_vmci/vmci_guest.c | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH 3/3] staging: unisys: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

FW: FW: RE: Re: FW: RE: Re: Subject: [PATCH v3] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-03-03 Thread Ajay Kaher
> On Thr, 2 Mar 2017, Ajay Kaher wrote: >> On Wed, 1 Mar 2017, Alan Stern wrote: >>> On Wed, 1 Mar 2017, Ajay Kaher wrote:  On Mon, 22 Feb 2017, Ajay Kaher wrote:   >  >> Alan, as per my understanding I have shifted the lock from >> release_usb_class() to destroy_usb_class() in

[PATCH 1/2] devicetree: add vendor prefix for Winstar Display Corp.

2017-03-03 Thread Richard Genoud
Winstar Display Corp. is specialized in LCD displays for embedded products. cf: http://www.winstar.com.tw Signed-off-by: Richard Genoud --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-03-03 Thread Eric Dumazet
On Fri, Mar 3, 2017 at 7:12 AM, Dmitry Vyukov wrote: > The first bot that picked this up started spewing: > > BUG: spinlock recursion on CPU#1, syz-executor2/9452 Yes. The bug is not about locking the listener, but protecting fields of struct dccp_request_sock I will provide a patch, once I reac

[PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD

2017-03-03 Thread Richard Genoud
This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT LCD panel, which can be supported by the simple panel driver. Signed-off-by: Richard Genoud --- .../bindings/display/panel/winstar,wf35ltiacd | 7 ++ drivers/gpu/drm/panel/panel-simple.c | 28 +

[PATCH 01/10] ALSA SoC MAX98927 driver - Initial release

2017-03-03 Thread Ryan Lee
From: Ryan Lee Signed-off-by: Ryan Lee --- Initial release of ALSA SoC MAX98927 driver. .../devicetree/bindings/sound/max98927.txt | 32 + sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/max98

Re: [PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-03 Thread Steven Rostedt
On Thu, 02 Mar 2017 17:35:31 -0800 Todd Brandt wrote: > > I could toy with the idea, implement it, and see what breaks. > If it was possible that would be great. The reason I ask is because I've > implemented a tool called analyze_boot which I intend to upgrade to use > early callgraph trace (i

[PATCH v2 1/3] staging: wlan-ng: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/wlan-ng/prism2sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stagin

[PATCH 2/3] staging: rtl8192u: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] drm/arcpgu: Get rid of "encoder-slave" property

2017-03-03 Thread Alexey Brodkin
We used to use "encoder-slave" property in PGU's Device Tree node to refer to the encoder, but since there's a way to find it with some code smarts we get rid of obviously extra complication in PGU node. Again inspired by ARM's HDLCD code. Signed-off-by: Alexey Brodkin Cc: Liviu Dudau Cc: Danie

[PATCH v3 5/7] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-03-03 Thread Jarkko Sakkinen
From: James Bottomley Signed-off-by: James Bottomley Tested-by: Jarkko Sakkinen Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/Makefile | 2 +- drivers/char/tpm/tpm-dev-common.c | 148 ++ drivers/char/tpm/tpm-dev

[PATCH v3 2/7] tpm: validate TPM 2.0 commands

2017-03-03 Thread Jarkko Sakkinen
Check for every TPM 2.0 command that the command code is supported and the command buffer has at least the length that can contain the header and the handle area. For ContextSave and FlushContext we mark the body to be part of the handle area. This gives validation for these commands at zero cost,

[PATCH 07/17] fs, btrfs: convert btrfs_delayed_node.refs from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH v2 1/3] staging: wlan-ng: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/wlan-ng/prism2sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stagin

[PATCH v2 0/3] Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch series replace "the the " with "the" in various drivers. v2: -Adding cover-letter for the series. simran singhal (3): staging: wlan-ng: Replace "the the " with "the" staging: rtl8192u: Replace "the the " with "the" staging: unisys: Replace "the the " with "the" drivers/stagin

[PATCH v2 2/3] staging: rtl8192u: Replace "the the " with "the"

2017-03-03 Thread simran singhal
This patch replace "the the " with "the". The replacement couldn't be automated because sometimes the first "the" was meant to be another word. Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: Dell Inspiron 5558/0VNM2T and suspend/resume problem with r8169

2017-03-03 Thread Diego Viola
On Wed, Mar 1, 2017 at 12:47 PM, Diego Viola wrote: > On Wed, Mar 1, 2017 at 12:44 PM, Diego Viola wrote: >> My machine (a Dell Inspiron 5558 laptop) fails to resume from suspend >> unless I rmmod r8169 first. >> >> Another workaround is to do this before suspend: >> >> echo 0 > /sys/power/pm_asy

Re: [PATCH 25/26] isdn: eicon: mark divascapi incompatible with kasan

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 4:22 PM, Andrey Ryabinin wrote: > On 03/03/2017 05:54 PM, Arnd Bergmann wrote: >> On Fri, Mar 3, 2017 at 3:20 PM, Andrey Ryabinin >> wrote: >>> On 03/02/2017 07:38 PM, Arnd Bergmann wrote: >>> >>> This is kinda radical solution. >>> Wouldn't be better to just increase -Wfr

[PATCH 08/10] Added DAI Sel Mux and minor updates

2017-03-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- 'DAI Sel Mux' was added. 'max98927_volatile_reg' was added to identify volatile register. sound/soc/codecs/max98927.c | 60 + sound/soc/codecs/max98927.h | 2 -- 2 files changed, 45 insertions(+), 17 deletions(-) diff --gi

[PATCH 10/10] Added vendor prefix. Added range information

2017-03-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Vendor prefix was added. Range information of each propery was added. .../devicetree/bindings/sound/max98927.txt | 33 +- sound/soc/codecs/max98927.c| 8 -- 2 files changed, 25 insertions(+), 16 deletions(-) di

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-03-03 Thread Dmitry Vyukov
On Fri, Mar 3, 2017 at 3:32 PM, Eric Dumazet wrote: >> > On Mon, Feb 13, 2017 at 11:19 AM, Andrey Konovalov >> > wrote: >> >> Hi, >> >> >> >> I've got the following error report while fuzzing the kernel with >> >> syzkaller. >> >> >> >> On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. >> >> >

Re: [PATCH 0/4] blk-mq: cleanup on all kinds of kobjects

2017-03-03 Thread Jens Axboe
On 02/22/2017 03:13 AM, Ming Lei wrote: > This patchset cleans up on kojects of request_queue.mq_kobj, > sw queue's kobject and hw queue's kobject. > > The 1st patch initialized kobject of request_queue and sw queue > in blk_mq_init_allocated_queue(), so we can avoid to initialize > these kobjects

[PATCH 09/10] Added ACPI support. Changed snd_kcontrol_chip to snd_soc_kcontrol_codec

2017-03-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- snd_kcontrol_chip was changed to snd_soc_kcontrol_codec. acpi_match_table was added. sound/soc/codecs/max98927.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c i

[PATCH 03/10] Removed the secondary device initialization from the primary device initialization. Removed manual register configuration from devicetree

2017-03-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Keeping seperate regmaps for each instance of the amplifier was not good idea. So this part has been removed. Manual register configuration from devicetree was also removed. sound/soc/codecs/max98927.c | 223 +++- sound/soc/cod

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-03 Thread Arnd Bergmann
I opened requests on both gcc and llvm, but it looks like there is no easy way to get a warning here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79828 https://bugs.llvm.org/show_bug.cgi?id=32126 Arnd

<    1   2   3   4   5   6   7   8   >