Fortify error with a stable/released UTS_RELEASE #1496
Labels
[BUG] linux
A bug that should be fixed in the mainline kernel.
[BUG] linux-stable
A bug that is present in linux-stable and not mainline.
[FIXED][LINUX] 5.16
This bug was fixed in Linux 5.16
Initially reported with CI: https://github.com/ClangBuiltLinux/continuous-integration2/runs/4068475993?check_suite_focus=true
This only occurs when
UTS_RELEASE
is a standard release version (i.e.5.15.0
versus5.15.0-rc7
). This can be hacked up with something like:This appears to be an issue with GCC in certain configuration:
https://lore.kernel.org/r/20211101002346.GA304515@roeck-us.net/
https://lore.kernel.org/r/CAMuHMdX365qmWiii=gQLADpW49EMkdDrVJDPWNBpAZuZM0WQFQ@mail.gmail.com/
Standalone reproducer
Godbolt: https://godbolt.org/z/sMrTzb4WY
This appears in 5.15.0 but not 5.14.0, only because 5.14.0 does not have the commit that add support for.
__attribute__((__error__))
, which is required to reproduce this. I don't know if @kees's series to fixCONFIG_FORTIFY_SOURCE
with clang resolves this.The text was updated successfully, but these errors were encountered: