Re: [PATCH 4.9 100/101] f2fs: fix to do sanity check with cp_pack_start_sum

2018-12-07 Thread Ben Hutchings
On Thu, 2018-12-06 at 15:39 +0100, Greg Kroah-Hartman wrote: > 4.9-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Ben Hutchings > > commit e494c2f995d6181d6e29c4927d68e0f295ecf75b upstream. [...] I accident

Re: [PATCH 4.9 000/101] 4.9.144-stable review

2018-12-07 Thread Ben Hutchings
ed this > regression? The test failure is part of a hugetlb test group, so one of the above is responsible. Ah, I missed this fix (it's already in 4.14-stable: commit 5df63c2a149ae65a9ec239e7c2af44efa6f79beb Author: Mike Kravetz Date:   Thu Apr 5 16:18:21 2018 -0700 hugetlbfs: fix bug in pgoff overflow checking Ben. -- Ben Hutchings, Software Developer Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom

Re: [PATCH 1/3] bpf/verifier: Log instruction patching when verbose logging is enabled

2018-11-29 Thread Ben Hutchings
On Fri, 2018-11-23 at 21:10 +0100, Daniel Borkmann wrote: > On 11/23/2018 07:34 PM, Ben Hutchings wrote: > > User-space does not have access to the patched eBPF code, but we > > need to be able to test that patches are being applied.  Therefore > > log distinct messages for ea

[tip:perf/core] perf pmu: Suppress potential format-truncation warning

2018-11-21 Thread tip-bot for Ben Hutchings
Commit-ID: 11a64a05dc649815670b1be9fe63d205cb076401 Gitweb: https://git.kernel.org/tip/11a64a05dc649815670b1be9fe63d205cb076401 Author: Ben Hutchings AuthorDate: Sun, 11 Nov 2018 18:45:24 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 21 Nov 2018 22:39:56 -0300 perf pmu

[PATCH] perf tools: Check for over-long path in is_directory()

2018-11-20 Thread Ben Hutchings
is_directory() uses sprintf() which could potentially result in a stack buffer overrun. Change to use snprintf() and assert that the output fits in the buffer. Signed-off-by: Ben Hutchings --- A better fix would be to pass the directory fd in and use fstatat() but I don't know whether you want

Re: [PATCH 3.16 000/366] 3.16.61-rc1 review

2018-11-20 Thread Ben Hutchings
On Mon, 2018-11-12 at 17:57 -0800, Guenter Roeck wrote: > On Sun, Nov 11, 2018 at 07:49:04PM +0000, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.61 release. > > There are 366 patches in this series, which will be posted as responses > > to

Re: [PATCH 3.16 298/366] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-11-20 Thread Ben Hutchings
On Mon, 2018-11-12 at 09:10 +0100, Snild Dolkow wrote: > On 11/11/18 8:49 PM, Ben Hutchings wrote: > > 3.16.61-rc1 review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Snild Dolkow > > > > co

Re: [PATCH 3.16 151/366] MIPS: BCM47XX: Enable 74K Core ExternalSync for PCIe erratum

2018-11-20 Thread Ben Hutchings
On Sun, 2018-11-11 at 21:17 +0100, Rafał Miłecki wrote: > On Sun, 11 Nov 2018 at 21:05, Ben Hutchings wrote: > > 3.16.61-rc1 review patch. If anyone has any objections, please let me know. > > Nack. This patch has caused a regression and had to be reverted. > Please check u

[PATCH 3.16 000/366] 3.16.61-rc1 review

2018-11-11 Thread Ben Hutchings
e2338b303a20949] Ben Hutchings (10): Revert "mtd: nand: omap2: Fix subpage write" [not upstream; reverted change is good but has larger dependencies] bcmgenet: Delete unused variable [not upstream; fixes incorrect backport] fnic: F

[PATCH 3.16 002/366] arm64: ensure extension of smp_store_release value

2018-11-11 Thread Ben Hutchings
but we didn't have the 1-byte and 2-byte cases then so I dropped that part. Now that we do, pick up that part again.] Signed-off-by: Ben Hutchings --- arch/arm64/include/asm/barrier.h | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) --- a/arch/arm64/include/asm/barrie

[PATCH 3.16 001/366] arm64: add missing data types in smp_load_acquire/smp_store_release

2018-11-11 Thread Ben Hutchings
8 variants using ldarh/stlrh and ldarb/stlrb, respectively. Together with the compiletime_assert_atomic_type() check this should cover all cases now. Acked-by: Will Deacon Signed-off-by: Andre Przywara Signed-off-by: Will Deacon Signed-off-by: Ben Hutchings --- arch/arm64/include/asm/barr

[PATCH 3.16 017/366] media: omap3isp/isp: remove an unused static var

2018-11-11 Thread Ben Hutchings
Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/media/platform/omap3isp/isp.c | 7 --- 1 file changed, 7 deletions(-) --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -279,13 +279,6

[PATCH 3.16 011/366] Revert "mtd: nand: omap2: Fix subpage write"

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings This reverts commit e7e13fa736726e9860a86e5e1ae19ce162e11b71, which was commit 739c64414f01748a36e7d82c8e0611dea94412bd upstream. It doesn't appear to fix a real bug in 3.16

[PATCH 3.16 009/366] eeepc-laptop: simplify parse_arg()

2018-11-11 Thread Ben Hutchings
] int rv, value; Which is, of course, the reason to have a look at parse_arg(). Signed-off-by: Paul Bolle Signed-off-by: Darren Hart Signed-off-by: Ben Hutchings --- drivers/platform/x86/eeepc-laptop.c | 36 ++--- 1 file changed, 18 insertions(+), 18 deletions(-) ---

[PATCH 3.16 013/366] arch/x86/kernel/cpu/common.c: fix unused symbol warning

2018-11-11 Thread Ben Hutchings
uot;H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/

[PATCH 3.16 007/366] [media] drxk_hard: fix bad alignments

2018-11-11 Thread Ben Hutchings
-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/dvb-frontends/drxk_hard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/media/dvb-frontends/drxk_hard.c +++ b/drivers/media/dvb-frontends/drxk_hard.c @@ -2220,12 +2220,13 @@ static int set_agc_rf

[PATCH 3.16 008/366] [media] drxd_hard: fix bad alignments

2018-11-11 Thread Ben Hutchings
on line 2633 Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/dvb-frontends/drxd_hard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c @@ -2628,10 +2628,11

[PATCH 3.16 012/366] media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS

2018-11-11 Thread Ben Hutchings
to. This looks like a trivially exploitable root hole. Signed-off-by: Lad, Prabhakar Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.16: deleted code was slightly different] Signed-off-by: Ben Hutchings --- .../media/platform/davinci/ccdc_hw_device.h

[PATCH 3.16 019/366] media: v4l2-compat-ioctl32: prevent go past max size

2018-11-11 Thread Ben Hutchings
: check for integer overflow 'count' The access_ok() logic should check for too big arrays too. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/v4l2-core

[PATCH 3.16 016/366] staging:iio:ade7854: Fix the wrong number of bits to read

2018-11-11 Thread Ben Hutchings
Signed-off-by: Jonathan Cameron Signed-off-by: Ben Hutchings --- drivers/staging/iio/meter/ade7854-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/iio/meter/ade7854-i2c.c +++ b/drivers/staging/iio/meter/ade7854-i2c.c @@ -191,7 +191,7 @@ static int ade7854_i2c_r

[PATCH 3.16 018/366] media: dvb_frontend: fix locking issues at dvb_frontend_get_event()

2018-11-11 Thread Ben Hutchings
ail, and the routine will call up() twice when userspace calls the ioctl again. The bad code is there since when Linux migrated to git, in 2005. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/dvb-core/dvb_frontend.c | 23 +++ 1 file changed,

[PATCH 3.16 006/366] fnic: Fix misleading indentation

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Fix the compiler warning: drivers/scsi/fnic/fnic_fcs.c:104:6: warning: this 'else' clause does not guard... This was done upstream as part of commit 86001f248e94 "fnic: a

[PATCH 3.16 015/366] staging:iio:ade7854: Fix error handling on read/write

2018-11-11 Thread Ben Hutchings
related to all read/write functions for I2C. Signed-off-by: John Syne Signed-off-by: Rodrigo Siqueira Fixes: 8d97a5877 ("staging: iio: meter: new driver for ADE7754 devices") Signed-off-by: Jonathan Cameron [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --

[PATCH 3.16 005/366] staging: rtl8192ee: Fix misleading indentation

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Fix the compiler warnings: drivers/staging/rtl8192ee/rtl8192ee/hw.c:524:4: warning: this 'if' clause does not guard... drivers/staging/rtl8192ee/rtl8192ee/hw.c:529:5: warning

[PATCH 3.16 010/366] rtl8723be: Fix misleading indentation

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Fix the compiler warning: drivers/net/wireless/rtlwifi/rtl8723be/hw.c:1132:2: warning: this 'else' clause does not guard... by reducing indentation of the following statement

[PATCH 3.16 030/366] ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup

2018-11-11 Thread Ben Hutchings
Signed-off-by: Alexander Sverdlin Signed-off-by: Mark Brown Signed-off-by: Ben Hutchings --- sound/soc/cirrus/ep93xx-i2s.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) --- a/sound/soc/cirrus/ep93xx-i2s.c +++ b/sound/soc/cirrus/ep93xx-i2s.c @@ -51,7 +51,9 @

[PATCH 3.16 004/366] bcmgenet: Delete unused variable

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings I needed to add a "kdev" variable to bcmgenet_desc_rx() when backporting commit 8c4799ac7996 "net: bcmgenet: Utilize correct struct device for all DMA operatio

[PATCH 3.16 003/366] staging: vt6656: Fix misleading indentation

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Fix the compiler warnings: drivers/staging/vt6656/dpc.c:712:5: warning: this 'if' clause does not guard... drivers/staging/vt6656/main_usb.c:1101:7: warning: this 'if' clause

[PATCH 3.16 028/366] sctp: fix identification of new acks for SFR-CACC

2018-11-11 Thread Ben Hutchings
y: Neil Horman Signed-off-by: David S. Miller [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- net/sctp/outqueue.c | 48 ++--- 1 file changed, 23 insertions(+), 25 deletions(-) --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueu

[PATCH 3.16 027/366] signal/xtensa: Consistenly use SIGBUS in do_unaligned_user

2018-11-11 Thread Ben Hutchings
tecture support for Tensilica Xtensa Part 3") Signed-off-by: "Eric W. Biederman" Signed-off-by: Ben Hutchings --- arch/xtensa/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -282,7 +282,7 @@ do_

[PATCH 3.16 029/366] ASoC: cirrus: i2s: Fix LRCLK configuration

2018-11-11 Thread Ben Hutchings
Guide"). Previously card drivers which specified SND_SOC_DAIFMT_NB_IF actually got SND_SOC_DAIFMT_NB_NF, an adaptation is necessary to retain the old behavior. Signed-off-by: Alexander Sverdlin Signed-off-by: Mark Brown Signed-off-by: Ben Hutchings --- sound/soc/cirrus/edb93xx.c | 2 +- sound/

[PATCH 3.16 023/366] media: rc: mce_kbd decoder: fix stuck keys

2018-11-11 Thread Ben Hutchings
stuck"; the keyup event is not sent since the input_sync() is missing from the timeout handler. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.16: s/raw->mce_kbd\.idev/mce_kbd->idev/] Signed-off-by: Ben Hutchings --- drivers/media/rc/ir-mce_kbd-dec

[PATCH 3.16 020/366] pinctrl: samsung: Correct EINTG banks order

2018-11-11 Thread Ben Hutchings
- Drop change to exynos5410_pin_banks0 - Adjust filename] Signed-off-by: Ben Hutchings --- --- a/drivers/pinctrl/pinctrl-exynos.c +++ b/drivers/pinctrl/pinctrl-exynos.c @@ -679,12 +679,12 @@ static struct samsung_pin_bank s5pv210_p EXYNOS_PIN_BANK_EINTG(7, 0x1c

[PATCH 3.16 022/366] media: cx231xx: Add support for AverMedia DVD EZMaker 7

2018-11-11 Thread Ben Hutchings
. BugLink: https://bugs.launchpad.net/bugs/1620762 Signed-off-by: Kai-Heng Feng Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/usb/cx231xx/cx231xx-cards.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/media/usb/cx231xx

[PATCH 3.16 024/366] PCI: ibmphp: Fix use-before-set in get_max_bus_speed()

2018-11-11 Thread Ben Hutchings
rc" is non-zero, then this function is basically a no-op. Fixes: 3749c51ac6c1 ("PCI: Make current and maximum bus speeds part of the PCI core") Signed-off-by: Dan Carpenter Signed-off-by: Bjorn Helgaas Signed-off-by: Ben Hutchings --- drivers/pci/hotplug/ibmphp_core.c | 2 +- 1 f

[PATCH 3.16 102/366] libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk

2018-11-11 Thread Ben Hutchings
ink: https://bugzilla.redhat.com/show_bug.cgi?id=1583207 Cc: Richard W.M. Jones Cc: Lorenzo Dalrio Reported-by: Lorenzo Dalrio Signed-off-by: Hans de Goede Signed-off-by: Tejun Heo Acked-by: "Richard W.M. Jones" Signed-off-by: Ben Hutchings --- drivers/ata/libata-core.c | 3 --- 1 file

[PATCH 3.16 094/366] libata: zpodd: small read overflow in eject_tray()

2018-11-11 Thread Ben Hutchings
is only 12 bytes. Fixes: 213342053db5 ("libata: handle power transition of ODD") Signed-off-by: Dan Carpenter Signed-off-by: Tejun Heo Signed-off-by: Ben Hutchings --- drivers/ata/libata-zpodd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/ata/libata-zpodd.c +++

[PATCH 3.16 093/366] libata: zpodd: make arrays cdb static, reduces object code size

2018-11-11 Thread Ben Hutchings
Heo Signed-off-by: Ben Hutchings --- drivers/ata/libata-zpodd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/ata/libata-zpodd.c +++ b/drivers/ata/libata-zpodd.c @@ -34,7 +34,7 @@ struct zpodd { static int eject_tray(struct ata_device *dev) { struct ata_taskfile

[PATCH 3.16 026/366] usb: do not reset if a low-speed or full-speed device timed out

2018-11-11 Thread Ben Hutchings
oseychuk Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/core/hub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -4381,7 +4381,9 @@ hub_port_init (struct usb_hub *hub, stru

[PATCH 3.16 025/366] mwifiex: pcie: tighten a check in mwifiex_pcie_process_event_ready()

2018-11-11 Thread Ben Hutchings
30faee141b ("mwifiex: add support for Marvell pcie8766 chipset") Signed-off-by: Dan Carpenter Signed-off-by: Kalle Valo [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings --- drivers/net/wireless/mwifiex/pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-

[PATCH 3.16 154/366] xfrm_user: prevent leaking 2 bytes of kernel memory

2018-11-11 Thread Ben Hutchings
("[XFRM] netlink: Use nla_put()/NLA_PUT() variantes") Signed-off-by: Eric Dumazet Reported-by: syzbot Cc: Steffen Klassert Cc: Herbert Xu Signed-off-by: Steffen Klassert Signed-off-by: Ben Hutchings --- net/xfrm/xfrm_user.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)

[PATCH 3.16 156/366] MIPS: io: Add barrier after register read in inX()

2018-11-11 Thread Ben Hutchings
, if readX() need a barrier then so does inX(). Signed-off-by: Huacai Chen Patchwork: https://patchwork.linux-mips.org/patch/19516/ Signed-off-by: Paul Burton Cc: James Hogan Cc: linux-m...@linux-mips.org Cc: Fuxin Zhang Cc: Zhangjin Wu Cc: Huacai Chen Signed-off-by: Ben Hutchings --- arch/mips/i

[PATCH 3.16 160/366] x86/spectre_v1: Disable compiler optimizations over array_index_mask_nospec()

2018-11-11 Thread Ben Hutchings
array_index_mask_nospec") Link: https://lkml.kernel.org/lkml/152838798950.14521.4893346294059739135.st...@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86/include/asm/barrier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/incl

[PATCH 3.16 158/366] x86: Call fixup_exception() before notify_die() in math_error()

2018-11-11 Thread Ben Hutchings
f1cab2592b07c79a03b1...@dm5pr11mb2011.namprd11.prod.outlook.com [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/x86/kernel/traps.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -556,

[PATCH 3.16 155/366] scsi: target: Fix truncated PR-in ReadKeys response

2018-11-11 Thread Ben Hutchings
rsen [bwh: Backported to 3.16: Convert from open-coded put_unaligned_be64()] Signed-off-by: Ben Hutchings --- drivers/target/target_core_pr.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) --- a/drivers/target/target_core_pr.c +++ b/drivers/target/target_core_pr.c @@ -3726,1

[PATCH 3.16 095/366] tpm: fix race condition in tpm_common_write()

2018-11-11 Thread Ben Hutchings
under the protection of the priv->buffer_mutex. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Tadeusz Struk Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen [bwh: Backported to 3.16: adjust filenames, context] Signed-off-by: Ben Hutchings --- --- a/drivers/char/tpm/tpm-

[PATCH 3.16 100/366] fuse: fix control dir setup and teardown

2018-11-11 Thread Ben Hutchings
of any mounts that might have been added. [1] https://syzkaller.appspot.com/bug?id=f396d863067238959c91c0b7cfc10b163638cac6 Reported-by: syzbot Fixes: bafa96541b25 ("[PATCH] fuse: add control filesystem") Signed-off-by: Miklos Szeredi [bwh: Backported to 3.16: adjust context] Si

[PATCH 3.16 101/366] fuse: don't keep dead fuse_conn at fuse_fill_super().

2018-11-11 Thread Ben Hutchings
ed-off-by: Tetsuo Handa Reported-by: syzbot Fixes: 3b463ae0c626 ("fuse: invalidation reverse calls") Cc: John Muir Cc: Csaba Henk Cc: Anand Avati Signed-off-by: Miklos Szeredi Signed-off-by: Ben Hutchings --- fs/fuse/inode.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/fuse/inode

[PATCH 3.16 181/366] ALSA: hda/realtek - Add a quirk for FSC ESPRIMO U9210

2018-11-11 Thread Ben Hutchings
://bugzilla.kernel.org/show_bug.cgi?id=200107 Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2496,6 +2496,7 @@ static const struct snd_pci_quirk

[PATCH 3.16 180/366] mtd: cfi_cmdset_0002: Avoid walking all chips when unlocking.

2018-11-11 Thread Ben Hutchings
operation. Fixes: 1648eaaa1575 ("mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking") Signed-off-by: Joakim Tjernlund Signed-off-by: Boris Brezillon Signed-off-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers

[PATCH 3.16 097/366] mtd: cfi_cmdset_0002: Change definition naming to retry write operation

2018-11-11 Thread Ben Hutchings
-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -42,7 +42,7 @@ #define AMD_BOOTLOC_BUG #define FORCE_WORD_WRITE 0 -#define

[PATCH 3.16 177/366] Input: elantech - enable middle button of touchpads on ThinkPad P52

2018-11-11 Thread Ben Hutchings
. Signed-off-by: Aaron Ma Reviewed-by: Benjamin Tissoires Signed-off-by: Dmitry Torokhov Signed-off-by: Ben Hutchings --- drivers/input/mouse/elantech.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c

[PATCH 3.16 098/366] mtd: cfi_cmdset_0002: Change erase functions to retry for error

2018-11-11 Thread Ben Hutchings
Cc: Cyrille Pitchen Cc: linux-...@lists.infradead.org Signed-off-by: Boris Brezillon Signed-off-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 10 ++ 1 file changed, 10 insertions(+) --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c

[PATCH 3.16 099/366] mtd: cfi_cmdset_0002: Change erase functions to check chip good only

2018-11-11 Thread Ben Hutchings
: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-...@lists.infradead.org Signed-off-by: Boris Brezillon [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions

[PATCH 3.16 092/366] media: uvcvideo: Support realtek's UVC 1.5 device

2018-11-11 Thread Ben Hutchings
ctor out code to helper function, update size checks] Signed-off-by: ming_qian Signed-off-by: Laurent Pinchart Tested-by: Kai-Heng Feng Tested-by: Ana Guerrero Lopez Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/media

[PATCH 3.16 171/366] xen-netfront: avoid crashing on resume after a failure in talk_to_netback()

2018-11-11 Thread Ben Hutchings
any calls into netfront after a failure. Signed-off-by: Vitaly Kuznetsov Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c

[PATCH 3.16 096/366] mtd: cfi_cmdset_0002: Change write buffer to check correct value

2018-11-11 Thread Ben Hutchings
Cc: Brian Norris Cc: David Woodhouse Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-...@lists.infradead.org Signed-off-by: Boris Brezillon Signed-off-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 2 +- 1 file changed, 1 insertion

[PATCH 3.16 159/366] x86/speculation: Fix up array_index_nospec_mask() asm constraint

2018-11-11 Thread Ben Hutchings
-by: Linus Torvalds Signed-off-by: Dan Williams Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/151797010204.1289.151292250184993.st...@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86

[PATCH 3.16 157/366] udf: Detect incorrect directory size

2018-11-11 Thread Ben Hutchings
the filesystem is corrupted. Otherwise directory operations can further corrupt the directory and possibly also oops the kernel. CC: Anatoly Trosinenko Reported-and-tested-by: Anatoly Trosinenko Signed-off-by: Jan Kara Signed-off-by: Ben Hutchings --- fs/udf/directory.c | 3 +++ 1 file changed, 3

[PATCH 3.16 153/366] powerpc/e500mc: Set assembler machine type to e500mc

2018-11-11 Thread Ben Hutchings
C: Michael Ellerman CC: Kumar Gala CC: Vakul Garg CC: Scott Wood CC: Mathieu Desnoyers CC: linuxppc-...@lists.ozlabs.org CC: linux-kernel@vger.kernel.org Signed-off-by: Michael Ellerman [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/powerpc/Makefile | 1 + 1 fi

[PATCH 3.16 165/366] xen-netfront: use different locks for Rx and Tx stats

2018-11-11 Thread Ben Hutchings
syncp.seq#2); lock(&(>tx_lock)->rlock); Using separate locks for the Rx and Tx stats fixes this deadlock. Reported-by: Dmitry Piotrovsky Signed-off-by: David Vrabel Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 71 +++

[PATCH 3.16 163/366] xen-netfront: fix locking in connect error path

2018-11-11 Thread Ben Hutchings
-by: David Vrabel Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -2000,7 +2000,7 @@ abort_transaction_no_dev_fatal: info->que

[PATCH 3.16 174/366] xen-netfront: Update features after registering netdev

2018-11-11 Thread Ben Hutchings
) Reported-by: Liam Shepherd Signed-off-by: Ross Lagerwall Reviewed-by: Juergen Gross Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/net/xen-netfront.c +++ b/drive

[PATCH 3.16 176/366] Input: elantech - report the middle button of the touchpad

2018-11-11 Thread Ben Hutchings
button. This commit enables this middle button. For backwards compatibility, the Fujitsu is detected via DMI, and only for this one 3 buttons will be announced. Reported-by: Stefan Valouch Signed-off-by: Ulrik De Bie Signed-off-by: Dmitry Torokhov Signed-off-by: Ben Hutchings --- drivers

[PATCH 3.16 169/366] net/xen-netfront: only clean up queues if present

2018-11-11 Thread Ben Hutchings
never created and you get a bad pointer dereference. Signed-off-by: Chas Williams <3ch...@gmail.com> Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/net/xen-netfront.c +++ b/dri

[PATCH 3.16 179/366] xen: Remove unnecessary BUG_ON from __unbind_from_irq()

2018-11-11 Thread Ben Hutchings
or cleanup path of xen_bind_pirq_msi_to_irq(). This cleanup allowed a call to __unbind_from_irq() with an unbound irq, which would result in triggering the BUG_ON there. Since there is really no reason for the BUG_ON (xen_free_irq() can operate on unbound irqs) we can remove it. Reported-by: Ben

[PATCH 3.16 172/366] xen-netfront: Fix race between device setup and open

2018-11-11 Thread Ben Hutchings
against this race. There is a possibility that we fail to recreate the queues so check for this in the open function. Signed-off-by: Ross Lagerwall Reviewed-by: Boris Ostrovsky Signed-off-by: Juergen Gross Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 46

[PATCH 3.16 178/366] Input: elantech - fix V4 report decoding for module with middle key

2018-11-11 Thread Ben Hutchings
error decoding. Signed-off-by: KT Liao Signed-off-by: Dmitry Torokhov Signed-off-by: Ben Hutchings --- drivers/input/mouse/elantech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -737,7 +737,7 @@ static int

[PATCH 3.16 168/366] xen-netfront: Remove the meaningless code

2018-11-11 Thread Ben Hutchings
this function with the second parameter set to 0 is meaningless. Signed-off-by: Liang Li Reviewed-by: David Vrabel Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 7 --- 1 file changed, 7 deletions(-) --- a/drivers/net/xen-netfront.c +++ b/dr

[PATCH 3.16 237/366] xhci: xhci-mem: off by one in xhci_stream_id_to_ring()

2018-11-11 Thread Ben Hutchings
ings[] array. Fixes: e9df17eb1408 ("USB: xhci: Correct assumptions about number of rings per endpoint.") Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3.16 166/366] xen-netfront: Use static attribute groups for sysfs entries

2018-11-11 Thread Ben Hutchings
groups array. This simplifies the code and avoids the possible races. Signed-off-by: Takashi Iwai Acked-by: David Vrabel Signed-off-by: David S. Miller [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 62

[PATCH 3.16 173/366] xen-netfront: Fix mismatched rtnl_unlock

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ross Lagerwall commit cb257783c2927b73614b20f915a91ff78aa6f3e8 upstream. Fixes: f599c64fdf7d ("xen-netfront: Fix race between device setup and open") Reported-by: Ben Hutchings

[PATCH 3.16 167/366] xen-netfront: properly destroy queues when removing device

2018-11-11 Thread Ben Hutchings
backported most of this along with the later commit 74470954857c "xen-netfront: Delete rx_refill_timer in xennet_disconnect_backend()"; don't move the del_timer_sync() again.] Signed-off-by: Ben Hutchings --- --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -2294

[PATCH 3.16 164/366] xen-netfront: release per-queue Tx and Rx resource when disconnecting

2018-11-11 Thread Ben Hutchings
instead of reused this will add some additional delay to the reconnection but this is expected to be small compared to the time taken by any backend hotplug scripts etc. Signed-off-by: David Vrabel Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 68

[PATCH 3.16 256/366] reiserfs: fix buffer overflow with long warning messages

2018-11-11 Thread Ben Hutchings
a177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: syzbot+b890b3335a4d8c608...@syzkaller.appspotmail.com Signed-off-by: Eric Biggers Reviewed-by: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings ---

[PATCH 3.16 250/366] mm, elf: handle vm_brk error

2018-11-11 Thread Ben Hutchings
Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- fs/binfmt_elf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1084,8 +1084,11 @@ static int load_elf_library(struct file len

[PATCH 3.16 248/366] skbuff: Unconditionally copy pfmemalloc in __skb_clone()

2018-11-11 Thread Ben Hutchings
alloc flag in either copy or clone path until now] Signed-off-by: Ben Hutchings --- --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -768,6 +768,7 @@ static struct sk_buff *__skb_clone(struc n->cloned = 1; n->nohdr = 0; n->peeked = 0; + C(pfmemalloc);

[PATCH 3.16 249/366] qlogic: check kstrtoul() for errors

2018-11-11 Thread Ben Hutchings
sysfs callback for 83xx adapter") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c +++ b/drivers/net/ether

[PATCH 3.16 247/366] ext4: check for allocation block validity with block group locked

2018-11-11 Thread Ben Hutchings
er process reading and verifying the bitmap, which would then complain about the checksum being invalid. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1780137 Signed-off-by: Theodore Ts'o [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- --- a/fs/ext4/balloc.c +++

[PATCH 3.16 175/366] mtd: cfi_cmdset_0002: Fix unlocking requests crossing a chip boudary

2018-11-11 Thread Ben Hutchings
ocking") Signed-off-by: Joakim Tjernlund Signed-off-by: Boris Brezillon Signed-off-by: Ben Hutchings --- drivers/mtd/chips/cfi_cmdset_0002.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -2340,7 +

[PATCH 3.16 170/366] xen-netfront: Improve error handling during initialization

2018-11-11 Thread Ben Hutchings
ork device. Signed-off-by: Ross Lagerwall Reviewed-by: Boris Ostrovsky Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- drivers/net/xen-netfront.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) --- a/drivers/net/xen-netfront.c +++ b/drivers/

[PATCH 3.16 241/366] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-11-11 Thread Ben Hutchings
HS400 flag to clear - Adjust context] Signed-off-by: Ben Hutchings --- --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -261,6 +261,15 @@ static u32 esdhc_readl_le(struct sdhci_h val = SDHCI_SUPPORT_DDR50 | SDHCI_SUPP

[PATCH 3.16 240/366] ibmasm: don't write out of bounds in read handler

2018-11-11 Thread Ben Hutchings
and userspace memory corruption. Just use simple_read_from_buffer() with a stack buffer. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Jann Horn Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/misc/ibmasm/ibmasmfs.c | 27 +++--

[PATCH 3.16 242/366] HID: hiddev: fix potential Spectre v1

2018-11-11 Thread Ben Hutchings
oad/store [1]. [1] https://marc.info/?l=linux-kernel=152449131114778=2 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Jiri Kosina Signed-off-by: Ben Hutchings --- drivers/hid/usbhid/hiddev.c | 11 +++ 1 file changed, 11 insertions(+) --- a/drivers/hid/usbhid/hiddev.c +++ b/drive

[PATCH 3.16 296/366] tracing: Fix possible double free in event_enable_trigger_func()

2018-11-11 Thread Ben Hutchings
by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Ben Hutchings --- kernel/trace/trace_events_trigger.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/kernel/trace/trace_events_trigger.c +++ b/kernel/trace/trace_events_trigger.

[PATCH 3.16 252/366] mm: refuse wrapped vm_brk requests

2018-11-11 Thread Ben Hutchings
Chen Gang Cc: Michal Hocko Cc: Konstantin Khlebnikov Cc: Andrea Arcangeli Cc: Andrey Ryabinin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- mm/mmap.c | 8 +--- 1 file changed, 5 insertions(+), 3

[PATCH 3.16 244/366] ext4: fix inline data updates with checksums enabled

2018-11-11 Thread Ben Hutchings
-off-by: Ben Hutchings --- fs/ext4/inline.c | 19 +++ fs/ext4/inode.c | 16 +++- 2 files changed, 18 insertions(+), 17 deletions(-) --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -681,6 +681,10 @@ int ext4_try_to_write_inline_data(struct goto convert

[PATCH 3.16 251/366] binfmt_elf: fix calculations for bss padding

2018-11-11 Thread Ben Hutchings
Konstantin Khlebnikov Cc: Andrea Arcangeli Cc: Andrey Ryabinin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- fs/binfmt_elf.c | 34 ++ 1 file changed, 18 insertions(+), 16 d

[PATCH 3.16 351/366] usb: misc: usb3503: Update error code in print message

2018-11-11 Thread Ben Hutchings
Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/misc/usb3503.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -192,7 +192,8 @@ static int usb3503_probe(struct usb3503 clk = devm_clk_get(de

[PATCH 3.16 254/366] mm: do not bug_on on incorrect length in __mm_populate()

2018-11-11 Thread Ben Hutchings
temov" Cc: Michael S. Tsirkin Cc: Al Viro Cc: "Huang, Ying" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.16: - There is no do_brk_flags() function; update do_brk() - do_brk(), vm_brk() return the address on success - Adjust filename, c

[PATCH 3.16 257/366] usb: cdc_acm: Add quirk for Castles VEGA3000

2018-11-11 Thread Ben Hutchings
-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/usb/class/cdc-acm.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1784,6 +1784,9 @@ static const struct usb_device_id acm_id

[PATCH 3.16 323/366] media: v4l: event: Prevent freeing event subscriptions while accessed

2018-11-11 Thread Ben Hutchings
-by: Hans Verkuil Reviewed-by: Laurent Pinchart Fixes: c3b5b0241f62 ("V4L/DVB: V4L: Events: Add backend") Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/v4l2-core/v4l2-event.c | 38 +++- drivers/media/v4l2-core/v4l2-fh

[PATCH 3.16 307/366] nohz: Fix local_timer_softirq_pending()

2018-11-11 Thread Ben Hutchings
er Signed-off-by: Thomas Gleixner Reviewed-by: Paul E. McKenney Reviewed-by: Daniel Bristot de Oliveira Acked-by: Frederic Weisbecker Cc: bige...@linutronix.de Cc: pet...@infradead.org Link: https://lkml.kernel.org/r/20180731161358.29472-1-anna-ma...@linutronix.de Signed-off-by: Ben Hutchings --

[PATCH 3.16 317/366] VFS: Impose ordering on accesses of d_inode and d_flags

2018-11-11 Thread Ben Hutchings
ier between setting d_inode and setting d_flags and a read barrier between reading d_flags and reading d_inode. Signed-off-by: David Howells Signed-off-by: Al Viro [bwh: Backported to 3.16: - Use ACCESS_ONCE() instead of {READ,WRITE}_ONCE() - There's no DCACHE_FALLTHRU flag] Signed-off-by:

[PATCH 3.16 245/366] ARC: mm: allow mprotect to make stack mappings executable

2018-11-11 Thread Ben Hutchings
by compiler and handled in kernel elf loader. This glibc case is different as the stack is non exec to begin with and a dlopen of shared lib with GNU_STACK segment triggers the exec stack proceedings using a mprotect(PROT_EXEC) which was broken. Signed-off-by: Vineet Gupta Signed-off-by: Ben Hutchings

[PATCH 3.16 255/366] string: drop __must_check from strscpy()

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings This was done as part of commit 08a77676f9c5 upstream, from which the following description is taken: > strlcpy() is worse than strlcpy() because it unconditionally r

[PATCH 3.16 246/366] RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path

2018-11-11 Thread Ben Hutchings
("IB/mlx5: Fix integer overflows in mlx5_ib_create_srq") Signed-off-by: Kamal Heib Acked-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/infiniband/hw/mlx5/srq.c | 18 -- 1 file c

[PATCH 3.16 316/366] fix __legitimize_mnt()/mntput() race

2018-11-11 Thread Ben Hutchings
return statement and comments accordingly.] Signed-off-by: Ben Hutchings --- fs/namespace.c | 14 ++ 1 file changed, 14 insertions(+) --- a/fs/namespace.c +++ b/fs/namespace.c @@ -592,12 +592,20 @@ bool legitimize_mnt(struct vfsmount *bas return true;

[PATCH 3.16 315/366] fix mntput/mntput race

2018-11-11 Thread Ben Hutchings
d vsfmounts") Signed-off-by: Al Viro [bwh: Backported to 3.16: Use ACCESS_ONCE() instead of READ_ONCE()] Signed-off-by: Ben Hutchings --- fs/namespace.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) --- a/fs/namespace.c +++ b/fs/namespace.c @@ -969,12 +969,22 @@

[PATCH 3.16 253/366] fs, elf: make sure to page align bss in load_elf_library

2018-11-11 Thread Ben Hutchings
Salvador Reported-by: syzbot+5dcb560fe12aa5091...@syzkaller.appspotmail.com Tested-by: Tetsuo Handa Acked-by: Kees Cook Cc: Michal Hocko Cc: Nicolas Pitre Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- fs/binfmt_elf.c | 5 ++--- 1 file changed, 2

  1   2   3   4   5   6   7   8   9   10   >