[PATCH 4.11 008/115] bpf, arm64: fix faulty emission of map access in tail calls

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit d8b54110ee944de522ccd3531191f39986ec20f9 ] Shubham was recently asking on netdev why in arm64 JIT we don't multiply the index for accessing the tail call map

[PATCH 4.9 69/94] xfs: Fix missed holes in SEEK_HOLE implementation

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 5375023ae1266553a7baa0845e82917d8803f48c upstream. XFS SEEK_HOLE implementation could miss a hole in an unwritten extent as can be seen by the following command: xfs_io -c "fal

[PATCH 4.9 81/94] xfs: prevent multi-fsb dir readahead from reading random blocks

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit cb52ee334a45ae6c78a3999e4b473c43ddc528f4 upstream. Directory block readahead uses a complex iteration mechanism to map between high-level directory blocks and underlying phy

[PATCH 4.9 80/94] xfs: handle array index overrun in xfs_dir2_leaf_readbuf()

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit 023cc840b40fad95c6fe26fff1d380a8c9d45939 upstream. Carlos had a case where "find" seemed to start spinning forever and never return. This was on a filesystem with non-defau

[PATCH 4.9 83/94] xfs: support ability to wait on new inodes

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 756baca27fff3ecaeab9dbc7a5ee35a1d7bc0c7f upstream. Inodes that are inserted into the perag tree but still under construction are flagged with the XFS_INEW bit. Most contexts

[PATCH 4.9 74/94] xfs: fix kernel memory exposure problems

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit bf9216f922612d2db7666aae01e65064da2ffb3a upstream. Fix a memory exposure problems in inumbers where we allocate an array of structures with holes, fail to zero the holes,

[PATCH 4.11 029/115] net/mlx5: Avoid using pending command interface slots

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Mohamad Haj Yahia [ Upstream commit 73dd3a4839c1d27c36d4dcc92e1ff44225ecbeb7 ] Currently when firmware command gets stuck or it takes long time to complete, the driver command will get timeou

[PATCH 4.11 000/115] 4.11.4-stable review

2017-06-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.11.4 release. There are 115 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Jun 7 15:30:31 UTC 2017. Anything receiv

[PATCH 4.9 84/94] xfs: update ag iterator to support wait on new inodes

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 upstream. The AG inode iterator currently skips new inodes as such inodes are inserted into the inode radix tree before they are ful

[PATCH 4.11 005/115] s390/qeth: unbreak OSM and OSN support

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann [ Upstream commit 2d2ebb3ed0c6acfb014f98e427298673a5d07b82 ] commit b4d72c08b358 ("qeth: bridgeport support - basic control") broke the support for OSM and OSN devices as foll

[PATCH 4.9 92/94] xfs: avoid mount-time deadlock in CoW extent recovery

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0 upstream. If a malicious user corrupts the refcount btree to cause a cycle between different levels of the tree, the next mount a

Re: [PATCH v3 2/5] dt-bindings: qcom: Add IPQ8074 bindings

2017-06-05 Thread Rob Herring
On Thu, Jun 01, 2017 at 04:57:59PM +0530, Varadarajan Narayanan wrote: > Signed-off-by: Varadarajan Narayanan > --- > Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ > 1 file changed, 2 insertions(+) I acked v2. Please add acks when posting new versions. Rob

[PATCH 4.11 012/115] tipc: make macro tipc_wait_for_cond() smp safe

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jon Paul Maloy [ Upstream commit 844cf763fba654436d3a4279b6a672c196cf1901 ] The macro tipc_wait_for_cond() is embedding the macro sk_wait_event() to fulfil its task. The latter, in turn, is e

[PATCH 4.11 009/115] netem: fix skb_orphan_partial()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit f6ba8d33cfbb46df569972e64dbb5bb7e929bfd9 ] I should have known that lowering skb->truesize was dangerous :/ In case packets are not leaving the host via a stan

[PATCH 4.11 001/115] dccp/tcp: do not inherit mc_list from parent

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 657831ffc38e30092a2d5f03d385d710eb88b09a ] syzkaller found a way to trigger double frees from ip_mc_drop_socket() It turns out that leave a copy of parent mc_l

[PATCH 4.11 011/115] tcp: avoid fragmenting peculiar skbs in SACK

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Yuchung Cheng [ Upstream commit b451e5d24ba6687c6f0e7319c727a709a1846c06 ] This patch fixes a bug in splitting an SKB during SACK processing. Specifically if an skb contains multiple packets

[PATCH 4.9 93/94] xfs: fix unaligned access in xfs_btree_visit_blocks

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit a4d768e702de224cc85e0c8eac9311763403b368 upstream. This structure copy was throwing unaligned access warnings on sparc64: Kernel unaligned access at TPC[1043c088] xfs_btree

[PATCH 4.9 89/94] xfs: BMAPX shouldnt barf on inline-format directories

2017-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 6eadbf4c8ba816c10d1c97bed9aa861d9fd17809 upstream. When we're fulfilling a BMAPX request, jump out early if the data fork is in local format. This prevents us from hitti

[PATCH 4.11 003/115] ipv6/dccp: do not inherit ipv6_mc_list from parent

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: WANG Cong [ Upstream commit 83eaddab4378db256d00d295bda6ca997cd13a52 ] Like commit 657831ffc38e ("dccp/tcp: do not inherit mc_list from parent") we should clear ipv6_mc_list etc. for IPv6 soc

[PATCH 4.11 007/115] s390/qeth: add missing hash table initializations

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Ursula Braun [ Upstream commit ebccc7397e4a49ff64c8f44a54895de9d32fe742 ] commit 5f78e29ceebf ("qeth: optimize IP handling in rx_mode callback") added new hash tables, but missed to initializ

[PATCH 4.11 017/115] net/mlx5e: Fix ethtool pause support and advertise reporting

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Gal Pressman [ Upstream commit e3c19503712d6360239b19c14cded56dd63c40d7 ] Pause bit should set when RX pause is on, not TX pause. Also, setting Asym_Pause is incorrect, and should be turned o

Re: [PATCH v3 3/5] clk: qcom: ipq8074: Add Global Clock Controller support

2017-06-05 Thread Rob Herring
On Thu, Jun 01, 2017 at 04:58:00PM +0530, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > This patch adds support for the global clock controller found on > the IPQ8074 based devices. This includes UART, I2C, SPI etc. > > Signed-off-by: Abhishek Sahu > Signed-off-by: Varadarajan Narayana

[PATCH 4.11 027/115] ipv6: fix out of bound writes in __ip6_append_data()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 232cd35d0804cc241eb887bb8d4d9b3b9881c64a ] Andrey Konovalov and idaif...@gmail.com reported crashes caused by one skb shared_info being overwritten from __ip6_a

[PATCH 4.11 020/115] net/smc: Add warning about remote memory exposure

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig [ Upstream commit 19a0f7e37c0761a0a1cbf550705a6063c9675223 ] The driver explicitly bypasses APIs to register all memory once a connection is made, and thus allows remote acc

Re: [6/6] mm: memcontrol: account slab stats per lruvec

2017-06-05 Thread Guenter Roeck
his is already known, but a remarkable number of crashes in next-20170605 bisects to this patch. Guenter --- Qemu test results: total: 122 pass: 51 fail: 71 Failed tests: arm:vexpress-a9:vexpress_defconfig:vexpress-v2p-ca9 arm:vexpress-a15:vexpress_defconfig:v

[PATCH 4.11 018/115] tcp: eliminate negative reordering in tcp_clean_rtx_queue

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Soheil Hassas Yeganeh [ Upstream commit bafbb9c73241760023d8981191ddd30bb1c6dbac ] tcp_ack() can call tcp_fragment() which may dededuct the value tp->fackets_out when MSS changes. When prior_

[PATCH 4.11 021/115] net: Improve handling of failures on link and route dumps

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit f6c5775ff0bfa62b072face6bf1d40f659f194b2 ] In general, rtnetlink dumps do not anticipate failure to dump a single object (e.g., link or route) on a single pass.

[PATCH 4.11 022/115] ipv6: Prevent overrun when parsing v6 header options

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Craig Gallek [ Upstream commit 2423496af35d94a87156b063ea5cedffc10a70a1 ] The KASAN warning repoted below was discovered with a syzkaller program. The reproducer is basically: int s = sock

Re: [PATCH v6 00/11] Broadcom Stingray SOC Initial Support

2017-06-05 Thread Florian Fainelli
On 06/01/2017 11:34 PM, Anup Patel wrote: > This patchset adds initial support of Broadcom Stingray SOC > by reusing existing Broadcom iProc device drivers. > > Most of the patches in this patchset are DT patches except > the Stingray clock tree support which just one patch. > > This patchset is

[PATCH 4.11 015/115] net/packet: fix missing net_device reference release

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Douglas Caetano dos Santos [ Upstream commit d19b183cdc1fa3d70d6abe2a4c369e748cd7ebb8 ] When using a TX ring buffer, if an error occurs processing a control message (e.g. invalid message), th

[PATCH 4.11 043/115] sparc: Fix -Wstringop-overflow warning

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Orlando Arias [ Upstream commit deba804c90642c8ed0f15ac1083663976d578f54 ] Greetings, GCC 7 introduced the -Wstringop-overflow flag to detect buffer overflows in calls to string handling fun

[PATCH 4.11 024/115] bridge: netlink: check vlan_default_pvid range

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Tobias Jungel [ Upstream commit a285860211bf257b0e6d522dac6006794be348af ] Currently it is allowed to set the default pvid of a bridge to a value above VLAN_VID_MASK (0xfff). This patch adds

[PATCH 4.11 023/115] ipv6: Check ip6_find_1stfragopt() return value properly.

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 7dd7eb9513bd02184d45f000ab69d78cb1fa1531 ] Do not use unsigned variables to see if it returns a negative error or not. Fixes: 2423496af35d ("ipv6: Prevent

[PATCH 4.11 046/115] powerpc: Fix booting P9 hash with CONFIG_PPC_RADIX_MMU=N

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Michael Neuling commit d957fb4d173647640a2b83e7c7e56a580e7fc7e7 upstream. Currently if you disable CONFIG_PPC_RADIX_MMU you'll crash on boot on a P9. This is because we still set MMU_FTR_TYPE_

Re: [PATCH v3 19/27] thunderbolt: Add new Thunderbolt PCI IDs

2017-06-05 Thread Mika Westerberg
On Mon, Jun 05, 2017 at 03:50:24PM +, mario.limoncie...@dell.com wrote: > And presumably that's mostly for debugging purposes and will lead > to additional quirks to get "automatic" to do the right thing on those > machines that's it's found to be needed or more beneficial. I would say that th

[PATCH 4.11 034/115] geneve: fix fill_info when using collect_metadata

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Garver [ Upstream commit 11387fe4a98f75d1f4cdb3efe3b42b19205c9df5 ] Since 9b4437a5b870 ("geneve: Unify LWT and netdev handling.") fill_info does not return UDP_ZERO_CSUM6_RX when using C

Re: [PATCH v3 1/5] acpi, nfit: Switch to use new generic UUID API

2017-06-05 Thread Dan Williams
On Mon, Jun 5, 2017 at 9:40 AM, Andy Shevchenko wrote: > There are new types and helpers that are supposed to be used in new code. > > As a preparation to get rid of legacy types and API functions do > the conversion here. > > Reviewed-by: Dan Williams > Signed-off-by: Andy Shevchenko > --- > d

[PATCH 4.11 035/115] tcp: avoid fastopen API to be used on AF_UNSPEC

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Wei Wang [ Upstream commit ba615f675281d76fd19aa03558777f81fb6b6084 ] Fastopen API should be used to perform fastopen operations on the TCP socket. It does not make sense to use fastopen API

[PATCH 4.11 058/115] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Tissoires commit 878d8db039daac0938238e9a40a5bd6e50ee3c9b upstream. Revert commit 77e9a4aa9de1 (ACPI / button: Change default behavior to lid_init_state=open) which changed the kernel

[PATCH 4.11 036/115] sctp: fix ICMP processing if skb is non-linear

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Davide Caratti [ Upstream commit 804ec7ebe8ea003999ca8d1bfc499edc6a9e07df ] sometimes ICMP replies to INIT chunks are ignored by the client, even if the encapsulated SCTP headers match an ope

[PATCH 4.11 038/115] ipv4: add reference counting to metrics

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 3fb07daff8e99243366a081e5129560734de4ada ] Andrey Konovalov reported crashes in ipv4_mtu() I could reproduce the issue with KASAN kernels, between 10.246.7.151

Re: [PATCH v3 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-06-05 Thread Florian Fainelli
On 04/28/2017 03:22 PM, Eric Anholt wrote: > Cygnus has a single amac controller connected to the B53 switch with 2 > PHYs. On the BCM911360_EP platform, those two PHYs are connected to > the external ethernet jacks. > > v2: Call the node "switch", just call the ports "port" (suggestions by >

[PATCH 4.11 040/115] bpf: fix wrong exposure of map_flags into fdinfo for lpm

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit a316338cb71a3260201490e615f2f6d5c0d8fb2c ] trie_alloc() always needs to have BPF_F_NO_PREALLOC passed in via attr->map_flags, since it does not support preal

[PATCH 4.11 060/115] scsi: zero per-cmd private driver data for each MQ I/O

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Long Li commit 1bad6c4a57efda0d5f5bf8a2403b21b1ed24875c upstream. In lower layer driver's (LLD) scsi_host_template, the driver may optionally ask SCSI to allocate its private driver memory for

[PATCH 4.11 061/115] iscsi-target: Always wait for kthread_should_stop() before kthread exit

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jiang Yi commit 5e0cf5e6c43b9e19fc0284f69e5cd2b4a47523b0 upstream. There are three timing problems in the kthread usages of iscsi_target_mod: - np_thread of struct iscsi_np - rx_thread and

[PATCH 4.11 048/115] Revert "tty_port: register tty ports with serdev bus"

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit d3ba126a226a6b6da021ebfea444a2a807cde945 upstream. This reverts commit 8ee3fde047589dc9c201251f07d0ca1dc776feca. The new serdev bus hooked into the tty layer in tty_port_r

[PATCH 4.11 057/115] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Lv Zheng commit 2ea65321b83539afc1d45c1bea39c55ab42af62b upstream. In the Linux kernel, acpi_get_table() "clones" haven't been fully balanced by acpi_put_table() invocations. In upstream ACPI

Re: [Xen-devel] [PATCH] xen-evtchn: Bind dyn evtchn:qemu-dm interrupt to next online VCPU

2017-06-05 Thread Boris Ostrovsky
>> (BTW, I just noticed --- you don't need to initialize desc) > > Sorry, I didn't get it. Which desc doesn't need init ? +static void evtchn_bind_interdom_next_vcpu(int evtchn) +{ + unsigned int selected_cpu, irq; + struct irq_desc *desc = NULL; < + unsigned long flags; +

[PATCH 4.11 049/115] serdev: fix tty-port client deregistration

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit aee5da7838787f8ed47f825dbe09e2812acdf97b upstream. The port client data must be set when registering the serdev controller or client deregistration will fail (and the serde

[PATCH 4.11 050/115] drivers/tty: 8250: only call fintek_8250_probe when doing port I/O

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 4c4fc90964b1cf205a67df566cc82ea1731bcb00 upstream. Commit fa01e2ca9f53 ("serial: 8250: Integrate Fintek into 8250_base") modified the probing logic for PNP0501 devices, t

[PATCH 4.11 053/115] Revert "ACPI / button: Remove lid_init_state=method mode"

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Lv Zheng commit f369fdf4f661322b73f3307e9f3cd55fb3a20123 upstream. This reverts commit ecb10b694b72ca5ea51b3c90a71ff2a11963425a. The only expected ACPI control method lid device's usage model

[PATCH 4.11 054/115] x86/MCE: Export memory_error()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 2d1f406139ec20320bf38bcd2461aa8e358084b5 upstream. Export the function which checks whether an MCE is a memory error to other users so that we can reuse the logic. Drop

[PATCH 4.11 076/115] ALSA: hda - apply STAC_9200_DELL_M22 quirk for Dell Latitude D430

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Tsoy commit 1fc2e41f7af4572b07190f9dec28396b418e9a36 upstream. This model is actually called 92XXM2-8 in Windows driver. But since pin configs for M22 and M28 are identical, just reu

[PATCH 4.11 075/115] ALSA: hda - No loopback on ALC299 codec

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit fa16b69f1299004b60b625f181143500a246e5cb upstream. ALC299 has no loopback mixer, but the driver still tries to add a beep control over the mixer NID which leads to the erro

[PATCH 4.11 067/115] nvme-rdma: support devices with queue size < 32

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Marta Rybczynska commit 0544f5494a03b8846db74e02be5685d1f32b06c9 upstream. In the case of small NVMe-oF queue size (<32) we may enter a deadlock caused by the fact that the IB completions aren

[PATCH 4.11 074/115] pcmcia: remove left-over %Z format

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit ff5a20169b98d84ad8d7f99f27c5ebbb008204d6 upstream. Commit 5b5e0928f742 ("lib/vsprintf.c: remove %Z support") removed some usages of format %Z but forgot "%.2Zx". This mak

[PATCH 4.11 078/115] ALSA: usb: Fix a typo in Tascam US-16x08 mixer element

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 617163fc2580da3d489b6c1bacb6312e0e2aac02 upstream. A mixer element created in a quirk for Tascam US-16x08 contains a typo: it should be "EQ MidLow Q" instead of "EQ MidQLow

[PATCH 4.11 068/115] nvme: use blk_mq_start_hw_queues() in nvme_kill_queues()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Ming Lei commit 806f026f9b901eaf1a6baeb48b5da18d6a4f818e upstream. Inside nvme_kill_queues(), we have to start hw queues for draining requests in sw queues, .dispatch list and requeue list, so

[PATCH 4.11 066/115] HID: wacom: Have wacom_tpc_irq guard against possible NULL dereference

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jason Gerecke commit 2ac97f0f6654da14312d125005c77a6010e0ea38 upstream. The following Smatch complaint was generated in response to commit 2a6cdbd ("HID: wacom: Introduce new 'touch_input' dev

[PATCH 4.11 090/115] ksm: prevent crash after write_protect_page fails

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit a7306c3436e9c8e584a4b9fad5f3dc91be2a6076 upstream. "err" needs to be left set to -EFAULT if split_huge_page succeeds. Otherwise if "err" gets clobbered with zero and wr

[PATCH v3 5/5] ACPI: Switch to use generic guid_t in acpi_evaluate_dsm()

2017-06-05 Thread Andy Shevchenko
acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 bytes. Instead we convert them to use guid_t type. At the same time we convert current users. acpi_str_to_uuid() becomes useless after the conversion and it's safe to get rid of it. Acked-by: Rafael J. Wysocki Cc: Borislav Petk

[PATCH v3 2/5] ACPI / APEI: Switch to use new generic UUID API

2017-06-05 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Cc: Borislav Petkov Signed-off-by: Andy Shevchenko --- drivers/acpi/apei/ghes.c | 8 1 file changed, 4 insertions(+), 4 delet

[PATCH v3 3/5] ACPI / bus: Switch to use new generic UUID API

2017-06-05 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Acked-by: Rafael J. Wysocki Signed-off-by: Andy Shevchenko --- drivers/acpi/bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 delet

[PATCH v3 4/5] ACPI / extlog: Switch to use new generic UUID API

2017-06-05 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Cc: Borislav Petkov Signed-off-by: Andy Shevchenko --- drivers/acpi/acpi_extlog.c | 20 ++-- 1 file changed, 10 insert

[PATCH v3 0/5] ACPI et al: convert to use new UUID API

2017-06-05 Thread Andy Shevchenko
This series converts ACPI and users of acpi_evaluate_dsm() to new UUID API which includes new types and methods. Patches are based on uuid tree [1] from Christoph Hellwig and supposed to go through it. (Christoph, I think it would be nice to attach them to your stuff) [1]: git://git.infradead.or

[PATCH 4.11 062/115] iscsi-target: Fix initial login PDU asynchronous socket close OOPs

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 25cdda95fda78d22d44157da15aa7ea34be3c804 upstream. This patch fixes a OOPs originally introduced by: commit bb048357dad6d604520c91586334c9c230366a14 Author: Ni

[PATCH v3 1/5] acpi, nfit: Switch to use new generic UUID API

2017-06-05 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Reviewed-by: Dan Williams Signed-off-by: Andy Shevchenko --- drivers/acpi/nfit/core.c | 54 ---

[PATCH 4.11 089/115] x86/boot: Use CROSS_COMPILE prefix for readelf

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Rob Landley commit 3780578761921f094179c6289072a74b2228c602 upstream. The boot code Makefile contains a straight 'readelf' invocation. This causes build warnings in cross compile environments,

[PATCH 4.11 091/115] slub/memcg: cure the brainless abuse of sysfs attributes

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 478fe3037b2278d276d4cd9cd0ab06c4cb2e9b32 upstream. memcg_propagate_slab_attrs() abuses the sysfs attribute file functions to propagate settings from the root kmem_cache

[PATCH 4.11 093/115] xfs: Fix missed holes in SEEK_HOLE implementation

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 5375023ae1266553a7baa0845e82917d8803f48c upstream. XFS SEEK_HOLE implementation could miss a hole in an unwritten extent as can be seen by the following command: xfs_io -c "fa

Re: [PATCH v2 2/5] ACPI / APEI: Switch to use new generic UUID API

2017-06-05 Thread Andy Shevchenko
On Mon, 2017-06-05 at 18:22 +0200, Christoph Hellwig wrote: > On Mon, Jun 05, 2017 at 07:19:43PM +0300, Andy Shevchenko wrote: > > Thanks! > > Are you going to fixup when applying or better me to send an updated > > version? > > I'd prefer a resend so that all the maintainers can carefully re- > r

[PATCH 4.11 085/115] mm: consider memblock reservations for deferred memory initialization sizing

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko commit 864b9a393dcb5aed09b8fd31b9bbda0fdda99374 upstream. We have seen an early OOM killer invocation on ppc64 systems with crashkernel=4096M: kthreadd invoked oom-killer

[PATCH 4.11 083/115] mlock: fix mlock count can not decrease in race condition

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Yisheng Xie commit 70feee0e1ef331b22cc51f383d532a0d043fbdcc upstream. Kefeng reported that when running the follow test, the mlock count in meminfo will increase permanently: [1] testcase l

[PATCH 4.11 086/115] RDMA/srp: Fix NULL deref at srp_destroy_qp()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Israel Rukshin commit 95c2ef50c726a51d580c35ae8dccd383abaa8701 upstream. If srp_init_qp() fails at srp_create_ch_ib() then ch->send_cq may be NULL. Calling directly to ib_destroy_qp() is suffi

[PATCH 4.11 095/115] xfs: fix off-by-one on max nr_pages in xfs_find_get_desired_pgoff()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eryu Guan commit 8affebe16d79ebefb1d9d6d56a46dc89716f9453 upstream. xfs_find_get_desired_pgoff() is used to search for offset of hole or data in page range [index, end] (both inclusive), and t

[PATCH 4.11 104/115] xfs: support ability to wait on new inodes

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 756baca27fff3ecaeab9dbc7a5ee35a1d7bc0c7f upstream. Inodes that are inserted into the perag tree but still under construction are flagged with the XFS_INEW bit. Most context

[PATCH 4.11 105/115] xfs: update ag iterator to support wait on new inodes

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 upstream. The AG inode iterator currently skips new inodes as such inodes are inserted into the inode radix tree before they are fu

[PATCH 4.11 107/115] xfs: reserve enough blocks to handle btree splits when remapping

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit fe0be23e68200573de027de9b8cc2b27e7fce35e upstream. In xfs_reflink_end_cow, we erroneously reserve only enough blocks to handle adding 1 extent. This is problematic if w

Re: linux-next: strange update of the sound tree

2017-06-05 Thread Takashi Iwai
On Mon, 05 Jun 2017 16:17:23 +0200, Stephen Rothwell wrote: > > Hi Takashi, > > I don't think you have the result in the sound tree > (git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > branch for-next). Yesterday it was a fairly linear tree with head > commit 7421a1671abe ("ALSA: p

[PATCH 4.11 109/115] xfs: fix indlen accounting error on partial delalloc conversion

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 0daaecacb83bc6b656a56393ab77a31c28139bc7 upstream. The delalloc -> real block conversion path uses an incorrect calculation in the case where the middle part of a delalloc

[PATCH 4.11 079/115] mm/page_alloc.c: make sure OOM victim can try allocations with no watermarks once

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Tetsuo Handa commit c288983dddf714216428774e022ad78f48dd8cb1 upstream. Roman Gushchin has reported that the OOM killer can trivially selects next OOM victim when a thread doing memory allocati

[PATCH 4.11 101/115] xfs: handle array index overrun in xfs_dir2_leaf_readbuf()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit 023cc840b40fad95c6fe26fff1d380a8c9d45939 upstream. Carlos had a case where "find" seemed to start spinning forever and never return. This was on a filesystem with non-defa

[PATCH 4.11 096/115] xfs: use dedicated log worker wq to avoid deadlock with cil wq

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 696a562072e3c14bcd13ae5acc19cdf27679e865 upstream. The log covering background task used to be part of the xfssyncd workqueue. That workqueue was removed as of commit 58896

[PATCH 4.11 098/115] xfs: actually report xattr extents via iomap

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 84358536dc355a9c8978ee425f87e116186bed16 upstream. Apparently FIEMAP for xattrs has been broken since we switched to the iomap backend because of an incorrect check for

[PATCH 4.11 111/115] xfs: bad assertion for delalloc an extent that start at i_size

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Zorro Lang commit 892d2a5f705723b2cb488bfb38bcbdcf83273184 upstream. By run fsstress long enough time enough in RHEL-7, I find an assertion failure (harder to reproduce on linux-4.11, but prob

[PATCH 4.11 103/115] xfs: fix up quotacheck buffer list error handling

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 20e8a063786050083fe05b4f45be338c60b49126 upstream. The quotacheck error handling of the delwri buffer list assumes the resident buffers are locked and doesn't clear the _XB

[PATCH 4.11 112/115] xfs: xfs_trans_alloc_empty

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig This is a partial cherry-pick of commit e89c041338 ("xfs: implement the GETFSMAP ioctl"), which also adds this helper, and a great example of why feature patches should be pro

Re: [PATCH 3/5] vt: use copy_to_user instead of __put_user in GIO_UNIMAP ioctl

2017-06-05 Thread Alan Cox
> @@ -775,13 +775,11 @@ int con_get_unimap(struct vc_data *vc, ushort ct, > ushort __user *uct, struct uni > } > } > console_unlock(); > - for (i = min(ect, ct), plist = unilist; i; i--, list++, plist++) { > - __put_user(plist->unicode, &list->unicode); >

[PATCH 4.11 110/115] xfs: BMAPX shouldnt barf on inline-format directories

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 6eadbf4c8ba816c10d1c97bed9aa861d9fd17809 upstream. When we're fulfilling a BMAPX request, jump out early if the data fork is in local format. This prevents us from hitt

[PATCH 4.11 102/115] xfs: prevent multi-fsb dir readahead from reading random blocks

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit cb52ee334a45ae6c78a3999e4b473c43ddc528f4 upstream. Directory block readahead uses a complex iteration mechanism to map between high-level directory blocks and underlying ph

[PATCH 4.11 113/115] xfs: avoid mount-time deadlock in CoW extent recovery

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 3ecb3ac7b950ff8f6c6a61e8b7b0d6e3546429a0 upstream. If a malicious user corrupts the refcount btree to cause a cycle between different levels of the tree, the next mount

[PATCH 4.11 114/115] xfs: fix unaligned access in xfs_btree_visit_blocks

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit a4d768e702de224cc85e0c8eac9311763403b368 upstream. This structure copy was throwing unaligned access warnings on sparc64: Kernel unaligned access at TPC[1043c088] xfs_btre

[PATCH 4.11 094/115] xfs: use ->b_state to fix buffer I/O accounting release race

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 63db7c815bc0997c29e484d2409684fdd9fcd93b upstream. We've had user reports of unmount hangs in xfs_wait_buftarg() that analysis shows is due to btp->bt_io_count == -1. bt_io

[PATCH 4.11 115/115] xfs: Fix off-by-in in loop termination in xfs_find_get_desired_pgoff()

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit d7fd24257aa60316bf81093f7f909dc9475ae974 upstream. There is an off-by-one error in loop termination conditions in xfs_find_get_desired_pgoff() since 'end' may index a page beyo

[PATCH 4.11 097/115] xfs: fix over-copying of getbmap parameters from userspace

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit be6324c00c4d1e0e665f03ed1fc18863a88da119 upstream. In xfs_ioc_getbmap, we should only copy the fields of struct getbmap from userspace, or else we end up copying random

[PATCH 4.11 106/115] xfs: wait on new inodes during quotaoff dquot release

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit e20c8a517f259cb4d258e10b0cd5d4b30d4167a0 upstream. The quotaoff operation has a race with inode allocation that results in a livelock. An inode allocation that occurs befor

[PATCH 4.11 099/115] xfs: drop iolock from reclaim context to appease lockdep

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit 3b4683c294095b5f777c03307ef8c60f47320e12 upstream. Lockdep complains about use of the iolock in inode reclaim context because it doesn't understand that reclaim has the las

[PATCH 4.11 108/115] xfs: fix use-after-free in xfs_finish_page_writeback

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eryu Guan commit 161f55efba5ddccc690139fae9373cafc3447a97 upstream. Commit 28b783e47ad7 ("xfs: bufferhead chains are invalid after end_page_writeback") fixed one use-after-free issue by pre-ca

[PATCH 4.11 100/115] xfs: fix integer truncation in xfs_bmap_remap_alloc

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 52813fb13ff90bd9c39a93446cbf1103c290b6e9 upstream. bno should be a xfs_fsblock_t, which is 64-bit wides instead of a xfs_aglock_t, which truncates the value to 32 bits

[PATCH 4.11 088/115] PCI/PM: Add needs_resume flag to avoid suspend complete optimization

2017-06-05 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 4d071c3238987325b9e50e33051a40d1cce311cc upstream. Some drivers - like i915 - may not support the system suspend direct complete optimization due to differences in their runti

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