Skip to contentSkip to conversation

stable-rt/v6.1-rt-next: (build) ./include/net/ip.h:456:14: error: default initialization of an obj...

REGRESSION KernelCI bot 2 participants 2 messages Nov 25, 2025 Real-time Linux (PREEMPT_RT)

lore
Share & tools
lore

KernelCI bot

author CI
#0 lore raw

Hello,

New build issue found on stable-rt/v6.1-rt-next:

---
./include/net/ip.h:456:14: error: default initialization of an object of type 'typeof (rt->dst.expires)' (aka 'const unsigned long') leaves the object uninitialized [-Werror,-Wdefault-const-init-var-unsafe] in security/selinux/avc.o (security/selinux/avc.c) [logspec:kbuild,kbuild.compiler.error]
---

- dashboard: https://d.kernelci.org/i/maestro:dabc8a89dbfbb7a418c712c2c6c82e29bd2c9573
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
- commit HEAD: 14fd3f12318030025dddcaf840092144c3a99e89
- tags: v6.1.46-rt14-rc1

Log excerpt:
=====================================================
In file included from security/selinux/avc.c:30:
In file included from ./security/selinux/include/avc.h:17:
In file included from ./include/linux/lsm_audit.h:25:
In file included from ./include/rdma/ib_verbs.h:26:
./include/net/ip.h:456:14: error: default initialization of an object of type 'typeof (rt->dst.expires)' (aka 'const unsigned long') leaves the object uninitialized [-Werror,-Wdefault-const-init-var-unsafe]
456 | if (mtu && time_before(jiffies, rt->dst.expires))
| ^
./include/linux/jiffies.h:108:26: note: expanded from macro 'time_before'

  108 | #define time_before(a,b)        time_after(b,a)
      |                                 ^

./include/linux/jiffies.h:105:3: note: expanded from macro 'time_after'
105 | (typecheck(unsigned long, a) && \
| ^
./include/linux/typecheck.h:11:12: note: expanded from macro 'typecheck'
11 | typeof(x) __dummy2; \
| ^
CC crypto/asymmetric_keys/pkcs7.asn1.o
CC crypto/asymmetric_keys/pkcs7_parser.o
1 error generated.

=====================================================

# Builds where the incident occurred:

## x86_64_defconfig on (x86_64):
- compiler: clang-21
- config: https://files.kernelci.org/kbuild-clang-21-x86-69250b3ef5b8743b1f5fc039/.config
- dashboard: https://d.kernelci.org/build/maestro:69250b3ef5b8743b1f5fc039

#kernelci issue maestro:dabc8a89dbfbb7a418c712c2c6c82e29bd2c9573

--
This is an experimental report format. Please send feedback in! Talk to us at [email protected]

Made with love by the KernelCI team - https://kernelci.org

#1 lore raw
Quoted 1 line · KernelCI bot

Hello,

Hi,

Quoted 1 line

New build issue found on stable-rt/v6.1-rt-next:

Thank you.

Quoted 8 lines

---
./include/net/ip.h:456:14: error: default initialization of an object of type 'typeof (rt->dst.expires)' (aka 'const unsigned long') leaves the object uninitialized [-Werror,-Wdefault-const-init-var-unsafe] in security/selinux/avc.o (security/selinux/avc.c) [logspec:kbuild,kbuild.compiler.error]
---

- dashboard: https://d.kernelci.org/i/maestro:dabc8a89dbfbb7a418c712c2c6c82e29bd2c9573
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
- commit HEAD: 14fd3f12318030025dddcaf840092144c3a99e89
- tags: v6.1.46-rt14-rc1

This one has been "fixed" by commit d0afcfeb9e381 ("kbuild: Disable -Wdefault-const-init-unsafe"). It is also part of v6.1.141-rt52 and later.
…

Quoted 2 lines

This is an experimental report format. Please send feedback in! Talk to us at [email protected]

For RT, or kernels in general, it should be enough to test the last kernel/ tag from each release branch. The older ones, such at as this one, may contain bugs which will not be fixed in "this" release but a subsequent release may contains a fix if possible.

Sebastian