[PATCH 4.19 009/190] vhost/test: fix build for vhost test - again

2019-09-13 Thread Greg Kroah-Hartman
From: Tiwei Bie commit 264b563b8675771834419057cbe076c1a41fb666 upstream. Since vhost_exceeds_weight() was introduced, callers need to specify the packet weight and byte weight in vhost_dev_init(). Note that, the packet weight isn't counted in this patch to keep the original behavior unchanged.

[PATCH 4.19 012/190] batman-adv: Only read OGM tvlv_len after buffer len check

2019-09-13 Thread Greg Kroah-Hartman
From: Sven Eckelmann commit a15d56a60760aa9dbe26343b9a0ac5228f35d445 upstream. Multiple batadv_ogm_packet can be stored in an skbuff. The functions batadv_iv_ogm_send_to_if()/batadv_iv_ogm_receive() use batadv_iv_ogm_aggr_packet() to check if there is another additional batadv_ogm_packet in the

[PATCH 4.19 011/190] batman-adv: fix uninit-value in batadv_netlink_get_ifindex()

2019-09-13 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 3ee1bb7aae97324ec9078da1f00cb2176919563f upstream. batadv_netlink_get_ifindex() needs to make sure user passed a correct u32 attribute. syzbot reported : BUG: KMSAN: uninit-value in batadv_netlink_dump_hardif+0x70d/0x880 net/batman-adv/netlink.c:968 CPU: 1 PID: 11705

[PATCH 4.19 008/190] vhost/test: fix build for vhost test

2019-09-13 Thread Greg Kroah-Hartman
From: Tiwei Bie commit 93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9 upstream. Since below commit, callers need to specify the iov_limit in vhost_dev_init() explicitly. Fixes: b46a0bf78ad7 ("vhost: fix OOB in get_rx_bufs()") Cc: sta...@vger.kernel.org Signed-off-by: Tiwei Bie Signed-off-by: Michael

[PATCH 4.19 020/190] powerpc/64: mark start_here_multiplatform as __ref

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 9c4e4c90ec24652921e31e9551fcaedc26eec86d ] Otherwise, the following warning is encountered: WARNING: vmlinux.o(.text+0x3dc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform

Re: [PATCH 7/8] drm/vram: drop verify_access

2019-09-13 Thread Thomas Zimmermann
Hi Am 13.09.19 um 14:29 schrieb Gerd Hoffmann: > Not needed any more. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem_vram_helper.c | 22 -- > 1 file changed, 22 deletions(-) > > diff --git a/drivers/gpu/drm/drm_gem_vram_he

[PATCH 4.19 017/190] timekeeping: Use proper ktime_add when adding nsecs in coarse offset

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 0354c1a3cdf31f44b035cfad14d32282e815a572 ] While this doesn't actually amount to a real difference, since the macro evaluates to the same thing, every place else operates on ktime_t using these functions, so let's not break the pattern. Fixes: e3ff9c3678b4 ("timekeeping: Repair

[PATCH 4.19 019/190] x86/ftrace: Fix warning and considate ftrace_jmp_replace() and ftrace_call_replace()

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 745cfeaac09ce359130a5451d90cb0bd4094c290 ] Arnd reported the following compiler warning: arch/x86/kernel/ftrace.c:669:23: error: 'ftrace_jmp_replace' defined but not used [-Werror=unused-function] The ftrace_jmp_replace() function now only has a single user and should be simpl

[PATCH 4.19 006/190] sched/fair: Dont assign runtime for throttled cfs_rq

2019-09-13 Thread Greg Kroah-Hartman
From: Liangyan commit 5e2d2cc2588bd3307ce3937acbc2ed03c830a861 upstream. do_sched_cfs_period_timer() will refill cfs_b runtime and call distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime will allocate all quota to one cfs_rq incorrectly, then other cfs_rqs attached to this cfs

[PATCH 4.19 005/190] ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre

2019-09-13 Thread Greg Kroah-Hartman
From: Hui Wang commit 2a36c16efab254dd6017efeb35ad88ecc96f2328 upstream. This ThinkCentre machine has a new realtek codec alc222, it is not in the support list, we add it in the realtek.c then this machine can apply FIXUPs for the realtek codec. And this machine has two front mics which can't b

[PATCH 4.14 09/21] PCI: designware-ep: Fix find_first_zero_bit() usage

2019-09-13 Thread Greg Kroah-Hartman
From: Niklas Cassel commit ad4a5becc689c3f32bbbc2b37eff89efe19dc2f9 upstream. find_first_zero_bit()'s parameter 'size' is defined in bits, not in bytes. find_first_zero_bit() is called with size in bytes rather than bits, which thus defines a too low upper limit, causing dw_pcie_ep_inbound_atu(

[PATCH 4.14 07/21] xfrm: clean up xfrm protocol checks

2019-09-13 Thread Greg Kroah-Hartman
From: Cong Wang commit dbb2483b2a46fbaf833cfb5deb5ed9cace9c7399 upstream. In commit 6a53b7593233 ("xfrm: check id proto in validate_tmpl()") I introduced a check for xfrm protocol, but according to Herbert IPSEC_PROTO_ANY should only be used as a wildcard for lookup, so it should be removed from

[PATCH 4.19 004/190] ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL

2019-09-13 Thread Greg Kroah-Hartman
From: Jian-Hong Pan commit 60083f9e94b2f28047d71ed778adf89357c1a8fb upstream. Original pin node values of ASUS UX431FL with ALC294: 0x12 0xb7a60140 0x13 0x4000 0x14 0x90170110 0x15 0x41f0 0x16 0x41f0 0x17 0x90170111 0x18 0x41f0 0x19 0x41f0 0x1a 0x41f0 0x1b 0x41f0 0x1

[PATCH 4.19 000/190] 4.19.73-stable review

2019-09-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.73 release. There are 190 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 Sun 15 Sep 2019 01:03:32 PM UTC. Anything re

[PATCH 4.14 00/21] 4.14.144-stable review

2019-09-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.144 release. There are 21 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 Sun 15 Sep 2019 01:03:32 PM UTC. Anything re

[PATCH 4.19 015/190] blk-iolatency: fix STS_AGAIN handling

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit c9b3007feca018d3f7061f5d5a14cb00766ffe9b ] The iolatency controller is based on rq_qos. It increments on rq_qos_throttle() and decrements on either rq_qos_cleanup() or rq_qos_done_bio(). a3fb01ba5af0 fixes the double accounting issue where blk_mq_make_request() may call both rq_q

[PATCH 4.19 014/190] Blk-iolatency: warn on negative inflight IO counter

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 391f552af213985d3d324c60004475759a7030c5 ] This is to catch any unexpected negative value of inflight IO counter. Signed-off-by: Liu Bo Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/blk-iolatency.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) di

[PATCH 4.19 002/190] ALSA: hda/realtek - Fix overridden device-specific initialization

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 89781d0806c2c4f29072d3f00cb2dd4274aabc3d upstream. The recent change to shuffle the codec initialization procedure for Realtek via commit 607ca3bd220f ("ALSA: hda/realtek - EAPD turn on later") caused the silent output on some machines. This change was supposed to be s

[PATCH 4.19 001/190] ALSA: hda - Fix potential endless loop at applying quirks

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 333f31436d3db19f4286f8862a00ea1d8d8420a1 upstream. Since the chained quirks via chained_before flag is applied before the depth check, it may lead to the endless recursive calls, when the chain were set up incorrectly. Fix it by moving the depth check at the beginning

[PATCH 4.14 05/21] drm/vmwgfx: Fix double free in vmw_recv_msg()

2019-09-13 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 08b0c891605acf727e43e3e03a25857d3e789b61 upstream. We recently added a kfree() after the end of the loop: if (retries == RETRIES) { kfree(reply); return -EINVAL; } There are two problems. First the test is wrong and be

[PATCH 4.14 04/21] sched/fair: Dont assign runtime for throttled cfs_rq

2019-09-13 Thread Greg Kroah-Hartman
From: Liangyan commit 5e2d2cc2588bd3307ce3937acbc2ed03c830a861 upstream. do_sched_cfs_period_timer() will refill cfs_b runtime and call distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime will allocate all quota to one cfs_rq incorrectly, then other cfs_rqs attached to this cfs

[PATCH 4.14 01/21] ALSA: hda - Fix potential endless loop at applying quirks

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 333f31436d3db19f4286f8862a00ea1d8d8420a1 upstream. Since the chained quirks via chained_before flag is applied before the depth check, it may lead to the endless recursive calls, when the chain were set up incorrectly. Fix it by moving the depth check at the beginning

[PATCH 4.14 11/21] vhost/test: fix build for vhost test

2019-09-13 Thread Greg Kroah-Hartman
From: Tiwei Bie commit 264b563b8675771834419057cbe076c1a41fb666 upstream. Since vhost_exceeds_weight() was introduced, callers need to specify the packet weight and byte weight in vhost_dev_init(). Note that, the packet weight isn't counted in this patch to keep the original behavior unchanged.

[PATCH 4.14 12/21] batman-adv: fix uninit-value in batadv_netlink_get_ifindex()

2019-09-13 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 3ee1bb7aae97324ec9078da1f00cb2176919563f upstream. batadv_netlink_get_ifindex() needs to make sure user passed a correct u32 attribute. syzbot reported : BUG: KMSAN: uninit-value in batadv_netlink_dump_hardif+0x70d/0x880 net/batman-adv/netlink.c:968 CPU: 1 PID: 11705

[PATCH 4.14 15/21] powerpc/64: mark start_here_multiplatform as __ref

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 9c4e4c90ec24652921e31e9551fcaedc26eec86d ] Otherwise, the following warning is encountered: WARNING: vmlinux.o(.text+0x3dc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform

[PATCH 4.14 03/21] ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre

2019-09-13 Thread Greg Kroah-Hartman
From: Hui Wang commit 2a36c16efab254dd6017efeb35ad88ecc96f2328 upstream. This ThinkCentre machine has a new realtek codec alc222, it is not in the support list, we add it in the realtek.c then this machine can apply FIXUPs for the realtek codec. And this machine has two front mics which can't b

linux-kernel@vger.kernel.org

2019-09-13 Thread Thomas Zimmermann
Hi Am 13.09.19 um 14:29 schrieb Gerd Hoffmann: > Wire up the new drm_gem_ttm_mmap() helper function, > use generic drm_gem_mmap for &fops.mmap and > delete dead drm_vram_mm_file_operations_mmap(). > > Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Zimmermann > --- > include/drm/drm_gem_vra

[PATCH 4.14 21/21] vhost: make sure log_num < in_num

2019-09-13 Thread Greg Kroah-Hartman
From: yongduan commit 060423bfdee3f8bc6e2c1bac97de24d5415e2bc4 upstream. The code assumes log_num < in_num everywhere, and that is true as long as in_num is incremented by descriptor iov count, and log_num by 1. However this breaks if there's a zero sized descriptor. As a result, if a malicious

[PATCH 4.14 14/21] hv_sock: Fix hang when a connection is closed

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 685703b497bacea8765bb409d6b73455b73c540e ] There is a race condition for an established connection that is being closed by the guest: the refcnt is 4 at the end of hvs_release() (Note: here the 'remove_sock' is false): 1 for the initial value; 1 for the sk being in the bound lis

[PATCH 4.14 10/21] PCI: dra7xx: Fix legacy INTD IRQ handling

2019-09-13 Thread Greg Kroah-Hartman
From: Vignesh R commit 524d59f6e30aab5b618da55e604c802ccd83e708 upstream. Legacy INTD IRQ handling is broken on dra7xx due to fact that driver uses hwirq in range of 1-4 for INTA, INTD whereas IRQ domain is of size 4 which is numbered 0-3. Therefore when INTD IRQ line is used with pci-dra7xx dri

[PATCH 4.14 16/21] arm64: dts: rockchip: enable usb-host regulators at boot on rk3328-rock64

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 26e2d7b03ea7ff254bf78305aa44dda62e70b78e ] After commit ef05bcb60c1a, boot from USB drives is broken. Fix this problem by enabling usb-host regulators during boot time. Fixes: ef05bcb60c1a ("arm64: dts: rockchip: fix vcc_host1_5v pin assign on rk3328-rock64") Cc: sta...@vger.ke

[PATCH 4.14 19/21] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit bc6f2a757d525e001268c3658bd88822e768f8db ] In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Reviewed-by: Miroslav Benes Sign

[PATCH 4.14 20/21] vhost: block speculation of translated descriptors

2019-09-13 Thread Greg Kroah-Hartman
From: Michael S. Tsirkin commit a89db445fbd7f1f8457b03759aa7343fa530ef6b upstream. iovec addresses coming from vhost are assumed to be pre-validated, but in fact can be speculated to a value out of range. Userspace address are later validated with array_index_nospec so we can be sure kernel inf

[PATCH 4.14 02/21] ALSA: hda/realtek - Fix overridden device-specific initialization

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 89781d0806c2c4f29072d3f00cb2dd4274aabc3d upstream. The recent change to shuffle the codec initialization procedure for Realtek via commit 607ca3bd220f ("ALSA: hda/realtek - EAPD turn on later") caused the silent output on some machines. This change was supposed to be s

[PATCH 4.14 17/21] scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 31013836a71e07751a6827f9d2ad41ef502ddaff ] The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing. Link: http://lkml.kernel.org/r/20190518055946.181563-1-drink...@chromium.org Fixes: 67a28de47faa8358 ("scripts/deco

[PATCH 4.14 18/21] clk: s2mps11: Add used attribute to s2mps11_dt_match

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 9c940bbe2bb47e03ca5e937d30b6a50bf9c0e671 ] Clang warns after commit 8985167ecf57 ("clk: s2mps11: Fix matching when built as module and DT node contains compatible"): drivers/clk/clk-s2mps11.c:242:34: warning: variable 's2mps11_dt_match' is not needed and will not be emitted [-Wu

[PATCH 4.9 09/14] batman-adv: fix uninit-value in batadv_netlink_get_ifindex()

2019-09-13 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 3ee1bb7aae97324ec9078da1f00cb2176919563f upstream. batadv_netlink_get_ifindex() needs to make sure user passed a correct u32 attribute. syzbot reported : BUG: KMSAN: uninit-value in batadv_netlink_dump_hardif+0x70d/0x880 net/batman-adv/netlink.c:968 CPU: 1 PID: 11705

[PATCH 4.9 01/14] ALSA: hda - Fix potential endless loop at applying quirks

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 333f31436d3db19f4286f8862a00ea1d8d8420a1 upstream. Since the chained quirks via chained_before flag is applied before the depth check, it may lead to the endless recursive calls, when the chain were set up incorrectly. Fix it by moving the depth check at the beginning

[PATCH 4.9 08/14] vhost/test: fix build for vhost test

2019-09-13 Thread Greg Kroah-Hartman
From: Tiwei Bie commit 264b563b8675771834419057cbe076c1a41fb666 upstream. Since vhost_exceeds_weight() was introduced, callers need to specify the packet weight and byte weight in vhost_dev_init(). Note that, the packet weight isn't counted in this patch to keep the original behavior unchanged.

[PATCH 4.9 05/14] powerpc/tm: Fix FP/VMX unavailable exceptions inside a transaction

2019-09-13 Thread Greg Kroah-Hartman
From: Gustavo Romero commit 8205d5d98ef7f155de211f5e2eb6ca03d95a5a60 upstream. When we take an FP unavailable exception in a transaction we have to account for the hardware FP TM checkpointed registers being incorrect. In this case for this process we know the current and checkpointed FP registe

[PATCH 4.9 07/14] ip6: fix skb leak in ip6frag_expire_frag_queue()

2019-09-13 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 47d3d7fdb10a21c223036b58bd70ffdc24a472c4 upstream. Since ip6frag_expire_frag_queue() now pulls the head skb from frag queue, we should no longer use skb_get(), since this leads to an skb leak. Stefan Bader initially reported a problem in 4.4.stable [1] caused by the sk

[PATCH 4.9 14/14] vhost: make sure log_num < in_num

2019-09-13 Thread Greg Kroah-Hartman
From: yongduan commit 060423bfdee3f8bc6e2c1bac97de24d5415e2bc4 upstream. The code assumes log_num < in_num everywhere, and that is true as long as in_num is incremented by descriptor iov count, and log_num by 1. However this breaks if there's a zero sized descriptor. As a result, if a malicious

[PATCH 4.9 04/14] drm/vmwgfx: Fix double free in vmw_recv_msg()

2019-09-13 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 08b0c891605acf727e43e3e03a25857d3e789b61 upstream. We recently added a kfree() after the end of the loop: if (retries == RETRIES) { kfree(reply); return -EINVAL; } There are two problems. First the test is wrong and be

[PATCH 4.9 11/14] scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 31013836a71e07751a6827f9d2ad41ef502ddaff ] The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing. Link: http://lkml.kernel.org/r/20190518055946.181563-1-drink...@chromium.org Fixes: 67a28de47faa8358 ("scripts/deco

[PATCH 4.9 13/14] vhost: block speculation of translated descriptors

2019-09-13 Thread Greg Kroah-Hartman
From: Michael S. Tsirkin commit a89db445fbd7f1f8457b03759aa7343fa530ef6b upstream. iovec addresses coming from vhost are assumed to be pre-validated, but in fact can be speculated to a value out of range. Userspace address are later validated with array_index_nospec so we can be sure kernel inf

[PATCH 4.9 02/14] ALSA: hda/realtek - Fix overridden device-specific initialization

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 89781d0806c2c4f29072d3f00cb2dd4274aabc3d upstream. The recent change to shuffle the codec initialization procedure for Realtek via commit 607ca3bd220f ("ALSA: hda/realtek - EAPD turn on later") caused the silent output on some machines. This change was supposed to be s

[PATCH 4.9 12/14] clk: s2mps11: Add used attribute to s2mps11_dt_match

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 9c940bbe2bb47e03ca5e937d30b6a50bf9c0e671 ] Clang warns after commit 8985167ecf57 ("clk: s2mps11: Fix matching when built as module and DT node contains compatible"): drivers/clk/clk-s2mps11.c:242:34: warning: variable 's2mps11_dt_match' is not needed and will not be emitted [-Wu

[PATCH 4.9 00/14] 4.9.193-stable review

2019-09-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.193 release. There are 14 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 Sun 15 Sep 2019 01:03:32 PM UTC. Anything rec

[PATCH 4.4 0/9] 4.4.193-stable review

2019-09-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.193 release. There are 9 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 Sun 15 Sep 2019 01:03:32 PM UTC. Anything rece

[PATCH 4.4 5/9] scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 31013836a71e07751a6827f9d2ad41ef502ddaff ] The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing. Link: http://lkml.kernel.org/r/20190518055946.181563-1-drink...@chromium.org Fixes: 67a28de47faa8358 ("scripts/deco

[PATCH 4.4 9/9] vhost: make sure log_num < in_num

2019-09-13 Thread Greg Kroah-Hartman
From: yongduan commit 060423bfdee3f8bc6e2c1bac97de24d5415e2bc4 upstream. The code assumes log_num < in_num everywhere, and that is true as long as in_num is incremented by descriptor iov count, and log_num by 1. However this breaks if there's a zero sized descriptor. As a result, if a malicious

[PATCH 4.4 7/9] x86, boot: Remove multiple copy of static function sanitize_boot_params()

2019-09-13 Thread Greg Kroah-Hartman
From: Zhenzhong Duan commit 8c5477e8046ca139bac250386c08453da37ec1ae upstream. Kernel build warns: 'sanitize_boot_params' defined but not used [-Wunused-function] at below files: arch/x86/boot/compressed/cmdline.c arch/x86/boot/compressed/error.c arch/x86/boot/compressed/early_serial_con

[PATCH 4.4 8/9] af_packet: tone down the Tx-ring unsupported spew.

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 6ae81ced378820c4c6434b1dedba14a7122df310 ] Trinity and other fuzzers can hit this WARN on far too easily, resulting in a tainted kernel that hinders automated fuzzing. Replace it with a rate-limited printk. Signed-off-by: Dave Jones Acked-by: Daniel Borkmann Signed-off-by: Da

[PATCH 4.4 4/9] vhost/test: fix build for vhost test

2019-09-13 Thread Greg Kroah-Hartman
From: Tiwei Bie commit 264b563b8675771834419057cbe076c1a41fb666 upstream. Since vhost_exceeds_weight() was introduced, callers need to specify the packet weight and byte weight in vhost_dev_init(). Note that, the packet weight isn't counted in this patch to keep the original behavior unchanged.

[PATCH 4.4 6/9] clk: s2mps11: Add used attribute to s2mps11_dt_match

2019-09-13 Thread Greg Kroah-Hartman
[ Upstream commit 9c940bbe2bb47e03ca5e937d30b6a50bf9c0e671 ] Clang warns after commit 8985167ecf57 ("clk: s2mps11: Fix matching when built as module and DT node contains compatible"): drivers/clk/clk-s2mps11.c:242:34: warning: variable 's2mps11_dt_match' is not needed and will not be emitted [-Wu

[PATCH 4.4 3/9] xfrm: clean up xfrm protocol checks

2019-09-13 Thread Greg Kroah-Hartman
From: Cong Wang commit dbb2483b2a46fbaf833cfb5deb5ed9cace9c7399 upstream. In commit 6a53b7593233 ("xfrm: check id proto in validate_tmpl()") I introduced a check for xfrm protocol, but according to Herbert IPSEC_PROTO_ANY should only be used as a wildcard for lookup, so it should be removed from

[PATCH 4.4 2/9] ALSA: hda/realtek - Fix overridden device-specific initialization

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 89781d0806c2c4f29072d3f00cb2dd4274aabc3d upstream. The recent change to shuffle the codec initialization procedure for Realtek via commit 607ca3bd220f ("ALSA: hda/realtek - EAPD turn on later") caused the silent output on some machines. This change was supposed to be s

[PATCH 4.4 1/9] ALSA: hda - Fix potential endless loop at applying quirks

2019-09-13 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 333f31436d3db19f4286f8862a00ea1d8d8420a1 upstream. Since the chained quirks via chained_before flag is applied before the depth check, it may lead to the endless recursive calls, when the chain were set up incorrectly. Fix it by moving the depth check at the beginning

Re: [Patch 07/13] media: am437x-vpfe: Use a per instance format array instead of a static one

2019-09-13 Thread Hans Verkuil
On 9/9/19 6:27 PM, Benoit Parrot wrote: > Using a statically defined format array would cause issue when > multiple vpfe instance would be connected to sub-device of > different capabilities. We need to use an instance based array > instead to properly maintain a per port/instance format list. > >

Re: KASAN: slab-out-of-bounds Read in handle_vmptrld

2019-09-13 Thread Greg Kroah-Hartman
On Fri, Sep 13, 2019 at 09:34:32AM +0200, Paolo Bonzini wrote: > On 13/09/19 06:46, Greg Kroah-Hartman wrote: > > USB drivers expect kmalloc to return DMA-able memory. I don't know > > about specific alignment issues, that should only an issue for the host > > controller being used here, which you

My just-shovel-data-through-for-X-amount-of-time test

2019-09-13 Thread David Howells
/* * Benchmark a pipe by seeing how many 511-byte writes can be stuffed through * it in a certain amount of time. Compile with -lm. */ #define _GNU_SOURCE #include #include #include #include #include #include #include #include static char buf1[4096] __attribute__((aligned(4096))); stat

[RFC][PATCH] pipe: Convert ring to head/tail

2019-09-13 Thread David Howells
Here's my first patch to the pipe ring, with an eye to piggybacking notifications on it. Other than whatever booting does, I haven't managed to explicitly test splice and iov_iter-to-pipe yet. Other than that, lmbench seems to show about a 1% improvement on pipe performance and my own just-shovel

Re: [Patch 02/13] media: am437x-vpfe: Fix missing first line

2019-09-13 Thread Hans Verkuil
On 9/9/19 6:27 PM, Benoit Parrot wrote: > Previous generation of this driver were hard coded to handle > encoder/decoder were the first line never contains any data and were -> where > was therefore always skipped, however when dealing with actual > camera sensor the first line is always present.

Re: [PATCH v5 04/10] x86, efi: Reserve UEFI 2.8 Specific Purpose Memory for dax

2019-09-13 Thread Ard Biesheuvel
On Fri, 30 Aug 2019 at 03:06, Dan Williams wrote: > > UEFI 2.8 defines an EFI_MEMORY_SP attribute bit to augment the > interpretation of the EFI Memory Types as "reserved for a specific > purpose". > > The proposed Linux behavior for specific purpose memory is that it is > reserved for direct-acce

Re: [Patch 01/13] media: am437x-vpfe: Fix suspend path to always handle pinctrl config

2019-09-13 Thread Hans Verkuil
On 9/9/19 6:27 PM, Benoit Parrot wrote: > From: Dave Gerlach > > Currently if vpfe is not active then it returns immediately in the > suspend and resume handlers. Change this so that it always performs the > pinctrl config so that we can still get proper sleep state configuration > on the pins ev

[PATCH v9 0/8] Disable compat cruft on ppc64le v9

2019-09-13 Thread Michal Suchanek
Less code means less bugs so add a knob to skip the compat stuff. This is tested on ppc64le top of https://patchwork.ozlabs.org/patch/1153850/ https://patchwork.ozlabs.org/patch/1158412/ Changes in v2: saner CONFIG_COMPAT ifdefs Changes in v3: - change llseek to 32bit instead of builing it unco

[PATCH v9 4/8] powerpc/perf: consolidate valid_user_sp

2019-09-13 Thread Michal Suchanek
Merge the 32bit and 64bit version. Halve the check constants on 32bit. Use STACK_TOP since it is defined. This removes a page from the valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal S

[PATCH v9 8/8] powerpc/perf: split callchain.c by bitness

2019-09-13 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c -

[PATCH v9 2/8] powerpc: move common register copy functions from signal_32.c to signal.c

2019-09-13 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140

[PATCH v9 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2019-09-13 Thread Michal Suchanek
This partially reverts commit caf6f9c8a326 ("asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro") When CONFIG_COMPAT is disabled on ppc64 the kernel does not build. There is resistance to both removing the llseek syscall from the 64bit syscall tables and building the llseek interface uncon

[PATCH v9 7/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-13 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/K

[PATCH v9 3/8] powerpc/perf: consolidate read_user_stack_32

2019-09-13 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out of the i

[PATCH v9 6/8] powerpc/64: make buildable without CONFIG_COMPAT

2019-09-13 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c -

[PATCH v9 5/8] powerpc/perf: remove current_is_64bit()

2019-09-13 Thread Michal Suchanek
Since commit ed1cd6deb013 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK") current_is_64bit() is quivalent to !is_32bit_task(). Remove the redundant function. Link: https://github.com/linuxppc/issues/issues/275 Link: https://lkml.org/lkml/2019/9/12/540 Fixes: linuxppc#275 Suggested-by: Christophe

Re: [PATCH 1/2] watchdog: pm8916_wdt: fix pretimeout registration flow

2019-09-13 Thread Guenter Roeck
On Fri, Sep 06, 2019 at 10:30:53PM +0200, Jorge Ramirez-Ortiz wrote: > When an IRQ is present in the dts, the probe function shall fail if > the interrupt can not be registered. > > The probe function shall also be retried if getting the irq is being > deferred. > > Signed-off-by: Jorge Ramirez-O

Re: [v5 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-13 Thread Miquel Raynal
Hi Piotr, Piotr Sroka wrote on Wed, 11 Sep 2019 16:04:24 +0100: > Hi Miquel > > The 08/30/2019 11:46, Miquel Raynal wrote: > >EXTERNAL MAIL > > > > > >Hi Piotr, > > > >Piotr Sroka wrote on Thu, 25 Jul 2019 15:59:55 > >+0100: > > > >> Document the bindings used by Cadence NAND controller driv

Re: [PATCH v2 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-13 Thread Linus Walleij
On Thu, Sep 12, 2019 at 3:43 PM Linus Walleij wrote: > On Thu, Sep 5, 2019 at 7:00 AM Light Hsieh wrote: > > > v2 is the same as v1 except that commit message is corrected according > > to Linus' comment for v1: > > > > 1. remove Change-Id lines > > 2. correct sysfs as debugfs > > Patches applied

Re: [PATCH v2 3/5] pinctrl: mediatek: Refine mtk_pinconf_get() and mtk_pinconf_set()

2019-09-13 Thread Linus Walleij
On Thu, Sep 5, 2019 at 7:53 AM Light Hsieh wrote: > From: Light Hsieh > > 1.Refine mtk_pinconf_get(): (...) > 2.Refine mtk_pinconf_set(): This explodes on the build servers and it's because of this: > @@ -78,93 +78,75 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev, > { > st

Re: [PATCH] mtd: rawnand: fix spelling mistake "gravepagess" -> "gravepages"

2019-09-13 Thread Miquel Raynal
Hi Colin, Colin King wrote on Fri, 13 Sep 2019 10:22:43 +0100: > From: Colin Ian King > > There is a spelling mistake in a NS_ERR error message. Fix it. A Fixes tag would be great! > > Signed-off-by: Colin Ian King > --- > drivers/mtd/nand/raw/nandsim.c | 2 +- > 1 file changed, 1 inserti

Re: problem starting /sbin/init (32-bit 5.3-rc8)

2019-09-13 Thread Matthew Wilcox
On Thu, Sep 12, 2019 at 06:46:04PM -0700, Kees Cook wrote: > This combination appears to be bugged since the original introduction > of hardened usercopy in v4.8. Is this an untested combination until > now? (I don't usually do tests with CONFIG_DEBUG_VIRTUAL, but I guess > I will from now on!) Tr

linux-kernel@vger.kernel.org

2019-09-13 Thread Gerd Hoffmann
Switch gem shmem helper to the new mmap() workflow, from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap. Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_shmem_helper.h | 6 ++ drivers/gpu/drm/drm_gem_shmem_helper.c | 26 - drivers/gpu/drm/panfrost/pan

linux-kernel@vger.kernel.org

2019-09-13 Thread Gerd Hoffmann
Wire up the new drm_gem_ttm_mmap() helper function, use generic drm_gem_mmap for &fops.mmap and delete dead drm_vram_mm_file_operations_mmap(). Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 9 +-- drivers/gpu/drm/drm_gem_vram_helper.c | 34 +---

[PATCH 8/8] drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS

2019-09-13 Thread Gerd Hoffmann
Not needed any more because we don't have vram specific fops any more. DEFINE_DRM_GEM_FOPS() can be used instead. Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 18 include/drm/drm_vram_mm_helper.h | 82 +++ drivers/gpu/drm/ast

[PATCH 7/8] drm/vram: drop verify_access

2019-09-13 Thread Gerd Hoffmann
Not needed any more. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/drm_gem_vram_helper.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index e100b97ea6e3..42ee80414273 100644 --- a/driv

[PATCH 5/8] drm/ttm: add drm_gem_ttm_mmap()

2019-09-13 Thread Gerd Hoffmann
Add helper function to mmap ttm bo's using &drm_gem_object_funcs.mmap(). Note that with this code path access verification is done by drm_gem_mmap() (which calls drm_vma_node_is_allowed(()). The &ttm_bo_driver.verify_access() callback is is not used. Signed-off-by: Gerd Hoffmann --- include/drm

Re: [PATCH v2] tracing: Be more clever when dumping hex in __print_hex()

2019-09-13 Thread Andy Shevchenko
On Tue, Aug 06, 2019 at 11:33:52AM -0400, Steven Rostedt wrote: > On Tue, 6 Aug 2019 18:15:43 +0300 > Andy Shevchenko wrote: > > > Hex dump as many as 16 bytes at once in trace_print_hex_seq() > > instead of byte-by-byte approach. > > + const char *fmt = concatenate ? "%*phN" : "%*ph"; > >

big ICMP requests get disrupted on IPSec tunnel activation

2019-09-13 Thread Bartschies, Thomas
Hello together, since kenel 4.20 we're observing a strange behaviour when sending big ICMP packets. An example is a packet size of 3000 bytes. The packets should be forwarded by a linux gateway (firewall) having multiple interfaces also acting as a vpn gateway. Test steps: 1. Disabled all iptab

[PATCH v4 05/26] nfs: don't bother setting/restoring export_path around do_nfs_root_mount()

2019-09-13 Thread Scott Mayhew
From: Al Viro nothing in it will be looking at that thing anyway Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/nfs4super.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index d0237d8ffa2b..a0b66f98f6ba 100644 --- a/fs/nfs/nfs4sup

[PATCH v4 11/26] nfs: unexport nfs_fs_mount_common()

2019-09-13 Thread Scott Mayhew
From: Al Viro Make it static, even. And remove a stale extern of (long-gone) nfs_xdev_mount_common() from internal.h, while we are at it. Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/internal.h | 3 --- fs/nfs/super.c| 5 +++-- 2 files changed, 3 insertions(+), 5 deletion

[PATCH v4 10/26] nfs: merge xdev and remote file_system_type

2019-09-13 Thread Scott Mayhew
From: Al Viro they are identical now... Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/internal.h | 2 +- fs/nfs/namespace.c | 2 +- fs/nfs/nfs4super.c | 22 +- fs/nfs/super.c | 14 -- 4 files changed, 11 insertions(+), 29 deletions(-) dif

[PATCH v4 12/26] nfs: don't pass nfs_subversion to ->create_server()

2019-09-13 Thread Scott Mayhew
From: Al Viro pick it from mount_info Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/client.c | 4 ++-- fs/nfs/internal.h | 7 ++- fs/nfs/nfs3_fs.h| 2 +- fs/nfs/nfs3client.c | 5 ++--- fs/nfs/nfs4client.c | 3 +-- fs/nfs/nfs4super.c |

[PATCH v4 07/26] nfs: lift setting mount_info from nfs_xdev_mount()

2019-09-13 Thread Scott Mayhew
From: Al Viro Do it in nfs_do_submount() instead. As a side benefit, nfs_clone_data doesn't need ->fh and ->fattr anymore. Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/internal.h | 3 +-- fs/nfs/namespace.c | 35 +-- fs/nfs/super.c | 25 +

[PATCH v4 17/26] NFS: Constify mount argument match tables

2019-09-13 Thread Scott Mayhew
From: David Howells The mount argument match tables should never be altered so constify them. Signed-off-by: David Howells Signed-off-by: Al Viro --- fs/nfs/fs_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 3

[PATCH v4 03/26] nfs: lift setting mount_info from nfs4_remote{,_referral}_mount

2019-09-13 Thread Scott Mayhew
From: Al Viro Do that (fhandle allocation, setting struct server up) in nfs4_referral_mount() and nfs4_try_mount() resp. and pass the server and pointer to mount_info into nfs_do_root_mount() so that nfs4_remote_referral_mount()/nfs_remote_mount() could be merged. Since we are moving stuff from

[PATCH v4 06/26] nfs4: fold nfs_do_root_mount/nfs_follow_remote_path

2019-09-13 Thread Scott Mayhew
From: Al Viro Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/nfs4super.c | 88 +++--- 1 file changed, 37 insertions(+), 51 deletions(-) diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index a0b66f98f6ba..91ba1b6741dc 100644 --- a/fs/n

[PATCH v4 19/26] NFS: Split nfs_parse_mount_options()

2019-09-13 Thread Scott Mayhew
From: David Howells Split nfs_parse_mount_options() to move the prologue, list-splitting and epilogue into one function and the per-option processing into another. Signed-off-by: David Howells Signed-off-by: Al Viro --- fs/nfs/fs_context.c | 126 f

Re: [RFC 1/3] dt-bindings: dma: Add documentation for DMA domains

2019-09-13 Thread Peter Ujfalusi
Vinod, On 13/09/2019 13.36, Vinod Koul wrote: >>> So you have dma, xbar and client? And you need to use a specfic xbar, >>> did i get that right? >> >> At the end yes. > > :) > >> EDMA have dedicated crossbar >> sDMA have dedicated crossbar > > So the domain mapping should point to crossbar. >

[PATCH v4 20/26] NFS: Deindent nfs_fs_context_parse_option()

2019-09-13 Thread Scott Mayhew
From: David Howells Deindent nfs_fs_context_parse_option(). Signed-off-by: David Howells Signed-off-by: Al Viro --- fs/nfs/fs_context.c | 739 ++-- 1 file changed, 367 insertions(+), 372 deletions(-) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context

[PATCH v4 08/26] nfs: stash nfs_subversion reference into nfs_mount_info

2019-09-13 Thread Scott Mayhew
From: Al Viro That will allow to get rid of passing those references around in quite a few places. Moreover, that will allow to merge xdev and remote file_system_type. Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/internal.h | 1 + fs/nfs/namespace.c | 6 +++--- fs/nfs/nfs4su

[PATCH v4 14/26] nfs_clone_sb_security(): simplify the check for server bogosity

2019-09-13 Thread Scott Mayhew
From: Al Viro We used to check ->i_op for being nfs_dir_inode_operations. With separate inode_operations for v3 and v4 that became bogus, but rather than going for protocol-dependent comparison we could've just checked ->i_fop instead; _that_ is the same for all protocol versions. Reviewed-by:

<    3   4   5   6   7   8   9   10   >