[PATCH v3 20/64] objtool: Fix "unexpected end of section" warning for alternatives

2025-06-26 Thread Josh Poimboeuf
h can trigger a confusing "unexpected end of section" warning which blames .altinstr_replacement rather than the offending fallthrough function. Fix that by not caching the section. There's no point in doing that anyway. Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 5 +---

[syzbot] [wpan?] WARNING in lowpan_xmit (2)

2025-06-24 Thread syzbot
, please add the following tag to the commit: Reported-by: syzbot+5b74e0e96f12e3728...@syzkaller.appspotmail.com ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 [ cut here ] WARNING: CPU: 1 PID: 1302 at ./include/linux/skbuff.h:3157

Re: [PATCH v2] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-23 Thread Chen Linxuan
On Mon, Jun 23, 2025 at 12:22 PM Muhammad Usama Anjum wrote: > > On 6/20/25 7:55 PM, Chen Linxuan wrote: > > On Fri, Jun 20, 2025 at 10:46 PM Muhammad Usama Anjum > > wrote: > >> > >> On 6/20/25 8:50 AM, Chen Linxuan wrote: > >>> When running `ma

[PATCH v3] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-23 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir

[PATCH] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-23 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir

Re: [PATCH v2] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-22 Thread Muhammad Usama Anjum
On 6/20/25 7:55 PM, Chen Linxuan wrote: > On Fri, Jun 20, 2025 at 10:46 PM Muhammad Usama Anjum > wrote: >> >> On 6/20/25 8:50 AM, Chen Linxuan wrote: >>> When running `make kselftest`, the following compilation warning was >>> encountered: >

Re: [PATCH v2] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-20 Thread Chen Linxuan
On Fri, Jun 20, 2025 at 10:46 PM Muhammad Usama Anjum wrote: > > On 6/20/25 8:50 AM, Chen Linxuan wrote: > > When running `make kselftest`, the following compilation warning was > > encountered: > > > > mount-notify_test.c: In function ‘fanotify_rmdir’: > >

Re: [PATCH v2] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-20 Thread Muhammad Usama Anjum
On 6/20/25 8:50 AM, Chen Linxuan wrote: > When running `make kselftest`, the following compilation warning was > encountered: > > mount-notify_test.c: In function ‘fanotify_rmdir’: > mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ > decla

[PATCH v2] selftests/filesystems/mount-notify: fix unused unused result warning

2025-06-19 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread Chen Linxuan
On Fri, Jun 20, 2025 at 5:41 AM Shuah Khan wrote: > > On 6/19/25 13:00, John Hubbard wrote: > > On 6/19/25 10:00 AM, Shuah Khan wrote: > >> On 6/19/25 01:46, Chen Linxuan wrote: > >>> On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan > >>> wrote: > On 6/9/25 20:07, Chen Linxuan wrote: > > ... > >>

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread Shuah Khan
On 6/19/25 15:40, Shuah Khan wrote: On 6/19/25 13:00, John Hubbard wrote: On 6/19/25 10:00 AM, Shuah Khan wrote: On 6/19/25 01:46, Chen Linxuan wrote: On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan wrote: On 6/9/25 20:07, Chen Linxuan wrote: ... diff --git a/tools/testing/selftests/filesystems

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread Shuah Khan
On 6/19/25 13:00, John Hubbard wrote: On 6/19/25 10:00 AM, Shuah Khan wrote: On 6/19/25 01:46, Chen Linxuan wrote: On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan wrote: On 6/9/25 20:07, Chen Linxuan wrote: ... diff --git a/tools/testing/selftests/filesystems/mount-notify/mount- notify_test.c b

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread John Hubbard
On 6/19/25 10:00 AM, Shuah Khan wrote: On 6/19/25 01:46, Chen Linxuan wrote: On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan wrote: On 6/9/25 20:07, Chen Linxuan wrote: ... diff --git a/tools/testing/selftests/filesystems/mount-notify/mount- notify_test.c b/tools/testing/selftests/filesystems/mou

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread Shuah Khan
On 6/19/25 01:46, Chen Linxuan wrote: On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan wrote: On 6/9/25 20:07, Chen Linxuan wrote: When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-19 Thread Chen Linxuan
On Thu, Jun 19, 2025 at 5:23 AM Shuah Khan wrote: > > On 6/9/25 20:07, Chen Linxuan wrote: > > When running `make kselftest`, the following compilation warning was > > encountered: > > > > mount-notify_test.c: In function ‘fanotify_rmdir’: > > mount-notify_tes

Re: [PATCH RESEND] selftests: Suppress unused variable warning

2025-06-18 Thread Shuah Khan
On 6/9/25 20:07, Chen Linxuan wrote: When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result

clang: selftests mm pkey_sighandler_tests.c warning duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier]

2025-06-16 Thread Naresh Kamboju
regression: selftests mm pkey_sighandler_tests.c warning duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] Build regression: selftests mm mremap_test.c warning pointer comparison always evaluates to false [-Wtautological-compare] Reported-by: Linux Kernel Function

Re: selftests/filesystem: clang warning null passed to a callee that requires a non-null argument [-Wnonnull]

2025-06-11 Thread Nathan Chancellor
__path, char *const __argv[], char *const __envp[], int __flags) __THROW __nonnull ((2, 3)); so I think the warning is valid in this case. I will note that tools/testing/selftests/exec/recursion-depth.c uses execve() with a NULL argv and disables -Wnonnull so maybe that

Re: selftests/filesystem: clang warning null passed to a callee that requires a non-null argument [-Wnonnull]

2025-06-11 Thread Dan Carpenter
ecute program relative to a directory file descriptor. */ > extern int execveat (int __fd, const char *__path, char *const __argv[], >char *const __envp[], int __flags) > __THROW __nonnull ((2, 3)); > > so I think the warning is valid in this case. I wil

Re: selftests/filesystem: clang warning null passed to a callee that requires a non-null argument [-Wnonnull]

2025-06-11 Thread Dan Carpenter
x next-20250603 > > Regressions found on arm, arm64 and x86_64 > - selftests/filesystem > > Regression Analysis: > - New regression? Yes > - Reproducible? Yes > > First seen on the next-20250603 > Good: next-20250530 > Bad: next-20250603 > > Test regressio

[PATCH v3 0/9] selftests: vDSO: Some cleanups and (warning) fixes

2025-06-11 Thread Thomas Weißschuh
Fixes and cleanups for various issues in the vDSO selftests. Signed-off-by: Thomas Weißschuh --- Changes in v3: - Rebase on v6.16-rc1 - Preserve vgetrandom_put_state() - Pick up vdso_standalone_test_x86 into this series - Link to v2: https://lore.kernel.org/r/20250505-selftests-vdso-fixes-v2-0-3

[PATCH RESEND] selftests: Suppress unused variable warning

2025-06-09 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir

selftests/filesystem: clang warning null passed to a callee that requires a non-null argument [-Wnonnull]

2025-06-05 Thread Naresh Kamboju
: next-20250530 Bad: next-20250603 Test regression: arm arm64 x86_64 clang warning null passed to a callee that requires a non-null argument [-Wnonnull] Reported-by: Linux Kernel Functional Testing ## Build warnings make[4]: Entering directory '/builds/linux/tools/testing/selftests/filesy

Re: [PATCH net-next] selftests/bpf: Fix bpf selftest build warning

2025-05-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Tue, 27 May 2025 11:11:38 +0530 you wrote: > On linux-next, build for bpf selftest displays a warning: > > Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' > differs from late

Re: [PATCH net-next] selftests/bpf: Fix bpf selftest build warning

2025-05-28 Thread Daniel Borkmann
On 5/27/25 7:41 AM, Saket Kumar Bhaskar wrote: On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e388be48 ("net: add UA

[PATCH net-next] selftests/bpf: Fix bpf selftest build warning

2025-05-26 Thread Saket Kumar Bhaskar
On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e388be48 ("net: add UAPI to the header guard in various network headers&q

[PATCH] selftests: Suppress unused variable warning

2025-05-13 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir

Re: [RESEND PATCH] selftests/bpf: Fix bpf selftest build warning

2025-05-12 Thread Alexei Starovoitov
On Mon, May 12, 2025 at 2:23 AM Greg KH wrote: > > On Mon, May 12, 2025 at 02:45:11PM +0530, Saket Kumar Bhaskar wrote: > > On linux-next, build for bpf selftest displays a warning: > > > > Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h'

Re: [RESEND PATCH] selftests/bpf: Fix bpf selftest build warning

2025-05-12 Thread Greg KH
On Mon, May 12, 2025 at 02:45:11PM +0530, Saket Kumar Bhaskar wrote: > On linux-next, build for bpf selftest displays a warning: > > Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' > differs from latest version at 'include/uapi/linux/if_xdp.h'

[RESEND PATCH] selftests/bpf: Fix bpf selftest build warning

2025-05-12 Thread Saket Kumar Bhaskar
On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e388be48 ("net: add UAPI to the header guard in various network headers&q

[PATCH v2 20/62] objtool: Fix "unexpected end of section" warning for alternatives

2025-05-09 Thread Josh Poimboeuf
h can trigger a confusing "unexpected end of section" warning which blames .altinstr_replacement rather than the offending fallthrough function. Fix that by not caching the section. There's no point in doing that anyway. Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 5 +---

Re: [PATCH] selftests/bpf: Fix bpf selftest build warning

2025-05-09 Thread Venkat Rao Bagalkote
On 09/05/25 6:08 pm, Saket Kumar Bhaskar wrote: On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e388be48 ("net: add UA

[PATCH] selftests/bpf: Fix bpf selftest build warning

2025-05-09 Thread Saket Kumar Bhaskar
On linux-next, build for bpf selftest displays a warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'. Commit 8066e388be48 ("net: add UAPI to the header guard in various network headers&q

[PATCH v4 03/14] selftests: harness: Ignore unused variant argument warning

2025-05-05 Thread Thomas Weißschuh
For tests without fixtures the variant argument is unused. This is intentional, prevent to compiler from complaining. Example warning: harness-selftest.c: In function 'wrapper_standalone_pass': ../kselftest_harness.h:181:52: error: unused parameter 'variant' [-Wer

[PATCH v2 0/8] selftests: vDSO: Some cleanups and (warning) fixes

2025-05-05 Thread Thomas Weißschuh
Fixes and cleanups for various issues in the vDSO selftests. Signed-off-by: Thomas Weißschuh --- Changes in v2: - Refer to -Wstrict-prototypes over -Wold-style-prototypes - Pick up Acks - Enable fixed warnings in Makefile - Link to v1: https://lore.kernel.org/r/20250502-selftests-vdso-fixes-v1-0

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-19 Thread Sahil Siddiq
email id. Yes, please do this. I have sent a new patch series. The email ids should match now. I have also addressed the build warning that had appeared earlier so those changes won't have to be made manually using "git fixup". Thanks, Sahil

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Stafford Horne
> > > > > > > > ./patches/or1k-20250418/0001-openrisc-Refactor-struct-cpuinfo_or1k-to-reduce-dupl.patch > > > > > > > > --

Re: [PATCH v3 03/32] selftests: harness: Ignore unused variant argument warning

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > For tests without fixtures the variant argument is unused. > This is intentional, prevent to compiler from complaining. > > Example warning: > > harness-selftest.c: In function 'wrapper_standalone_pass': > ../ks

[PATCH 2/4] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-04-18 Thread Joel Fernandes
The previous patch improved the rcu_seq_done_exact() function by adding a meaningful constant for the guardband. Ensure that this is working for the future by a quick check during rcu_gp_init(). Reviewed-by: Paul E. McKenney Signed-off-by: Joel Fernandes --- kernel/rcu/tree.c | 6 ++ 1 fil

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Sahil Siddiq
--- WARNING: From:/Signed-off-by: email address mismatch: 'From: Sahil Siddiq ' != 'Signed-off-by: Sahil Siddiq ' total: 0 errors, 1 warnings, 102 lines checked As you can see above the scripts/checkpatch.pl is failing with the warning about your email and signed-off-by no

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Stafford Horne
t; ./patches/or1k-20250418/0001-openrisc-Refactor-struct-cpuinfo_or1k-to-reduce-dupl.patch > > > > --- > > WARNING: From:/Signed-off-by: email address mismatch: 'From: Sahil > > Siddiq &#

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Sahil Siddiq
: --- ./patches/or1k-20250418/0001-openrisc-Refactor-struct-cpuinfo_or1k-to-reduce-dupl.patch --- WARNING: From:/Signed-off-by

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Stafford Horne
0001-openrisc-Refactor-struct-cpuinfo_or1k-to-reduce-dupl.patch ------- WARNING: From:/Signed-off-by: email address mismatch: 'From: Sahil Siddiq ' != 'Signed-off-by: Sahil Siddiq ' total: 0 errors, 1 warnings

Re: [PATCH v3 9/9] vhost: add WARNING if log_num is more than limit

2025-04-15 Thread Dongli Zhang
gt;> Since long time ago, the only user of vq->log is vhost-net. The concern is >>>> to add support for more devices (i.e. vhost-scsi or vsock) may reveals >>>> unknown issue in the vhost API. Add a WARNING. >>>> >>>> Suggested-by: Joao Martins

Re: [PATCH v3 9/9] vhost: add WARNING if log_num is more than limit

2025-04-15 Thread Michael S. Tsirkin
is > >> to add support for more devices (i.e. vhost-scsi or vsock) may reveals > >> unknown issue in the vhost API. Add a WARNING. > >> > >> Suggested-by: Joao Martins > >> Signed-off-by: Dongli Zhang > > > > > > Userspace can trigger

Re: [PATCH v3 9/9] vhost: add WARNING if log_num is more than limit

2025-04-14 Thread Dongli Zhang
gt; unknown issue in the vhost API. Add a WARNING. >> >> Suggested-by: Joao Martins >> Signed-off-by: Dongli Zhang > > > Userspace can trigger this I think, this is a problem since > people run with reboot on warn. I think it will be a severe kernel bug (page faul

Re: [PATCH v3 9/9] vhost: add WARNING if log_num is more than limit

2025-04-14 Thread Michael S. Tsirkin
On Wed, Apr 02, 2025 at 11:29:54PM -0700, Dongli Zhang wrote: > Since long time ago, the only user of vq->log is vhost-net. The concern is > to add support for more devices (i.e. vhost-scsi or vsock) may reveals > unknown issue in the vhost API. Add a WARNING. > > Suggeste

[PATCH v3 03/32] selftests: harness: Ignore unused variant argument warning

2025-04-11 Thread Thomas Weißschuh
For tests without fixtures the variant argument is unused. This is intentional, prevent to compiler from complaining. Example warning: harness-selftest.c: In function 'wrapper_standalone_pass': ../kselftest_harness.h:181:52: error: unused parameter 'variant' [-Wer

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-10 Thread David Hildenbrand
On 09.04.25 12:31, David Hildenbrand wrote: On 09.04.25 12:25, Anshuman Khandual wrote: On 4/9/25 15:51, David Hildenbrand wrote: On 09.04.25 12:09, Anshuman Khandual wrote: On 4/9/25 15:27, David Hildenbrand wrote: On 09.04.25 11:50, Anshuman Khandual wrote: Following build warning

Re: [PATCH v2 03/32] selftests: harness: Ignore unused variant argument warning

2025-04-10 Thread Shuah Khan
On 4/7/25 00:52, Thomas Weißschuh wrote: For tests without fixtures the variant argument is unused. This is intentional, prevent to compiler from complaining. Include the warning in the change log for reference. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread Anshuman Khandual
On 4/9/25 15:51, David Hildenbrand wrote: > On 09.04.25 12:09, Anshuman Khandual wrote: >> >> >> On 4/9/25 15:27, David Hildenbrand wrote: >>> On 09.04.25 11:50, Anshuman Khandual wrote: >>>> Following build warning comes up for cow test as 'tran

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread David Hildenbrand
On 09.04.25 12:25, Anshuman Khandual wrote: On 4/9/25 15:51, David Hildenbrand wrote: On 09.04.25 12:09, Anshuman Khandual wrote: On 4/9/25 15:27, David Hildenbrand wrote: On 09.04.25 11:50, Anshuman Khandual wrote: Following build warning comes up for cow test as 'transferred'

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread David Hildenbrand
On 09.04.25 12:09, Anshuman Khandual wrote: On 4/9/25 15:27, David Hildenbrand wrote: On 09.04.25 11:50, Anshuman Khandual wrote: Following build warning comes up for cow test as 'transferred' variable has not been initialized. Fix the warning via zero init for the variabl

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread Anshuman Khandual
On 4/9/25 15:27, David Hildenbrand wrote: > On 09.04.25 11:50, Anshuman Khandual wrote: >> Following build warning comes up for cow test as 'transferred' variable has >> not been initialized. Fix the warning via zero init for the variable. >> >>

Re: [PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread David Hildenbrand
On 09.04.25 11:50, Anshuman Khandual wrote: Following build warning comes up for cow test as 'transferred' variable has not been initialized. Fix the warning via zero init for the variable. CC cow cow.c: In function ‘do_test_vmsplice_in_parent’: cow.c:365:61: warning: ‘transf

[PATCH] selftests/mm: Fix compiler -Wmaybe-uninitialized warning

2025-04-09 Thread Anshuman Khandual
Following build warning comes up for cow test as 'transferred' variable has not been initialized. Fix the warning via zero init for the variable. CC cow cow.c: In function ‘do_test_vmsplice_in_parent’: cow.c:365:61: warning: ‘transferred’ may be used uninitialized [-Wmaybe-uni

[PATCH v2 03/32] selftests: harness: Ignore unused variant argument warning

2025-04-06 Thread Thomas Weißschuh
For tests without fixtures the variant argument is unused. This is intentional, prevent to compiler from complaining. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/kselftest_harness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselft

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-03 Thread Sahil Siddiq
Hi Stafford, On 4/3/25 7:36 PM, Stafford Horne wrote: [...] I will just take this fix and apply it to the series (git fixup) rather than take this patch as is. Also, as registers should be unsigned short, I think we should change the type to that. I will fixup patches in place. Sure thing.

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-03 Thread Stafford Horne
ke use of the mtspr > macro. > > The kernel test robot reported an asm constraint-related warning and > error related to the usage of mtspr in these functions. This is because > the compiler is unable to verify that the constraints are not breached > by functions which call cache_l

[PATCH v3 9/9] vhost: add WARNING if log_num is more than limit

2025-04-02 Thread Dongli Zhang
Since long time ago, the only user of vq->log is vhost-net. The concern is to add support for more devices (i.e. vhost-scsi or vsock) may reveals unknown issue in the vhost API. Add a WARNING. Suggested-by: Joao Martins Signed-off-by: Dongli Zhang --- drivers/vhost/vhost.c |

[PATCH] openrisc: Fix build warning in cache.c

2025-04-01 Thread Sahil Siddiq
Commit c5c6fd8be51207f0abd3 ("openrisc: Introduce new utility functions to flush and invalidate caches") introduced new functions to flush or invalidate a range of addresses. These functions make use of the mtspr macro. The kernel test robot reported an asm constraint-related warning

Re: [syzbot] [wpan?] WARNING in __dev_change_net_namespace (3)

2025-03-26 Thread syzbot
ca2f73a167 R15: 0001 [ cut here ]-------- WARNING: CPU: 0 PID: 5302 at net/core/dev.c:12104 __dev_change_net_namespace+0x16f9/0x1890 net/core/dev.c:12104 Modules linked in: CPU: 0 UID: 0 PID: 5302 Comm: syz-executor142 Not tainted 6.14.0-syzkaller-03565-gf6e0150b2003

Re: [PATCH 2/3] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-03-26 Thread Paul E. McKenney
On Wed, Mar 26, 2025 at 10:50:13PM +, Joel Fernandes wrote: > > > > On Mar 26, 2025, at 6:36 PM, Paul E. McKenney wrote: > > > > On Mon, Mar 24, 2025 at 01:01:54PM -0400, Joel Fernandes wrote: > >> The previous patch improved the rcu_seq_done_exact() function by adding > >> a meaningful co

Re: [PATCH 2/3] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-03-26 Thread Joel Fernandes
> On Mar 26, 2025, at 6:36 PM, Paul E. McKenney wrote: > > On Mon, Mar 24, 2025 at 01:01:54PM -0400, Joel Fernandes wrote: >> The previous patch improved the rcu_seq_done_exact() function by adding >> a meaningful constant for the guardband. >> >> Ensure that this is working for the future by

Re: [PATCH 2/3] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-03-26 Thread Paul E. McKenney
On Mon, Mar 24, 2025 at 01:01:54PM -0400, Joel Fernandes wrote: > The previous patch improved the rcu_seq_done_exact() function by adding > a meaningful constant for the guardband. > > Ensure that this is working for the future by a quick check during > rcu_gp_init(). > > Signed-off-by: Joel Fern

[PATCH 2/3] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-03-24 Thread Joel Fernandes
The previous patch improved the rcu_seq_done_exact() function by adding a meaningful constant for the guardband. Ensure that this is working for the future by a quick check during rcu_gp_init(). Signed-off-by: Joel Fernandes --- kernel/rcu/tree.c | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v2 10/10] vhost: add WARNING if log_num is more than limit

2025-03-17 Thread Dongli Zhang
Since long time ago, the only user of vq->log is vhost-net. The concern is to add support for more devices (i.e. vhost-scsi or vsock) may reveals unknown issue in the vhost API. Add a WARNING. Suggested-by: Joao Martins Signed-off-by: Dongli Zhang --- drivers/vhost/vhost.c |

[PATCH rcu 06/10] context_tracking: Make RCU watch ct_kernel_exit_state() warning

2025-03-04 Thread Boqun Feng
From: "Paul E. McKenney" The WARN_ON_ONCE() in ct_kernel_exit_state() follows the call to ct_state_inc(), which means that RCU is not watching this WARN_ON_ONCE(). This can (and does) result in extraneous lockdep warnings when this WARN_ON_ONCE() triggers. These extraneous warnings are the oppos

[PATCH 03/32] selftests: harness: Ignore unused variant argument warning

2025-03-03 Thread Thomas Weißschuh
For tests without fixtures the variant argument is unused. This is intentional, prevent to compiler from complaining. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/kselftest_harness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselft

[PATCH v7 3/3] x86/tdx: Emit warning if IRQs are enabled during HLT #VE handling

2025-02-27 Thread Vishal Annapurve
Direct HLT instruction execution causes #VEs for TDX VMs which is routed to hypervisor via TDCALL. safe_halt() routines execute HLT in STI-shadow so IRQs need to remain disabled until the TDCALL to ensure that pending IRQs are correctly treated as wake events. Emit warning and fail emulation if

[PATCH v6 3/3] x86/tdx: Emit warning if IRQs are enabled during HLT #VE handling

2025-02-24 Thread Vishal Annapurve
Direct HLT instruction execution causes #VEs for TDX VMs which is routed to hypervisor via TDCALL. safe_halt() routines execute HLT in STI-shadow so IRQs need to remain disabled until the TDCALL to ensure that pending IRQs are correctly treated as wake events. Emit warning and fail emulation if

[PATCH V5 3/4] x86/tdx: Emit warning if IRQs are enabled during HLT #VE handling

2025-02-20 Thread Vishal Annapurve
Direct HLT instruction execution causes #VEs for TDX VMs which is routed to hypervisor via TDCALL. safe_halt() routines execute HLT in STI-shadow so IRQs need to remain disabled until the TDCALL to ensure that pending IRQs are correctly treated as wake events. Emit warning and fail emulation if

Re: [syzbot] [rcu?] WARNING in srcu_invoke_callbacks (2)

2025-02-19 Thread Joel Fernandes
yzbot-assets/f03793fc001b/vmlinux-a64dcfb4.xz >>> kernel image: >>> https://storage.googleapis.com/syzbot-assets/ae71c33eae14/Image-a64dcfb4.gz.xz >>> >>> IMPORTANT: if you fix the issue, please add the following tag to the commit: >>> Reported-by: syzbot+ae5b

Re: [syzbot] [rcu?] WARNING in srcu_invoke_callbacks (2)

2025-02-19 Thread Paul E. McKenney
ts/ae71c33eae14/Image-a64dcfb4.gz.xz > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+ae5b16688c0c675b1...@syzkaller.appspotmail.com > > > > [ cut here ] > > WARNING: CPU: 0 PID:

Re: [syzbot] [rcu?] WARNING in srcu_invoke_callbacks (2)

2025-02-19 Thread Joel Fernandes
is.com/syzbot-assets/f03793fc001b/vmlinux-a64dcfb4.xz > kernel image: > https://storage.googleapis.com/syzbot-assets/ae71c33eae14/Image-a64dcfb4.gz.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+ae5b16688c0c675b1...@syzkaller.appsp

[syzbot] [rcu?] WARNING in srcu_invoke_callbacks (2)

2025-02-18 Thread syzbot
u fix the issue, please add the following tag to the commit: Reported-by: syzbot+ae5b16688c0c675b1...@syzkaller.appspotmail.com [ cut here ] WARNING: CPU: 0 PID: 6430 at kernel/rcu/srcutree.c:1798 srcu_invoke_callbacks+0x368/0x3d8 Modules linked in: CPU: 0 UID: 0 PID: 6430

Re: next-20250210: WARNING: at include/linux/rwsem.h:85 madvise_unlock

2025-02-11 Thread SeongJae Park
On Tue, 11 Feb 2025 10:32:55 +0100 "Arnd Bergmann" wrote: > On Tue, Feb 11, 2025, at 10:23, Naresh Kamboju wrote: > > Regressions on arm64 Juno-r2 device while running LTP syscalls tests > > madvise01 warnings on the Linux next-20250210 tag. > > > > First seen on next-20250210 > > Good: next-2025

Re: next-20250210: WARNING: at include/linux/rwsem.h:85 madvise_unlock

2025-02-11 Thread Naresh Kamboju
ession is reproducible with CONFIG_ARM64_64K_PAGES=y > > Test regression: LTP madvise01 WARNING include/linux/rwsem.h madvise_unlock > Reported-by: Linux Kernel Functional Testing > > ## Test log > command: madvise01 > [ 1190.422933] /usr/local/bin/kirk[359]: starting test madvis

Re: next-20250210: WARNING: at include/linux/rwsem.h:85 madvise_unlock

2025-02-11 Thread Arnd Bergmann
t; This regression is reproducible with CONFIG_ARM64_64K_PAGES=y > > Test regression: LTP madvise01 WARNING include/linux/rwsem.h madvise_unlock > Reported-by: Linux Kernel Functional Testing > > ## Test log > command: madvise01 > [ 1190.422933] /usr/local/bin/kirk[359]: starting

next-20250210: WARNING: at include/linux/rwsem.h:85 madvise_unlock

2025-02-11 Thread Naresh Kamboju
Regressions on arm64 Juno-r2 device while running LTP syscalls tests madvise01 warnings on the Linux next-20250210 tag. First seen on next-20250210 Good: next-20250207 Bad: next-20250210 This regression is reproducible with CONFIG_ARM64_64K_PAGES=y Test regression: LTP madvise01 WARNING include

Re: [PATCH] kselftest/arm64: Fix uninitialized variable warning in FPMR test

2025-02-07 Thread Mark Brown
On Fri, Feb 07, 2025 at 10:45:39AM -0800, Breno Leitao wrote: > On Fri, Feb 07, 2025 at 05:26:06PM +, Mark Brown wrote: > > On Fri, Feb 07, 2025 at 03:06:42AM -0800, Breno Leitao wrote: > > > Fix compiler warning about potentially uninitialized orig_fpmr variable:

Re: [PATCH] kselftest/arm64: Fix uninitialized variable warning in FPMR test

2025-02-07 Thread Breno Leitao
Hello Mark, On Fri, Feb 07, 2025 at 05:26:06PM +, Mark Brown wrote: > On Fri, Feb 07, 2025 at 03:06:42AM -0800, Breno Leitao wrote: > > Fix compiler warning about potentially uninitialized orig_fpmr variable: > > > > testcases/fpmr_siginfo.c: In function ‘fpmr_presen

[PATCH 7/9] vhost: add WARNING if log_num is more than limit

2025-02-07 Thread Dongli Zhang
Since long time ago, the only user of vq->log is vhost-net. The concern is to add support for more devices (i.e. vhost-scsi or vsock) may reveals unknown issue in the vhost API. Add a WARNING. Suggested-by: Joao Martins Signed-off-by: Dongli Zhang --- drivers/vhost/vhost.c |

Re: [PATCH] kselftest/arm64: Fix uninitialized variable warning in FPMR test

2025-02-07 Thread Mark Brown
On Fri, Feb 07, 2025 at 03:06:42AM -0800, Breno Leitao wrote: > Fix compiler warning about potentially uninitialized orig_fpmr variable: > > testcases/fpmr_siginfo.c: In function ‘fpmr_present’: > testcases/fpmr_siginfo.c:68:25: warning: ‘orig_fpmr’ may be used > u

[PATCH] kselftest/arm64: Fix uninitialized variable warning in FPMR test

2025-02-07 Thread Breno Leitao
Fix compiler warning about potentially uninitialized orig_fpmr variable: testcases/fpmr_siginfo.c: In function ‘fpmr_present’: testcases/fpmr_siginfo.c:68:25: warning: ‘orig_fpmr’ may be used uninitialized in this function [-Wmaybe-uninitialized

Re: [PATCH rcu 6/5] Make RCU watch ct_kernel_exit_state() warning

2025-02-06 Thread Boqun Feng
On Thu, Feb 06, 2025 at 02:15:09AM -0800, Paul E. McKenney wrote: > The WARN_ON_ONCE() in ct_kernel_exit_state() follows the call to > ct_state_inc(), which means that RCU is not watching this WARN_ON_ONCE(). > This can (and does) result in extraneous lockdep warnings when this > WARN_ON_ONCE() tri

[PATCH rcu 6/5] Make RCU watch ct_kernel_exit_state() warning

2025-02-06 Thread Paul E. McKenney
The WARN_ON_ONCE() in ct_kernel_exit_state() follows the call to ct_state_inc(), which means that RCU is not watching this WARN_ON_ONCE(). This can (and does) result in extraneous lockdep warnings when this WARN_ON_ONCE() triggers. These extraneous warnings are the opposite of helpful. Therefore,

Re: [PATCH] selftests: pidfd: Fix compiling errors and warning

2025-02-05 Thread I Hsin Cheng
ll pop out as the following. > > > > CC pidfd_fdinfo_test > > pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’: > > pidfd_fdinfo_test.c:231:13: warning: implicit declaration of function \ > > ‘mount’ [-Wimplicit-function-declaration] > >

Re: [PATCH] selftests: pidfd: Fix compiling warning of pidfs_setns

2025-02-05 Thread Peter Seiderer
Hello *, On Wed, 5 Feb 2025 13:50:31 +0800, I Hsin Cheng wrote: > In the compilation of pidfs_setns_test.c , a warning as the following > will pop out. > > pidfd_setns_test.c: In function ‘current_nsset_setup’: > pidfd_setns_test.c:173:54: warning: implicit declaration of func

Re: [PATCH] selftests: pidfd: Fix compiling errors and warning

2025-02-05 Thread Peter Seiderer
.c: In function ‘child_fdinfo_nspid_test’: > pidfd_fdinfo_test.c:231:13: warning: implicit declaration of function \ > ‘mount’ [-Wimplicit-function-declaration] > 231 | r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); > | ^ > pidfd_fdinfo_test.c:231:36: erro

[PATCH] selftests: pidfd: Fix compiling errors and warning

2025-02-04 Thread I Hsin Cheng
When compiling selftests files under tools/testing/selftests/pidfd/ , some compiling errors and warnings will pop out as the following. CC pidfd_fdinfo_test pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’: pidfd_fdinfo_test.c:231:13: warning: implicit declaration of function

[PATCH] selftests: pidfd: Fix compiling warning of pidfs_setns

2025-02-04 Thread I Hsin Cheng
In the compilation of pidfs_setns_test.c , a warning as the following will pop out. pidfd_setns_test.c: In function ‘current_nsset_setup’: pidfd_setns_test.c:173:54: warning: implicit declaration of function \ ‘ioctl’ [-Wimplicit-function-declaration] 173 | self

[PATCH AUTOSEL 6.12 4/8] kunit: platform: Resolve 'struct completion' warning

2025-01-29 Thread Sasha Levin
From: Brian Norris [ Upstream commit 7687c66c18c66d4ccd9949c6f641c0e7b5773483 ] If the header is included in a test without certain other headers, it produces compiler warnings like: In file included from [...] ../include/kunit/platform_device.h:15:57: warning: ‘struct completion’ declared

[PATCH AUTOSEL 6.13 4/8] kunit: platform: Resolve 'struct completion' warning

2025-01-29 Thread Sasha Levin
From: Brian Norris [ Upstream commit 7687c66c18c66d4ccd9949c6f641c0e7b5773483 ] If the header is included in a test without certain other headers, it produces compiler warnings like: In file included from [...] ../include/kunit/platform_device.h:15:57: warning: ‘struct completion’ declared

Re: "WARNING in rcu_sr_normal_complete" in Linux Kernel v6.12-rc4

2025-01-28 Thread Uladzislau Rezki
On Thu, Jan 16, 2025 at 03:03:56PM +0100, Uladzislau Rezki wrote: > Hello, Cheung Wall! > > > > > I am writing to report a potential vulnerability identified in the > > Linux Kernel version v6.12-rc4. This vulnerability was discovered > > while i was testing the kernel. > > > > Linux Kernel Repo

Re: "WARNING in rcu_sr_normal_complete" in Linux Kernel v6.12-rc4

2025-01-16 Thread Uladzislau Rezki
Hello, Cheung Wall! > > I am writing to report a potential vulnerability identified in the > Linux Kernel version v6.12-rc4. This vulnerability was discovered > while i was testing the kernel. > > Linux Kernel Repository Git Commit: > 42f7652d3eb527d03665b09edac47f85fb600924 (tag: v6.12-rc4) >

"WARNING in rcu_sr_normal_complete" in Linux Kernel v6.12-rc4

2025-01-14 Thread cheung wall
Hello, I am writing to report a potential vulnerability identified in the Linux Kernel version v6.12-rc4. This vulnerability was discovered while i was testing the kernel. Linux Kernel Repository Git Commit: 42f7652d3eb527d03665b09edac47f85fb600924 (tag: v6.12-rc4) Bug Location: 0010:rcu_sr_norm

Re: [LTP] selftests: core: unshare_test: WARNING: at mm/util.c:671 __kvmalloc_node_noprof

2025-01-11 Thread Sasha Levin
On Wed, Dec 11, 2024 at 11:09:46AM +0530, Naresh Kamboju wrote: [Gentle Reminder] On Mon, 26 Aug 2024 at 18:50, Naresh Kamboju wrote: The following kernel warning is noticed on all arch and all devices while running selftests: core: unshare_test on Linux next-20240823 and next-20240826

Re: [syzbot] [wpan?] WARNING in cfg802154_switch_netns (3)

2025-01-10 Thread syzbot
[ cut here ]-------- WARNING: CPU: 0 PID: 5837 at net/ieee802154/core.c:258 cfg802154_switch_netns+0x3c7/0x3d0 net/ieee802154/core.c:258 Modules linked in: CPU: 0 UID: 0 PID: 5837 Comm: syz-executor125 Not tainted 6.13.0-rc6-syzkaller-00918-g7b24f164cf00 #0 Hardware name: Google Google Compute Engine/Goog

Re: rust/kernel/lib.rs:17:12 : warning: the feature `new_uninit` has been stable since 1.82.0 and no longer requires an attribute to enable

2025-01-06 Thread Naresh Kamboju
On Sun, 5 Jan 2025 at 19:52, Sasha Levin wrote: > > I'm sorry, this is my bad: I haven't realized anyone else will be > looking at these results... > > Naresh, I'm cheating and using this tree to bisect the issue you've > originally reported in > https://lore.kernel.org/all/ca+g9fyvcbvbabg+m7brkfp

  1   2   3   4   5   6   7   8   9   10   >