Re: [PATCH net 2/2] selftests: forwarding: Remove executable bits from lib.sh

2024-01-16 Thread Paolo Abeni
On Wed, 2024-01-10 at 09:14 -0500, Benjamin Poirier wrote: > The lib.sh script is meant to be sourced from other scripts, not executed > directly. Therefore, remove the executable bits from lib.sh's permissions. LGTM, but there is any special reason to not fix the permissions of other *lib.sh file

Re: [PATCH net 0/2] selftests: net: Small fixes

2024-01-16 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Paolo Abeni : On Wed, 10 Jan 2024 09:14:34 -0500 you wrote: > From: Benjamin Poirier > > Two small fixes for net selftests. > > These patches were carved out of the following RFC series: > https://lore.kernel.org/netdev/20231222135836.

Re: [PATCH v9 13/25] security: Introduce file_release hook

2024-01-16 Thread Roberto Sassu
On Mon, 2024-01-15 at 19:15 +, Al Viro wrote: > On Mon, Jan 15, 2024 at 07:17:57PM +0100, Roberto Sassu wrote: > > From: Roberto Sassu > > > > In preparation for moving IMA and EVM to the LSM infrastructure, introduce > > the file_release hook. > > > > IMA calculates at file close the new di

[PATCH] selftests/mm: switch to bash from sh

2024-01-16 Thread Muhammad Usama Anjum
Running charge_reserved_hugetlb.sh generates errors if sh is set to dash: ./charge_reserved_hugetlb.sh: 9: [[: not found ./charge_reserved_hugetlb.sh: 19: [[: not found ./charge_reserved_hugetlb.sh: 27: [[: not found ./charge_reserved_hugetlb.sh: 37: [[: not found ./charge_reserved_hugetlb.sh: 45:

[PATCH] selftests/mm: run_vmtests.sh: add missing tests

2024-01-16 Thread Muhammad Usama Anjum
Add missing tests to run_vmtests.sh. The mm kselftests are run through run_vmtests.sh. If a test isn't present in this script, it'll not run with run_tests or `make -C tools/testing/selftests/mm run_tests`. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/run_vmtests.sh | 3 +++

Re: [PATCH net] selftests: netdevsim: correct expected FEC strings

2024-01-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Sun, 14 Jan 2024 14:47:48 -0800 you wrote: > ethtool CLI has changed its output. Make the test compatible. > > Signed-off-by: Jakub Kicinski > --- > CC: sh...@kernel.org > CC: linux-kselftest@vger.kernel.org > > [...]

Re: [PATCH net] selftests: netdevsim: sprinkle more udevadm settle

2024-01-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Sun, 14 Jan 2024 14:47:26 -0800 you wrote: > Number of tests are failing when netdev renaming is active > on the system. Add udevadm settle in logic determining > the names. > > Fixes: 242aaf03dc9b ("selftests: add a test

Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-16 Thread Mark Rutland
Hi Stephen, On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > Call this function unconditionally so that we can populate an empty DTB > on platforms that don't boot with a firmware provided or builtin DTB. > There's no harm in calling unflatten_device_tree() unconditionally. For bet

Re: [PATCH 3/8] iommufd: Support attach/replace hwpt per pasid

2024-01-16 Thread Jason Gunthorpe
On Tue, Jan 16, 2024 at 01:18:12AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Tuesday, January 16, 2024 1:25 AM > > > > On Sun, Nov 26, 2023 at 10:34:23PM -0800, Yi Liu wrote: > > > +/** > > > + * iommufd_device_pasid_detach - Disconnect a {device, pasid} to an > > iommu_domain

Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-16 Thread Geert Uytterhoeven
Hi Mark, On Tue, Jan 16, 2024 at 12:51 PM Mark Rutland wrote: > On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > > Call this function unconditionally so that we can populate an empty DTB > > on platforms that don't boot with a firmware provided or builtin DTB. > > There's no harm i

Re: [PATCH net] selftests: bonding: add missing build configs

2024-01-16 Thread Benjamin Poirier
On 2024-01-15 18:02 -0800, Jakub Kicinski wrote: > bonding tests also try to create bridge, veth and dummy > interfaces. These are not currently listed in config. > > Fixes: bbb774d921e2 ("net: Add tests for bonding and team address list > management") > Fixes: c078290a2b76 ("selftests: include b

Re: [PATCH net] selftests: bonding: add missing build configs

2024-01-16 Thread Jakub Kicinski
On Tue, 16 Jan 2024 09:37:40 -0500 Benjamin Poirier wrote: > I tested using the minimal config generated by virtme-ng and the > following additional config options need to be enabled for bonding > tests: > CONFIG_IPV6=y > CONFIG_NET_ACT_GACT=y > CONFIG_NET_CLS_FLOWER=y > CONFIG_NET_SCH_INGRESS=y >

Re: [PATCH net] selftests: bonding: add missing build configs

2024-01-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 15 Jan 2024 18:02:01 -0800 you wrote: > bonding tests also try to create bridge, veth and dummy > interfaces. These are not currently listed in config. > > Fixes: bbb774d921e2 ("net: Add tests for bonding and team

Re: [PATCH bpf-next] bpf: Allow setting SO_TIMESTAMPING* with bpf_setsockopt()

2024-01-16 Thread Willem de Bruijn
Jörn-Thorben Hinz wrote: > A BPF application, e.g., a TCP congestion control, might benefit from or > even require precise (=hardware) packet timestamps. These timestamps are > already available through __sk_buff.hwtstamp and > bpf_sock_ops.skb_hwtstamp, but could not be requested: BPF programs wer

Re: [PATCH v14] exec: Fix dead-lock in de_thread with ptrace_attach

2024-01-16 Thread Oleg Nesterov
I'll try to recall this problem and actually read the patch tommorrow... Hmm. but it doesn't apply to Linus's tree, you need to rebase it. In particular, please note the recent commit 5431fdd2c181dd2eac2 ("ptrace: Convert ptrace_attach() to use lock guards") On 01/15, Bernd Edlinger wrote: > > Th

[PATCH net] selftests: netdevsim: add a config file

2024-01-16 Thread Jakub Kicinski
netdevsim tests aren't very well integrated with kselftest, which has its advantages and disadvantages. But regardless of the intended integration - a config file to know what kernel to build is very useful, add one. Fixes: fc4c93f145d7 ("selftests: add basic netdevsim devlink flash testing") Sign

[PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Benjamin Poirier
As a followup to commit 03fb8565c880 ("selftests: bonding: add missing build configs"), add more networking-specific config options which are needed for bonding tests. For testing, I used the minimal config generated by virtme-ng and I added the options in the config file. All bonding tests passed

Re: [PATCH v9 13/25] security: Introduce file_release hook

2024-01-16 Thread Casey Schaufler
On 1/16/2024 12:47 AM, Roberto Sassu wrote: > On Mon, 2024-01-15 at 19:15 +, Al Viro wrote: >> On Mon, Jan 15, 2024 at 07:17:57PM +0100, Roberto Sassu wrote: >>> From: Roberto Sassu >>> >>> In preparation for moving IMA and EVM to the LSM infrastructure, introduce >>> the file_release hook. >>

RE: [PATCH] selftests/mm: switch to bash from sh

2024-01-16 Thread David Laight
From: Muhammad Usama Anjum > Sent: 16 January 2024 09:05 > > Running charge_reserved_hugetlb.sh generates errors if sh is set to > dash: > > /charge_reserved_hugetlb.sh: 9: [[: not found > /charge_reserved_hugetlb.sh: 19: [[: not found > /charge_reserved_hugetlb.sh: 27: [[: not found > /charge_re

Re: [PATCH v3 5/7] selftests/mm: hugetlb-read-hwpoison: conform test to TAP format output

2024-01-16 Thread Jiaqi Yan
On Sun, Jan 14, 2024 at 11:33 PM Muhammad Usama Anjum wrote: > > Conform the layout, informational and status messages to TAP. No > functional change is intended other than the layout of output messages. > > Signed-off-by: Muhammad Usama Anjum > --- > Changes in v3: > - Use ksft_perror as short h

Re: [PATCH v9 13/25] security: Introduce file_release hook

2024-01-16 Thread Al Viro
On Tue, Jan 16, 2024 at 08:51:11AM -0800, Casey Schaufler wrote: > On 1/16/2024 12:47 AM, Roberto Sassu wrote: > > On Mon, 2024-01-15 at 19:15 +, Al Viro wrote: > >> On Mon, Jan 15, 2024 at 07:17:57PM +0100, Roberto Sassu wrote: > >>> From: Roberto Sassu > >>> > >>> In preparation for moving I

Re: [PATCH net] selftests: netdevsim: add a config file

2024-01-16 Thread Paolo Abeni
On Tue, 2024-01-16 at 07:43 -0800, Jakub Kicinski wrote: > netdevsim tests aren't very well integrated with kselftest, > which has its advantages and disadvantages.  Out of sheer ignorance I don't see the advantage?!? > But regardless > of the intended integration - a config file to know what ker

Re: [PATCH v9 13/25] security: Introduce file_release hook

2024-01-16 Thread Casey Schaufler
On 1/16/2024 9:33 AM, Al Viro wrote: > On Tue, Jan 16, 2024 at 08:51:11AM -0800, Casey Schaufler wrote: >> On 1/16/2024 12:47 AM, Roberto Sassu wrote: >>> On Mon, 2024-01-15 at 19:15 +, Al Viro wrote: On Mon, Jan 15, 2024 at 07:17:57PM +0100, Roberto Sassu wrote: > From: Roberto Sassu

Re: [PATCH net] selftests: netdevsim: add a config file

2024-01-16 Thread Jakub Kicinski
On Tue, 16 Jan 2024 18:40:49 +0100 Paolo Abeni wrote: > On Tue, 2024-01-16 at 07:43 -0800, Jakub Kicinski wrote: > > netdevsim tests aren't very well integrated with kselftest, > > which has its advantages and disadvantages.  > > Out of sheer ignorance I don't see the advantage?!? > > > But reg

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Jakub Kicinski
On Tue, 16 Jan 2024 10:49:26 -0500 Benjamin Poirier wrote: > As a followup to commit 03fb8565c880 ("selftests: bonding: add missing > build configs"), add more networking-specific config options which are > needed for bonding tests. > > For testing, I used the minimal config generated by virtme-ng

Re: [PATCH v9 20/25] ima: Move to LSM infrastructure

2024-01-16 Thread Casey Schaufler
On 1/15/2024 10:18 AM, Roberto Sassu wrote: > From: Roberto Sassu > > Move hardcoded IMA function calls (not appraisal-specific functions) from > various places in the kernel to the LSM infrastructure, by introducing a > new LSM named 'ima' (at the end of the LSM list and always enabled like > 'in

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Jay Vosburgh
Jakub Kicinski wrote: >On Tue, 16 Jan 2024 10:49:26 -0500 Benjamin Poirier wrote: >> As a followup to commit 03fb8565c880 ("selftests: bonding: add missing >> build configs"), add more networking-specific config options which are >> needed for bonding tests. >> >> For testing, I used the minimal

Re: [PATCH v9 21/25] ima: Move IMA-Appraisal to LSM infrastructure

2024-01-16 Thread Casey Schaufler
On 1/15/2024 10:18 AM, Roberto Sassu wrote: > From: Roberto Sassu > > A few additional IMA hooks are needed to reset the cached appraisal > status, causing the file's integrity to be re-evaluated on next access. > Register these IMA-appraisal only functions separately from the rest of IMA > functi

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Jakub Kicinski
On Tue, 16 Jan 2024 11:03:30 -0800 Jay Vosburgh wrote: > If I'm reading it right, this will sleep for 12, 22, 32 and 52 > seconds for the passes through the loop in num_grat_arp(), so that would > be 118 seconds just for that. Hah, that's really tight if the default timeout is 120. Let me se

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Benjamin Poirier
On 2024-01-16 11:20 -0800, Jakub Kicinski wrote: > On Tue, 16 Jan 2024 11:03:30 -0800 Jay Vosburgh wrote: > > If I'm reading it right, this will sleep for 12, 22, 32 and 52 > > seconds for the passes through the loop in num_grat_arp(), so that would > > be 118 seconds just for that. > > Hah, t

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Jakub Kicinski
On Tue, 16 Jan 2024 14:21:51 -0500 Benjamin Poirier wrote: > real13m35.065s > user0m1.657s > sys 0m27.918s > > The test is not cpu bound; as Jay pointed out, it spends most of its > time sleeping. Ugh, so it does multiple iterations of 118 sec? Could you send a patch to bump the time

Re: [PATCH] MAINTAINERS: kunit: Add Rae Moar as a reviewer

2024-01-16 Thread Rae Moar
On Thu, Jan 11, 2024 at 6:50 PM David Gow wrote: > > Rae has been shouldering a lot of the KUnit review burden for the last > year, and will continue to do so in the future. Thanks! Thanks David! Happy to review this one! Reviewed-by: Rae Moar > > Signed-off-by: David Gow > --- > MAINTAINERS

Re: [PATCH v9 23/25] evm: Make it independent from 'integrity' LSM

2024-01-16 Thread Casey Schaufler
On 1/15/2024 10:18 AM, Roberto Sassu wrote: > From: Roberto Sassu > > Define a new structure for EVM-specific metadata, called evm_iint_cache, > and embed it in the inode security blob. Introduce evm_iint_inode() to > retrieve metadata, and register evm_inode_alloc_security() for the > inode_alloc

Re: [PATCH v9 24/25] ima: Make it independent from 'integrity' LSM

2024-01-16 Thread Casey Schaufler
On 1/15/2024 10:18 AM, Roberto Sassu wrote: > From: Roberto Sassu > > Make the 'ima' LSM independent from the 'integrity' LSM by introducing IMA > own integrity metadata (ima_iint_cache structure, with IMA-specific fields > from the integrity_iint_cache structure), and by managing it directly from

Re: [PATCH v9 25/25] integrity: Remove LSM

2024-01-16 Thread Casey Schaufler
On 1/15/2024 10:18 AM, Roberto Sassu wrote: > From: Roberto Sassu > > Since now IMA and EVM use their own integrity metadata, it is safe to > remove the 'integrity' LSM, with its management of integrity metadata. > > Keep the iint.c file only for loading IMA and EVM keys at boot, and for > creatin

[PATCH AUTOSEL 6.7 003/108] selftests/bpf: fix RELEASE=1 build for tc_opts

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 2b62aa59d02ed281fa4fc218df3ca91b773e1e62 ] Compiler complains about malloc(). We also don't need to dynamically allocate anything, so make the life easier by using statically sized buffer. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20

[PATCH AUTOSEL 6.7 004/108] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 6.7 006/108] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

[PATCH AUTOSEL 6.7 008/108] selftests/bpf: Fix issues in setup_classid_environment()

2024-01-16 Thread Sasha Levin
From: Yafang Shao [ Upstream commit 4849775587844e44d215289c425bcd70f315efe7 ] If the net_cls subsystem is already mounted, attempting to mount it again in setup_classid_environment() will result in a failure with the error code EBUSY. Despite this, tmpfs will have been successfully mounted at /

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Jay Vosburgh
Jakub Kicinski wrote: >On Tue, 16 Jan 2024 14:21:51 -0500 Benjamin Poirier wrote: >> real13m35.065s >> user0m1.657s >> sys 0m27.918s >> >> The test is not cpu bound; as Jay pointed out, it spends most of its >> time sleeping. > >Ugh, so it does multiple iterations of 118 sec? > >Coul

[PATCH AUTOSEL 6.7 031/108] bpf: Fix a few selftest failures due to llvm18 change

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit b16904fd9f01b580db357ef2b1cc9e86d89576c2 ] With latest upstream llvm18, the following test cases failed: $ ./test_progs -j #13/2bpf_cookie/multi_kprobe_link_api:FAIL #13/3bpf_cookie/multi_kprobe_attach_api:FAIL #13 bpf_cookie:FAIL #77

[PATCH AUTOSEL 6.7 066/108] selftests/bpf: fix compiler warnings in RELEASE=1 mode

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 62d9a969f4a95219c757831e9ad66cd4dd9edee5 ] When compiling BPF selftests with RELEASE=1, we get two new warnings, which are treated as errors. Fix them. Signed-off-by: Andrii Nakryiko Acked-by: Yonghong Song Acked-by: John Fastabend Link: https://lore.k

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Benjamin Poirier
On 2024-01-16 11:29 -0800, Jakub Kicinski wrote: > On Tue, 16 Jan 2024 14:21:51 -0500 Benjamin Poirier wrote: > > real13m35.065s > > user0m1.657s > > sys 0m27.918s > > > > The test is not cpu bound; as Jay pointed out, it spends most of its > > time sleeping. > > Ugh, so it does multi

[PATCH AUTOSEL 6.6 003/104] selftests/bpf: fix RELEASE=1 build for tc_opts

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 2b62aa59d02ed281fa4fc218df3ca91b773e1e62 ] Compiler complains about malloc(). We also don't need to dynamically allocate anything, so make the life easier by using statically sized buffer. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20

[PATCH AUTOSEL 6.6 004/104] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 6.6 006/104] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

[PATCH AUTOSEL 6.6 008/104] selftests/bpf: Fix issues in setup_classid_environment()

2024-01-16 Thread Sasha Levin
From: Yafang Shao [ Upstream commit 4849775587844e44d215289c425bcd70f315efe7 ] If the net_cls subsystem is already mounted, attempting to mount it again in setup_classid_environment() will result in a failure with the error code EBUSY. Despite this, tmpfs will have been successfully mounted at /

[PATCH AUTOSEL 6.6 031/104] bpf: Fix a few selftest failures due to llvm18 change

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit b16904fd9f01b580db357ef2b1cc9e86d89576c2 ] With latest upstream llvm18, the following test cases failed: $ ./test_progs -j #13/2bpf_cookie/multi_kprobe_link_api:FAIL #13/3bpf_cookie/multi_kprobe_attach_api:FAIL #13 bpf_cookie:FAIL #77

[PATCH AUTOSEL 6.6 065/104] selftests/bpf: fix compiler warnings in RELEASE=1 mode

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 62d9a969f4a95219c757831e9ad66cd4dd9edee5 ] When compiling BPF selftests with RELEASE=1, we get two new warnings, which are treated as errors. Fix them. Signed-off-by: Andrii Nakryiko Acked-by: Yonghong Song Acked-by: John Fastabend Link: https://lore.k

[PATCH AUTOSEL 6.1 02/68] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 6.1 03/68] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

[PATCH AUTOSEL 6.1 05/68] selftests/bpf: Fix issues in setup_classid_environment()

2024-01-16 Thread Sasha Levin
From: Yafang Shao [ Upstream commit 4849775587844e44d215289c425bcd70f315efe7 ] If the net_cls subsystem is already mounted, attempting to mount it again in setup_classid_environment() will result in a failure with the error code EBUSY. Despite this, tmpfs will have been successfully mounted at /

[PATCH AUTOSEL 5.15 02/47] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 5.15 03/47] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

[PATCH AUTOSEL 5.15 04/47] selftests/bpf: Fix issues in setup_classid_environment()

2024-01-16 Thread Sasha Levin
From: Yafang Shao [ Upstream commit 4849775587844e44d215289c425bcd70f315efe7 ] If the net_cls subsystem is already mounted, attempting to mount it again in setup_classid_environment() will result in a failure with the error code EBUSY. Despite this, tmpfs will have been successfully mounted at /

[PATCH AUTOSEL 5.10 02/44] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 5.10 03/44] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

[PATCH AUTOSEL 5.4 02/31] selftests/bpf: satisfy compiler by having explicit return in btf test

2024-01-16 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ] Some compilers complain about get_pprint_mapv_size() not returning value in some code paths. Fix with explicit return. Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/r/20231102033759.2541186-3-and.

[PATCH AUTOSEL 5.4 03/31] selftests/bpf: Fix pyperf180 compilation failure with clang18

2024-01-16 Thread Sasha Levin
From: Yonghong Song [ Upstream commit 100888fb6d8a185866b1520031ee7e3182b173de ] With latest clang18 (main branch of llvm-project repo), when building bpf selftests, [~/work/bpf-next (master)]$ make -C tools/testing/selftests/bpf LLVM=1 -j The following compilation error happens: fatal

Re: [RFC PATCH v4 4/4] mseal:add documentation

2024-01-16 Thread Jonathan Corbet
jef...@chromium.org writes: > From: Jeff Xu > > Add documentation for mseal(). > > Signed-off-by: Jeff Xu > --- > Documentation/userspace-api/mseal.rst | 181 ++ > 1 file changed, 181 insertions(+) > create mode 100644 Documentation/userspace-api/mseal.rst You need to

Re: [RFC PATCH v4 4/4] mseal:add documentation

2024-01-16 Thread Randy Dunlap
On 1/16/24 12:13, Jonathan Corbet wrote: > jef...@chromium.org writes: > >> From: Jeff Xu >> >> Add documentation for mseal(). >> >> Signed-off-by: Jeff Xu >> --- >> Documentation/userspace-api/mseal.rst | 181 ++ >> 1 file changed, 181 insertions(+) >> create mode 1

Re: [PATCH 4/6] of: Create of_root if no dtb provided by firmware

2024-01-16 Thread Stephen Boyd
Quoting Rob Herring (2024-01-15 12:32:30) > On Fri, Jan 12, 2024 at 12:07:47PM -0800, Stephen Boyd wrote: > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > > index da9826accb1b..9628e48baa15 100644 > > --- a/drivers/of/Kconfig > > +++ b/drivers/of/Kconfig > > @@ -54,9 +54,14 @@ config OF_F

Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree()

2024-01-16 Thread Stephen Boyd
Quoting Mark Rutland (2024-01-16 03:51:14) > Hi Stephen, > > On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > > Call this function unconditionally so that we can populate an empty DTB > > on platforms that don't boot with a firmware provided or builtin DTB. > > There's no harm in ca

Re: [PATCH] selftests/filesystems:fix build error in overlayfs

2024-01-16 Thread Andrei Vagin
On Thu, Jan 11, 2024 at 11:45 PM Hu Yadi wrote: > > One build issue comes up due to both mount.h included dev_in_maps.c > > In file included from dev_in_maps.c:10: > /usr/include/sys/mount.h:35:3: error: expected identifier before numeric > constant >35 | MS_RDONLY = 1, /* Mount read-only.

Re: [PATCH net] selftests: bonding: Add more missing config options

2024-01-16 Thread Hangbin Liu
On Tue, Jan 16, 2024 at 02:47:46PM -0500, Benjamin Poirier wrote: > On 2024-01-16 11:29 -0800, Jakub Kicinski wrote: > > On Tue, 16 Jan 2024 14:21:51 -0500 Benjamin Poirier wrote: > > > real13m35.065s > > > user0m1.657s > > > sys 0m27.918s > > > > > > The test is not cpu bound; as Jay

RE: [PATCH 3/8] iommufd: Support attach/replace hwpt per pasid

2024-01-16 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, January 16, 2024 8:58 PM > > On Tue, Jan 16, 2024 at 01:18:12AM +, Tian, Kevin wrote: > > > From: Jason Gunthorpe > > > Sent: Tuesday, January 16, 2024 1:25 AM > > > > > > On Sun, Nov 26, 2023 at 10:34:23PM -0800, Yi Liu wrote: > > > > +/** > > > > +

Re: [PATCH] selftests/mm: switch to bash from sh

2024-01-16 Thread Muhammad Usama Anjum
On 1/16/24 9:52 PM, David Laight wrote: > From: Muhammad Usama Anjum >> Sent: 16 January 2024 09:05 >> >> Running charge_reserved_hugetlb.sh generates errors if sh is set to >> dash: >> >> /charge_reserved_hugetlb.sh: 9: [[: not found >> /charge_reserved_hugetlb.sh: 19: [[: not found >> /charge_res

Re: [PATCH v3 5/7] selftests/mm: hugetlb-read-hwpoison: conform test to TAP format output

2024-01-16 Thread Muhammad Usama Anjum
On 1/16/24 10:07 PM, Jiaqi Yan wrote: > On Sun, Jan 14, 2024 at 11:33 PM Muhammad Usama Anjum > wrote: >> >> Conform the layout, informational and status messages to TAP. No >> functional change is intended other than the layout of output messages. >> >> Signed-off-by: Muhammad Usama Anjum >> ---

Re: [PATCH bpf-next] bpf: Allow setting SO_TIMESTAMPING* with bpf_setsockopt()

2024-01-16 Thread Martin KaFai Lau
On 1/16/24 7:17 AM, Willem de Bruijn wrote: Jörn-Thorben Hinz wrote: A BPF application, e.g., a TCP congestion control, might benefit from or even require precise (=hardware) packet timestamps. These timestamps are already available through __sk_buff.hwtstamp and bpf_sock_ops.skb_hwtstamp, but c