[PATCH 4.19 08/30] net: ipv4: use a dedicated counter for icmp_v4 redirect packets

2019-02-21 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c09551c6ff7fe16a79a42133bcecba5fc2fc3291 ] According to the algorithm described in the comment block at the beginning of ip_rt_send_redirect, the host should try to send 'ip_rt_redir

[PATCH 4.4 01/20] net: fix IPv6 prefix route residue

2019-02-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit e75913c93f7cd5f338ab373c34c93a655bd309cb ] Follow those steps: # ip addr add 2001:123::1/32 dev eth0 # ip addr add 2001:123:456::2/64 dev eth0 # ip addr del 2001:123::1/32 dev eth0

[PATCH 3.18 10/13] kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974)

2019-02-21 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit cfa39381173d5f969daf43582c95ad679189cbc9 upstream. kvm_ioctl_create_device() does the following: 1. creates a device that holds a reference to the VM object (with a borrowed

[PATCH 4.19 17/30] net: Add header for usage of fls64()

2019-02-21 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8681ef1f3d295bd3600315325f3b3396d76d02f6 ] Fixes: 3b89ea9c5902 ("net: Fix for_each_netdev_feature on Big endian") Suggested-by: Eric Dumazet Signed-off-by: David S. Miller Signed-o

Re: [PATCH v2 1/2] drm: move i915_kick_out_vgacon to drm_fb_helper

2019-02-21 Thread Jani Nikula
On Thu, 21 Feb 2019, Gerd Hoffmann wrote: > On Thu, Feb 21, 2019 at 03:08:39PM +0200, Jani Nikula wrote: >> On Thu, 21 Feb 2019, Gerd Hoffmann wrote: >> > It'll be useful for other drivers too, so move it to drm_fb_helper.c >> > (and rename it of course). Also add docs. >> > >> > Signed-off-by:

[PATCH 3.18 06/13] vsock: cope with memory allocation failure at socket creation time

2019-02-21 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni [ Upstream commit 225d9464268599a5b4d094d02ec17808e44c7553 ] In the unlikely event that the kmalloc call in vmci_transport_socket_init() fails, we end-up calling vmci_transport_des

[PATCH 4.9 14/20] vxlan: test dev->flags & IFF_UP before calling netif_rx()

2019-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 4179cb5a4c924cd233eaadd081882425bc98f44e ] netif_rx() must be called under a strict contract. At device dismantle phase, core networking clears IFF_UP and flush_

[PATCH 4.19 18/30] tcp: clear icsk_backoff in tcp_write_queue_purge()

2019-02-21 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 04c03114be82194d4a4858d41dba8e286ad1787c ] soukjin bae reported a crash in tcp_v4_err() handling ICMP_DEST_UNREACH after tcp_write_queue_head(sk) returned a NULL pointer. Current lo

[PATCH 3.18 08/13] net: ipv4: use a dedicated counter for icmp_v4 redirect packets

2019-02-21 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Lorenzo Bianconi [ Upstream commit c09551c6ff7fe16a79a42133bcecba5fc2fc3291 ] According to the algorithm described in the comment block at the beginning of ip_rt_send_redirect, the host should

[PATCH 4.9 19/20] mISDN: fix a race in dev_expire_timer()

2019-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit bdcc5bc25548ef6b08e2e43937148f907c212292 upstream. Since mISDN_close() uses dev->pending to iterate over active timers, there is a chance that one timer got removed from the

[PATCH 4.14 15/23] vhost: correctly check the return value of translate_desc() in log_used()

2019-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jason Wang [ Upstream commit 816db7663565cd23f74ed3d5c9240522e3fb0dda ] When fail, translate_desc() returns negative value, otherwise the number of iovs. So we should fail when the return valu

BUG: unable to handle kernel NULL pointer dereference in __generic_file_write_iter

2019-02-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4aa9fc2a435a Revert "mm, memory_hotplug: initialize struct.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1101382f40 kernel config: https://syzkaller.appspot.com/x/.config?x=4fceea9e2d99ac20 da

[PATCH 4.20 12/32] net: stmmac: handle endianness in dwmac4_get_timestamp

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 224babd62d6f19581757a6d8bae3bf9501fc10de ] GMAC IP is little-endian and used on several kind of CPU (big or little endian). Main callbacks functions of the stmmac drivers take care a

[PATCH 4.20 02/32] net: fix IPv6 prefix route residue

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit e75913c93f7cd5f338ab373c34c93a655bd309cb ] Follow those steps: # ip addr add 2001:123::1/32 dev eth0 # ip addr add 2001:123:456::2/64 dev eth0 # ip addr del 2001:123::1/32 dev eth

Re: [PATCH RFC 4/5] sched/topology: Annonate RCU pointers properly

2019-02-21 Thread Joel Fernandes
Hi Peter, Thanks for taking a look. On Thu, Feb 21, 2019 at 10:19:44AM +0100, Peter Zijlstra wrote: > On Thu, Feb 21, 2019 at 12:49:41AM -0500, Joel Fernandes (Google) wrote: > > > Also replace rcu_assign_pointer call on rq->sd with WRITE_ONCE. This > > should be sufficient for the rq->sd initia

[PATCH 4.4 15/20] mfd: as3722: Handle interrupts on suspend

2019-02-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jon Hunter commit 35deff7eb212b661b32177b6043f674fde6314d7 upstream. The as3722 device is registered as an irqchip and the as3722-rtc interrupt is one of it's interrupt sources. When using the

[PATCH 4.14 22/23] mISDN: fix a race in dev_expire_timer()

2019-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit bdcc5bc25548ef6b08e2e43937148f907c212292 upstream. Since mISDN_close() uses dev->pending to iterate over active timers, there is a chance that one timer got removed from th

Re: [PATCH v2 03/13] mm: Add generic p?d_large() macros

2019-02-21 Thread Steven Price
On 21/02/2019 14:28, Kirill A. Shutemov wrote: > On Thu, Feb 21, 2019 at 11:34:52AM +, Steven Price wrote: >> From: James Morse >> >> Exposing the pud/pgd levels of the page tables to walk_page_range() means >> we may come across the exotic large mappings that come with large areas >> of conti

[PATCH 4.20 01/32] dsa: mv88e6xxx: Ensure all pending interrupts are handled prior to exit

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7c0db24cc431e2196d98a5d5ddaa9088e2fcbfe5 ] The GPIO interrupt controller on the espressobin board only supports edge interrupts. If one enables the use of hardware interrupts in the

[PATCH 4.20 05/32] vxlan: test dev->flags & IFF_UP before calling netif_rx()

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 4179cb5a4c924cd233eaadd081882425bc98f44e ] netif_rx() must be called under a strict contract. At device dismantle phase, core networking clears IFF_UP and flush_all_backlogs() is ca

[PATCH 4.20 20/32] net: Do not allocate page fragments that are not skb aligned

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 3bed3cc4156eedf652b4df72bdb35d4f1a2a739d ] This patch addresses the fact that there are drivers, specifically tun, that will call into the network page fragment allocators with buffe

[PATCH 4.20 25/32] scsi: target/core: Use kmem_cache_free() instead of kfree()

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8b2db98e814a5ec45e8800fc22ca9000ae0a517b ] memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree(). Fixes: ad669505c4e9 ("scsi: target/core: Make

[PATCH 4.20 21/32] af_packet: fix raw sockets over 6in4 tunnel

2019-02-21 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 88a8121dc1d3d0dbddd411b79ed236b6b6ea415c ] Since commit cb9f1b783850, scapy (which uses an AF_PACKET socket in SOCK_RAW mode) is unable to send a basic icmp packet over a sit tunnel:

Re: [PATCH v3 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2019 15:14:54 +0100 Pierre Morel wrote: > Libudev relies on having a subsystem link for non-root devices. To > avoid libudev (and potentially other userspace tools) choking on the > matrix device let us introduce a matrix bus and with it the matrix > bus subsytem. Also make the mat

Re: [PATCH v2 1/2] drm: move i915_kick_out_vgacon to drm_fb_helper

2019-02-21 Thread Gerd Hoffmann
> > +int drm_fb_helper_kick_out_vgacon(void); > > + > > Don't you need a dummy version as well for this one, like how it's done > for the other functions, to cover the case when DRM_FBDEV_EMULATION is > not selected? Good question. I guess it makes sense to kick out vgacon even with CONFIG_FB=n.

[PATCH 4.19 04/30] net: crypto set sk to NULL when af_alg_release.

2019-02-21 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 9060cb719e61b685ec0102574e10337fa5f445ea ] KASAN has found use-after-free in sockfs_setattr. The existed commit 6d8c50dcb029 ("socket: close race condition between sock_close() and

[PATCH 4.19 02/30] dsa: mv88e6xxx: Ensure all pending interrupts are handled prior to exit

2019-02-21 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7c0db24cc431e2196d98a5d5ddaa9088e2fcbfe5 ] The GPIO interrupt controller on the espressobin board only supports edge interrupts. If one enables the use of hardware interrupts in the

[PATCH 4.14 18/23] net: Do not allocate page fragments that are not skb aligned

2019-02-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Duyck [ Upstream commit 3bed3cc4156eedf652b4df72bdb35d4f1a2a739d ] This patch addresses the fact that there are drivers, specifically tun, that will call into the network page fragme

INFO: rcu detected stall in try_check_zero

2019-02-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:57902dc0670c Merge tag 'riscv-for-linus-5.0-rc7' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=150813e4c0 kernel config: https://syzkaller.appspot.com/x/.config?x=ee434566c893c7b1 da

[PATCH 4.9 16/20] net: ipv4: use a dedicated counter for icmp_v4 redirect packets

2019-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lorenzo Bianconi [ Upstream commit c09551c6ff7fe16a79a42133bcecba5fc2fc3291 ] According to the algorithm described in the comment block at the beginning of ip_rt_send_redirect, the host should

[PATCH] regulator: lp873x: Constify lp873x_buck_ramp_delay array

2019-02-21 Thread Axel Lin
The lp873x_buck_ramp_delay should never change, make it const. Signed-off-by: Axel Lin --- drivers/regulator/lp873x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lp873x-regulator.c b/drivers/regulator/lp873x-regulator.c index 2ec5e833c379..706

[PATCH 4.9 20/20] ax25: fix possible use-after-free

2019-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 63530aba7826a0f8e129874df9c4d264f9db3f9e upstream. syzbot found that ax25 routes where not properly protected against concurrent use [1]. In this particular report the bug

Re: [PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Gerd Hoffmann
Hi, > I was thinking of checking whether pdev is a VGA class device and whether > it decodes vga access, and in that case automatically calling How can I figure that? Ok, class is easy, but decode? pci.h offers functions to set vga decode but not to get that info ... thanks, Gerd

Re: [PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 4:11 PM Gerd Hoffmann wrote: > > Hi, > > > I was thinking of checking whether pdev is a VGA class device and whether > > it decodes vga access, and in that case automatically calling > > How can I figure that? Ok, class is easy, but decode? pci.h offers > functions to s

Re: [PATCH v2 01/26] mm: gup: rename "nonblocking" to "locked" where proper

2019-02-21 Thread Jerome Glisse
On Tue, Feb 12, 2019 at 10:56:07AM +0800, Peter Xu wrote: > There's plenty of places around __get_user_pages() that has a parameter > "nonblocking" which does not really mean that "it won't block" (because > it can really block) but instead it shows whether the mmap_sem is > released by up_read() d

[GIT PULL] arm64: late fixes for 5.0

2019-02-21 Thread Will Deacon
Hi Linus, Please pull these three small arm64 fixes for 5.0. They fix a build breakage with clang introduced in 4.20, an oversight in our sigframe restoration relating to the SSBS bit and a boot fix for systems with newer revisions of our interrupt controller. Summary in the tag. Cheers, Will

Re: [PATCH] sysctl: Fix proc_do_large_bitmap for large input buffers

2019-02-21 Thread Luis Chamberlain
On Wed, Feb 20, 2019 at 05:35:04PM -0600, Eric Sandeen wrote: > Here's a pretty hacky test script to test this code via > ip_local_reserved_ports Thanks Eric! So /proc/sys/net/ipv4/ip_local_reserved_ports is a production knob, and if we wanted to stress test it with a selftest it could break othe

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-21 Thread Arnd Bergmann
On Thu, Feb 21, 2019 at 11:06 AM Andrey Ryabinin wrote: > On 2/20/19 8:35 PM, Arnd Bergmann wrote: > > On Wed, Feb 20, 2019 at 6:00 PM Andrey Ryabinin > > wrote: > >> On 2/20/19 5:51 PM, Arnd Bergmann wrote: > > Maybe bringing it back would be a compromise? That way it's hidden from > > all the

Re: [PATCH v3 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Halil Pasic
On Thu, 21 Feb 2019 16:09:10 +0100 Cornelia Huck wrote: > On Thu, 21 Feb 2019 15:14:54 +0100 > Pierre Morel wrote: > > > Libudev relies on having a subsystem link for non-root devices. To > > avoid libudev (and potentially other userspace tools) choking on the > > matrix device let us introduce

[PATCH] libnvdimm, region: use struct_size() in kzalloc()

2019-02-21 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; struct boo entry[]; }; instance = kzalloc(sizeof(struc

Re: [PATCH v1 2/2] drivers: soc: qcom: rpmh-rsc: Correct check for slot number

2019-02-21 Thread Lina Iyer
On Thu, Feb 21 2019 at 05:42 -0700, Raju P.L.S.S.S.N wrote: From: Maulik Shah The return index value from bitmap_find_next_zero_area can be higher than available slot. So correct the check to return error in such case. Signed-off-by: Maulik Shah Signed-off-by: Raju P.L.S.S.S.N Reviewed-by:

Re: [PATCH RFC 3/5] sched/cpufreq: Fix incorrect RCU API usage

2019-02-21 Thread Joel Fernandes
On Thu, Feb 21, 2019 at 10:18:05AM +0100, Peter Zijlstra wrote: > On Thu, Feb 21, 2019 at 12:49:40AM -0500, Joel Fernandes (Google) wrote: > > @@ -34,8 +34,12 @@ void cpufreq_add_update_util_hook(int cpu, struct > > update_util_data *data, > > if (WARN_ON(!data || !func)) > > retur

Re: [PATCH v2] firmware: hardcode the debug message for -ENOENT

2019-02-21 Thread Luis Chamberlain
On Wed, Feb 20, 2019 at 10:39:04AM +0800, yuank...@codeaurora.org wrote: > From: John Zhao > > When no file /path was found, the error code of -ENOENT > enumerated in errno-base.h, is returned. Stating clearly that > the file was not found is much more useful for debugging, So > let's be explicit

Re: [PATCH V4 5/9] x86/alternative: Split text_poke_bp() into tree steps

2019-02-21 Thread Steven Rostedt
On Fri, 15 Feb 2019 13:47:16 +0100 Daniel Bristot de Oliveira wrote: > On 2/8/19 1:15 AM, Steven Rostedt wrote: > > On Mon, 4 Feb 2019 20:58:58 +0100 > > Daniel Bristot de Oliveira wrote: > > > >> > >> +static void text_poke_bp_set_handler(void *addr, void *handler, > >> +

[PATCH 3/5] reset: Add acquire/release support for arrays

2019-02-21 Thread Thierry Reding
From: Thierry Reding Add implementations that apply acquire and release operations to all reset controls part of a reset control array. Signed-off-by: Thierry Reding --- drivers/reset/core.c | 36 +++- include/linux/reset.h | 6 ++ 2 files changed, 41 inse

Re: [PATCH] dm-switch: use struct_size() in kzalloc()

2019-02-21 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 1/8/19 10:02 AM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding the > size of a structure that has a zero-sized array at the end, along with memory > for some number of elements

[PATCH 4/5] soc/tegra: pmc: Implement acquire/release for resets

2019-02-21 Thread Thierry Reding
From: Thierry Reding By implementing the acquire/release protocol, the resets can be shared with other drivers that also adhere to this protocol. This will be used for example by the SOR driver to put hardware into a known good state, irrespective of whether or not the power domain can be reset.

[PATCH 2/5] reset: Add acquired flag to of_reset_control_array_get()

2019-02-21 Thread Thierry Reding
From: Thierry Reding In order to be able to request an array of reset controls in acquired or released mode, add the acquired flag to of_reset_control_array_get() and pass the flag to subsequent calls of __of_reset_control_get(). Signed-off-by: Thierry Reding --- drivers/reset/core.c

Re: [PATCH v2 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-21 Thread Joel Fernandes
On Thu, Feb 21, 2019 at 11:34:41PM +0900, Masahiro Yamada wrote: > On Wed, Feb 20, 2019 at 12:17 AM Joel Fernandes > wrote: > > > > > Firstly, I want to apologize for not testing this and other corner cases you > > brought up. I should have known better. Since my build was working, I > > assume

Re: [PATCH] doc: trace: Fix documentation for uprobe_profile

2019-02-21 Thread Steven Rostedt
On Tue, 19 Feb 2019 11:49:28 +0530 Srikar Dronamraju wrote: > uprobe_profile has filename and number of probe hits information for > each uprobe event. The documentation erroneously talks about probe > mis-hits. Update the documentation to the correct information. > > Cc: Masami Hiramatsu > Cc:

[PATCH 5/5] drm/tegra: sor: Implement acquire/release for reset

2019-02-21 Thread Thierry Reding
From: Thierry Reding By implementing the acquire/release protocol, the SOR reset can be shared with other drivers that also adhere to this protocol, such as the PMC driver that uses the same reset as part of the powergate and -ungate implementation using generic power domains. Runtime PM makes s

Re: [PATCH 2/2] loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()

2019-02-21 Thread Dongli Zhang
On 02/21/2019 07:30 PM, Jan Kara wrote: > On Thu 21-02-19 12:17:35, Dongli Zhang wrote: >> Commit 0da03cab87e6 >> ("loop: Fix deadlock when calling blkdev_reread_part()") moves >> blkdev_reread_part() out of the loop_ctl_mutex. However, >> GENHD_FL_NO_PART_SCAN is set before __blkdev_reread_part

[PATCH 1/5] reset: add acquired/released state for exclusive reset controls

2019-02-21 Thread Thierry Reding
From: Philipp Zabel There are cases where a driver needs explicit control over a reset line that is exclusively conneted to its device, but this control has to be temporarily handed over to the power domain controller to handle reset requirements during power transitions. Allow multiple exclusive

Re: [PATCH 4.19 23/30] x86_64: increase stack size for KASAN_EXTRA

2019-02-21 Thread Greg Kroah-Hartman
On Thu, Feb 21, 2019 at 06:00:06PM +0300, Andrey Ryabinin wrote: > On 2/21/19 5:36 PM, Greg Kroah-Hartman wrote: > > 4.19-stable review patch. If anyone has any objections, please let me know. > > > > Drop it please. It increases kernel stack up to 4-order which is above > PAGE_ALLOC_COSTLY_ORD

Re: [PATCH 4.19 23/30] x86_64: increase stack size for KASAN_EXTRA

2019-02-21 Thread Andrey Ryabinin
On 2/21/19 6:26 PM, Greg Kroah-Hartman wrote: > On Thu, Feb 21, 2019 at 06:00:06PM +0300, Andrey Ryabinin wrote: >> On 2/21/19 5:36 PM, Greg Kroah-Hartman wrote: >>> 4.19-stable review patch. If anyone has any objections, please let me know. >>> >> >> Drop it please. It increases kernel stack u

Re: [PATCH v2 02/26] mm: userfault: return VM_FAULT_RETRY on signals

2019-02-21 Thread Jerome Glisse
On Tue, Feb 12, 2019 at 10:56:08AM +0800, Peter Xu wrote: > The idea comes from the upstream discussion between Linus and Andrea: > > https://lkml.org/lkml/2017/10/30/560 > > A summary to the issue: there was a special path in handle_userfault() > in the past that we'll return a VM_FAULT_NOPAGE

[PATCH v2 1/2] loop: do not print warn message if partition scan is successful

2019-02-21 Thread Dongli Zhang
Do not print warn message when the partition scan returns 0. Fixes: d57f3374ba48 ("loop: Move special partition reread handling in loop_clr_fd()") Signed-off-by: Dongli Zhang Reviewed-by: Jan Kara --- drivers/block/loop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH v2 0/2] loop: fix two issues introduced by prior commit

2019-02-21 Thread Dongli Zhang
This patch set fix two issues introduced by prior commit. [PATCH v2 1/2] loop: do not print warn message if partition scan is successful [PATCH v2 1/2] fixes d57f3374ba48 ("loop: Move special partition reread handling in loop_clr_fd()") to not always print warn message even when partition scan i

Re: [PATCH 1/5] reset: add acquired/released state for exclusive reset controls

2019-02-21 Thread Thierry Reding
On Thu, Feb 21, 2019 at 04:25:53PM +0100, Thierry Reding wrote: > From: Philipp Zabel > > There are cases where a driver needs explicit control over a reset line > that is exclusively conneted to its device, but this control has to be > temporarily handed over to the power domain controller to ha

Re: [PATCH RFC 4/5] sched/topology: Annonate RCU pointers properly

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 10:10:57AM -0500, Joel Fernandes wrote: > Hi Peter, > > Thanks for taking a look. > > On Thu, Feb 21, 2019 at 10:19:44AM +0100, Peter Zijlstra wrote: > > On Thu, Feb 21, 2019 at 12:49:41AM -0500, Joel Fernandes (Google) wrote: > > > > > Also replace rcu_assign_pointer cal

Re: [PATCH v2] perf/core: use strndup_user() instead of buggy open-coded version

2019-02-21 Thread Steven Rostedt
On Thu, 21 Feb 2019 07:12:10 + Song Liu wrote: > > On Feb 20, 2019, at 4:20 PM, Masami Hiramatsu wrote: > > > > Hi Jann, > > > > On Wed, 20 Feb 2019 17:54:43 +0100 > > Jann Horn wrote: > > > >> The first version of this method was missing the check for > >> `ret == PATH_MAX`; then such

[PATCH v2 2/2] loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()

2019-02-21 Thread Dongli Zhang
Commit 0da03cab87e6 ("loop: Fix deadlock when calling blkdev_reread_part()") moves blkdev_reread_part() out of the loop_ctl_mutex. However, GENHD_FL_NO_PART_SCAN is set before __blkdev_reread_part(). As a result, __blkdev_reread_part() will fail the check of GENHD_FL_NO_PART_SCAN and will not resca

Re: [LSF/MM TOPIC] FS, MM, and stable trees

2019-02-21 Thread Luis Chamberlain
On Sat, Feb 16, 2019 at 01:28:35PM -0500, Theodore Y. Ts'o wrote: > The block/*, loop/* and scsi/* tests in blktests do seem to be in > pretty good shape. The nvme, nvmeof, and srp tests are *definitely* > not as mature. Can you say more about this later part. What would you like to see more of f

Re: [PATCH RFC 3/5] sched/cpufreq: Fix incorrect RCU API usage

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 10:21:39AM -0500, Joel Fernandes wrote: > On Thu, Feb 21, 2019 at 10:18:05AM +0100, Peter Zijlstra wrote: > > On Thu, Feb 21, 2019 at 12:49:40AM -0500, Joel Fernandes (Google) wrote: > > > @@ -34,8 +34,12 @@ void cpufreq_add_update_util_hook(int cpu, struct > > > update_uti

Re: [PATCH v2 03/26] userfaultfd: don't retake mmap_sem to emulate NOPAGE

2019-02-21 Thread Jerome Glisse
On Tue, Feb 12, 2019 at 10:56:09AM +0800, Peter Xu wrote: > The idea comes from the upstream discussion between Linus and Andrea: > > https://lkml.org/lkml/2017/10/30/560 > > A summary to the issue: there was a special path in handle_userfault() > in the past that we'll return a VM_FAULT_NOPAGE w

Re: [PATCH] bpf: test_bpf: turn of preemption in function __run_once

2019-02-21 Thread Daniel Borkmann
On 02/21/2019 09:44 AM, Anders Roxell wrote: > When running test seccomp_bpf the following splat occurs: > > [ RUN ] > global.secseccomp_bpf.c:2136:global.detect_seccomp_filter_flags:Expected 22 > (22) == (*__errno_location ()) (14) > seccomp_bpf.c:2138:global.detect_seccomp_filter_flags:Fa

[PATCH] ASoC: fsl_ssi: remove unsupported formats in i2s master mode

2019-02-21 Thread Sven Van Asbroeck
Quote from the ssi manual: "The word length is fixed to 32 in I2S Master mode and the WL bits determine the number of bits that will contain valid data (out of the 32 transmitted/received bits in each channel)." (61.8.1.4, page 5138, IMX6DQRM Rev. 3, 07/2015) In other words, in i2s master mode, we

[PATCH] Input: evdev - use struct_size() in kzalloc() and vzalloc()

2019-02-21 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; struct boo entry[]; }; size = sizeof(struct foo) + cou

Re: dm-switch: use struct_size() in kzalloc()

2019-02-21 Thread Mike Snitzer
On Thu, Feb 21 2019 at 10:27am -0500, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this? I've picked it up for 5.1: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-5.1&id=042f96ad4c5a369307df2a840fd943a4b080c3d1 Thanks, Mike

Re: [PATCH] rcu: module param kthread_prio should set to read-only under sysfs

2019-02-21 Thread Paul E. McKenney
On Thu, Feb 21, 2019 at 10:13:27PM +0800, Liu Song wrote: > kthread_prio used to set prio for boost thread > which spawn at the very beginning. We can see > kthread_prio under sysfs, and it could be set > to a new value. But boost thread's prio can not > updated by this opreation. However, user can

[PATCH v2 3/5] phy: tegra: xusb: Parse dual-role mode property

2019-02-21 Thread Thierry Reding
From: Thierry Reding The device tree bindings document the "mode" property of "ports" subnodes, but the driver was not parsing the property. In preparation for adding role switching, parse the property at probe time. Based on work by JC Kuo . Reviewed-by: JC Kuo Signed-off-by: Thierry Reding

Re: dm-switch: use struct_size() in kzalloc()

2019-02-21 Thread Gustavo A. R. Silva
On 2/21/19 9:40 AM, Mike Snitzer wrote: > On Thu, Feb 21 2019 at 10:27am -0500, > Gustavo A. R. Silva wrote: > >> Hi all, >> >> Friendly ping: >> >> Who can take this? > > I've picked it up for 5.1: > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-5.1&

[PATCH v2 0/5] phy: tegra: xusb: Add Tegra186 support

2019-02-21 Thread Thierry Reding
From: Thierry Reding This series adds support for Tegra186 to the XUSB pad controller driver. Patch 1 extends the device tree bindings with support for Tegra186 while patches 2-4 are preparatory work for the final patch 5 that adds the Tegra186 specific programming for the UPHY blocks. Changes i

[PATCH v2 4/5] phy: tegra: xusb: Add support for power supplies

2019-02-21 Thread Thierry Reding
From: Thierry Reding Support enabling various supplies needed to provide power to the PLLs and logic used to drive the USB, PCI and SATA pads. Reviewed-by: JC Kuo Signed-off-by: Thierry Reding --- drivers/phy/tegra/xusb.c | 34 +- drivers/phy/tegra/xusb.h | 5

[PATCH v2 5/5] phy: tegra: xusb: Add Tegra186 support

2019-02-21 Thread Thierry Reding
From: JC Kuo Add support for the XUSB pad controller found on Tegra186 SoCs. It is mostly similar to the same IP found on earlier chips, but the number of pads exposed differs, as do the programming sequences. Note that the DVDD_PEX, DVDD_PEX_PLL, HVDD_PEX and HVDD_PEX_PLL power supplies of the

[PATCH] mm/swapfile.c: use struct_size() in kvzalloc()

2019-02-21 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; struct boo entry[]; }; size = sizeof(struct foo) + cou

Re: [PATCH v2 1/2] clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure

2019-02-21 Thread Geert Uytterhoeven
On Thu, Feb 21, 2019 at 12:47 PM Krzysztof Kozlowski wrote: > During initialization of subdevices if platform_device_alloc() failed, > returned NULL pointer will be later dereferenced. Add proper error > paths to exynos5_clk_register_subcmu(). The return value of this > function is still ignored

Re: [PATCH v2 2/2] clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override

2019-02-21 Thread Geert Uytterhoeven
On Thu, Feb 21, 2019 at 12:46 PM Krzysztof Kozlowski wrote: > Platform driver driver_override field should not be initialized from > const memory because the core later kfree() it. If driver_override is > manually set later through sysfs, kfree() of old value leads to: > > $ echo "new_value"

[PATCH v2 1/5] dt-bindings: phy: tegra: Add Tegra186 support

2019-02-21 Thread Thierry Reding
From: Thierry Reding Extend the bindings to cover the set of features found in Tegra186. Note that, technically, there are four more supplies connected to the XUSB pad controller (DVDD_PEX, DVDD_PEX_PLL, HVDD_PEX and HVDD_PEX_PLL), but the power sequencing requirements of Tegra186 require these t

[PATCH v2 2/5] phy: tegra: xusb: Skip single function lane programming

2019-02-21 Thread Thierry Reding
From: JC Kuo Tegra186 USB2 pads and USB3 pads do not have hardware mux for changing the pad function. For such "lanes", we can skip the lane mux register programming. Signed-off-by: JC Kuo Signed-off-by: Thierry Reding --- drivers/phy/tegra/xusb.c | 6 +- 1 file changed, 5 insertions(+),

[GIT PULL v1 3/7] intel_th: Only create useful device nodes

2019-02-21 Thread Alexander Shishkin
Right now, the driver will create a device node for each output port, with the intent to provide read access to that port's data. However, only the memory ports are readable this way (msc0, msc1). Other output ports don't need device nodes, so remove them. Signed-off-by: Alexander Shishkin --- d

[GIT PULL v1 2/7] intel_th: Mark expected switch fall-throughs

2019-02-21 Thread Alexander Shishkin
From: "Gustavo A. R. Silva" In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/hwtracing/intel_th/sth.c: In function ‘sth_stm_packet’: drivers/hwtracing/intel_th/sth.c:86:7: warning: this

[GIT PULL v1 4/7] intel_th: pti: Use sysfs_match_string() helper

2019-02-21 Thread Alexander Shishkin
From: Andy Shevchenko Use sysfs_match_string() helper instead of open coded variant. Signed-off-by: Andy Shevchenko Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/pti.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/hwtracing/int

[GIT PULL v1 0/7] stm class/intel_th: Updates for v5.1

2019-02-21 Thread Alexander Shishkin
/kernel/git/ash/stm.git tags/intel_th-stm-for-greg-20190221 for you to fetch changes up to 4c3cef46a96e8f623d1edf03424880ebc901b068: stm class: Prevent division by zero (2019-02-21 15:29:26 +0200) stm class/intel_th: Updates for

Re: [PATCH 1/2] ext4: annotate implicit fall throughs

2019-02-21 Thread Theodore Y. Ts'o
On Mon, Jan 14, 2019 at 09:39:43PM +0100, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > This commit remove the following warnings: > > fs/ext4/hash.c:233:15: warning: this state

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-02-21 Thread Dave Martin
On Thu, Feb 21, 2019 at 12:29:42PM +, Mark Rutland wrote: > On Tue, Feb 19, 2019 at 02:54:28PM +0530, Amit Daniel Kachhap wrote: > > From: Mark Rutland > > > > When pointer authentication is supported, a guest may wish to use it. > > This patch adds the necessary KVM infrastructure for this t

Re: [PATCH v6 1/6] arm64/kvm: preserve host HCR_EL2 value

2019-02-21 Thread Dave Martin
On Tue, Feb 19, 2019 at 02:54:26PM +0530, Amit Daniel Kachhap wrote: > From: Mark Rutland > > When restoring HCR_EL2 for the host, KVM uses HCR_HOST_VHE_FLAGS, which > is a constant value. This works today, as the host HCR_EL2 value is > always the same, but this will get in the way of supporting

Re: [PATCH 2/2] ext4: annotate implicit fall throughs

2019-02-21 Thread Theodore Y. Ts'o
On Mon, Jan 14, 2019 at 09:39:44PM +0100, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > This commit remove the following warnings: > > fs/ext4/indirect.c:1182:6: warning: this s

Re: [PATCH RFC 3/5] sched/cpufreq: Fix incorrect RCU API usage

2019-02-21 Thread Paul E. McKenney
On Thu, Feb 21, 2019 at 04:31:17PM +0100, Peter Zijlstra wrote: > On Thu, Feb 21, 2019 at 10:21:39AM -0500, Joel Fernandes wrote: > > On Thu, Feb 21, 2019 at 10:18:05AM +0100, Peter Zijlstra wrote: > > > On Thu, Feb 21, 2019 at 12:49:40AM -0500, Joel Fernandes (Google) wrote: > > > > @@ -34,8 +34,1

[GIT PULL v1 6/7] stm class: Fix an endless loop in channel allocation

2019-02-21 Thread Alexander Shishkin
From: Zhi Jin There is a bug in the channel allocation logic that leads to an endless loop when looking for a contiguous range of channels in a range with a mixture of free and occupied channels. For example, opening three consequtive channels, closing the first two and requesting 4 channels in a

[GIT PULL v1 7/7] stm class: Prevent division by zero

2019-02-21 Thread Alexander Shishkin
Using STP_POLICY_ID_SET ioctl command with dummy_stm device, or any STM device that supplies zero mmio channel size, will trigger a division by zero bug in the kernel. Prevent this by disallowing channel widths other than 1 for such devices. Signed-off-by: Alexander Shishkin Fixes: 7bd1d4093c2f

[GIT PULL v1 5/7] intel_th: Don't reference unassigned outputs

2019-02-21 Thread Alexander Shishkin
When an output port driver is removed, also remove references to it from any masters. Failing to do this causes a NULL ptr dereference when configuring another output port: > BUG: unable to handle kernel NULL pointer dereference at 000d > RIP: 0010:master_attr_store+0x9d/0x160 [intel_t

[GIT PULL v1 1/7] intel_th: Update ABI documentation

2019-02-21 Thread Alexander Shishkin
Commit a753bfcfdb1f3 ("intel_th: Make the switch allocate its subdevices") changed the behavior so that the output port devices are created only for the ports reported by the hardware and their initial state is "unassigned" until a corresponding output port driver is loaded. Reflect this fact in th

Re: [PATCH v6 2/6] arm64/kvm: preserve host MDCR_EL2 value

2019-02-21 Thread Dave Martin
On Tue, Feb 19, 2019 at 02:54:27PM +0530, Amit Daniel Kachhap wrote: > Save host MDCR_EL2 value during kvm HYP initialisation and restore > after every switch from host to guest. There should not be any > change in functionality due to this. > > The value of mdcr_el2 is now stored in struct kvm_cp

Re: [kvmtool PATCH v6 6/6] arm/kvm: arm64: Add a vcpu feature for pointer authentication

2019-02-21 Thread Dave Martin
On Tue, Feb 19, 2019 at 02:54:31PM +0530, Amit Daniel Kachhap wrote: > This is a runtime capabality for KVM tool to enable Armv8.3 Pointer > Authentication in guest kernel. A command line option --ptrauth is > required for this. > > Signed-off-by: Amit Daniel Kachhap > --- > arm/aarch32/include/

Re: [PATCH v11] dm: add support to directly boot to a mapped device

2019-02-21 Thread Mike Snitzer
On Mon, Feb 18 2019 at 1:18pm -0500, Helen Koike wrote: > Add a dm-mod.create= kernel module parameter. > It allows device-mapper targets to be configured at boot time for use early > in the boot process (as the root device or otherwise). > > Signed-off-by: Will Drewry > Signed-off-by: Kees Co

Re: [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication

2019-02-21 Thread Dave Martin
On Tue, Feb 19, 2019 at 02:54:29PM +0530, Amit Daniel Kachhap wrote: > This feature will allow the KVM guest to allow the handling of > pointer authentication instructions or to treat them as undefined > if not set. It uses the existing vcpu API KVM_ARM_VCPU_INIT to > supply this parameter instead

Re: [PATCH v6 5/6] arm64/kvm: control accessibility of ptrauth key registers

2019-02-21 Thread Dave Martin
On Tue, Feb 19, 2019 at 02:54:30PM +0530, Amit Daniel Kachhap wrote: > According to userspace settings, ptrauth key registers are conditionally > present in guest system register list based on user specified flag > KVM_ARM_VCPU_PTRAUTH. > > Reset routines still sets these registers to default valu

Re: [PATCH][xfs-next] xfs: fix uninitialized error variable

2019-02-21 Thread Darrick J. Wong
On Thu, Feb 21, 2019 at 11:22:24AM +, Colin King wrote: > From: Colin Ian King > > A previous commit removed the initialization of variable 'error' to zero, > and can cause a bogus error return. This occurs when error contains a > non-zero garbage value and the call to xchk_should_terminate

Re: [PATCH v2 1/2] drm: move i915_kick_out_vgacon to drm_fb_helper

2019-02-21 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 04:09:12PM +0100, Gerd Hoffmann wrote: > > > +int drm_fb_helper_kick_out_vgacon(void); > > > + > > > > Don't you need a dummy version as well for this one, like how it's done > > for the other functions, to cover the case when DRM_FBDEV_EMULATION is > > not selected? > > G

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