Re: [PATCH net-next 1/3] net: stmmac: Fallback to VLAN Perfect filtering if HASH is not available

2019-10-06 Thread kbuild test robot
Hi Jose, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Jose-Abreu/net-stmmac-Improvements-for-next/20191007-013324 reproduce: # apt-get install sparse # sparse version: v0.6.1-rc1-42

Linux 5.4-rc2

2019-10-06 Thread Linus Torvalds
Back to the usual Sunday afternoon schedule, and -rc2 is out. Nothing particularly stands out here. It's roughly one third arch updates, one third drivers, and one third "misc" (kvm selftests, networking, filesystems, core kernel, header files etc). No real theme, just random fixes all over the pl

Re: [PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Al Viro
On Sun, Oct 06, 2019 at 07:49:03PM +0100, Jules Irenge wrote: [mA vs. MA] Table 5. SI prefixes Factor NameSymbol 10^6megaM 10^-3 milli m Confusing one for another (especially for electrical units) can be... spectacular. FYI, 1mA is more or less what you get if you li

Re: MAP_FIXED_NOREPLACE appears to break older i386 binaries

2019-10-06 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 11:07 AM Linus Torvalds wrote: > > Yes, we should get this fixed. But I continue to ask you to point to > the actual binaries for testing.. Just to bring the resolution back publicly to lkml after rmk sent me test binaries in private email, the end result is commit b212921b

[PATCH] staging: rtl8712: align arguments with open parenthesis

2019-10-06 Thread Gabriela Bittencourt
Cleans up checks of "Alignment should match open parenthesis" Signed-off-by: Gabriela Bittencourt --- drivers/staging/rtl8712/recv_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c index 70a4dc

[PATCH] staging: rtl8712: align block comments

2019-10-06 Thread Gabriela Bittencourt
Cleans up warnings of "Block comments should align the * on each line" Signed-off-by: Gabriela Bittencourt --- drivers/staging/rtl8712/recv_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c

Re: [PATCH v6 01/10] mm/memunmap: Don't access uninitialized memmap in memunmap_pages()

2019-10-06 Thread David Hildenbrand
On 06.10.19 21:58, Damian Tometzki wrote: > Hello David, > > patch 05/10 is missing in the patch series. > Hi Damian, not really. Could be that lkml is slow today. E.g., check https://marc.info/?l=linux-mm&m=157035222620403&w=2 and especially https://marc.info/?l=linux-mm&m=157035225120440&

[PATCH v5 2/3] docs: driver-api: generic-counter: Update Count and Signal data types

2019-10-06 Thread William Breathitt Gray
Count data is now always represented as an unsigned integer, while Signal data is either SIGNAL_LOW or SIGNAL_HIGH. In addition, clarification changes and additions are made to better explain the theory of the Generic Counter interface and its use. Signed-off-by: William Breathitt Gray --- Docum

[PATCH v5 3/3] counter: Fix typo in action_get description

2019-10-06 Thread William Breathitt Gray
The action_get callback returns a Synapse's action mode. Signed-off-by: William Breathitt Gray --- include/linux/counter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/counter.h b/include/linux/counter.h index 32fb4d8cc3fd..9dbd5df4cd34 100644 --- a/include/l

[PATCH v5 0/3] Simplify count_read/count_write/signal_read

2019-10-06 Thread William Breathitt Gray
Changes in v5: - Add changes and additions to generic-counter.rst to clarify theory and use of the Generic Counter interface - Fix typo in counter.h action_get description comment The changes in this patchset will not affect the userspace interface. Rather, these changes are intended to simpl

[PATCH v5 1/3] counter: Simplify the count_read and count_write callbacks

2019-10-06 Thread William Breathitt Gray
The count_read and count_write callbacks are simplified to pass val as unsigned long rather than as an opaque data structure. The opaque counter_count_read_value and counter_count_write_value structures, counter_count_value_type enum, and relevant counter_count_read_value_set and counter_count_writ

[PATCH] staging: vt6656: remove duplicated blank line

2019-10-06 Thread Gabriela Bittencourt
Cleans up checks of "don't use multiple blank line" Signed-off-by: Gabriela Bittencourt --- drivers/staging/vt6656/main_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 856ba97aec4f..a1884b5cc915 100644 --- a/dr

Re: [PATCH v6 01/10] mm/memunmap: Don't access uninitialized memmap in memunmap_pages()

2019-10-06 Thread Damian Tometzki
Hello David, patch 05/10 is missing in the patch series. On Sun, 06. Oct 10:56, David Hildenbrand wrote: > From: "Aneesh Kumar K.V" > > With an altmap, the memmap falling into the reserved altmap space are > not initialized and, therefore, contain a garbage NID and a garbage > zone. Make sure

Re: [PATCH v10 12/16] leds: lp55xx: Add multicolor framework support to lp55xx

2019-10-06 Thread Jacek Anaszewski
Dan, On 10/1/19 4:56 PM, Dan Murphy wrote: > Add multicolor framework support for the lp55xx family. > > Signed-off-by: Dan Murphy > --- > drivers/leds/Kconfig | 1 + > drivers/leds/leds-lp55xx-common.c | 169 +++--- > drivers/leds/leds-lp55xx-comm

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-10-06 Thread Vicente Bergas
On Saturday, October 5, 2019 2:52:00 AM CEST, Vivek Unune wrote: On Fri, Oct 04, 2019 at 11:45:08PM +0200, Heiko Stuebner wrote: Hi Vivek, Am Montag, 30. September 2019, 01:46:15 CEST schrieb Vivek Unune: ... Hi Heiko, I tested the c09b73cf patch without modifying exsisting dts. I can confir

Re: [PATCH] pwm: Fix kerneldoc for apply operation

2019-10-06 Thread Uwe Kleine-König
Hello, On Sat, Oct 05, 2019 at 09:43:26PM -0700, Bjorn Andersson wrote: > As the @state passed to apply() is now const the comment in the > kerneldoc about drivers being expected to adjust the parameters is no > longer valid. Update it to reflect the API change. > > Fixes: 71523d1812ac ("pwm: Ens

[PATCH] staging: vt6656: reorganize characters so the lines are under 80 ch

2019-10-06 Thread Gabriela Bittencourt
Cleans up warnings of "line over 80 characters" Signed-off-by: Gabriela Bittencourt --- drivers/staging/vt6656/rxtx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index c7522841c8cf..922872b62994 100644

Re: [PATCH 0/2] extcon: axp288: Move to swnodes

2019-10-06 Thread Hans de Goede
Hi, On 01-10-2019 12:51, Heikki Krogerus wrote: Hi Hans, That AXP288 extcon driver is the last that uses build-in connection description. I'm replacing it with a code that finds the role mux software node instead. I'm proposing also here a little helper usb_role_switch_find_by_fwnode() that us

Re: [PATCH v3 3/4] HID: logitech: Add feature 0x0001: FeatureSet

2019-10-06 Thread Mazin Rezk
On Sunday, October 6, 2019 11:25 AM, Filipe Laíns wrote: > On Sun, 2019-10-06 at 01:04 +, Mazin Rezk wrote: > > This patch adds support for the 0x0001 (FeatureSet) feature. This feature > > is used to look up the feature ID of a feature index on a device and list > > the total count of featur

Re: [PATCH v3 1/4] HID: logitech: Add MX Mice over Bluetooth

2019-10-06 Thread Mazin Rezk
On Sunday, October 6, 2019 11:07 AM, Filipe Laíns wrote: > On Sun, 2019-10-06 at 01:04 +, Mazin Rezk wrote: > > > This patch adds support for several MX mice over Bluetooth. The device IDs > > have been copied from the libratbag device database and their features > > have been based on their

Re: [PATCH v15 13/14] gpio: max3191x: Utilize the for_each_set_clump8 macro

2019-10-06 Thread kbuild test robot
pecify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/William-Breathitt-Gray/Introduce-the-for_each_set_clump8-macro/20191006-032112 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git

Re: [PATCH] nvme-pci: Shutdown when removing dead controller

2019-10-06 Thread Keith Busch
On Fri, Oct 04, 2019 at 11:36:42AM -0400, Tyler Ramer wrote: > Here's a failure we had which represents the issue the patch is > intended to solve: > > Aug 26 15:00:56 testhost kernel: nvme nvme4: async event result 00010300 > Aug 26 15:01:27 testhost kernel: nvme nvme4: controller is down; will >

Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER

2019-10-06 Thread Andy Lutomirski
On Fri, Sep 27, 2019 at 1:58 PM Andy Lutomirski wrote: > > On Tue, Sep 3, 2019 at 3:27 PM Palmer Dabbelt wrote: > > > > On Wed, 28 Aug 2019 10:52:05 PDT (-0700), l...@amacapital.net wrote: > > > > > > > > >> On Aug 25, 2019, at 2:59 PM, Kees Cook wrote: > > >> > > >>> On Thu, Aug 22, 2019 at 01:

[PATCH] media: vimc: Make capture devices and subdevices use different link_validates

2019-10-06 Thread Nícolas F . R . A . Prado
Instead of validating the links to capture devices and subdevices with the same function, use the default v4l function for links between subdevices and only use a different function for validating between capture device and subdevice. This change should also ease future work to associate multiple m

Re: [PATCH v2 -next] ASoc: tas2770: Fix build error without GPIOLIB

2019-10-06 Thread Ladislav Michl
Hi Michał, On Sun, Oct 06, 2019 at 05:31:58PM +0200, mirq-li...@rere.qmqm.pl wrote: > On Sun, Oct 06, 2019 at 06:46:31PM +0800, YueHaibing wrote: > > If GPIOLIB is not set, building fails: > > > > sound/soc/codecs/tas2770.c: In function tas2770_reset: > > sound/soc/codecs/tas2770.c:38:3: error: i

[PATCH] staging: vt6656: align arguments with open parenthesis

2019-10-06 Thread Gabriela Bittencourt
Cleans up CHECKs of "Alignment should match open parenthesis" Signed-off-by: Gabriela Bittencourt --- drivers/staging/vt6656/rxtx.c | 63 +++ 1 file changed, 41 insertions(+), 22 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxt

Re: [PATCH] staging: comedi: Fix camelcase check warning

2019-10-06 Thread Greg KH
On Sun, Oct 06, 2019 at 07:44:53PM +0100, Jules Irenge wrote: > Capitalize unit_ma to fix camelcase check warning. > > Signed-off-by: Jules Irenge > --- > drivers/staging/comedi/comedi.h| 4 ++-- > drivers/staging/comedi/comedidev.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Greg KH
On Sun, Oct 06, 2019 at 07:49:03PM +0100, Jules Irenge wrote: > Capitalize RANGE_mA to fix camelcase check warning. > Issue reported by checkpatch.pl > > Signed-off-by: Jules Irenge > --- > drivers/staging/comedi/comedidev.h | 2 +- > drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++

Re: [Outreachy kernel] [PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Greg KH
On Sun, Oct 06, 2019 at 09:01:09PM +0200, Julia Lawall wrote: > > > On Sun, 6 Oct 2019, Jules Irenge wrote: > > > Capitalize RANGE_mA to fix camelcase check warning. > > Issue reported by checkpatch.pl > > I guess mA means something, so it would be better to keep it? Yes it does, we need to ke

Re: [Outreachy kernel] [PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Julia Lawall
On Sun, 6 Oct 2019, Jules Irenge wrote: > Capitalize RANGE_mA to fix camelcase check warning. > Issue reported by checkpatch.pl I guess mA means something, so it would be better to keep it? julia > > Signed-off-by: Jules Irenge > --- > drivers/staging/comedi/comedidev.h | 2 +- >

Re: [PATCH v4 2/2] docs: driver-api: generic-counter: Update Count and Signal data types

2019-10-06 Thread William Breathitt Gray
On Sun, Oct 06, 2019 at 01:41:42PM -0500, David Lechner wrote: > On 10/6/19 11:03 AM, William Breathitt Gray wrote: > > Count data is now always represented as an unsigned integer, while > > Signal data is either SIGNAL_LOW or SIGNAL_HIGH. > > > > Signed-off-by: William Breathitt Gray > > --- > >

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging/com

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging/com

[PATCH] staging: comedi: Fix camelcase check warning

2019-10-06 Thread Jules Irenge
Capitalize unit_ma to fix camelcase check warning. Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedi.h| 4 ++-- drivers/staging/comedi/comedidev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comed

Re: [PATCH 3/4] dma-mapping: introduce a dma_common_find_pages helper

2019-10-06 Thread Christoph Hellwig
Hi Geert, please try Linus' current tree. It has a fix from Andrey Smirnov for what looks the same problem that you reported.

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging/com

[PATCH RFC net-next 1/2] drivers: net: virtio_net: Add tx_timeout stats field

2019-10-06 Thread jcfaracco
From: Julio Faracco For debug purpose of TX timeout events, a tx_timeout entry was added to monitor this special case: when dev_watchdog identifies a tx_timeout and throw an exception. We can both consider this event as an error, but driver should report as a tx_timeout statistic. Signed-off-by:

[PATCH RFC net-next 2/2] drivers: net: virtio_net: Add tx_timeout function

2019-10-06 Thread jcfaracco
From: Julio Faracco To enable dev_watchdog, virtio_net should have a tx_timeout defined (.ndo_tx_timeout). This is only a skeleton to throw a warn message. It notifies the event in some specific queue of device. This function still counts tx_timeout statistic and consider this event as an erro

[PATCH RFC net-next 0/2] drivers: net: virtio_net: Implement

2019-10-06 Thread jcfaracco
From: Julio Faracco Driver virtio_net is not handling error events for TX provided by dev_watchdog. This event is reached when transmission queue is having problems to transmit packets. To enable it, driver should have .ndo_tx_timeout implemented. This serie has two commits: In the past, we i

Re: [PATCH v4 2/2] docs: driver-api: generic-counter: Update Count and Signal data types

2019-10-06 Thread David Lechner
On 10/6/19 11:03 AM, William Breathitt Gray wrote: Count data is now always represented as an unsigned integer, while Signal data is either SIGNAL_LOW or SIGNAL_HIGH. Signed-off-by: William Breathitt Gray --- Documentation/driver-api/generic-counter.rst | 22 +++- 1 file chan

Re: [PATCH v4 1/2] counter: Simplify the count_read and count_write callbacks

2019-10-06 Thread David Lechner
On 10/6/19 11:03 AM, William Breathitt Gray wrote: The count_read and count_write callbacks are simplified to pass val as unsigned long rather than as an opaque data structure. The opaque counter_count_read_value and counter_count_write_value structures, counter_count_value_type enum, and relevan

Re: x86/random: Speculation to the rescue

2019-10-06 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 11:21 AM Pavel Machek wrote: > > > Even without cycle counter... if we _know_ we are trying to generate > entropy and have MMC available, we don't care about power and > performance. > > So we can just... > >issue read request on MMC >while (!interrupt_done) >

Re: [PATCH 4.9 30/47] ANDROID: binder: remove waitqueue when thread exits.

2019-10-06 Thread Greg Kroah-Hartman
On Sun, Oct 06, 2019 at 10:32:02AM -0700, Eric Biggers wrote: > On Sun, Oct 06, 2019 at 07:21:17PM +0200, Greg Kroah-Hartman wrote: > > From: Martijn Coenen > > > > commit f5cb779ba16334b45ba8946d6bfa6d9834d1527f upstream. > > > > binder_poll() passes the thread->wait waitqueue that > > can be s

Re: x86/random: Speculation to the rescue

2019-10-06 Thread Pavel Machek
On Sun 2019-10-06 11:06:38, Linus Torvalds wrote: > On Sun, Oct 6, 2019 at 10:35 AM Pavel Machek wrote: > > > > It will not: boot is now halted because systemd wants some > > entropy. Everything is idle and very little interrupts are > > happening. We have spinning rust, but it is idle, and thus n

Re: [PATCH] iio: imu: adis16480: clean up a condition

2019-10-06 Thread Dan Carpenter
On Sun, Oct 06, 2019 at 09:51:33AM +0100, Jonathan Cameron wrote: > On Thu, 26 Sep 2019 14:36:30 +0300 > Dan Carpenter wrote: > > > On Thu, Sep 26, 2019 at 11:06:39AM +, Ardelean, Alexandru wrote: > > > On Thu, 2019-09-26 at 11:10 +0300, Dan Carpenter wrote: > > > > [External] > > > > > >

Re: [PATCH V2 2/2] serial: 8250_omap: Fix gpio check for auto RTS/CTS

2019-10-06 Thread Yegor Yefremov
On Sun, Oct 6, 2019 at 6:33 PM Adam Ford wrote: > > There are two checks to see if the manual gpio is configured, but > these the check is seeing if the structure is NULL instead it > should check to see if there are CTS and/or RTS pins defined. > > This patch uses checks for those individual pins

Re: [PATCH V2 1/2] serial: mctrl_gpio: Check for NULL pointer

2019-10-06 Thread Yegor Yefremov
On Sun, Oct 6, 2019 at 6:33 PM Adam Ford wrote: > > When using mctrl_gpio_to_gpiod, it dereferences gpios into a single > requested GPIO. This dereferencing can break if gpios is NULL, > so this patch adds a NULL check before dereferencing it. If > gpios is NULL, this function will also return N

Re: MAP_FIXED_NOREPLACE appears to break older i386 binaries

2019-10-06 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 6:09 AM Russell King - ARM Linux admin wrote: > > However, I think it _is_ worth highlighting that we seem to have broken > binary compatibility with older i386 userspace with newer kernels. Yes, we should get this fixed. But I continue to ask you to point to the actual bin

Re: x86/random: Speculation to the rescue

2019-10-06 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 10:35 AM Pavel Machek wrote: > > It will not: boot is now halted because systemd wants some > entropy. Everything is idle and very little interrupts are > happening. We have spinning rust, but it is idle, and thus not > generating any interrupts. Yes, but we have that probl

[PATCH 4.9 31/47] ANDROID: binder: synchronize_rcu() when using POLLFREE.

2019-10-06 Thread Greg Kroah-Hartman
From: Martijn Coenen commit 5eeb2ca02a2f6084fc57ae5c244a38baab07033a upstream. To prevent races with ep_remove_waitqueue() removing the waitqueue at the same time. Reported-by: syzbot+a2a3c4909716e2714...@syzkaller.appspotmail.com Signed-off-by: Martijn Coenen Cc: stable # 4.14+ Signed-off-by

[PATCH 4.9 28/47] ocfs2: wait for recovering done after direct unlock request

2019-10-06 Thread Greg Kroah-Hartman
From: Changwei Ge [ Upstream commit 0a3775e4f883912944481cf2ef36eb6383a9cc74 ] There is a scenario causing ocfs2 umount hang when multiple hosts are rebooting at the same time. NODE1 NODE2 NODE3 send unlock requset to NODE2

[PATCH 4.9 09/47] powerpc/futex: Fix warning: oldval may be used uninitialized in this function

2019-10-06 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 38a0d0cdb46d3f91534e5b9839ec2d67be14c59d ] We see warnings such as: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg;

[PATCH 4.9 34/47] ipv6: drop incoming packets having a v4mapped source address

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 6af1799aaf3f1bc8defedddfa00df3192445bbf3 ] This began with a syzbot report. syzkaller was injecting IPv6 TCP SYN packets having a v4mapped source address. After an unsuccessful 4-tuple lookup, TCP creates a request socket (SYN_RECV) and calls reqsk_queue_has

[PATCH 4.14 23/68] powerpc/64s/exception: machine check use correct cfar for late handler

2019-10-06 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 0b66370c61fcf5fcc1d6901013e110284da6e2bb ] Bare metal machine checks run an "early" handler in real mode before running the main handler which reports the event. The main handler runs exactly as a normal interrupt handler, after the "windup" which sets re

[PATCH 4.14 28/68] dma-buf/sw_sync: Synchronize signal vs syncpt free

2019-10-06 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit d3c6dd1fb30d3853c2012549affe75c930f4a2f9 ] During release of the syncpt, we remove it from the list of syncpt and the tree, but only if it is not already been removed. However, during signaling, we first remove the syncpt from the list. So, if we concurrently

[PATCH 4.9 46/47] smack: use GFP_NOFS while holding inode_smack::smk_lock

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Biggers commit e5bfad3d7acc5702f32aafeb388362994f4d7bd0 upstream. inode_smack::smk_lock is taken during smack_d_instantiate(), which is called during a filesystem transaction when creating a file on ext4. Therefore to avoid a deadlock, all code that takes this lock must use GFP_NOFS,

[PATCH 4.14 19/68] pinctrl: tegra: Fix write barrier placement in pmx_writel

2019-10-06 Thread Greg Kroah-Hartman
From: Sowjanya Komatineni [ Upstream commit c2cf351eba2ff6002ce8eb178452219d2521e38e ] pmx_writel uses writel which inserts write barrier before the register write. This patch has fix to replace writel with writel_relaxed followed by a readback and memory barrier to ensure write operation is co

[PATCH 4.9 37/47] net: Unpublish sk from sk_reuseport_cb before call_rcu

2019-10-06 Thread Greg Kroah-Hartman
From: Martin KaFai Lau [ Upstream commit 8c7138b33e5c690c308b2a7085f6313fdcb3f616 ] The "reuse->sock[]" array is shared by multiple sockets. The going away sk must unpublish itself from "reuse->sock[]" before making call_rcu() call. However, this unpublish-action is currently done after a grac

[PATCH 4.9 41/47] net/rds: Fix error handling in rds_ib_add_one()

2019-10-06 Thread Greg Kroah-Hartman
From: Dotan Barak [ Upstream commit d64bf89a75b65f83f06be9fb8f978e60d53752db ] rds_ibdev:ipaddr_list and rds_ibdev:conn_list are initialized after allocation some resources such as protection domain. If allocation of such resources fail, then these uninitialized variables are accessed in rds_ib_

[PATCH 4.14 24/68] powerpc/pseries: correctly track irq state in default idle

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit 92c94dfb69e350471473fd3075c74bc68150879e ] prep_irq_for_idle() is intended to be called before entering H_CEDE (and it is used by the pseries cpuidle driver). However the default pseries idle routine does not call it, leading to mismanaged lazy irq state when

[PATCH 4.9 42/47] xen-netfront: do not use ~0U as error return value for xennet_fill_frags()

2019-10-06 Thread Greg Kroah-Hartman
From: Dongli Zhang [ Upstream commit a761129e3625688310aecf26e1be9e98e85f8eb5 ] xennet_fill_frags() uses ~0U as return value when the sk_buff is not able to cache extra fragments. This is incorrect because the return type of xennet_fill_frags() is RING_IDX and 0x is an expected value for

[PATCH 4.14 18/68] powerpc/pseries/mobility: use cond_resched when updating device tree

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit ccfb5bd71d3d1228090a8633800ae7cdf42a94ac ] After a partition migration, pseries_devicetree_update() processes changes to the device tree communicated from the platform to Linux. This is a relatively heavyweight operation, with multiple device tree searches, m

[PATCH 4.14 01/68] tpm: migrate pubek_show to struct tpm_buf

2019-10-06 Thread Greg Kroah-Hartman
From: Jarkko Sakkinen commit da379f3c1db0c9a1fd27b11d24c9894b5edc7c75 upstream Migrated pubek_show to struct tpm_buf and cleaned up its implementation. Previously the output parameter structure was declared but left completely unused. Now it is used to refer different fields of the output. We ca

[PATCH 4.14 10/68] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-10-06 Thread Greg Kroah-Hartman
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance degradatio

[PATCH 4.14 21/68] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-10-06 Thread Greg Kroah-Hartman
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still appeare

[PATCH 4.14 25/68] arm64: fix unreachable code issue with cmpxchg

2019-10-06 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 920fdab7b3ce98c14c840261e364f490f3679a62 ] On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined when CONFIG_OPTIMIZE_INLINING is set. Clang then fails a compile-time assertion, because it cannot tell at compile time what the size of the argum

[PATCH 4.14 30/68] i2c-cht-wc: Fix lockdep warning

2019-10-06 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 232219b9a464c2479c98aa589acb1bd3383ae9d6 ] When the kernel is build with lockdep support and the i2c-cht-wc driver is used, the following warning is shown: [ 66.674334] == [ 66.674337] WARNING: possibl

[PATCH 4.14 56/68] nfc: fix memory leak in llcp_sock_bind()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a0c2dc1fe63e2869b74c1c7f6a81d1745c8a695d ] sysbot reported a memory leak after a bind() has failed. While we are at it, abort the operation if kmemdup() has failed. BUG: memory leak unreferenced object 0x888105d83ec0 (size 32): comm "syz-executor067",

[PATCH 4.14 53/68] net: ipv4: avoid mixed n_redirects and rate_tokens usage

2019-10-06 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit b406472b5ad79ede8d10077f0c8f05505ace8b6d ] Since commit c09551c6ff7f ("net: ipv4: use a dedicated counter for icmp_v4 redirect packets") we use 'n_redirects' to account for redirect packets, but we still use 'rate_tokens' to compute the redirect packets expone

[PATCH 4.14 34/68] ARM: 8898/1: mm: Dont treat faults reported from cache maintenance as writes

2019-10-06 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 834020366da9ab3fb87d1eb9a3160eb22dbed63a ] Translation faults arising from cache maintenance instructions are rather unhelpfully reported with an FSR value where the WnR field is set to 1, indicating that the faulting access was a write. Since cache maintenanc

[PATCH 4.14 00/68] 4.14.148-stable review

2019-10-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.148 release. There are 68 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 Tue 08 Oct 2019 05:07:10 PM UTC. Anything re

[PATCH 4.14 27/68] scsi: core: Reduce memory required for SCSI logging

2019-10-06 Thread Greg Kroah-Hartman
From: Bart Van Assche [ Upstream commit dccc96abfb21dc19d69e707c38c8ba439bba7160 ] The data structure used for log messages is so large that it can cause a boot failure. Since allocations from that data structure can fail anyway, use kmalloc() / kfree() instead of that data structure. See also

[PATCH 4.14 48/68] bpf: fix use after free in prog symbol exposure

2019-10-06 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit c751798aa224fadc5124b49eeb38fb468c0fa039 upstream. syzkaller managed to trigger the warning in bpf_jit_free() which checks via bpf_prog_kallsyms_verify_off() for potentially unlinked JITed BPF progs in kallsyms, and subsequently trips over GPF when walking kallsyms e

[PATCH 4.14 04/68] drm/bridge: tc358767: Increase AUX transfer length limit

2019-10-06 Thread Greg Kroah-Hartman
From: Andrey Smirnov [ Upstream commit e0655feaec62d5139b6b13a7b1bbb1ab8f1c2d83 ] According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 appears to be too low. However only up to 15-bytes seem to be actually supported and trying to use 1

[PATCH 4.14 52/68] ipv6: drop incoming packets having a v4mapped source address

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 6af1799aaf3f1bc8defedddfa00df3192445bbf3 ] This began with a syzbot report. syzkaller was injecting IPv6 TCP SYN packets having a v4mapped source address. After an unsuccessful 4-tuple lookup, TCP creates a request socket (SYN_RECV) and calls reqsk_queue_has

[PATCH 4.14 26/68] clk: at91: select parent if main oscillator or bypass is enabled

2019-10-06 Thread Greg Kroah-Hartman
From: Eugen Hristev [ Upstream commit 69a6bcde7fd3fe6f3268ce26f31d9d9378384c98 ] Selecting the right parent for the main clock is done using only main oscillator enabled bit. In case we have this oscillator bypassed by an external signal (no driving on the XOUT line), we still use external clock

[PATCH 4.14 46/68] ocfs2: wait for recovering done after direct unlock request

2019-10-06 Thread Greg Kroah-Hartman
From: Changwei Ge [ Upstream commit 0a3775e4f883912944481cf2ef36eb6383a9cc74 ] There is a scenario causing ocfs2 umount hang when multiple hosts are rebooting at the same time. NODE1 NODE2 NODE3 send unlock requset to NODE2

[PATCH 4.14 32/68] PCI: tegra: Fix OF node reference leak

2019-10-06 Thread Greg Kroah-Hartman
From: Nishka Dasgupta [ Upstream commit 9e38e690ace3e7a22a81fc02652fc101efb340cf ] Each iteration of for_each_child_of_node() executes of_node_put() on the previous node, but in some return paths in the middle of the loop of_node_put() is missing thus causing a reference leak. Hence stash these

[PATCH 4.14 03/68] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-10-06 Thread Greg Kroah-Hartman
From: Vadim Sukhomlinov commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling future TPM operations. TPM 1.2 behavior was different, future TPM operations weren't disabled, causing rare issues. This patch ensures that fu

[PATCH 4.14 31/68] mfd: intel-lpss: Remove D3cold delay

2019-10-06 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit 76380a607ba0b28627c9b4b55cd47a079a59624b ] Goodix touchpad may drop its first couple input events when i2c-designware-platdrv and intel-lpss it connects to took too long to runtime resume from runtime suspended state. This issue happens becuase the touchpad

Re: x86/random: Speculation to the rescue

2019-10-06 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 4:41 AM Pavel Machek wrote: > > Should we have some kind of notifier chain, so that we could utilize > better random sources (spinning rust) if we had them? The spinning rust will get entropy on its own just thanks to the regular interrupt stuff. And the kernel tryin gto do

[PATCH 4.14 58/68] sch_dsmark: fix potential NULL deref in dsmark_init()

2019-10-06 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 474f0813a3002cb299bb73a5a93aa1f537a80ca8 ] Make sure TCA_DSMARK_INDICES was provided by the user. syzbot reported : kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PRE

[PATCH 4.19 012/106] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-10-06 Thread Greg Kroah-Hartman
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance degradatio

[PATCH 4.19 003/106] drm/bridge: tc358767: Increase AUX transfer length limit

2019-10-06 Thread Greg Kroah-Hartman
From: Andrey Smirnov [ Upstream commit e0655feaec62d5139b6b13a7b1bbb1ab8f1c2d83 ] According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 appears to be too low. However only up to 15-bytes seem to be actually supported and trying to use 1

[PATCH 4.14 39/68] PCI: exynos: Propagate errors for optional PHYs

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit ddd6960087d4b45759434146d681a94bbb1c54ad ] devm_of_phy_get() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate devres structures. Propagating only -EPROBE_DEFER is pro

[PATCH 4.14 42/68] fat: work around race with userspaces read via blockdev while mounting

2019-10-06 Thread Greg Kroah-Hartman
From: OGAWA Hirofumi [ Upstream commit 07bfa4415ab607e459b69bd86aa7e7602ce10b4f ] If userspace reads the buffer via blockdev while mounting, sb_getblk()+modify can race with buffer read via blockdev. For example, FS userspace bh = sb_getblk() m

[PATCH 4.19 025/106] powerpc/pseries/mobility: use cond_resched when updating device tree

2019-10-06 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit ccfb5bd71d3d1228090a8633800ae7cdf42a94ac ] After a partition migration, pseries_devicetree_update() processes changes to the device tree communicated from the platform to Linux. This is a relatively heavyweight operation, with multiple device tree searches, m

[PATCH 4.19 029/106] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-10-06 Thread Greg Kroah-Hartman
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still appeare

[PATCH 4.19 019/106] clk: sirf: Dont reference clk_init_data after registration

2019-10-06 Thread Greg Kroah-Hartman
From: Stephen Boyd [ Upstream commit af55dadfbce35b4f4c6247244ce3e44b2e242b84 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH 4.19 016/106] drm/amd/display: reprogram VM config when system resume

2019-10-06 Thread Greg Kroah-Hartman
From: Lewis Huang [ Upstream commit e5382701c3520b3ed66169a6e4aa6ce5df8c56e0 ] [Why] The vm config will be clear to 0 when system enter S4. It will cause hubbub didn't know how to fetch data when system resume. The flip always pending because earliest_inuse_address and request_address are differ

[PATCH 4.19 048/106] MIPS: Ingenic: Disable broken BTB lookup optimization.

2019-10-06 Thread Greg Kroah-Hartman
From: Zhou Yanjie [ Upstream commit 053951dda71ecb4b554a2cdbe26f5f6f9bee9dd2 ] In order to further reduce power consumption, the XBurst core by default attempts to avoid branch target buffer lookups by detecting & special casing loops. This feature will cause BogoMIPS and lpj calculate in error.

[PATCH 4.19 005/106] video: ssd1307fb: Start page range at page_offset

2019-10-06 Thread Greg Kroah-Hartman
From: Marko Kohtala [ Upstream commit dd9782834dd9dde3624ff1acea8859f3d3e792d4 ] The page_offset was only applied to the end of the page range. This caused the display updates to cause a scrolling effect on the display because the amount of data written to the display did not match the range dis

[PATCH 4.19 034/106] drm/amdgpu/si: fix ASIC tests

2019-10-06 Thread Greg Kroah-Hartman
From: Jean Delvare [ Upstream commit 77efe48a729588527afb4d5811b9e0acb29f5e51 ] Comparing adev->family with CHIP constants is not correct. adev->family can only be compared with AMDGPU_FAMILY constants and adev->asic_type is the struct member to compare with CHIP constants. They are separate ide

[PATCH 4.19 062/106] PCI: histb: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 8f9e1641ba445437095411d9fda2324121110d5d ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER i

[PATCH 4.19 054/106] livepatch: Nullify obj->mod in klp_module_coming()s error path

2019-10-06 Thread Greg Kroah-Hartman
From: Miroslav Benes [ Upstream commit 4ff96fb52c6964ad42e0a878be8f86a2e8052ddd ] klp_module_coming() is called for every module appearing in the system. It sets obj->mod to a patched module for klp_object obj. Unfortunately it leaves it set even if an error happens later in the function and the

[PATCH 4.19 007/106] drm/panel: check failure cases in the probe func

2019-10-06 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit afd6d4f5a52c16e1483328ac074abb1cde92c29f ] The following function calls may fail and return NULL, so the null check is added. of_graph_get_next_endpoint of_graph_get_remote_port_parent of_graph_get_remote_port Update: Thanks to Sam Ravnborg, for suggessio

[PATCH 4.19 051/106] mfd: intel-lpss: Remove D3cold delay

2019-10-06 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit 76380a607ba0b28627c9b4b55cd47a079a59624b ] Goodix touchpad may drop its first couple input events when i2c-designware-platdrv and intel-lpss it connects to took too long to runtime resume from runtime suspended state. This issue happens becuase the touchpad

[PATCH 4.19 061/106] PCI: rockchip: Propagate errors for optional regulators

2019-10-06 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 0e3ff0ac5f71bdb6be2a698de0ed0c7e6e738269 ] regulator_get_optional() can fail for a number of reasons besides probe deferral. It can for example return -ENOMEM if it runs out of memory as it tries to allocate data structures. Propagating only -EPROBE_DEFER i

[PATCH 4.19 053/106] HID: wacom: Fix several minor compiler warnings

2019-10-06 Thread Greg Kroah-Hartman
From: Jason Gerecke [ Upstream commit 073b50bccbbf99a3b79a1913604c656d0e1a56c9 ] Addresses a few issues that were noticed when compiling with non-default warnings enabled. The trimmed-down warnings in the order they are fixed below are: * declaration of 'size' shadows a parameter * '%s' direct

[PATCH 4.19 065/106] security: smack: Fix possible null-pointer dereferences in smack_socket_sock_rcv_skb()

2019-10-06 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 3f4287e7d98a2954f20bf96c567fdffcd2b63eb9 ] In smack_socket_sock_rcv_skb(), there is an if statement on line 3920 to check whether skb is NULL: if (skb && skb->secmark != 0) This check indicates skb can be NULL in some cases. But on lines 3931 and 3932, sk

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