* net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized]
@ 2024-08-30 6:45 Naresh Kamboju
2024-08-30 16:47 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2024-08-30 6:45 UTC (permalink / raw)
To: clang-built-linux, Netdev, open list, lkft-triage,
Linux Regressions
Cc: Anders Roxell, Dan Carpenter, Arnd Bergmann, Nathan Chancellor,
Nick Desaulniers
The x86_64 defconfig builds failed on today's Linux next-20240829
due to following build warnings / errors.
Regressions:
* i386, build
- clang-18-defconfig
- clang-nightly-defconfig
* x86_64, build
- clang-18-lkftconfig
- clang-18-lkftconfig-compat
- clang-18-lkftconfig-kcsan
- clang-18-lkftconfig-no-kselftest-frag
- clang-18-x86_64_defconfig
- clang-nightly-lkftconfig
- clang-nightly-lkftconfig-kselftest
- clang-nightly-x86_64_defconfig
- rustclang-nightly-lkftconfig-kselftest
first seen on next-20240829.
Good: next-20240828
BAD: next-20240829
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
build log:
--------
net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized
when used here [-Werror,-Wuninitialized]
1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) {
| ^~~
net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to
silence this warning
1257 | int dir;
| ^
| = 0
1 error generated.
Build Log links,
--------
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240829/testrun/24977652/suite/build/test/clang-18-lkftconfig/log
Build failed comparison:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240829/testrun/24977652/suite/build/test/clang-18-lkftconfig/history/
metadata:
----
git describe: next-20240829
git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git sha: b18bbfc14a38b5234e09c2adcf713e38063a7e6e
kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2lKF49FRX1FB3IVv46cfZc30s9y/config
build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2lKF49FRX1FB3IVv46cfZc30s9y/
toolchain: clang-18 and clang-nightly
config: defconfig
Steps to reproduce:
---------
- tuxmake --runtime podman --target-arch x86_64 --toolchain clang-18
--kconfig defconfig LLVM=1 LLVM_IAS=1
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] 2024-08-30 6:45 net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju @ 2024-08-30 16:47 ` Simon Horman 2024-08-30 17:04 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Simon Horman @ 2024-08-30 16:47 UTC (permalink / raw) To: Naresh Kamboju Cc: clang-built-linux, Netdev, open list, lkft-triage, Linux Regressions, Anders Roxell, Dan Carpenter, Arnd Bergmann, Nathan Chancellor, Nick Desaulniers, Florian Westphal, Steffen Klassert + Florian, Steffen On Fri, Aug 30, 2024 at 12:15:10PM +0530, Naresh Kamboju wrote: > The x86_64 defconfig builds failed on today's Linux next-20240829 > due to following build warnings / errors. > > Regressions: > * i386, build > - clang-18-defconfig > - clang-nightly-defconfig > > * x86_64, build > - clang-18-lkftconfig > - clang-18-lkftconfig-compat > - clang-18-lkftconfig-kcsan > - clang-18-lkftconfig-no-kselftest-frag > - clang-18-x86_64_defconfig > - clang-nightly-lkftconfig > - clang-nightly-lkftconfig-kselftest > - clang-nightly-x86_64_defconfig > - rustclang-nightly-lkftconfig-kselftest > > first seen on next-20240829. > Good: next-20240828 > BAD: next-20240829 > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > build log: > -------- > net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized > when used here [-Werror,-Wuninitialized] > 1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { > | ^~~ > net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to > silence this warning > 1257 | int dir; > | ^ > | = 0 > 1 error generated. I believe that is due to commit 08c2182cf0b4 ("xfrm: policy: use recently added helper in more places") I will work on a fix to initialise dir in the loop where it is used. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] 2024-08-30 16:47 ` Simon Horman @ 2024-08-30 17:04 ` Simon Horman 2024-08-30 21:47 ` Nathan Chancellor 0 siblings, 1 reply; 5+ messages in thread From: Simon Horman @ 2024-08-30 17:04 UTC (permalink / raw) To: Naresh Kamboju Cc: clang-built-linux, Netdev, open list, lkft-triage, Linux Regressions, Anders Roxell, Dan Carpenter, Arnd Bergmann, Nathan Chancellor, Nick Desaulniers, Florian Westphal, Steffen Klassert On Fri, Aug 30, 2024 at 05:47:06PM +0100, Simon Horman wrote: > + Florian, Steffen > > On Fri, Aug 30, 2024 at 12:15:10PM +0530, Naresh Kamboju wrote: > > The x86_64 defconfig builds failed on today's Linux next-20240829 > > due to following build warnings / errors. > > > > Regressions: > > * i386, build > > - clang-18-defconfig > > - clang-nightly-defconfig > > > > * x86_64, build > > - clang-18-lkftconfig > > - clang-18-lkftconfig-compat > > - clang-18-lkftconfig-kcsan > > - clang-18-lkftconfig-no-kselftest-frag > > - clang-18-x86_64_defconfig > > - clang-nightly-lkftconfig > > - clang-nightly-lkftconfig-kselftest > > - clang-nightly-x86_64_defconfig > > - rustclang-nightly-lkftconfig-kselftest > > > > first seen on next-20240829. > > Good: next-20240828 > > BAD: next-20240829 > > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > > > build log: > > -------- > > net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized > > when used here [-Werror,-Wuninitialized] > > 1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { > > | ^~~ > > net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to > > silence this warning > > 1257 | int dir; > > | ^ > > | = 0 > > 1 error generated. > > I believe that is due to > commit 08c2182cf0b4 ("xfrm: policy: use recently added helper in more places") > > I will work on a fix to initialise dir in the loop where it is used. Patch is here: - [PATCH ipsec-next] xfrm: Initialise dir in xfrm_hash_rebuild() https://lore.kernel.org/netdev/20240830-xfrm_hash_rebuild-dir-v1-1-f75092d07e1b@kernel.org/T/#u ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] 2024-08-30 17:04 ` Simon Horman @ 2024-08-30 21:47 ` Nathan Chancellor 2024-08-31 8:24 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Nathan Chancellor @ 2024-08-30 21:47 UTC (permalink / raw) To: Simon Horman Cc: Naresh Kamboju, clang-built-linux, Netdev, open list, lkft-triage, Linux Regressions, Anders Roxell, Dan Carpenter, Arnd Bergmann, Nick Desaulniers, Florian Westphal, Steffen Klassert Hi Simon (and Naresh), On Fri, Aug 30, 2024 at 06:04:49PM +0100, Simon Horman wrote: > On Fri, Aug 30, 2024 at 05:47:06PM +0100, Simon Horman wrote: > > + Florian, Steffen > > > > On Fri, Aug 30, 2024 at 12:15:10PM +0530, Naresh Kamboju wrote: > > > The x86_64 defconfig builds failed on today's Linux next-20240829 > > > due to following build warnings / errors. > > > > > > Regressions: > > > * i386, build > > > - clang-18-defconfig > > > - clang-nightly-defconfig > > > > > > * x86_64, build > > > - clang-18-lkftconfig > > > - clang-18-lkftconfig-compat > > > - clang-18-lkftconfig-kcsan > > > - clang-18-lkftconfig-no-kselftest-frag > > > - clang-18-x86_64_defconfig > > > - clang-nightly-lkftconfig > > > - clang-nightly-lkftconfig-kselftest > > > - clang-nightly-x86_64_defconfig > > > - rustclang-nightly-lkftconfig-kselftest > > > > > > first seen on next-20240829. > > > Good: next-20240828 > > > BAD: next-20240829 > > > > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > > > > > build log: > > > -------- > > > net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized > > > when used here [-Werror,-Wuninitialized] > > > 1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { > > > | ^~~ > > > net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to > > > silence this warning > > > 1257 | int dir; > > > | ^ > > > | = 0 > > > 1 error generated. Thanks for the report. > > I believe that is due to > > commit 08c2182cf0b4 ("xfrm: policy: use recently added helper in more places") > > > > I will work on a fix to initialise dir in the loop where it is used. > > Patch is here: > - [PATCH ipsec-next] xfrm: Initialise dir in xfrm_hash_rebuild() > https://lore.kernel.org/netdev/20240830-xfrm_hash_rebuild-dir-v1-1-f75092d07e1b@kernel.org/T/#u I sent the same patch as a v1 but Florian pointed out that dir needs to be initialized in the other loop too. I sent my v2 for it yesterday, it just needs to be merged. https://lore.kernel.org/all/20240829-xfrm-restore-dir-assign-xfrm_hash_rebuild-v2-1-1cf8958f6e8e@kernel.org/ Cheers, Nathan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] 2024-08-30 21:47 ` Nathan Chancellor @ 2024-08-31 8:24 ` Simon Horman 0 siblings, 0 replies; 5+ messages in thread From: Simon Horman @ 2024-08-31 8:24 UTC (permalink / raw) To: Nathan Chancellor Cc: Naresh Kamboju, clang-built-linux, Netdev, open list, lkft-triage, Linux Regressions, Anders Roxell, Dan Carpenter, Arnd Bergmann, Nick Desaulniers, Florian Westphal, Steffen Klassert On Fri, Aug 30, 2024 at 02:47:57PM -0700, Nathan Chancellor wrote: > Hi Simon (and Naresh), > > On Fri, Aug 30, 2024 at 06:04:49PM +0100, Simon Horman wrote: > > On Fri, Aug 30, 2024 at 05:47:06PM +0100, Simon Horman wrote: > > > + Florian, Steffen > > > > > > On Fri, Aug 30, 2024 at 12:15:10PM +0530, Naresh Kamboju wrote: > > > > The x86_64 defconfig builds failed on today's Linux next-20240829 > > > > due to following build warnings / errors. > > > > > > > > Regressions: > > > > * i386, build > > > > - clang-18-defconfig > > > > - clang-nightly-defconfig > > > > > > > > * x86_64, build > > > > - clang-18-lkftconfig > > > > - clang-18-lkftconfig-compat > > > > - clang-18-lkftconfig-kcsan > > > > - clang-18-lkftconfig-no-kselftest-frag > > > > - clang-18-x86_64_defconfig > > > > - clang-nightly-lkftconfig > > > > - clang-nightly-lkftconfig-kselftest > > > > - clang-nightly-x86_64_defconfig > > > > - rustclang-nightly-lkftconfig-kselftest > > > > > > > > first seen on next-20240829. > > > > Good: next-20240828 > > > > BAD: next-20240829 > > > > > > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > > > > > > > > build log: > > > > -------- > > > > net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized > > > > when used here [-Werror,-Wuninitialized] > > > > 1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { > > > > | ^~~ > > > > net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to > > > > silence this warning > > > > 1257 | int dir; > > > > | ^ > > > > | = 0 > > > > 1 error generated. > > Thanks for the report. > > > > I believe that is due to > > > commit 08c2182cf0b4 ("xfrm: policy: use recently added helper in more places") > > > > > > I will work on a fix to initialise dir in the loop where it is used. > > > > Patch is here: > > - [PATCH ipsec-next] xfrm: Initialise dir in xfrm_hash_rebuild() > > https://lore.kernel.org/netdev/20240830-xfrm_hash_rebuild-dir-v1-1-f75092d07e1b@kernel.org/T/#u > > I sent the same patch as a v1 but Florian pointed out that dir needs to > be initialized in the other loop too. I sent my v2 for it yesterday, it > just needs to be merged. > > https://lore.kernel.org/all/20240829-xfrm-restore-dir-assign-xfrm_hash_rebuild-v2-1-1cf8958f6e8e@kernel.org/ Thanks, and sorry for the noise. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-31 8:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-08-30 6:45 net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju 2024-08-30 16:47 ` Simon Horman 2024-08-30 17:04 ` Simon Horman 2024-08-30 21:47 ` Nathan Chancellor 2024-08-31 8:24 ` Simon Horman
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).