[PATCH AUTOSEL 5.4 02/17] selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion

2020-07-27 Thread Sasha Levin
From: Paolo Pisati [ Upstream commit 651149f60376758a4759f761767965040f9e4464 ] During setup(): ... for ns in h0 r1 h1 h2 h3 do create_ns ${ns} done ... while in cleanup(): ... for n in h1 r1 h2 h3 h4 do ip netns del ${n}

[PATCH AUTOSEL 5.7 20/25] cxgb4: add missing release on skb in uld_send()

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH AUTOSEL 5.4 04/17] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-07-27 Thread Sasha Levin
From: Paolo Pisati [ Upstream commit aba69d49fb49c9166596dd78926514173b7f9ab5 ] Fix ip_defrag.sh when CONFIG_NF_DEFRAG_IPV6=m: $ sudo ./ip_defrag.sh + set -e + mktemp -u XX + readonly NETNS=ns-rGlXcw + trap cleanup EXIT + setup + ip netns add ns-rGlXcw + ip -netns ns-rGlXcw link set lo up

[PATCH AUTOSEL 5.4 10/17] drivers/net/wan/x25_asy: Fix to make it work

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH AUTOSEL 5.4 06/17] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 5.4 08/17] parisc: add support for cmpxchg on u8 pointers

2020-07-27 Thread Sasha Levin
From: Liam Beguin [ Upstream commit b344d6a83d01c52fddbefa6b3b4764da5b1022a0 ] The kernel test bot reported[1] that using set_mask_bits on a u8 causes the following issue on parisc: hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe': >> (.text+0x2f4):

[PATCH AUTOSEL 5.7 24/25] drivers/net/wan: lapb: Corrected the usage of skb_cow

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8754e1379e7089516a449821f88e1fe1ebbae5e1 ] This patch fixed 2 issues with the usage of skb_cow in LAPB drivers "lapbether" and "hdlc_x25": 1) After skb_cow fails, kfree_skb should be called to drop a reference to the skb. But in both drivers, kfree_skb is not

[PATCH AUTOSEL 5.4 01/17] usb: hso: Fix debug compile warning on sparc32

2020-07-27 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18:

[PATCH AUTOSEL 5.4 15/17] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH AUTOSEL 5.4 12/17] x86/unwind/orc: Fix ORC for newly forked tasks

2020-07-27 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 372a8eaa05998cd45b3417d0e0ffd3a70978211a ] The ORC unwinder fails to unwind newly forked tasks which haven't yet run on the CPU. It correctly reads the 'ret_from_fork' instruction pointer from the stack, but it incorrectly interprets that value as a call

[PATCH AUTOSEL 5.4 09/17] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 4.19 01/10] usb: hso: Fix debug compile warning on sparc32

2020-07-27 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18:

[PATCH AUTOSEL 5.4 14/17] cxgb4: add missing release on skb in uld_send()

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH AUTOSEL 5.4 16/17] RISC-V: Set maximum number of mapped pages correctly

2020-07-27 Thread Sasha Levin
From: Atish Patra [ Upstream commit d0d8aae64566b753c4330fbd5944b88af035f299 ] Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to

[PATCH AUTOSEL 5.4 07/17] scsi: core: Run queue in case of I/O resource contention failure

2020-07-27 Thread Sasha Levin
From: Ming Lei [ Upstream commit 3f0dcfbcd2e162fc0a11c1f59b7acd42ee45f126 ] I/O requests may be held in scheduler queue because of resource contention. The starvation scenario was handled properly in the regular completion path but we failed to account for it during I/O submission. This lead to

[PATCH AUTOSEL 5.4 11/17] Revert "i2c: cadence: Fix the hold bit setting"

2020-07-27 Thread Sasha Levin
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[PATCH AUTOSEL 5.4 17/17] drivers/net/wan: lapb: Corrected the usage of skb_cow

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8754e1379e7089516a449821f88e1fe1ebbae5e1 ] This patch fixed 2 issues with the usage of skb_cow in LAPB drivers "lapbether" and "hdlc_x25": 1) After skb_cow fails, kfree_skb should be called to drop a reference to the skb. But in both drivers, kfree_skb is not

[PATCH AUTOSEL 4.19 04/10] parisc: add support for cmpxchg on u8 pointers

2020-07-27 Thread Sasha Levin
From: Liam Beguin [ Upstream commit b344d6a83d01c52fddbefa6b3b4764da5b1022a0 ] The kernel test bot reported[1] that using set_mask_bits on a u8 causes the following issue on parisc: hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe': >> (.text+0x2f4):

[PATCH AUTOSEL 4.19 07/10] Revert "i2c: cadence: Fix the hold bit setting"

2020-07-27 Thread Sasha Levin
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[PATCH AUTOSEL 4.19 03/10] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 4.19 05/10] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 4.14 05/10] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 4.14 06/10] drivers/net/wan/x25_asy: Fix to make it work

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH AUTOSEL 4.9 4/7] parisc: add support for cmpxchg on u8 pointers

2020-07-27 Thread Sasha Levin
From: Liam Beguin [ Upstream commit b344d6a83d01c52fddbefa6b3b4764da5b1022a0 ] The kernel test bot reported[1] that using set_mask_bits on a u8 causes the following issue on parisc: hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe': >> (.text+0x2f4):

[PATCH AUTOSEL 4.19 09/10] cxgb4: add missing release on skb in uld_send()

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.19 10/10] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH AUTOSEL 4.9 5/7] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 4.14 08/10] x86/unwind/orc: Fix ORC for newly forked tasks

2020-07-27 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 372a8eaa05998cd45b3417d0e0ffd3a70978211a ] The ORC unwinder fails to unwind newly forked tasks which haven't yet run on the CPU. It correctly reads the 'ret_from_fork' instruction pointer from the stack, but it incorrectly interprets that value as a call

[PATCH AUTOSEL 4.19 08/10] x86/unwind/orc: Fix ORC for newly forked tasks

2020-07-27 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 372a8eaa05998cd45b3417d0e0ffd3a70978211a ] The ORC unwinder fails to unwind newly forked tasks which haven't yet run on the CPU. It correctly reads the 'ret_from_fork' instruction pointer from the stack, but it incorrectly interprets that value as a call

Re: [RFC PATCH] uvcvideo: Add mapping for HEVC payloads

2020-07-27 Thread Dmitry Buzdyk
Hi Laurent, Had you a chance to review USB descriptors from the device provided below? Is any additional information needed? On Wed, Jul 15, 2020 at 06:00:10PM +1000, Dmitry Buzdyk wrote: > On Tue, Jun 09, 2020 at 02:57:36PM +1000, Dmitry Buzdyk wrote: > Hi Laurent, > > Please see updated

[PATCH AUTOSEL 4.14 03/10] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[RFC PATCH linux-next] mmc: mediatek: msdc_cqe_disable() can be static

2020-07-27 Thread kernel test robot
Fixes: 88bd652b3c74 ("mmc: mediatek: command queue support") Signed-off-by: kernel test robot --- mtk-sd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 734e403a142e4..4e2583f69a631 100644 ---

[PATCH AUTOSEL 4.9 3/7] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 4.14 10/10] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH AUTOSEL 4.9 6/7] Revert "i2c: cadence: Fix the hold bit setting"

2020-07-27 Thread Sasha Levin
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[PATCH AUTOSEL 4.14 09/10] cxgb4: add missing release on skb in uld_send()

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.9 1/7] usb: hso: Fix debug compile warning on sparc32

2020-07-27 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18:

[PATCH AUTOSEL 4.9 2/7] qed: Disable "MFW indication via attention" SPAM every 5 minutes

2020-07-27 Thread Sasha Levin
From: Laurence Oberman [ Upstream commit 1d61e21852d3161f234b9656797669fe185c251b ] This is likely firmware causing this but its starting to annoy customers. Change the message level to verbose to prevent the spam. Note that this seems to only show up with ISCSI enabled on the HBA via the qedi

[PATCH AUTOSEL 4.9 7/7] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH AUTOSEL 4.14 07/10] Revert "i2c: cadence: Fix the hold bit setting"

2020-07-27 Thread Sasha Levin
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[linux-next:master 10687/11990] drivers/mmc/host/mtk-sd.c:2269:6: sparse: sparse: symbol 'msdc_cqe_disable' was not declared. Should it be

2020-07-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e9a523ff8f76de0768857f02ea76437d3b39d151 commit: 88bd652b3c74997bb436adf6131acf445066243e [10687/11990] mmc: mediatek: command queue support config: x86_64-randconfig-s022-20200727 (attached as .config

[PATCH AUTOSEL 4.4 3/4] Revert "i2c: cadence: Fix the hold bit setting"

2020-07-27 Thread Sasha Levin
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[PATCH AUTOSEL 4.4 1/4] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 4.4 4/4] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH AUTOSEL 4.4 2/4] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 4.14 04/10] parisc: add support for cmpxchg on u8 pointers

2020-07-27 Thread Sasha Levin
From: Liam Beguin [ Upstream commit b344d6a83d01c52fddbefa6b3b4764da5b1022a0 ] The kernel test bot reported[1] that using set_mask_bits on a u8 causes the following issue on parisc: hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe': >> (.text+0x2f4):

[PATCH AUTOSEL 4.14 01/10] usb: hso: Fix debug compile warning on sparc32

2020-07-27 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18:

[PATCH AUTOSEL 4.14 02/10] qed: Disable "MFW indication via attention" SPAM every 5 minutes

2020-07-27 Thread Sasha Levin
From: Laurence Oberman [ Upstream commit 1d61e21852d3161f234b9656797669fe185c251b ] This is likely firmware causing this but its starting to annoy customers. Change the message level to verbose to prevent the spam. Note that this seems to only show up with ISCSI enabled on the HBA via the qedi

[PATCH AUTOSEL 5.4 05/17] habanalabs: prevent possible out-of-bounds array access

2020-07-27 Thread Sasha Levin
From: Oded Gabbay [ Upstream commit cea7a0449ea3fa4883bf5dc8397f000d6b67d6cd ] Queue index is received from the user. Therefore, we must validate it before using it to access the queue props array. Signed-off-by: Oded Gabbay Reviewed-by: Tomer Tayar Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.7 19/25] x86/stacktrace: Fix reliable check for empty user task stacks

2020-07-27 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 039a7a30ec102ec866d382a66f87f6f7654f8140 ] If a user task's stack is empty, or if it only has user regs, ORC reports it as a reliable empty stack. But arch_stack_walk_reliable() incorrectly treats it as unreliable. That happens because the only success

[PATCH AUTOSEL 4.19 06/10] drivers/net/wan/x25_asy: Fix to make it work

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH AUTOSEL 5.4 03/17] qed: Disable "MFW indication via attention" SPAM every 5 minutes

2020-07-27 Thread Sasha Levin
From: Laurence Oberman [ Upstream commit 1d61e21852d3161f234b9656797669fe185c251b ] This is likely firmware causing this but its starting to annoy customers. Change the message level to verbose to prevent the spam. Note that this seems to only show up with ISCSI enabled on the HBA via the qedi

[PATCH AUTOSEL 4.19 02/10] qed: Disable "MFW indication via attention" SPAM every 5 minutes

2020-07-27 Thread Sasha Levin
From: Laurence Oberman [ Upstream commit 1d61e21852d3161f234b9656797669fe185c251b ] This is likely firmware causing this but its starting to annoy customers. Change the message level to verbose to prevent the spam. Note that this seems to only show up with ISCSI enabled on the HBA via the qedi

[PATCH AUTOSEL 5.4 13/17] x86/stacktrace: Fix reliable check for empty user task stacks

2020-07-27 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 039a7a30ec102ec866d382a66f87f6f7654f8140 ] If a user task's stack is empty, or if it only has user regs, ORC reports it as a reliable empty stack. But arch_stack_walk_reliable() incorrectly treats it as unreliable. That happens because the only success

[PATCH AUTOSEL 5.7 15/25] drivers/net/wan/x25_asy: Fix to make it work

2020-07-27 Thread Sasha Levin
From: Xie He [ Upstream commit 8fdcabeac39824fe67480fd9508d80161c541854 ] This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After

[PATCH AUTOSEL 5.7 05/25] qed: Disable "MFW indication via attention" SPAM every 5 minutes

2020-07-27 Thread Sasha Levin
From: Laurence Oberman [ Upstream commit 1d61e21852d3161f234b9656797669fe185c251b ] This is likely firmware causing this but its starting to annoy customers. Change the message level to verbose to prevent the spam. Note that this seems to only show up with ISCSI enabled on the HBA via the qedi

[PATCH AUTOSEL 5.7 13/25] net: ethernet: ravb: exit if re-initialization fails in tx timeout

2020-07-27 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 015c5d5e6aa3523c758a70eb87b291cece2dbbb4 ] According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that

[PATCH AUTOSEL 5.7 09/25] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-27 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 5.7 01/25] mt76: mt7615: fix lmac queue debugsfs entry

2020-07-27 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit d941f47caa386931c3b598ad1b43d5ddd65869aa ] acs and wmm index are swapped in mt7615_queues_acq respect to the hw design Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.7 08/25] habanalabs: prevent possible out-of-bounds array access

2020-07-27 Thread Sasha Levin
From: Oded Gabbay [ Upstream commit cea7a0449ea3fa4883bf5dc8397f000d6b67d6cd ] Queue index is received from the user. Therefore, we must validate it before using it to access the queue props array. Signed-off-by: Oded Gabbay Reviewed-by: Tomer Tayar Signed-off-by: Sasha Levin ---

Re: [rcu/segcblist] af49115178: WARNING:at_kernel/rcu/tree.c:#rcu_do_batch

2020-07-27 Thread Joel Fernandes
On Mon, Jul 20, 2020 at 08:53:35AM +0800, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: af4911517829034538d28c015577eaa335c5e011 ("[PATCH RFC v2] > rcu/segcblist: Add counters to segcblist datastructure") > url: >

Re: [PATCH] scripts/kernel-doc: optionally treat warnings as errors

2020-07-27 Thread Pierre-Louis Bossart
On 7/27/20 6:15 PM, Jonathan Corbet wrote: On Mon, 27 Jul 2020 18:09:21 -0500 Pierre-Louis Bossart wrote: Both points were covered by the sentence "A command-line option is provided to the kernel-doc script, as well as a check on environment variables to turn this optional behavior on".

Re: [PATCH v3 1/1] ARM:dts:aspeed: Initial device tree for AMD EthanolX

2020-07-27 Thread Joel Stanley
On Fri, 24 Jul 2020 at 19:28, Supreeth Venkatesh wrote: > > Initial introduction of AMD EthanolX platform equipped with an > Aspeed ast2500 BMC manufactured by AMD. > > AMD EthanolX platform is an AMD customer reference board with an > Aspeed ast2500 BMC manufactured by AMD. > This adds AMD

Re: [PATCH bpf-next v2 29/35] bpf: libbpf: cleanup RLIMIT_MEMLOCK usage

2020-07-27 Thread Roman Gushchin
On Mon, Jul 27, 2020 at 03:05:11PM -0700, Andrii Nakryiko wrote: > On Mon, Jul 27, 2020 at 12:21 PM Roman Gushchin wrote: > > > > As bpf is not using memlock rlimit for memory accounting anymore, > > let's remove the related code from libbpf. > > > > Bpf operations can't fail because of exceeding

Re: [PATCH] scripts/kernel-doc: optionally treat warnings as errors

2020-07-27 Thread Jonathan Corbet
On Mon, 27 Jul 2020 18:09:21 -0500 Pierre-Louis Bossart wrote: > Both points were covered by the sentence "A command-line option is > provided to the kernel-doc script, as well as a check on environment > variables to turn this optional behavior on". Making that more prominent would be good,

Re: [PATCH v2 0/2] fix an overflow error on sc27xx power supply

2020-07-27 Thread Sebastian Reichel
Hi, On Fri, Jul 24, 2020 at 08:21:46PM +0800, Chunyan Zhang wrote: > From: Chunyan Zhang > > The patch 2/2 fixes an overflow error by changing to 64-bit divide operations. > In order to avoid compile error on 32-bit architectures, this patchset > also introduced a new 64-bit helper in patch

[PATCH v9 5/7] x86: bump ZO_z_extra_bytes margin for zstd

2020-07-27 Thread Nick Terrell
From: Nick Terrell Bump the ZO_z_extra_bytes margin for zstd. Zstd needs 3 bytes per 128 KB, and has a 22 byte fixed overhead. Zstd needs to maintain 128 KB of space at all times, since that is the maximum block size. See the comments regarding in-place decompression added in

[PATCH v9 7/7] .gitignore: add ZSTD-compressed files

2020-07-27 Thread Nick Terrell
From: Adam Borowski For now, that's arch/x86/boot/compressed/vmlinux.bin.zst but probably more will come, thus let's be consistent with all other compressors. Tested-by: Sedat Dilek Reviewed-by: Kees Cook Signed-off-by: Nick Terrell Signed-off-by: Adam Borowski --- .gitignore | 1 + 1 file

[GIT PULL][PATCH v9 0/7] Add support for ZSTD-compressed kernel and initramfs

2020-07-27 Thread Nick Terrell
From: Nick Terrell Please pull from g...@github.com:terrelln/linux.git tags/v9-zstd to get these changes. Alternatively the patchset is included. Hi all, This patch set adds support for a ZSTD-compressed kernel, ramdisk, and initramfs in the kernel boot process. ZSTD-compressed ramdisk and

[PATCH v9 6/7] x86: Add support for ZSTD compressed kernel

2020-07-27 Thread Nick Terrell
From: Nick Terrell * Add support for zstd compressed kernel * Define __DISABLE_EXPORTS in misc.c * Bump the heap size for zstd. * Update the documentation. Integrates the ZSTD decompression code to the x86 pre-boot code. Zstandard requires slightly more memory during the kernel decompression

[PATCH v9 3/7] init: add support for zstd compressed kernel

2020-07-27 Thread Nick Terrell
From: Nick Terrell * Adds the zstd and zstd22 cmds to scripts/Makefile.lib * Adds the HAVE_KERNEL_ZSTD and KERNEL_ZSTD options Architecture specific support is still needed for decompression. Reviewed-by: Kees Cook Tested-by: Sedat Dilek Signed-off-by: Nick Terrell --- Makefile

[PATCH v9 4/7] usr: add support for zstd compressed initramfs

2020-07-27 Thread Nick Terrell
From: Nick Terrell * Add support for a zstd compressed initramfs. * Add compression for compressing built-in initramfs with zstd. I have tested this patch by boot testing with buildroot and QEMU. Specifically, I booted the kernel with both a zstd and gzip compressed initramfs, both built into

[PATCH v9 2/7] lib: add zstd support to decompress

2020-07-27 Thread Nick Terrell
From: Nick Terrell * Add unzstd() and the zstd decompress interface. * Add zstd support to decompress_method(). The decompress_method() and unzstd() functions are used to decompress the initramfs and the initrd. The __decompress() function is used in the preboot environment to decompress a zstd

[PATCH v9 1/7] lib: prepare zstd for preboot environment

2020-07-27 Thread Nick Terrell
From: Nick Terrell * Remove a double definition of the CHECK_F macro when the zstd library is amalgamated. * Switch ZSTD_copy8() to __builtin_memcpy(), because in the preboot environment on x86 gcc can't inline `memcpy()` otherwise. * Limit the gcc hack in ZSTD_wildcopy() to the broken gcc

[PATCH] thermal: core: Add thermal zone enable/disable notification

2020-07-27 Thread Daniel Lezcano
Now the calls to enable/disable a thermal zone are centralized in a call to a function, we can add in these the corresponding netlink notifications. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH] scripts/kernel-doc: optionally treat warnings as errors

2020-07-27 Thread Pierre-Louis Bossart
Thank Jon for the feedback, The kbuild bot recently added the W=1 option, which triggered documentation cleanups to squelch hundreds of kernel-doc warnings. To make sure new kernel contributions don't add regressions to kernel-doc descriptors, this patch suggests an option to treat warnings as

Re: [PATCH v3] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-27 Thread Mike Kravetz
On 7/25/20 1:07 AM, Muchun Song wrote: > In the reservation routine, we only check whether the cpuset meets > the memory allocation requirements. But we ignore the mempolicy of > MPOL_BIND case. If someone mmap hugetlb succeeds, but the subsequent > memory allocation may fail due to mempolicy

[PATCH v2 7/8] x86/kaslr: Clean up slot handling

2020-07-27 Thread Arvind Sankar
The number of slots and slot areas can be unsigned int, since on 64-bit, the maximum amount of memory is 2^52, the minimum alignment is 2^21, so the slot number cannot be greater than 2^31. The slot areas are limited by MAX_SLOT_AREA, currently 100. Replace the type used for slot number, which is

[PATCH v2 2/8] x86/kaslr: Remove bogus warning and unnecessary goto

2020-07-27 Thread Arvind Sankar
Drop the warning on seeing "--" in handle_mem_options. This will trigger whenever one of the memory options is present in the command line together with "--", but there's no problem if that is the case. Replace goto with break. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/kaslr.c

[PATCH v2 8/8] x86/kaslr: Don't use 64-bit mem_vector for 32-bit kernel

2020-07-27 Thread Arvind Sankar
Commit f28442497b5c ("x86/boot: Fix KASLR and memmap= collision") converted mem_vector type to use 64-bit on the 32-bit kernel as well, based on Thomas's review [0]. However: - the code still doesn't consistently use 64-bit types. For instance, mem_avoid_overlap uses 32-bit types when checking

[PATCH v2 4/8] x86/kaslr: Initialize mem_limit to the real maximum address

2020-07-27 Thread Arvind Sankar
On 64-bit, the kernel must be placed below MAXMEM (64TiB with 4-level paging or 4PiB with 5-level paging). This is currently not enforced by KASLR, which thus implicitly relies on physical memory being limited to less than 64TiB. On 32-bit, the limit is KERNEL_IMAGE_SIZE (512MiB). This is

[PATCH v2 1/8] x86/kaslr: Make command line handling safer

2020-07-27 Thread Arvind Sankar
Handle the possibility that the command line is NULL. Replace open-coded strlen with a function call. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/kaslr.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c

[PATCH v2 5/8] x86/kaslr: Simplify __process_mem_region

2020-07-27 Thread Arvind Sankar
Get rid of unnecessary temporary variables and redundant tests in __process_mem_region. Fix one minor bug: in case of an overlap, the beginning of the region should be used even if it is exactly image_size, not just strictly larger. Change type of minimum/image_size arguments in

[PATCH v2 6/8] x86/kaslr: Simplify process_gb_huge_pages

2020-07-27 Thread Arvind Sankar
Short-circuit the whole function on 32-bit. Replace the loop to determine the number of 1Gb pages with arithmetic. Fix one minor bug: if the end of the region is aligned on a 1Gb boundary, the current code will not use the last available 1Gb page due to an off-by-one error. Signed-off-by:

[PATCH v2 3/8] x86/kaslr: Fix process_efi_entries comment

2020-07-27 Thread Arvind Sankar
Since commit 0982adc74673 ("x86/boot/KASLR: Work around firmware bugs by excluding EFI_BOOT_SERVICES_* and EFI_LOADER_* from KASLR's choice") process_efi_entries will return true if we have an EFI memmap, not just if it contained EFI_MEMORY_MORE_RELIABLE regions. Signed-off-by: Arvind Sankar

[PATCH v2 0/8] x86/kaslr: Cleanup and small bugfixes

2020-07-27 Thread Arvind Sankar
The first 7 patches are cleanup and minor bugfixes on the x86 KASLR code. The last one is a bit of an RFC. The memory regions used for KASLR are stored as 64-bit even on a 32-bit kernel. However there are still a few local variables that are 32-bit, but should be ok as far as I can see because

Re: [PATCH bpf-next v2 05/35] bpf: memcg-based memory accounting for cgroup storage maps

2020-07-27 Thread Song Liu
On Mon, Jul 27, 2020 at 12:26 PM Roman Gushchin wrote: > > Account memory used by cgroup storage maps including the percpu memory > for the percpu flavor of cgroup storage and map metadata. > > Signed-off-by: Roman Gushchin Acked-by: Song Liu

Re: [PATCH RFC v2] rcu/segcblist: Add counters to segcblist datastructure

2020-07-27 Thread Joel Fernandes
On Mon, Jul 27, 2020 at 09:49:25PM +0800, Boqun Feng wrote: [...] > So C11 features are available to gnu89 as extensions, also I tried to > compile the following code with -std=gnu89: > > #include > > typedef struct { > int a; > } atomic_t; > > void

Re: [PATCH v6 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-07-27 Thread Mathieu Poirier
On Wed, Jul 15, 2020 at 08:33:17AM -0700, Ben Levinsky wrote: > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot the R5 sub-system in different > configurations. > > Acked-by: Stefano Stabellini > Acked-by: Ben Levinsky > Reviewed-by: Radhey Shyam

[PATCH v2][next] bcache: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- Changes in v2: -

Re: [PATCH][next] bcache: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Hi, Please, drop this. It contains an error. I'll send v2, shortly. Thanks -- Gustavo On 7/27/20 15:03, Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] >

RE: [Ksummit-discuss] Linux Foundation Technical Advisory Board Elections -- voting procedures

2020-07-27 Thread Bird, Tim
> -Original Message- > From: Laura Abbott > > On behalf of the Linux Foundation Technical Advisory Board (TAB), I'd > like to announce the voting procedures for the 2020 TAB elections. > The pool of eligible voters will consist of the following: > > 1) All attendees of the Linux

Re: [PATCH bpf-next v2 04/35] bpf: refine memcg-based memory accounting for cpumap maps

2020-07-27 Thread Song Liu
On Mon, Jul 27, 2020 at 12:23 PM Roman Gushchin wrote: > > Include metadata and percpu data into the memcg-based memory accounting. > > Signed-off-by: Roman Gushchin Acked-by: Song Liu > --- > kernel/bpf/cpumap.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: Kernel panic - not syncing: IO-APIC + timer doesn't work!

2020-07-27 Thread Scott Branden
Bios now updated to latest.  Same kernel panic issue.  Log below. I think it is related to power cycling quickly. Should APIC work if PC power cycled in a few seconds or is that the problem? On 2020-07-27 1:51 p.m., Thomas Gleixner wrote: > Scott, > > Scott Branden writes: > >> Occasionally I

Re: [PATCH v2 0/2] iommu: Move AMD and Intel Kconfig + Makefile bits into their directories

2020-07-27 Thread Jerry Snitselaar
Jerry Snitselaar @ 2020-06-30 13:06 MST: > This patchset imeplements the suggestion from Linus to move the > Kconfig and Makefile bits for AMD and Intel into their respective > directories. > > v2: Rebase against v5.8-rc3. Dropped ---help--- changes from Kconfig as that > was > dealt with

Re: [PATCH bpf-next v2 29/35] bpf: libbpf: cleanup RLIMIT_MEMLOCK usage

2020-07-27 Thread Song Liu
On Mon, Jul 27, 2020 at 3:07 PM Andrii Nakryiko wrote: > > On Mon, Jul 27, 2020 at 12:21 PM Roman Gushchin wrote: > > > > As bpf is not using memlock rlimit for memory accounting anymore, > > let's remove the related code from libbpf. > > > > Bpf operations can't fail because of exceeding the

Re: [PATCH v8 6/7] x86: Add support for ZSTD compressed kernel

2020-07-27 Thread Nick Terrell
> On Jul 24, 2020, at 7:30 AM, Arvind Sankar wrote: > > On Fri, Jul 24, 2020 at 02:50:34AM +0200, Sedat Dilek wrote: >> On Thu, Jul 23, 2020 at 9:30 PM Nick Terrell wrote: >>> >>> From: Nick Terrell >>> >>> * Add support for zstd compressed kernel >>> * Define __DISABLE_EXPORTS in misc.c

Re: [PATCH v8 6/7] x86: Add support for ZSTD compressed kernel

2020-07-27 Thread Nick Terrell
> On Jul 24, 2020, at 5:26 AM, Ingo Molnar wrote: > > > * Nick Terrell wrote: > >> --- a/arch/x86/boot/compressed/misc.c >> +++ b/arch/x86/boot/compressed/misc.c >> @@ -12,6 +12,11 @@ >> * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 >> */ >> >> +/* decompressors

Re: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword

2020-07-27 Thread Gustavo A. R. Silva
Hi, This is a macro pseudo-keyword, which expands to /* fallthrough */ for compilers that don't support the attribute __fallthrough__. See: include/linux/compiler_attributes.h:213: 213 #if __has_attribute(__fallthrough__) 214 # define fallthrough

Re: [patch V4 06/15] x86/entry: Consolidate check_user_regs()

2020-07-27 Thread Andy Lutomirski
On Tue, Jul 21, 2020 at 4:08 AM Thomas Gleixner wrote: > > From: Thomas Gleixner > > The user register sanity check is sprinkled all over the place. Move it > into enter_from_user_mode(). > > Signed-off-by: Thomas Gleixner > Reviewed-by: Kees Cook Acked-by: Andy Lutomirski

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