* test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 @ 2022-01-06 9:25 Naresh Kamboju 2022-01-06 9:32 ` Greg Kroah-Hartman 0 siblings, 1 reply; 4+ messages in thread From: Naresh Kamboju @ 2022-01-06 9:25 UTC (permalink / raw) To: linux-stable, open list:KERNEL SELFTEST FRAMEWORK, open list, lkft-triage, X86 ML Cc: Greg Kroah-Hartman, Shuah Khan, Andy Lutomirski, Dave Hansen, Peter Zijlstra, Jann Horn, John Hubbard, Andrew Morton, Kirill A. Shutemov, Linus Torvalds, Anders Roxell While building selftests the following warnings were noticed for x86_64 architecture on Linux stable v5.15.13 kernel. metadata: git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git git commit: 734eb1fd2073f503f5c6b44f1c0d453ca6986b84 git describe: v5.15.13 toolchain": gcc-11 kernel-config: https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config x86_64-linux-gnu-gcc -m64 -o \ /home/tuxbuild/.cache/tuxmake/builds/current/kselftest/x86/test_vsyscall_64 \ -O2 -g -std=gnu99 -pthread -Wall -no-pie \ -DCAN_BUILD_64 test_vsyscall.c helpers.h -lrt -ldl test_vsyscall.c: In function 'test_process_vm_readv': test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 [-Wstringop-overread] 500 | if (!memcmp(buf, (const void *)0xffffffffff600000, 4096)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> Build link: https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/ # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 \ --kconfig https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config \ cpupower headers kernel kselftest kselftest-merge modules -- Linaro LKFT https://lkft.linaro.org ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 2022-01-06 9:25 test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 Naresh Kamboju @ 2022-01-06 9:32 ` Greg Kroah-Hartman 2022-01-06 9:49 ` Naresh Kamboju 0 siblings, 1 reply; 4+ messages in thread From: Greg Kroah-Hartman @ 2022-01-06 9:32 UTC (permalink / raw) To: Naresh Kamboju Cc: linux-stable, open list:KERNEL SELFTEST FRAMEWORK, open list, lkft-triage, X86 ML, Shuah Khan, Andy Lutomirski, Dave Hansen, Peter Zijlstra, Jann Horn, John Hubbard, Andrew Morton, Kirill A. Shutemov, Linus Torvalds, Anders Roxell On Thu, Jan 06, 2022 at 02:55:53PM +0530, Naresh Kamboju wrote: > While building selftests the following warnings were noticed for x86_64 > architecture on Linux stable v5.15.13 kernel. > > metadata: > git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > git commit: 734eb1fd2073f503f5c6b44f1c0d453ca6986b84 > git describe: v5.15.13 > toolchain": gcc-11 > kernel-config: https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config > > x86_64-linux-gnu-gcc -m64 -o \ > /home/tuxbuild/.cache/tuxmake/builds/current/kselftest/x86/test_vsyscall_64 \ > -O2 -g -std=gnu99 -pthread -Wall -no-pie \ > -DCAN_BUILD_64 test_vsyscall.c helpers.h -lrt -ldl > > test_vsyscall.c: In function 'test_process_vm_readv': > test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound > 4096 exceeds source size 0 [-Wstringop-overread] > 500 | if (!memcmp(buf, (const void > *)0xffffffffff600000, 4096)) { > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > Build link: > https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/ > > # To install tuxmake on your system globally: > # sudo pip3 install -U tuxmake > > tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 \ > --kconfig https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config \ > cpupower headers kernel kselftest kselftest-merge modules Is this a new regression from 5.15.0? Is it also present on Linus's tree? thanks, greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 2022-01-06 9:32 ` Greg Kroah-Hartman @ 2022-01-06 9:49 ` Naresh Kamboju 2022-01-06 10:05 ` Greg Kroah-Hartman 0 siblings, 1 reply; 4+ messages in thread From: Naresh Kamboju @ 2022-01-06 9:49 UTC (permalink / raw) To: Greg Kroah-Hartman, skhan Cc: linux-stable, open list:KERNEL SELFTEST FRAMEWORK, open list, lkft-triage, X86 ML, Shuah Khan, Andy Lutomirski, Dave Hansen, Peter Zijlstra, Jann Horn, John Hubbard, Andrew Morton, Kirill A. Shutemov, Linus Torvalds, Anders Roxell On Thu, 6 Jan 2022 at 15:02, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > > On Thu, Jan 06, 2022 at 02:55:53PM +0530, Naresh Kamboju wrote: > > While building selftests the following warnings were noticed for x86_64 > > architecture on Linux stable v5.15.13 kernel. > > > > metadata: > > git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > git commit: 734eb1fd2073f503f5c6b44f1c0d453ca6986b84 > > git describe: v5.15.13 > > toolchain": gcc-11 > > kernel-config: https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config > > > > x86_64-linux-gnu-gcc -m64 -o \ > > /home/tuxbuild/.cache/tuxmake/builds/current/kselftest/x86/test_vsyscall_64 \ > > -O2 -g -std=gnu99 -pthread -Wall -no-pie \ > > -DCAN_BUILD_64 test_vsyscall.c helpers.h -lrt -ldl > > > > test_vsyscall.c: In function 'test_process_vm_readv': > > test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound > > 4096 exceeds source size 0 [-Wstringop-overread] > > 500 | if (!memcmp(buf, (const void > > *)0xffffffffff600000, 4096)) { > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > > > Build link: > > https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/ > > > > # To install tuxmake on your system globally: > > # sudo pip3 install -U tuxmake > > > > tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 \ > > --kconfig https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config \ > > cpupower headers kernel kselftest kselftest-merge modules > > Is this a new regression from 5.15.0? Is it also present on Linus's tree? This build warning is not present in Linus's tree. Following patch to be backported to 5.15.x --- From dd40f44eabe1e122c6852fabb298aac05b083fce Mon Sep 17 00:00:00 2001 From: Shuah Khan <skhan@linuxfoundation.org> Date: Thu, 21 Oct 2021 15:33:33 -0600 Subject: selftests: x86: fix [-Wstringop-overread] warn in test_process_vm_readv() Fix the following [-Wstringop-overread] by passing in the variable instead of the value. test_vsyscall.c: In function ‘test_process_vm_readv’: test_vsyscall.c:500:22: warning: ‘__builtin_memcmp_eq’ specified bound 4096 exceeds source size 0 [-Wstringop-overread] 500 | if (!memcmp(buf, (const void *)0xffffffffff600000, 4096)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> - Naresh ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 2022-01-06 9:49 ` Naresh Kamboju @ 2022-01-06 10:05 ` Greg Kroah-Hartman 0 siblings, 0 replies; 4+ messages in thread From: Greg Kroah-Hartman @ 2022-01-06 10:05 UTC (permalink / raw) To: Naresh Kamboju Cc: skhan, linux-stable, open list:KERNEL SELFTEST FRAMEWORK, open list, lkft-triage, X86 ML, Shuah Khan, Andy Lutomirski, Dave Hansen, Peter Zijlstra, Jann Horn, John Hubbard, Andrew Morton, Kirill A. Shutemov, Linus Torvalds, Anders Roxell On Thu, Jan 06, 2022 at 03:19:59PM +0530, Naresh Kamboju wrote: > On Thu, 6 Jan 2022 at 15:02, Greg Kroah-Hartman > <gregkh@linuxfoundation.org> wrote: > > > > On Thu, Jan 06, 2022 at 02:55:53PM +0530, Naresh Kamboju wrote: > > > While building selftests the following warnings were noticed for x86_64 > > > architecture on Linux stable v5.15.13 kernel. > > > > > > metadata: > > > git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > > git commit: 734eb1fd2073f503f5c6b44f1c0d453ca6986b84 > > > git describe: v5.15.13 > > > toolchain": gcc-11 > > > kernel-config: https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config > > > > > > x86_64-linux-gnu-gcc -m64 -o \ > > > /home/tuxbuild/.cache/tuxmake/builds/current/kselftest/x86/test_vsyscall_64 \ > > > -O2 -g -std=gnu99 -pthread -Wall -no-pie \ > > > -DCAN_BUILD_64 test_vsyscall.c helpers.h -lrt -ldl > > > > > > test_vsyscall.c: In function 'test_process_vm_readv': > > > test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound > > > 4096 exceeds source size 0 [-Wstringop-overread] > > > 500 | if (!memcmp(buf, (const void > > > *)0xffffffffff600000, 4096)) { > > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > > > > > Build link: > > > https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/ > > > > > > # To install tuxmake on your system globally: > > > # sudo pip3 install -U tuxmake > > > > > > tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 \ > > > --kconfig https://builds.tuxbuild.com/23HFo8abXIL6i4FFfSYiJlqAYMW/config \ > > > cpupower headers kernel kselftest kselftest-merge modules > > > > Is this a new regression from 5.15.0? Is it also present on Linus's tree? > > This build warning is not present in Linus's tree. > Following patch to be backported to 5.15.x > > --- > >From dd40f44eabe1e122c6852fabb298aac05b083fce Mon Sep 17 00:00:00 2001 > From: Shuah Khan <skhan@linuxfoundation.org> > Date: Thu, 21 Oct 2021 15:33:33 -0600 > Subject: selftests: x86: fix [-Wstringop-overread] warn in > test_process_vm_readv() > > Fix the following [-Wstringop-overread] by passing in the variable > instead of the value. > > test_vsyscall.c: In function ‘test_process_vm_readv’: > test_vsyscall.c:500:22: warning: ‘__builtin_memcmp_eq’ specified bound > 4096 exceeds source size 0 [-Wstringop-overread] > 500 | if (!memcmp(buf, (const void > *)0xffffffffff600000, 4096)) { > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Thanks, will go queue that up now. greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-06 10:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-06 9:25 test_vsyscall.c:500:22: warning: '__builtin_memcmp_eq' specified bound 4096 exceeds source size 0 Naresh Kamboju 2022-01-06 9:32 ` Greg Kroah-Hartman 2022-01-06 9:49 ` Naresh Kamboju 2022-01-06 10:05 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).