[PATCH 6/8] perf annotate TUI browser: Do not use member from variable within its own initialization

2019-07-08 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Some compilers will complain when using a member of a struct to initialize another member, in the same struct initialization. For instance: debian:8 Debian clang version 3.5.0-10 (tags/RELEASE_350/final) (based on LLVM 3.5.0) oraclelinux:7 clang version

[PATCH 5/8] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

2019-07-08 Thread Arnaldo Carvalho de Melo
From: Seeteena Thoufeek 'probe libc's inet_pton & backtrace it with ping' testcase sometimes fails on powerpc because distro ping binary does not have symbol information and thus it prints "[unknown]" function name in the backtrace. Accept "[unknown]" as valid function name for powerpc as well.

[PATCH 4.14 35/56] drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE

2019-07-08 Thread Greg Kroah-Hartman
From: Alex Deucher commit 25f09f858835b0e9a06213811031190a17d8ab78 upstream. Recommended by the hw team. Reviewed-and-Tested-by: Huang Rui Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19

[PATCH 4.14 13/56] SoC: rt274: Fix internal jack assignment in set_jack callback

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 04268bf2757a125616b6c2140e6250f43b7b737a ] When we call snd_soc_component_set_jack(component, NULL, NULL) we should set rt274->jack to passed jack, so when interrupt is triggered it calls snd_soc_jack_report(rt274->jack, ...) with proper value. This fixes problem in machine

[PATCH 4.19 10/90] ASoC: soc-pcm: BE dai needs prepare when pause release after resume

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 5087a8f17df868601cd7568299e91c28086d2b45 ] If playback/capture is paused and system enters S3, after system returns from suspend, BE dai needs to call prepare() callback when playback/capture is released from pause if RESUME_INFO flag is not set. Currently, the

[PATCH 4.14 43/56] vhost_net: introduce vhost_exceeds_weight()

2019-07-08 Thread Greg Kroah-Hartman
From: Jason Wang commit 272f35cba53d088085e5952fd81d7a133ab90789 upstream. Signed-off-by: Jason Wang Signed-off-by: David S. Miller Signed-off-by: Balbir Singh Signed-off-by: Greg Kroah-Hartman --- drivers/vhost/net.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-)

[PATCH 4.14 40/56] btrfs: Ensure replaced device doesnt have pending chunk allocation

2019-07-08 Thread Greg Kroah-Hartman
From: Nikolay Borisov commit debd1c065d2037919a7da67baf55cc683fee09f0 upstream. Recent FITRIM work, namely bbbf7243d62d ("btrfs: combine device update operations during transaction commit") combined the way certain operations are recoded in a transaction. As a result an ASSERT was added in

[PATCH 4.14 50/56] KVM: x86: degrade WARN to pr_warn_ratelimited

2019-07-08 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 3f16a5c318392cbb5a0c7a3d19dff8c8ef3c38ee upstream. This warning can be triggered easily by userspace, so it should certainly not cause a panic if panic_on_warn is set. Reported-by: syzbot+c03f30b4f4c46bdf8...@syzkaller.appspotmail.com Suggested-by: Alexander

[PATCH 4.14 14/56] scsi: hpsa: correct ioaccel2 chaining

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 625d7d3518875c4d303c652a198feaa13d9f52d9 ] - set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_LAST_SG for the last s/g element. - set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_CHAIN when chaining. Reviewed-by: Bader Ali - Saleh Reviewed-by:

[GIT PULL 0/8] perf/urgent fixes

2019-07-08 Thread Arnaldo Carvalho de Melo
pages in i_pages" (2019-07-05 19:55:18 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-5.3-20190708 for you to fetch changes up to 05c78468a60f2fd961cd0a0c01c27f288bf81204: tools build: Check

[PATCH 4.14 42/56] vhost_net: use packet weight for rx handler, too

2019-07-08 Thread Greg Kroah-Hartman
From: Paolo Abeni commit db688c24eada63b1efe6d0d7d835e5c3bdd71fd3 upstream. Similar to commit a2ac99905f1e ("vhost-net: set packet weight of tx polling to 2 * vq size"), we need a packet-based limit for handler_rx, too - elsewhere, under rx flood with small packets, tx can be delayed for a very

[PATCH 4.19 11/90] ASoC: ak4458: rstn_control - return a non-zero on error only

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 176a11834b65ec35e3b7a953f87fb9cc41309497 ] snd_soc_component_update_bits() may return 1 if operation was successful and the value of the register changed. Return a non-zero in ak4458_rstn_control for an error only. Signed-off-by: Shengjiu Wang Signed-off-by: Viorel Suman

[PATCH 1/8] tools arch kvm: Sync kvm headers with the kernel sources

2019-07-08 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes from: 41040cf7c5f0 ("arm64/sve: Fix missing SVE/FPSIMD endianness conversions") 6ca00dfafda7 ("KVM: x86: Modify struct kvm_nested_state to have explicit fields for data") None entail changes in tooling. This silences these tools/perf

[PATCH 4.14 55/56] dmaengine: imx-sdma: remove BD_INTR for channel0

2019-07-08 Thread Greg Kroah-Hartman
From: Robin Gong commit 3f93a4f297961c12bb17aa16cb3a4d1291823cae upstream. It is possible for an irq triggered by channel0 to be received later after clks are disabled once firmware loaded during sdma probe. If that happens then clearing them by writing to SDMA_H_INTR won't work and the kernel

[PATCH 4.14 49/56] ARC: handle gcc generated __builtin_trap for older compiler

2019-07-08 Thread Greg Kroah-Hartman
From: Vineet Gupta commit af1be2e21203867cb958aaceed5366e2e24b88e8 upstream. ARC gcc prior to GNU 2018.03 release didn't have a target specific __builtin_trap() implementation, generating default abort() call. Implement the abort() call - emulating what newer gcc does for the same, as

[PATCH 4.19 17/90] drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 2458d9d6d94be982b917e93c61a89b4426f32e31 ] mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which needs ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, ovl irq will be disabled. If drm_crtc_wait_one_vblank() is called after last

Re: [PATCH v2 bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-08 Thread Daniel Borkmann
On 07/03/2019 10:26 AM, YueHaibing wrote: > If CONFIG_NET is not set and CONFIG_CGROUP_BPF=y, > gcc building fails: > > kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': > cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_storage_get_proto' > cgroup.c:(.text+0x2394): undefined

[PATCH 4.19 02/90] block: Fix a NULL pointer dereference in generic_make_request()

2019-07-08 Thread Greg Kroah-Hartman
From: "Guilherme G. Piccoli" - This patch is not on mainline and is meant to 4.19 stable *only*. After the patch description there's a reasoning about that. - Commit

[PATCH 4.14 33/56] ARM: dts: armada-xp-98dx3236: Switch to armada-38x-uart serial node

2019-07-08 Thread Greg Kroah-Hartman
From: Joshua Scott commit 80031361747aec92163464f2ee08870fec33bcb0 upstream. Switch to the "marvell,armada-38x-uart" driver variant to empty the UART buffer before writing to the UART_LCR register. Signed-off-by: Joshua Scott Tested-by: Andrew Lunn Acked-by: Gregory CLEMENT . Cc:

[PATCH 4.19 22/90] usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 62fd0e0a24abeebe2c19fce49dd5716d9b62042d ] There is no deallocation of fusb300->ep[i] elements, allocated at fusb300_probe. The patch adds deallocation of fusb300->ep array elements. Signed-off-by: Young Xiao <92siuy...@gmail.com> Signed-off-by: Felipe Balbi Signed-off-by:

[PATCH 4.19 19/90] ASoC: sun4i-i2s: Fix sun8i tx channel offset mask

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 7e46169a5f35762f335898a75d1b8a242f2ae0f5 ] Although not causing any noticeable issues, the mask for the channel offset is covering too many bits. Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai Signed-off-by: Mark Brown Signed-off-by: Sasha Levin

[ANNOUNCE] iproute2 5.2

2019-07-08 Thread Stephen Hemminger
The 5.2 kernel has been released, and therefore time for another update to iproute2. Not a lot of big new features in this release. Just the usual array of small fixes across the board. Download: https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-5.2.0.tar.gz Repository for

Re: [PATCH net-next 1/2] bpf: skip sockopt hooks without CONFIG_NET

2019-07-08 Thread Daniel Borkmann
On 07/08/2019 05:06 PM, Yonghong Song wrote: > On 7/8/19 5:57 AM, Arnd Bergmann wrote: >> When CONFIG_NET is disabled, we get a link error: >> >> kernel/bpf/cgroup.o: In function `__cgroup_bpf_run_filter_setsockopt': >> cgroup.c:(.text+0x3010): undefined reference to `lock_sock_nested' >>

WARNING in __mark_chain_precision

2019-07-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e5a3e259 Merge branch 'bpf-tcp-rtt-hook' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=14190c2da0 kernel config: https://syzkaller.appspot.com/x/.config?x=dd16b8dc9d0d210c dashboard link:

[PATCH 4.19 34/90] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit d477f8c202d1f0d4791ab1263ca7657bbe5cf79e ] In the case that a process is constrained by taskset(1) (i.e. sched_setaffinity(2)) to a subset of available cpus, and all of those are subsequently offlined, the scheduler will set tsk->cpus_allowed to the current value of

[PATCH 4.19 27/90] drm: panel-orientation-quirks: Add quirk for GPD pocket2

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 15abc7110a77555d3bf72aaef46d1557db0a4ac5 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date matching, so the

[PATCH 4.19 03/90] md/raid0: Do not bypass blocking queue entered for raid0 bios

2019-07-08 Thread Greg Kroah-Hartman
From: "Guilherme G. Piccoli" - This patch is not on mainline and is meant to 4.19 stable *only*. After the patch description there's a reasoning about that. - Commit

[PATCH 4.19 36/90] mm/mlock.c: change count_mm_mlocked_page_nr return type

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 0874bb49bb21bf24deda853e8bf61b8325e24bcb ] On a 64-bit machine the value of "vma->vm_end - vma->vm_start" may be negative when using 32 bit ints and the "count >> PAGE_SHIFT"'s result will be wrong. So change the local variable and return value to unsigned long to fix the

[PATCH 4.19 37/90] tracing: avoid build warning with HAVE_NOP_MCOUNT

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit cbdaeaf050b730ea02e9ab4ff844ce54d85dbe1d ] Selecting HAVE_NOP_MCOUNT enables -mnop-mcount (if gcc supports it) and sets CC_USING_NOP_MCOUNT. Reuse __is_defined (which is suitable for testing CC_USING_* defines) to avoid conditional compilation and fix the following gcc 9 warning

[PATCH 4.19 35/90] scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit c04e32e911653442fc834be6e92e072aeebe01a1 ] At least for ARM64 kernels compiled with the crosstoolchain from Debian/stretch or with the toolchain from kernel.org the line number is not decoded correctly by 'decode_stacktrace.sh': $ echo "[ 136.513051] f1+0x0/0xc [kcrash]" |

[PATCH 4.19 07/90] netfilter: nft_flow_offload: IPCB is only valid for ipv4 family

2019-07-08 Thread Greg Kroah-Hartman
From: Florian Westphal commit 69aeb538587e087bfc81dd1f465eab3558ff3158 upstream. Guard this with a check vs. ipv4, IPCB isn't valid in ipv6 case. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nft_flow_offload.c | 17

[PATCH 4.19 58/90] drm/imx: notify drm core before sending event during crtc disable

2019-07-08 Thread Greg Kroah-Hartman
From: Robert Beckett commit 78c68e8f5cd24bd32ba4ca1cdfb0c30cf0642685 upstream. Notify drm core before sending pending events during crtc disable. This fixes the first event after disable having an old stale timestamp by having drm_crtc_vblank_off update the timestamp to now. This was seen

[PATCH 4.19 60/90] ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code()

2019-07-08 Thread Greg Kroah-Hartman
From: Petr Mladek commit d5b844a2cf507fc7642c9ae80a9d585db3065c28 upstream. The commit 9f255b632bf12c4dd7 ("module: Fix livepatch/ftrace module text permissions race") causes a possible deadlock between register_kprobe() and ftrace_run_update_code() when ftrace is using stop_machine(). The

[PATCH 4.19 53/90] ARM: dts: armada-xp-98dx3236: Switch to armada-38x-uart serial node

2019-07-08 Thread Greg Kroah-Hartman
From: Joshua Scott commit 80031361747aec92163464f2ee08870fec33bcb0 upstream. Switch to the "marvell,armada-38x-uart" driver variant to empty the UART buffer before writing to the UART_LCR register. Signed-off-by: Joshua Scott Tested-by: Andrew Lunn Acked-by: Gregory CLEMENT . Cc:

[PATCH 4.19 68/90] f2fs: dont access node/meta inode mapping after iput

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 7c77bf7de1574ac7a31a2b76f4927404307d13e7 ] This fixes wrong access of address spaces of node and meta inodes after iput. Fixes: 60aa4d5536ab ("f2fs: fix use-after-free issue when accessing sbi->stat_info") Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha

[PATCH 4.19 70/90] scsi: tcmu: fix use after free

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 40d883b091758472c79b81fa1c0e0347e24a9cff ] Fixes: a94a2572b977 ("scsi: tcmu: avoid cmd/qfull timers updated whenever a new cmd comes") Reported-by: Dan Carpenter Cc: Mike Christie Signed-off-by: Xiubo Li Reviewed-by: Mike Christie Signed-off-by: Martin K. Petersen

[PATCH 4.19 78/90] sc16is7xx: move label err_spi to correct section

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit e00164a0f000de893944981f41a568c981aca658 ] err_spi is used when SERIAL_SC16IS7XX_SPI is enabled, so make the label only available under SERIAL_SC16IS7XX_SPI option. Otherwise, the below warning appears. drivers/tty/serial/sc16is7xx.c:1523:1: warning: label ‘err_spi’ defined but

[PATCH 4.19 82/90] KVM: x86: degrade WARN to pr_warn_ratelimited

2019-07-08 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 3f16a5c318392cbb5a0c7a3d19dff8c8ef3c38ee upstream. This warning can be triggered easily by userspace, so it should certainly not cause a panic if panic_on_warn is set. Reported-by: syzbot+c03f30b4f4c46bdf8...@syzkaller.appspotmail.com Suggested-by: Alexander

[PATCH] blk-throttle: fix zero wait time for iops throttled group

2019-07-08 Thread Konstantin Khlebnikov
After commit 991f61fe7e1d ("Blk-throttle: reduce tail io latency when iops limit is enforced") wait time could be zero even if group is throttled and cannot issue requests right now. As a result throtl_select_dispatch() turns into busy-loop under irq-safe queue spinlock. Fix is simple: always

[PATCH 4.19 71/90] selftests: fib_rule_tests: Fix icmp proto with ipv6

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 15d55bae4e3c43cd9f87fd93c73a263e172d34e1 ] A recent commit returns an error if icmp is used as the ip-proto for IPv6 fib rules. Update fib_rule_tests to send ipv6-icmp instead of icmp. Fixes: 5e1a99eae8499 ("ipv4: Add ICMPv6 support when parse route ipproto") Signed-off-by:

[PATCH 4.19 77/90] netfilter: ipv6: nf_defrag: fix leakage of unqueued fragments

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit a0d56cb911ca301de81735f1d73c2aab424654ba ] With commit 997dd9647164 ("net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c"), nf_ct_frag6_reasm() is now called from nf_ct_frag6_queue(). With this change, nf_ct_frag6_queue() can fail after the skb has been added to the fragment

Re: [PATCH 2/7] perf/cgroup: order events in RB tree by cgroup id

2019-07-08 Thread Peter Zijlstra
On Mon, Jul 01, 2019 at 11:59:50PM -0700, Ian Rogers wrote: > @@ -1530,6 +1530,32 @@ perf_event_groups_less(struct perf_event *left, struct > perf_event *right) > if (left->cpu > right->cpu) > return false; > > +#ifdef CONFIG_CGROUP_PERF > + if (left->cgrp !=

[PATCH 4.19 83/90] KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC

2019-07-08 Thread Greg Kroah-Hartman
From: Wanpeng Li commit bb34e690e9340bc155ebed5a3d75fc63ff69e082 upstream. Thomas reported that: | Background: | |In preparation of supporting IPI shorthands I changed the CPU offline |code to software disable the local APIC instead of just masking it. |That's done by clearing

Re: [RFC 3/7] tee: add private login method for kernel clients

2019-07-08 Thread Jens Wiklander
Hi Sumit, On Thu, Jun 13, 2019 at 04:00:29PM +0530, Sumit Garg wrote: > There are use-cases where user-space shouldn't be allowed to communicate > directly with a TEE device which is dedicated to provide a specific > service for a kernel client. So add a private login method for kernel > clients

[PATCH 4.19 84/90] nfsd: Fix overflow causing non-working mounts on 1 TB machines

2019-07-08 Thread Greg Kroah-Hartman
From: Paul Menzel commit 3b2d4dcf71c4a91b420f835e52ddea8192300a3b upstream. Since commit 10a68cdf10 (nfsd: fix performance-limiting session calculation) (Linux 5.1-rc1 and 4.19.31), shares from NFS servers with 1 TB of memory cannot be mounted anymore. The mount just hangs on the client. The

[PATCH 4.19 81/90] netfilter: ipv6: nf_defrag: accept duplicate fragments again

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 8a3dca632538c550930ce8bafa8c906b130d35cf ] When fixing the skb leak introduced by the conversion to rbtree, I forgot about the special case of duplicate fragments. The condition under the 'insert_error' label isn't effective anymore as nf_ct_frg6_gather() doesn't override the

[PATCH 4.19 79/90] net: hns: fix unsigned comparison to less than zero

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit ea401685a20b5d631957f024bda86e1f6118eb20 ] Currently mskid is unsigned and hence comparisons with negative error return values are always false. Fix this by making mskid an int. Fixes: f058e46855dc ("net: hns: fix ICMP6 neighbor solicitation messages discard problem")

[PATCH 4.19 47/90] ALSA: usb-audio: fix sign unintended sign extension on left shifts

2019-07-08 Thread Greg Kroah-Hartman
From: Colin Ian King commit 2acf5a3e6e9371e63c9e4ff54d84d08f630467a0 upstream. There are a couple of left shifts of unsigned 8 bit values that first get promoted to signed ints and hence get sign extended on the shift if the top bit of the 8 bit values are set. Fix this by casting the 8 bit

[PATCH 4.19 43/90] crypto: cryptd - Fix skcipher instance memory leak

2019-07-08 Thread Greg Kroah-Hartman
From: Vincent Whitchurch commit 1a0fad630e0b7cff38e7691b28b0517cfbb0633f upstream. cryptd_skcipher_free() fails to free the struct skcipher_instance allocated in cryptd_create_skcipher(), leading to a memory leak. This is detected by kmemleak on bootup on ARM64 platforms: unreferenced object

[PATCH 4.19 90/90] dmaengine: imx-sdma: remove BD_INTR for channel0

2019-07-08 Thread Greg Kroah-Hartman
From: Robin Gong commit 3f93a4f297961c12bb17aa16cb3a4d1291823cae upstream. It is possible for an irq triggered by channel0 to be received later after clks are disabled once firmware loaded during sdma probe. If that happens then clearing them by writing to SDMA_H_INTR won't work and the kernel

[PATCH 4.19 80/90] bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit fdadd04931c2d7cd294dc5b2b342863f94be53a3 ] Michael and Sandipan report: Commit ede95a63b5 introduced a bpf_jit_limit tuneable to limit BPF JIT allocations. At compile time it defaults to PAGE_SIZE * 4, and is adjusted again at init time if MODULES_VADDR is defined.

[PATCH 4.19 86/90] MIPS: Fix bounds check virt_addr_valid

2019-07-08 Thread Greg Kroah-Hartman
From: Hauke Mehrtens commit d6ed083f5cc621e15c15b56c3b585fd524dbcb0f upstream. The bounds check used the uninitialized variable vaddr, it should use the given parameter kaddr instead. When using the uninitialized value the compiler assumed it to be 0 and optimized this function to just return 0

[PATCH 4.19 89/90] dmaengine: qcom: bam_dma: Fix completed descriptors count

2019-07-08 Thread Greg Kroah-Hartman
From: Sricharan R commit f6034225442c4a87906d36e975fd9e99a8f95487 upstream. One space is left unused in circular FIFO to differentiate 'full' and 'empty' cases. So take that in to account while counting for the descriptors completed. Fixes the issue reported here,

[PATCH 5.1 02/96] signal: remove the wrong signal_pending() check in restore_user_sigmask()

2019-07-08 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit 97abc889ee296faf95ca0e978340fb7b942a3e32 upstream. This is the minimal fix for stable, I'll send cleanups later. Commit 854a6ed56839 ("signal: Add restore_user_sigmask()") introduced the visible change which breaks user-space: a signal temporary unblocked by

[PATCH 5.1 33/96] ASoC: Intel: cht_bsw_nau8824: fix kernel oops with platform_name override

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 096701e8131425044d2054a0c210d6ea24ee7386 ] The platform override code uses devm_ functions to allocate memory for the new name but the card device is not initialized. Fix by moving the init earlier. Fixes: 4506db8043341 ("ASoC: Intel: cht_bsw_nau8824: platform name fixup

[PATCH 5.1 31/96] ASoC: Intel: cht_bsw_max98090: fix kernel oops with platform_name override

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit fb54555134b9b17835545e4d096b5550c27eed64 ] The platform override code uses devm_ functions to allocate memory for the new name but the card device is not initialized. Fix by moving the init earlier. Fixes: 7e7e24d7c7ff0 ("ASoC: Intel: cht_bsw_max98090_ti: platform name fixup

[PATCH 5.1 03/96] netfilter: nf_flow_table: ignore DF bit setting

2019-07-08 Thread Greg Kroah-Hartman
From: Florian Westphal commit e75b3e1c9bc5b997d09bdf8eb72ab3dd3c1a7072 upstream. Its irrelevant if the DF bit is set or not, we must pass packet to stack in either case. If the DF bit is set, we must pass it to stack so the appropriate ICMP error can be generated. If the DF is not set, we

[PATCH 5.1 22/96] drm/mediatek: clear num_pipes when unbind driver

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit a4cd1d2b016d5d043ab2c4b9c4ec50a5805f5396 ] num_pipes is used for mutex created in mtk_drm_crtc_create(). If we don't clear num_pipes count, when rebinding driver, the count will be accumulated. From mtk_disp_mutex_get(), there can only be at most 10 mutex id. Clear this number

[PATCH 5.1 21/96] drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit cf49b24ffa62766f8f04cd1c4cf17b75d29b240a ] shutdown all CRTC when unbinding drm driver. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin ---

[PATCH 2/2] null_blk: fix race and oops at removing device with bandwidth limit

2019-07-08 Thread Konstantin Khlebnikov
Function null_del_dev should disable throttling before canceling timer, otherwise timer could be restarted by null_handle_cmd(). Remove bump of cur_bytes - without NULLB_DEV_FL_THROTTLED it has no effect. Fixes: eff2c4f10873 ("nullb: bandwidth control") Signed-off-by: Konstantin Khlebnikov ---

[PATCH 5.1 85/96] KVM: x86: degrade WARN to pr_warn_ratelimited

2019-07-08 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 3f16a5c318392cbb5a0c7a3d19dff8c8ef3c38ee upstream. This warning can be triggered easily by userspace, so it should certainly not cause a panic if panic_on_warn is set. Reported-by: syzbot+c03f30b4f4c46bdf8...@syzkaller.appspotmail.com Suggested-by: Alexander

[PATCH 5.1 40/96] drm: panel-orientation-quirks: Add quirk for GPD pocket2

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 15abc7110a77555d3bf72aaef46d1557db0a4ac5 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date matching, so the

[PATCH 5.1 50/96] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit d477f8c202d1f0d4791ab1263ca7657bbe5cf79e ] In the case that a process is constrained by taskset(1) (i.e. sched_setaffinity(2)) to a subset of available cpus, and all of those are subsequently offlined, the scheduler will set tsk->cpus_allowed to the current value of

[PATCH 5.1 69/96] tracing/snapshot: Resize spare buffer if size changed

2019-07-08 Thread Greg Kroah-Hartman
From: Eiichi Tsukata commit 46cc0b44428d0f0e81f11ea98217fc0edfbeab07 upstream. Current snapshot implementation swaps two ring_buffers even though their sizes are different from each other, that can cause an inconsistency between the contents of buffer_size_kb file and the current buffer size.

[PATCH 5.1 06/96] netfilter: nft_flow_offload: IPCB is only valid for ipv4 family

2019-07-08 Thread Greg Kroah-Hartman
From: Florian Westphal commit 69aeb538587e087bfc81dd1f465eab3558ff3158 upstream. Guard this with a check vs. ipv4, IPCB isn't valid in ipv6 case. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nft_flow_offload.c | 17

[PATCH 5.1 39/96] gpio: pca953x: hack to fix 24 bit gpio expanders

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 3b00691cc46a4089368a008b30655a8343411715 ] 24 bit expanders use REG_ADDR_AI in combination with register addressing. This conflicts with regmap which takes this bit as part of the register number, i.e. a second cache entry is defined for accessed with REG_ADDR_AI being set

[PATCH 5.1 68/96] swap_readpage(): avoid blk_wake_io_task() if !synchronous

2019-07-08 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit 8751853091998cd31e9e5f1e8206280155af8921 upstream. swap_readpage() sets waiter = bio->bi_private even if synchronous = F, this means that the caller can get the spurious wakeup after return. This can be fatal if blk_wake_io_task() does set_current_state(TASK_RUNNING)

[PATCH 5.1 44/96] platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 401fee8195d401b2b94dee57383f627050724d5b ] Commit 78f3ac76d9e5 ("platform/x86: asus-wmi: Tell the EC the OS will handle the display off hotkey") causes the backlight to be permanently off on various EeePC laptop models using the eeepc-wmi driver (Asus EeePC 1015BX, Asus EeePC

[PATCH 5.1 77/96] drm/etnaviv: add missing failure path to destroy suballoc

2019-07-08 Thread Greg Kroah-Hartman
From: Lucas Stach commit be132e1375c1fffe48801296279079f8a59a9ed3 upstream. When something goes wrong in the GPU init after the cmdbuf suballocator has been constructed, we fail to destroy it properly. This causes havok later when the GPU is unbound due to a module unload or similar. Fixes:

[PATCH 5.1 46/96] platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 160da20b254dd4bfc5828f12c208fa831ad4be6c ] Fix the issue found while running kernel with the option CONFIG_DEBUG_TEST_DRIVER_REMOVE. Driver 'mlx-platform' registers 'i2c_mlxcpld' device and then registers few underlying 'i2c-mux-reg' devices: priv->pdev_i2c =

[PATCH 5.1 80/96] ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code()

2019-07-08 Thread Greg Kroah-Hartman
From: Petr Mladek commit d5b844a2cf507fc7642c9ae80a9d585db3065c28 upstream. The commit 9f255b632bf12c4dd7 ("module: Fix livepatch/ftrace module text permissions race") causes a possible deadlock between register_kprobe() and ftrace_run_update_code() when ftrace is using stop_machine(). The

[PATCH 5.1 51/96] scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit c04e32e911653442fc834be6e92e072aeebe01a1 ] At least for ARM64 kernels compiled with the crosstoolchain from Debian/stretch or with the toolchain from kernel.org the line number is not decoded correctly by 'decode_stacktrace.sh': $ echo "[ 136.513051] f1+0x0/0xc [kcrash]" |

[PATCH 5.1 75/96] drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE

2019-07-08 Thread Greg Kroah-Hartman
From: Alex Deucher commit 25f09f858835b0e9a06213811031190a17d8ab78 upstream. Recommended by the hw team. Reviewed-and-Tested-by: Huang Rui Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 19

[PATCH 5.1 93/96] dmaengine: imx-sdma: remove BD_INTR for channel0

2019-07-08 Thread Greg Kroah-Hartman
From: Robin Gong commit 3f93a4f297961c12bb17aa16cb3a4d1291823cae upstream. It is possible for an irq triggered by channel0 to be received later after clks are disabled once firmware loaded during sdma probe. If that happens then clearing them by writing to SDMA_H_INTR won't work and the kernel

[PATCH 5.1 42/96] ASoC: core: Fix deadlock in snd_soc_instantiate_card()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 495f926c68ddb905a7a0192963096138c6a934e1 ] Move the client_mutex lock to snd_soc_unbind_card() before removing link components. This prevents the deadlock in the error path in snd_soc_instantiate_card(). Fixes: 34ac3c3eb8 (ASoC: core: lock client_mutex while removing link

[PATCH 5.1 90/96] MIPS: Add missing EHB in mtc0 -> mfc0 sequence.

2019-07-08 Thread Greg Kroah-Hartman
From: Dmitry Korotin commit 0b24cae4d535045f4c9e177aa228d4e97bad212c upstream. Add a missing EHB (Execution Hazard Barrier) in mtc0 -> mfc0 sequence. Without this execution hazard barrier it's possible for the value read back from the KScratch register to be the value from before the mtc0.

[PATCH 5.1 94/96] dmaengine: jz4780: Fix an endian bug in IRQ handler

2019-07-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 4c89cc73d1da42ae48b5c5dfbfd12304d0b86786 upstream. The "pending" variable was a u32 but we cast it to an unsigned long pointer when we do the for_each_set_bit() loop. The problem is that on big endian 64bit systems that results in an out of bounds read. Fixes:

[PATCH 5.1 82/96] btrfs: Ensure replaced device doesnt have pending chunk allocation

2019-07-08 Thread Greg Kroah-Hartman
From: Nikolay Borisov commit debd1c065d2037919a7da67baf55cc683fee09f0 upstream. Recent FITRIM work, namely bbbf7243d62d ("btrfs: combine device update operations during transaction commit") combined the way certain operations are recoded in a transaction. As a result an ASSERT was added in

[PATCH 5.1 89/96] MIPS: Fix bounds check virt_addr_valid

2019-07-08 Thread Greg Kroah-Hartman
From: Hauke Mehrtens commit d6ed083f5cc621e15c15b56c3b585fd524dbcb0f upstream. The bounds check used the uninitialized variable vaddr, it should use the given parameter kaddr instead. When using the uninitialized value the compiler assumed it to be 0 and optimized this function to just return 0

[PATCH 5.1 96/96] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-08 Thread Greg Kroah-Hartman
From: Roman Bolshakov commit 5676234f20fef02f6ca9bd66c63a8860fce62645 upstream. WRITE SAME corrupts data on the block device behind iblock if the command is emulated. The emulation code issues (M - 1) * N times more bios than requested, where M is the number of 512 blocks per real block size

[PATCH 5.1 95/96] fs: VALIDATE_FS_PARSER should default to n

2019-07-08 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven commit 75f2d86b20bf6aec0392d6dd2ae326d2ae0e upstream. CONFIG_VALIDATE_FS_PARSER is a debugging tool to check that the parser tables are vaguely sane. It was set to default to 'Y' for the moment to catch errors in upcoming fs conversion development. Make sure it is

[PATCH 5.1 92/96] dmaengine: qcom: bam_dma: Fix completed descriptors count

2019-07-08 Thread Greg Kroah-Hartman
From: Sricharan R commit f6034225442c4a87906d36e975fd9e99a8f95487 upstream. One space is left unused in circular FIFO to differentiate 'full' and 'empty' cases. So take that in to account while counting for the descriptors completed. Fixes the issue reported here,

[PATCH 5.1 49/96] arm64: tlbflush: Ensure start/end of address range are aligned to stride

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 01d57485fcdb9f9101a10a18e32d5f8b023cab86 ] Since commit 3d65b6bbc01e ("arm64: tlbi: Set MAX_TLBI_OPS to PTRS_PER_PTE"), we resort to per-ASID invalidation when attempting to perform more than PTRS_PER_PTE invalidation instructions in a single call to __flush_tlb_range(). Whilst

[PATCH 5.1 47/96] platform/mellanox: mlxreg-hotplug: Add devm_free_irq call to remove flow

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 8c2eb7b6468ad4aa5600aed01aa0715f921a3f8b ] Add devm_free_irq() call to mlxreg-hotplug remove() for clean release of devices irq resource. Fix debugobjects warning triggered by rmmod It prevents of use-after-free memory, related to mlxreg_hotplug_work_handler. Issue has been

[PATCH 5.1 88/96] svcrdma: Ignore source port when computing DRC hash

2019-07-08 Thread Greg Kroah-Hartman
From: Chuck Lever commit 1e091c3bbf51d34d5d96337a59ce5ab2ac3ba2cc upstream. The DRC appears to be effectively empty after an RPC/RDMA transport reconnect. The problem is that each connection uses a different source port, which defeats the DRC hash. Clients always have to disconnect before they

[PATCH 5.1 91/96] MIPS: have "plain" make calls build dtbs for selected platforms

2019-07-08 Thread Greg Kroah-Hartman
From: Cedric Hombourger commit 637dfa0fad6d91a9a709dc70549a6d20fa77f615 upstream. scripts/package/builddeb calls "make dtbs_install" after executing a plain make (i.e. no build targets specified). It will fail if dtbs were not built beforehand. Match the arm64 architecture where DTBs get built

[PATCH 5.1 81/96] mm/vmscan.c: prevent useless kswapd loops

2019-07-08 Thread Greg Kroah-Hartman
From: Shakeel Butt commit dffcac2cb88e4ec5906235d64a83d802580b119e upstream. In production we have noticed hard lockups on large machines running large jobs due to kswaps hoarding lru lock within isolate_lru_pages when sc->reclaim_idx is 0 which is a small zone. The lru was couple hundred GiBs

[PATCH 5.1 87/96] nfsd: Fix overflow causing non-working mounts on 1 TB machines

2019-07-08 Thread Greg Kroah-Hartman
From: Paul Menzel commit 3b2d4dcf71c4a91b420f835e52ddea8192300a3b upstream. Since commit 10a68cdf10 (nfsd: fix performance-limiting session calculation) (Linux 5.1-rc1 and 4.19.31), shares from NFS servers with 1 TB of memory cannot be mounted anymore. The mount just hangs on the client. The

[PATCH 5.1 84/96] s390/mm: fix pxd_bad with folded page tables

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit c9f621524e70774688db3cec60d85fa4c7de52e3 ] With git commit d1874a0c2805fcfa9162c972d6b7541e57adb542 "s390/mm: make the pxd_offset functions more robust" and a 2-level page table it can now happen that pgd_bad() gets asked to verify a large segment table entry. If the entry is

[PATCH 5.1 83/96] tty: rocket: fix incorrect forward declaration of rp_init()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 423ea3255424b954947d167681b71ded1b8fca53 ] Make the forward declaration actually match the real function definition, something that previous versions of gcc had just ignored. This is another patch to fix new warnings from gcc-9 before I start the merge window pulls. I don't

[PATCH 5.1 48/96] i2c: pca-platform: Fix GPIO lookup code

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit a0cac264a86fbf4d6cb201fbbb73c1d335e3248a ] The devm_gpiod_request_gpiod() call will add "-gpios" to any passed connection ID before looking it up. I do not think the reset GPIO on this platform is named "reset-gpios-gpios" but rather "reset-gpios" in the device tree, so fix

[PATCH 5.1 86/96] KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC

2019-07-08 Thread Greg Kroah-Hartman
From: Wanpeng Li commit bb34e690e9340bc155ebed5a3d75fc63ff69e082 upstream. Thomas reported that: | Background: | |In preparation of supporting IPI shorthands I changed the CPU offline |code to software disable the local APIC instead of just masking it. |That's done by clearing

[PATCH 5.1 74/96] drm/amdgpu: Dont skip display settings in hwmgr_resume()

2019-07-08 Thread Greg Kroah-Hartman
From: Lyude Paul commit 688f3d1ebedffa310b6591bd1b63fa0770d945fe upstream. I'm not entirely sure why this is, but for some reason: 921935dc6404 ("drm/amd/powerplay: enforce display related settings only on needed") Breaks runtime PM resume on the Radeon PRO WX 3100 (Lexa) in one the

[PATCH 5.1 71/96] arm64: kaslr: keep modules inside module region when KASAN is enabled

2019-07-08 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 6f496a555d93db7a11d4860b9220d904822f586a upstream. When KASLR and KASAN are both enabled, we keep the modules where they are, and randomize the placement of the kernel so it is within 2 GB of the module region. The reason for this is that putting modules in the

[PATCH 5.1 78/96] drm/imx: notify drm core before sending event during crtc disable

2019-07-08 Thread Greg Kroah-Hartman
From: Robert Beckett commit 78c68e8f5cd24bd32ba4ca1cdfb0c30cf0642685 upstream. Notify drm core before sending pending events during crtc disable. This fixes the first event after disable having an old stale timestamp by having drm_crtc_vblank_off update the timestamp to now. This was seen

[PATCH 5.1 79/96] drm/imx: only send event on crtc disable if kept disabled

2019-07-08 Thread Greg Kroah-Hartman
From: Robert Beckett commit 5aeab2bfc9ffa72d3ca73416635cb3785dfc076f upstream. The event will be sent as part of the vblank enable during the modeset if the crtc is not being kept disabled. Fixes: 5f2f911578fb ("drm/imx: atomic phase 3 step 1: Use atomic configuration") Signed-off-by: Robert

[PATCH 5.1 76/96] drm/virtio: move drm_connector_update_edid_property() call

2019-07-08 Thread Greg Kroah-Hartman
From: Gerd Hoffmann commit 41de4be6f6efa4132b29af51158cd672d93f2543 upstream. drm_connector_update_edid_property can sleep, we must not call it while holding a spinlock. Move the callsite. Fixes: b4b01b4995fb ("drm/virtio: add edid support") Reported-by: Max Filippov Signed-off-by: Gerd

[PATCH 5.1 73/96] drm/amd/powerplay: use hardware fan control if no powerplay fan table

2019-07-08 Thread Greg Kroah-Hartman
From: Evan Quan commit f78c581e22d4b33359ac3462e8d0504735df01f4 upstream. Otherwise, you may get divided-by-zero error or corrput the SMU fan control feature. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Tested-by: Slava Abramov Acked-by: Slava Abramov Signed-off-by: Alex Deucher

[PATCH 5.1 45/96] platform/x86: intel-vbtn: Report switch events when event wakes device

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit cb1921b17adbe6509538098ac431033378cd7165 ] When a switch event, such as tablet mode/laptop mode or docked/undocked, wakes a device make sure that the value of the swich is reported. Without when a device is put in tablet mode from laptop mode when it is suspended or vice versa

[PATCH 5.1 72/96] drm/i915/ringbuffer: EMIT_INVALIDATE *before* switch context

2019-07-08 Thread Greg Kroah-Hartman
From: Chris Wilson commit c84c9029d782a3a0d2a7f0522ecb907314d43e2c upstream. Despite what I think the prm recommends, commit f2253bd9859b ("drm/i915/ringbuffer: EMIT_INVALIDATE after switch context") turned out to be a huge mistake when enabling Ironlake contexts as the GPU would hang on either

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