[PATCH 3.16 016/129] staging: iio: adt7316: fix the dac read calculation

2019-07-07 Thread Ben Hutchings
ic Signed-off-by: Jonathan Cameron Signed-off-by: Ben Hutchings --- drivers/staging/iio/addac/adt7316.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -47,6 +47,8 @@ #define ADT751

[PATCH 3.16 059/129] ext4: add mask of ext4 flags to swap

2019-07-07 Thread Ben Hutchings
confuse the things since we're not resetting the address operations structure. The simplest way to keep things sane is to restrict the flags that can be swapped. Signed-off-by: yangerkun Signed-off-by: Theodore Ts'o [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- fs/ext4

[PATCH 3.16 116/129] net: sh_eth: fix a missing check of of_get_phy_mode

2019-07-07 Thread Ben Hutchings
NULL of it fails. Fixes: b356e978e92f ("sh_eth: add device tree support") Signed-off-by: Kangjie Lu Reviewed-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/ethernet/renesa

[PATCH 3.16 035/129] applicom: Fix potential Spectre v1 vulnerabilities

2019-07-07 Thread Ben Hutchings
. R. Silva Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/char/applicom.c | 35 --- 1 file changed, 24 insertions(+), 11 deletions(-) --- a/drivers/char/applicom.c +++ b/drivers/char/applicom.c @@ -32,6 +32,7 @@ #include #include

[PATCH 3.16 063/129] ext4: fix crash during online resizing

2019-07-07 Thread Ben Hutchings
ted number of filesystem blocks. Fixes: 1c6bd7173d66 "ext4: convert file system to meta_bg if needed..." Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o Signed-off-by: Ben Hutchings --- fs/ext4/resize.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/fs/ext4/resize.c

[PATCH 3.16 121/129] tcp: refine memory limit test in tcp_fragment()

2019-07-07 Thread Ben Hutchings
Reported-by: Christoph Paasch Tested-by: Christoph Paasch Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- net/ipv4/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1091,7 +109

[PATCH 3.16 036/129] rcu: Do RCU GP kthread self-wakeup from softirq and interrupt

2019-07-07 Thread Ben Hutchings
oid redundant wakeups and to also handle the interrupt-handler scenario as well as the softirq-handler scenario that actually occurred in testing. ] Signed-off-by: Paul E. McKenney Link: https://lkml.kernel.org/r/cd6925e8781efd4d8e11882d20fc406d52a11...@shsmsx104.ccr.corp.intel.com [bwh: Backported to 3.1

[PATCH 3.16 046/129] scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock

2019-07-07 Thread Ben Hutchings
3.16.70-rc1 review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 32e36bfbcf31452a854263e7c7f32fbefc4b44d8 upstream. When using SCSI passthrough in combination with the iSCSI target driver then cmd->t_state_lock may be obtained from

[PATCH 3.16 026/129] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2019-07-07 Thread Ben Hutchings
-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -859,13 +859,16 @@

[PATCH 3.16 062/129] pinctrl: sh-pfc: sh73a0: Fix fsic_spdif pin groups

2019-07-07 Thread Ben Hutchings
to a nonexistent group. Fixes: 2ecd4154c906b7d6 ("sh-pfc: sh73a0: Add FSI pin groups and functions") Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman Signed-off-by: Ben Hutchings --- drivers/pinctrl/sh-pfc/pfc-sh73a0.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 3.16 099/129] nfsd: fix memory corruption caused by readdir

2019-07-07 Thread Ben Hutchings
nel/git/history/history.git/commit/?id=0b1d57cf7654 Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields Signed-off-by: Ben Hutchings --- fs/nfsd/nfs3proc.c | 16 ++-- fs/nfsd/nfs3xdr.c | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) --- a/fs/nfsd/nfs3proc.c +++ b/fs/

[PATCH 3.16 082/129] clocksource/drivers/exynos_mct: Fix error path in timer resources initialization

2019-07-07 Thread Ben Hutchings
by: Daniel Lezcano [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/clocksource/exynos_mct.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -558,7 +558,19 @@ s

[PATCH 3.16 057/129] ext4: fix check of inode in swap_inode_boot_loader

2019-07-07 Thread Ben Hutchings
[bwh: Backported to 3.16: There's no support or test for filesytem encryption] Signed-off-by: Ben Hutchings --- fs/ext4/ioctl.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -118,15 +118,6 @@ static long

[PATCH 3.16 111/129] vxlan: test dev->flags & IFF_UP before calling gro_cells_receive()

2019-07-07 Thread Ben Hutchings
gned-off-by: David S. Miller [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1280,6 +1280,14 @@ static void vxlan_rcv(struct vxlan_sock } } + rcu_read_lock(); + + if (unl

[PATCH 3.16 101/129] mm/vmalloc: fix size check for remap_vmalloc_range_partial()

2019-07-07 Thread Ben Hutchings
/lkml.kernel.org/r/20190103145954.16942-2-rpeny...@suse.de Signed-off-by: Roman Penyaev Acked-by: Michal Hocko Cc: Andrey Ryabinin Cc: Joe Perches Cc: "Luis R. Rodriguez" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- mm/vmalloc.c | 2 +-

[PATCH 3.16 122/129] fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock

2019-07-07 Thread Ben Hutchings
Lawall Cc: Nikolaus Rath Cc: Han-Wen Nienhuys Signed-off-by: Kirill Smelkov Signed-off-by: Linus Torvalds [ backport to 3.16: actually fixed deadlock on /proc/xen/xenbus as 581d21a2d02a was not backported to 3.16 ] Signed-off-by: Kirill Smelkov Signed-off-by: Ben Hutchings ---

[PATCH 3.16 128/129] mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()

2019-07-07 Thread Ben Hutchings
cfg80211_find_vendor_ie(), but not after cfg80211_find_ie() since that already does it - On error, return without calling mwifiex_set_mgmt_beacon_data_ies() - Drop inapplicable change to WMM IE handling - Adjust filename] Signed-off-by: Ben Hutchings --- drivers/net/wireless/mwifiex/ie.c | 47

[PATCH 3.16 038/129] mtd: docg3: Fix kasprintf() usage

2019-07-07 Thread Ben Hutchings
Weinberger Signed-off-by: Brian Norris Signed-off-by: Ben Hutchings --- drivers/mtd/devices/docg3.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/drivers/mtd/devices/docg3.c +++ b/drivers/mtd/devices/docg3.c @@ -1822,7 +1822,7 @@ static void __exit doc_dbg_unregister(st

[PATCH 3.16 092/129] tools lib traceevent: Fix buffer overflow in arg_eval

2019-07-07 Thread Ben Hutchings
s Krause Signed-off-by: Tony Jones Acked-by: Steven Rostedt (VMware) Cc: Frederic Weisbecker Fixes: f7d82350e597 ("tools/events: Add files to create libtraceevent.a") Link: http://lkml.kernel.org/r/20190228015532.8941-1-to...@suse.de Signed-off-by: Arnaldo Carvalho de Melo Si

[PATCH 3.16 049/129] media: uvcvideo: Avoid NULL pointer dereference at the end of streaming

2019-07-07 Thread Ben Hutchings
clock sample array is already released. Fixes: 9c0863b1cc48 ("[media] vb2: call buf_finish from __queue_cancel") Reported-by: Chiranjeevi Rapolu Tested-by: Chiranjeevi Rapolu Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-o

[PATCH 3.16 045/129] splice: don't merge into linked buffers

2019-07-07 Thread Ben Hutchings
lice: add support for sys_tee()") Suggested-by: Al Viro Signed-off-by: Jann Horn Signed-off-by: Al Viro [bwh: Backported to 3.16: Use generic_pipe_buf_steal(), as for other pipe types, since anon_pipe_buf_steal() does not exist here] Signed-off-by: Ben Hutchings --- fs/pipe.c |

[PATCH 3.16 124/129] binder: Replace "%p" with "%pK" for stable

2019-07-07 Thread Ben Hutchings
3.16.70-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings This was done as part of upstream commits fdfb4a99b6ab "8inder: separate binder allocator structure from binder proc", 19c987241ca1 "binder: separate out binder_

[PATCH 3.16 070/129] USB: serial: ftdi_sio: add ID for Hjelmslund Electronics USB485

2019-07-07 Thread Ben Hutchings
-by: Johan Hovold Signed-off-by: Ben Hutchings --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 6 ++ 2 files changed, 8 insertions(+) --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1033,6 +1033,8 @@ static const struct usb_device_id

[PATCH 3.16 105/129] scsi: virtio_scsi: don't send sc payload with tmfs

2019-07-07 Thread Ben Hutchings
al scsi command payload (or writable buffers) added to the tmf. This fixes the problem by leaving cmd->sc zeroed out, which makes virtscsi_kick_cmd() add the tmf to the control vq without any payload. Signed-off-by: Felipe Franciosi Reviewed-by: Paolo Bonzini Signed-off-by: Martin K. Petersen Si

[PATCH 3.16 083/129] mmc: omap: fix the maximum timeout setting

2019-07-07 Thread Ben Hutchings
MMC works as before. [1] http://www.ti.com/lit/ug/spru680/spru680.pdf Fixes: 730c9b7e6630f ("[MMC] Add OMAP MMC host driver") Signed-off-by: Aaro Koskinen Signed-off-by: Ulf Hansson Signed-off-by: Ben Hutchings --- drivers/mmc/host/omap.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3.16 052/129] rtc: 88pm80x: fix unintended sign extension

2019-07-07 Thread Ben Hutchings
ot;rtc: Add rtc support to 88PM80X PMIC") Signed-off-by: Colin Ian King Signed-off-by: Alexandre Belloni Signed-off-by: Ben Hutchings --- drivers/rtc/rtc-88pm80x.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) --- a/drivers/rtc/rtc-88pm80x.c +++ b/drivers/rtc/rtc-

[PATCH 3.16 025/129] powerpc/irq: drop arch_early_irq_init()

2019-07-07 Thread Ben Hutchings
: 089fb442f301 ("powerpc: Use ARCH_IRQ_INIT_FLAGS") Signed-off-by: Christophe Leroy Acked-by: Thomas Gleixner Signed-off-by: Michael Ellerman Signed-off-by: Ben Hutchings --- arch/powerpc/kernel/irq.c | 5 - 1 file changed, 5 deletions(-) --- a/arch/powerpc/kernel/irq.c +++ b/arch/powe

[PATCH 3.16 075/129] drm/radeon/evergreen_cs: fix missing break in switch statement

2019-07-07 Thread Ben Hutchings
This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: dd220a00e8bd ("drm/radeon/kms: add support for streamout v7") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Alex Deucher Signed-off-by: Ben Hutchings --- drivers/gpu/drm/radeon/evergree

[PATCH 3.16 004/129] clk: highbank: fix refcount leak in hb_clk_init()

2019-07-07 Thread Ben Hutchings
of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li Fixes: 26cae166cff9 ("ARM: highbank: remove custom .init_time hook") Signed-off-by: Stephen Boyd Signed-off-by: Ben Hutchings --- drivers/clk/clk-highbank.c | 1 + 1 file changed, 1

Re: [PATCH 3.16 0/2] Fix FUSE read/write deadlock on stream-like files

2019-07-07 Thread Ben Hutchings
consider including the fixes into 3.16 (as well as > into other stable trees - I'm sending corresponding series separately - > - one per tree). [...] I've queued these up for 3.16, thanks. Ben. -- Ben Hutchings Time is nature's way of making sure that everything doesn't happen at once. signature.asc Description: This is a digitally signed message part

Re: [PATCH 3.16 08/10] tcp: tcp_fragment() should apply sane memory limits

2019-07-05 Thread Ben Hutchings
On Mon, 2019-07-01 at 19:51 -0700, Florian Fainelli wrote: > Hi Ben, > > On 6/18/2019 7:28 AM, Ben Hutchings wrote: > > 3.16.69-rc1 review patch. If anyone has any objections, please let me know. > > > > -- > > > &

Re: [PATCH v2] builddeb: generate multi-arch friendly linux-libc-dev package

2019-07-04 Thread Ben Hutchings
Move headers installed by > "make headers_install" accordingly using Debian's tuple from > dpkg-architecture. > > Signed-off-by: Cedric Hombourger > Reviewed-by: Henning Schild > Reviewed-by: Ben Hutchings I haven't reviewed this version of the patch. And this doesn't

Re: [PATCH] builddeb: generate multi-arch friendly linux-libc-dev package

2019-07-04 Thread Ben Hutchings
stream kernel. We maintain multiple configurations, a meaningful changelog, tools packages, etc. So "make deb-pkg" is not used for official kernel packages but we recommend it for custom kernels. > So, this is almost a matter for developers, I think. > > How did debia

Linux 3.16.69

2019-06-20 Thread Ben Hutchings
deletions(-) Ben Hutchings (1): Linux 3.16.69 Dan Carpenter (1): drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl Eric Dumazet (4): tcp: limit payload size of sacked skbs tcp: tcp_fragment() should apply sane memory limits tcp: add tcp_min_snd_mss

Re: [PATCH 3.16 00/10] 3.16.69-rc1 review

2019-06-19 Thread Ben Hutchings
On Wed, 2019-06-19 at 14:58 -0700, Guenter Roeck wrote: > On Tue, Jun 18, 2019 at 03:27:59PM +0100, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.69 release. > > There are 10 patches in this series, which will be posted as responses > > to

[PATCH 3.16 08/10] tcp: tcp_fragment() should apply sane memory limits

2019-06-18 Thread Ben Hutchings
-by: Jonathan Looney Acked-by: Neal Cardwell Acked-by: Yuchung Cheng Reviewed-by: Tyler Hicks Cc: Bruce Curtis Cc: Jonathan Lemon Signed-off-by: David S. Miller [Salvatore Bonaccorso: Adjust context for backport to 4.9.168] [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings

[PATCH 3.16 01/10] mm: introduce vma_is_anonymous(vma) helper

2019-06-18 Thread Ben Hutchings
n Signed-off-by: Linus Torvalds [bwh: Backported to 3.16 as dependency of "mm/mincore.c: make mincore() more conservative"; adjusted context] Signed-off-by: Ben Hutchings --- include/linux/mm.h | 5 + mm/memory.c| 8 2 files changed, 9 insertions(+), 4 deletions(-) -

[PATCH 3.16 10/10] tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()

2019-06-18 Thread Ben Hutchings
[Salvatore Bonaccorso: Backport for context changes in 4.9.168] [bwh: Backported to 3.16: The sysctl is global] Signed-off-by: Ben Hutchings --- net/ipv4/tcp_timer.c | 1 + 1 file changed, 1 insertion(+) --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -113,6 +113,7 @@ static void

[PATCH 3.16 06/10] Bluetooth: hidp: fix buffer overflow

2019-06-18 Thread Ben Hutchings
lows local users to obtain potentially sensitive information from kernel stack memory, via a HIDPCONNADD command. This vulnerability is similar to CVE-2011-1079. Signed-off-by: Young Xiao Signed-off-by: Marcel Holtmann Signed-off-by: Ben Hutchings --- net/bluetooth/hidp/sock.c | 1 + 1 file

[PATCH 3.16 03/10] drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl

2019-06-18 Thread Ben Hutchings
an Cc: Kumar Gala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- drivers/virt/fsl_hypervisor.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/virt/fsl_hypervisor.c +++ b/drivers/virt/fsl_hypervisor.c @@ -215,6 +215,9 @@ static lon

[PATCH 3.16 09/10] tcp: add tcp_min_snd_mss sysctl

2019-06-18 Thread Ben Hutchings
Signed-off-by: David S. Miller [Salvatore Bonaccorso: Backport for context changes in 4.9.168] [bwh: Backported to 3.16: Make the sysctl global, consistent with net.ipv4.tcp_base_mss] Signed-off-by: Ben Hutchings --- --- a/Documentation/networking/ip-sysctl.txt +++ b/Documentation/networking/ip-

[PATCH 3.16 07/10] tcp: limit payload size of sacked skbs

2019-06-18 Thread Ben Hutchings
igned-off-by: David S. Miller [Salvatore Bonaccorso: Adjust for context changes to backport to 4.9.168] [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- include/linux/tcp.h | 4 include/net/tcp.h | 2 ++ net/ipv4/tcp.c| 1

[PATCH 3.16 02/10] mm/mincore.c: make mincore() more conservative

2019-06-18 Thread Ben Hutchings
c: Matthew Wilcox Cc: Cyril Hrubis Cc: Tejun Heo Cc: Kirill A. Shutemov Cc: Daniel Gruss Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- --- a/mm/mincore.c +++ b/mm/mincore.c @@ -212,6 +212,22 @@ s

[PATCH 3.16 05/10] ext4: zero out the unused memory region in the extent tree block

2019-06-18 Thread Ben Hutchings
writing the extent header and the corresponding extent node entries. This is done to prevent random uninitialized data from getting into the filesystem when the extent block is synced. This fixes CVE-2019-11833. Signed-off-by: Sriram Rajagopalan Signed-off-by: Theodore Ts'o Signed-off-by: Ben

[PATCH 3.16 00/10] 3.16.69-rc1 review

2019-06-18 Thread Ben Hutchings
| 9 +++-- net/ipv4/tcp_timer.c | 1 + 18 files changed, 110 insertions(+), 15 deletions(-) -- Ben Hutchings I'm always amazed by the number of people who take up solipsism because they heard someone else explain it. - E*Borg on alt.fan.pratchett

[PATCH 3.16 04/10] scsi: megaraid_sas: return error when create DMA pool failed

2019-06-18 Thread Ben Hutchings
dd_driver+0x16c/0x248 [] driver_register+0x6c/0x138 [] __pci_register_driver+0x5c/0x6c [] megasas_init+0xc0/0x1a8 [] do_one_initcall+0xe8/0x1ec [] kernel_init_freeable+0x1c8/0x284 [] kernel_init+0x1c/0xe4 Signed-off-by: Jason Yan Acked-by: Sumit Saxena Signed-off-by: Martin K. Petersen Sig

Re: [PATCH 4.14 00/69] 4.14.124-stable review

2019-06-07 Thread Ben Hutchings
> type 'struct timespec' from type 'struct timespec64' > > >    parent_inode->vfs_inode.i_ctime = now; > > >    ^ > > > > What arch?  This builds for me here.  odd... > > > > arm, i386, m68k, mips, parisc, xtensa,

[PATCH] Revert "consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c"

2019-06-04 Thread Ben Hutchings
p2 but does *not* free any other bottom layers under p1. So it *introduces* a memory leak. The error path also cleared the wrong index in p->uni_pgdir[], introducing a use-after-free. Signed-off-by: Ben Hutchings --- drivers/tty/vt/consolemap.c | 6 +- 1 file changed, 1 insertion

Re: [PATCH 4.4 180/266] x86: stop exporting msr-index.h to userland

2019-05-17 Thread Ben Hutchings
> > While good idea for mainline, I don't think this belongs to stable. > > Dropping it should not result in problems. If we apply "x86/msr-index: Cleanup bit defines" and not this, then "make headers_install" stops working. Ben. --

[PATCH 3.16 02/86] module: add within_module() function

2019-05-16 Thread Ben Hutchings
() with a single call. Signed-off-by: Petr Mladek Signed-off-by: Rusty Russell Signed-off-by: Ben Hutchings --- include/linux/module.h | 5 + kernel/module.c| 12 2 files changed, 9 insertions(+), 8 deletions(-) --- a/include/linux/module.h +++ b/include/linux/module.h

[PATCH 3.16 11/86] jump_label: Rename JUMP_LABEL_{EN,DIS}ABLE to JUMP_LABEL_{JMP,NOP}

2019-05-16 Thread Ben Hutchings
changelog. ] Signed-off-by: Ingo Molnar [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/arm/kernel/jump_label.c | 2 +- arch/arm64/kernel/jump_label.c | 2 +- arch/mips/kernel/jump_label.c| 2 +- arch/powerpc/kernel/jump_label.c | 2 +- arch/s390/kernel/ju

[PATCH 3.16 17/86] jump_label/x86: Work around asm build bug on older/backported GCCs

2019-05-16 Thread Ben Hutchings
uggested-by: H. Peter Anvin Reported-by: Boris Ostrovsky Tested-by: Boris Ostrovsky Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86/include/as

[PATCH 3.16 14/86] locking/static_keys: Rework update logic

2019-05-16 Thread Ben Hutchings
: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- kernel/jump_label.c | 88 - 1 file changed, 38 insertions(+), 50 deletions(-) --- a/kernel/jump_label.c +++ b/kernel/jump_label.c @@ -54,12 +54,7

[PATCH 3.16 18/86] locking/static_keys: Fix a silly typo

2019-05-16 Thread Ben Hutchings
s well get fixed. Signed-off-by: Jonathan Corbet Cc: Andrew Morton Cc: Jason Baron Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20150907131803.54c02...@lwn.net Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- Doc

[PATCH 3.16 22/86] x86/asm: Add asm macros for static keys/jump labels

2019-05-16 Thread Ben Hutchings
: Frederic Weisbecker Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/63aa45c4b692e8469e1876d6ccbb5da707972990.1447361906.git.l...@kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86/include/asm/jump_label.h | 52

[PATCH 3.16 10/86] module, jump_label: Fix module locking

2019-05-16 Thread Ben Hutchings
[ 18.154045] [] system_call_fastpath+0x12/0x17 [ 18.160748] ---[ end trace 9294429076a9c674 ]--- Jump labels is not doing it right; fix this. Cc: Rusty Russell Cc: Jason Baron Acked-by: Paul E. McKenney Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Rusty Russell Signed-off-by: Ben

[PATCH 3.16 27/86] x86/speculation: Support Enhanced IBRS on future CPUs

2019-05-16 Thread Ben Hutchings
irst available bit from word 7 - Adjust context] Signed-off-by: Ben Hutchings --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/nospec-branch.h | 1 + arch/x86/kernel/cpu/bugs.c | 20 ++-- arch/x86/kernel/cpu/common.c | 3 +++ 4 file

[PATCH 3.16 06/86] s390/jump label: add sanity checks

2019-05-16 Thread Ben Hutchings
patterns and panic, since something went terribly wrong. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky Signed-off-by: Ben Hutchings --- arch/s390/kernel/jump_label.c | 56 ++- 1 file changed, 42 insertions(+), 14 deletions(-) --- a/arch/s390

[PATCH 3.16 19/86] locking/static_keys: Fix up the static keys documentation

2019-05-16 Thread Ben Hutchings
Signed-off-by: Jonathan Corbet Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20150914171105.511e1...@lwn.net Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- Documentation/static-keys.txt | 4 ++-- include/linux/jump_label.h| 10

[PATCH 3.16 13/86] jump_label: Add jump_entry_key() helper

2019-05-16 Thread Ben Hutchings
-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- kernel/jump_label.c | 13 + 1 file changed, 9 insertions(+), 4

[PATCH 3.16 36/86] x86/speculation: Remove unnecessary ret variable in cpu_show_common()

2019-05-16 Thread Ben Hutchings
: https://lkml.kernel.org/r/20181125185003.783903...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -824,8 +824,6 @@ static void __init

[PATCH 3.16 35/86] x86/speculation: Clean up spectre_v2_parse_cmdline()

2019-05-16 Thread Ben Hutchings
van de Ven Cc: Jon Masters Cc: Waiman Long Cc: Greg KH Cc: Dave Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185003.688010...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 27 +-- 1 file changed, 13 insertions(+), 14

[PATCH 3.16 37/86] x86/speculation: Move STIPB/IBPB string conditionals out of cpu_show_common()

2019-05-16 Thread Ben Hutchings
Cc: Waiman Long Cc: Greg KH Cc: Dave Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185003.874479...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/cpu

[PATCH 3.16 45/86] x86/speculation: Mark string arrays const correctly

2019-05-16 Thread Ben Hutchings
-by: Ben Hutchings --- --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -290,7 +290,7 @@ enum spectre_v2_mitigation_cmd { SPECTRE_V2_CMD_RETPOLINE_AMD, }; -static const char *spectre_v2_strings[] = { +static const char * const spectre_v2_strings

[PATCH 3.16 46/86] x86/speculataion: Mark command line parser data __initdata

2019-05-16 Thread Ben Hutchings
Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185004.893886...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -303,7 +303,7

[PATCH 3.16 29/86] x86/speculation: Remove SPECTRE_V2_IBRS in enum spectre_v2_mitigation

2019-05-16 Thread Ben Hutchings
Gleixner Cc: h...@zytor.com Cc: dw...@amazon.co.uk Cc: konrad.w...@oracle.com Cc: b...@suse.de Cc: zhong.weid...@zte.com.cn Link: https://lkml.kernel.org/r/1531872194-39207-1-git-send-email-jiang.bi...@zte.com.cn [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/x86

[PATCH 3.16 52/86] x86/speculation: Prepare for conditional IBPB in switch_mm()

2019-05-16 Thread Ben Hutchings
://lkml.kernel.org/r/20181125185005.466447...@linutronix.de [bwh: Backported to 3.16: - Drop changes in initialize_tlbstate_and_flush() - Adjust context] Signed-off-by: Ben Hutchings --- --- a/arch/x86/include/asm/nospec-branch.h +++ b/arch/x86/include/asm/nospec-branch.h @@ -257,6 +257,8 @@ do

[PATCH 3.16 49/86] x86/speculation: Prepare for per task indirect branch speculation control

2019-05-16 Thread Ben Hutchings
- Adjust filename, context] Signed-off-by: Ben Hutchings --- --- a/arch/x86/include/asm/spec-ctrl.h +++ b/arch/x86/include/asm/spec-ctrl.h @@ -53,12 +53,24 @@ static inline u64 ssbd_tif_to_spec_ctrl( return (tifn & _TIF_SSBD) >> (TIF_SSBD - SPEC_CTRL_SSBD_SHIFT); } +static

[PATCH 3.16 57/86] x86/speculation: Enable prctl mode for spectre_v2_user

2019-05-16 Thread Ben Hutchings
: Dave Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185005.958421...@linutronix.de [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- Docuemntation/kernel-parameters.txt | 7 +++- arch/x86/kernel/cpu/bugs.c | 41 +++ 2 files

[PATCH 3.16 61/86] x86/msr-index: Cleanup bit defines

2019-05-16 Thread Ben Hutchings
sted-by: Jon Masters [bwh: Backported to 3.16: - Since is a UAPI header here, open-code BIT() and drop changes under tools/ - Drop changes to flush MSRs which we haven't defined] Signed-off-by: Ben Hutchings --- --- a/arch/x86/include/uapi/asm/msr-index.h +++ b/arch/x86/include/uapi/asm

[PATCH 3.16 62/86] x86/speculation: Consolidate CPU whitelists

2019-05-16 Thread Ben Hutchings
Tested-by: Jon Masters Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/common.c | 105 +++ 1 file changed, 56 insertions(+), 49 deletions(-) --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -807,60 +807,68 @@ static void

[PATCH 3.16 51/86] x86/speculation: Avoid __switch_to_xtra() calls

2019-05-16 Thread Ben Hutchings
: adjust context] Signed-off-by: Ben Hutchings --- arch/x86/include/asm/thread_info.h | 13 +++-- arch/x86/kernel/process.h | 15 +++ 2 files changed, 26 insertions(+), 2 deletions(-) --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -149,9

[PATCH 3.16 09/86] jump_label: Allow jump labels to be used in assembly

2019-05-16 Thread Ben Hutchings
: pau...@samba.org Cc: r...@linux-mips.org Cc: rost...@goodmis.org Cc: schwidef...@de.ibm.com Cc: will.dea...@arm.com Link: http://lkml.kernel.org/r/1428551492-21977-2-git-send-email-an...@samba.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- Makefile | 1 + include

[PATCH 3.16 53/86] x86/speculation: Split out TIF update

2019-05-16 Thread Ben Hutchings
Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185005.652305...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86

[PATCH 3.16 26/86] locking/static_keys: Provide DECLARE and well as DEFINE macros

2019-05-16 Thread Ben Hutchings
. Signed-off-by: Tony Luck Acked-by: Borislav Petkov Cc: Peter Zijlstra Cc: Dan Williams Cc: Linus Torvalds Link: http://lkml.kernel.org/r/816881cf85bd3cf13385d212882618f38a3b5d33.1472754711.git.tony.l...@intel.com Signed-off-by: Thomas Gleixner Signed-off-by: Ben Hutchings --- include/linux

[PATCH 3.16 70/86] x86/speculation/l1tf: Document l1tf in sysfs

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings The vulnerabilties/l1tf attribute was added by commit 17dbca119312 "x86/speculation/l1tf: Add sysfs reporting for l1tf", which has already been backported to 3.16

[PATCH 3.16 41/86] x86/Kconfig: Select SCHED_SMT if SMP enabled

2019-05-16 Thread Ben Hutchings
: CONFIG_SCHED_SMT depended on CONFG_X86_HT, but that also follows CONFIG_SMP] Signed-off-by: Ben Hutchings --- arch/x86/Kconfig | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -798,13 +798,7 @@ config NR_CPUS approximately eight

[PATCH 3.16 58/86] x86/speculation: Add seccomp Spectre v2 user space protection mode

2019-05-16 Thread Ben Hutchings
Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185006.051663...@linutronix.de [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- Documentation/kernel-parameters.txt | 9 - arch/x86/include/asm/nospec-branch.h | 1 + arch/x86/kernel/cpu/bugs.c

[PATCH 3.16 59/86] x86/speculation: Provide IBPB always command line options

2019-05-16 Thread Ben Hutchings
: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- Documentation/kernel-parameters.txt | 12 +++ arch/x86/kernel/cpu/bugs.c | 34 +-- 2 files changed, 35 insertions(+), 11 deletions(-) --- a/Documentation/kernel-parameters.txt +++ b/Documentation

[PATCH 3.16 65/86] x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests

2019-05-16 Thread Ben Hutchings
-by: Borislav Petkov Reviewed-by: Greg Kroah-Hartman Reviewed-by: Frederic Weisbecker Reviewed-by: Jon Masters Tested-by: Jon Masters [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH 3.16 08/86] jump_label: Allow asm/jump_label.h to be included in assembly

2019-05-16 Thread Ben Hutchings
Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/arm/include/asm/jump_label.h | 5 ++--- arch/arm64/include/asm/jump_label.h | 8 arch/mips/include/asm/jump_label.h | 7 +++ arch/s390/include/asm/jump_label.h | 3 +++ arch/sparc/include/asm/jump_label.h | 5

[PATCH 3.16 71/86] x86/speculation/mds: Add sysfs reporting for MDS

2019-05-16 Thread Ben Hutchings
] Signed-off-by: Ben Hutchings --- --- a/Documentation/ABI/testing/sysfs-devices-system-cpu +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu @@ -231,6 +231,7 @@ What: /sys/devices/system/cpu/vulnerabi /sys/devices/system/cpu/vulnerabilities/spectre_v2

[PATCH 3.16 66/86] x86/speculation/mds: Add mds_clear_cpu_buffers()

2019-05-16 Thread Ben Hutchings
y: Jon Masters [bwh: Backported to 3.16: drop changes to doc index and configuration] Signed-off-by: Ben Hutchings --- --- /dev/null +++ b/Documentation/x86/mds.rst @@ -0,0 +1,99 @@ +Microarchitectural Data Sampling (MDS) mitigation += + +

[PATCH 3.16 21/86] x86/asm: Error out if asm/jump_label.h is included inappropriately

2019-05-16 Thread Ben Hutchings
/99407f0ac7fa3ab03a3d31ce076d47b5c2f44795.1447361906.git.l...@kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86/include/asm/jump_label.h | 13 + 1 file changed, 13 insertions(+) --- a/arch/x86/include/asm/jump_label.h +++ b/arch/x86/include/asm/jump_label.h @@ -1,6 +1,19

[PATCH 3.16 42/86] sched: Add sched_smt_active()

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Add the sched_smt_active() function needed for some x86 speculation mitigations. This was introduced upstream by commits 1b568f0aabf2 "sched/core: Optimize SCHE

[PATCH 3.16 81/86] x86/speculation/mds: Add 'mitigations=' support for MDS

2019-05-16 Thread Ben Hutchings
: Backported to 3.16: - Drop the auto,nosmt option, which we can't support - Adjust filenames, context] Signed-off-by: Ben Hutchings --- --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -1920,6 +1920,7 @@ bytes respectively. Such letter suffixes

[PATCH 3.16 15/86] locking/static_keys: Add a new static_key interface

2019-05-16 Thread Ben Hutchings
nux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar [bwh: Backported to 3.16: - For s390, use the 31-bit-compatible macros in arch_static_branch_jump() - Signed-off-by: Ben Hutchings --- arch/arm/include/asm/jump_label.h | 25 +++-- arch/arm64/include/asm/jump_label.h | 18 +++- arch/mips/i

[PATCH 3.16 23/86] x86/headers: Don't include asm/processor.h in asm/atomic.h

2019-05-16 Thread Ben Hutchings
ranian Cc: Thomas Gleixner Cc: Vince Weaver Cc: rost...@goodmis.org Link: http://lkml.kernel.org/r/1449018060-1742-1-git-send-email-a...@firstfloor.org Signed-off-by: Ingo Molnar [bwh: Backported to 3.16 to avoid a dependency loop; adjusted context] Signed-off-by: Ben Hutchings --- arch/x86/i

[PATCH 3.16 31/86] x86/speculation: Apply IBPB more strictly to avoid cross-process data leak

2019-05-16 Thread Ben Hutchings
//lkml.kernel.org/r/nycvar.yfh.7.76.1809251437340.15...@cbobk.fhfr.pm [bwh: Backported to 3.16: we still can't use ctx_id to optimise the check] Signed-off-by: Ben Hutchings --- --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #in

[PATCH 3.16 03/86] jump_label: Fix small typos in the documentation

2019-05-16 Thread Ben Hutchings
: Peter Zijlstra Cc: Steven Rostedt Cc: Borislav Petkov Cc: Andrew Morton Cc: Linus Torvalds Cc: Thomas Gleixner Cc: Mel Gorman Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- include/linux/jump_label.h | 17 - 1 file changed, 8

[PATCH 3.16 38/86] x86/speculation: Disable STIBP when enhanced IBRS is in use

2019-05-16 Thread Ben Hutchings
: Dave Hansen Cc: Casey Schaufler Cc: Asit Mallick Cc: Arjan van de Ven Cc: Jon Masters Cc: Waiman Long Cc: Greg KH Cc: Dave Stewart Cc: Kees Cook Link: https://lkml.kernel.org/r/20181125185003.966801...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 7

[PATCH 3.16 16/86] jump label, locking/static_keys: Update docs

2019-05-16 Thread Ben Hutchings
...@rab.in Cc: r...@linux-mips.org Cc: rost...@goodmis.org Cc: vba...@suse.cz Cc: will.dea...@arm.com Link: http://lkml.kernel.org/r/6b50f2f6423a2244f37f4b1d2d6c211b9dcdf4f8.1438227999.git.jba...@akamai.com Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- Documentation/static-keys.txt | 99

[PATCH 3.16 30/86] x86/cpu: Sanitize FAM6_ATOM naming

2019-05-16 Thread Ben Hutchings
...@linux.intel.com Cc: len.br...@intel.com Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner [bwh: Backported to 3.16: - Drop changes to CPU IDs that weren't already included - Adjust filenames, context] Signed-off-by: Ben Hutchings --- --- a/arch/x86/include/asm/intel-family.h +++ b/arch

[PATCH 3.16 33/86] x86/speculation: Propagate information about RSB filling mitigation to sysfs

2019-05-16 Thread Ben Hutchings
" Link: https://lkml.kernel.org/r/nycvar.yfh.7.76.1809251438580.15...@cbobk.fhfr.pm Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/bugs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -841,10 +841,11 @@ static ssi

[PATCH 3.16 32/86] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2019-05-16 Thread Ben Hutchings
ENABLED(CONFIG_X86_HT) instead of cpu_smt_control for now. This will be fixed by "x86/speculation: Rework SMT state change".] Signed-off-by: Ben Hutchings --- --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -32,12 +32,10 @@ static void __init spectre_v2_select_mit stati

[PATCH 3.16 82/86] x86/mds: Add MDSUM variant to the MDS documentation

2019-05-16 Thread Ben Hutchings
Masters [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- Documentation/hw-vuln/mds.rst | 5 +++-- Documentation/x86/mds.rst | 5 + 2 files changed, 8 insertions(+), 2 deletions(-) --- a/Documentation/hw-vuln/mds.rst +++ b/Documentation/hw-vuln/mds.rst @@ -32,11

[PATCH 3.16 83/86] Documentation: Correct the possible MDS sysfs values

2019-05-16 Thread Ben Hutchings
the majority of the text. Signed-off-by: Tyler Hicks Signed-off-by: Thomas Gleixner [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- Documentation/hw-vuln/mds.rst | 29 ++- 1 file changed, 13 insertions(+), 16 deletions(-) --- a/Documentation/hw-vuln

[PATCH 3.16 25/86] locking/static_key: Fix concurrent static_key_slow_inc()

2019-05-16 Thread Ben Hutchings
r Fixes: 706249c222f6 ("locking/static_keys: Rework update logic") Link: http://lkml.kernel.org/r/1466527937-69798-1-git-send-email-pbonz...@redhat.com [ Small stylistic edits to the changelog and the code. ] Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- include/linux/

[PATCH 3.16 86/86] x86/bugs: Change L1TF mitigation string to match upstream

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Commit 72c6d2db64fa "x86/litf: Introduce vmx status variable" upstream changed "Page Table Inversion" to "PTE Inversion". That was part of th

[PATCH 3.16 39/86] x86/speculation: Rename SSBD update functions

2019-05-16 Thread Ben Hutchings
el.org/r/20181125185004.058866...@linutronix.de Signed-off-by: Ben Hutchings --- arch/x86/include/asm/spec-ctrl.h | 6 +++--- arch/x86/kernel/cpu/bugs.c | 4 ++-- arch/x86/kernel/process.c| 12 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) --- a/arch/x86/include/

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