powerpc-build in ubuntu_kernel_selftests failed on P9 with K-5.19
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Kinetic |
Fix Released
|
Medium
|
Po-Hsu Lin |
Bug Description
[Impact]
When trying to build powerpc tests from ubuntu_
will fail with:
inlined from ‘cycles_with_mmcr2’ at cycles_
/usr/include/
86 | return __printf_chk (__USE_
| ^~~~~~~
cycles_
cycles_
25 | uint64_t val, expected[2], actual;
| ^~~~~~
cc1: all warnings being treated as errors
[Fix]
* ff446cd768 "selftests/powerpc: Avoid GCC 12 uninitialised variable warning"
This patch can be cherry-picked into Kinetic kernel.
[Test]
Apply this patch to the kernel tree and build it with:
sudo make -C linux/tools/
With this error fixed, test compliation can finish without any issue.
[Where problems could occur]
Change for test case, no impact to acutal function.
[Original Bug Report]
Issue found with K-5.19.0-28-generic on P9 node baltar
This should not be considered as a regression since ubuntu_
Test build failed with:
gcc -std=gnu99 -O2 -Wall -Werror -DGIT_VERSION=
In file included from /usr/include/
In function ‘printf’,
inlined from ‘cycles_with_mmcr2’ at cycles_
/usr/include/
86 | return __printf_chk (__USE_
| ^~~~~~~
cycles_
cycles_
25 | uint64_t val, expected[2], actual;
| ^~~~~~
cc1: all warnings being treated as errors
make[3]: *** [../../
Please find attachment for the complete build log.
CVE References
Changed in linux (Ubuntu): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Kinetic): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu): | |
status: | New → In Progress |
Changed in linux (Ubuntu Kinetic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
Fix from upstream /github. com/torvalds/ linux/commit/ ff446cd76854d47 f451a84c26bb709 34ae2ec5a7
https:/