Skip to contentSkip to conversation

8cc32a9bbf: Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:test_entry

linus:master kernel test robot 3 participants 4 messages Aug 23, 2023 – Aug 24, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hello,

kernel test robot noticed "Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:test_entry" on:

commit: 8cc32a9bbf2934d90762d9de0187adcb5ad46a11 ("kallsyms: strip LTO-only suffixes from promoted global functions")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linus/master f7757129e3dea336c407551c98f50057c22bb266] [test failed on linux-next/master 28c736b0e92e11bfe2b9997688213dc43cb22182]

in testcase: boot

compiler: clang-16
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

[   28.923687][    T1] systemd[1]: RTC configured in localtime, applying delta of 0 minutes to system time.
[   28.926842][    T1] systemd[1]: Failed to find module 'autofs4'

Welcome to Debian GNU/Linux 11 (bullseye)!

[   30.135342][  T115] kallsyms_selftest: Test for 1153th symbol failed: (show_trace_log_lvl) addr=c1033b00
[   30.135366][  T115] kallsyms_selftest: abort
[   30.137440][  T115] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: test_entry+0x1419/0x1430
[   30.138878][  T115] CPU: 0 PID: 115 Comm: kallsyms_test Tainted: G                T  6.5.0-rc1-00002-g8cc32a9bbf29 #1
[   30.140321][  T115] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   30.141688][  T115] Call Trace:
[   30.142207][  T115]  panic+0xf4/0x31c
[   30.142789][  T115]  __stack_chk_fail+0x10/0x10
[   30.143470][  T115]  ? test_entry+0x1419/0x1430
[   30.144141][  T115]  test_entry+0x1419/0x1430
[   30.144802][  T115]  ? __die_body+0xb0/0xb0
[   30.145432][  T115]  ? 0xc1000000
[   30.145962][  T115]  ? __die_body+0xb0/0xb0
[   30.146642][  T115]  kthread+0x203/0x220
[   30.147262][  T115]  ? sprint_backtrace_build_id+0x20/0x20
[   30.148032][  T115]  ? kthreadd+0x2f0/0x2f0
[   30.148656][  T115]  ret_from_fork+0x19/0x24
[   30.149412][  T115] Kernel Offset: disabled

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230823/[email protected]

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw

I was able to reproduce this failure. Yonghong, any ideas what's going on here? I'm still trying to figure out what part of the kallsyms_selftest actually failed (there are about 4 places that all lead to this error message).

-Kees

Quoted 63 lines · kernel test robot

Hello,

kernel test robot noticed "Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:test_entry" on:

commit: 8cc32a9bbf2934d90762d9de0187adcb5ad46a11 ("kallsyms: strip LTO-only suffixes from promoted global functions")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linus/master f7757129e3dea336c407551c98f50057c22bb266] [test failed on linux-next/master 28c736b0e92e11bfe2b9997688213dc43cb22182]

in testcase: boot

compiler: clang-16
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

[   28.923687][    T1] systemd[1]: RTC configured in localtime, applying delta of 0 minutes to system time.
[   28.926842][    T1] systemd[1]: Failed to find module 'autofs4'

Welcome to Debian GNU/Linux 11 (bullseye)!

[   30.135342][  T115] kallsyms_selftest: Test for 1153th symbol failed: (show_trace_log_lvl) addr=c1033b00
[   30.135366][  T115] kallsyms_selftest: abort
[   30.137440][  T115] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: test_entry+0x1419/0x1430
[   30.138878][  T115] CPU: 0 PID: 115 Comm: kallsyms_test Tainted: G                T  6.5.0-rc1-00002-g8cc32a9bbf29 #1
[   30.140321][  T115] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   30.141688][  T115] Call Trace:
[   30.142207][  T115]  panic+0xf4/0x31c
[   30.142789][  T115]  __stack_chk_fail+0x10/0x10
[   30.143470][  T115]  ? test_entry+0x1419/0x1430
[   30.144141][  T115]  test_entry+0x1419/0x1430
[   30.144802][  T115]  ? __die_body+0xb0/0xb0
[   30.145432][  T115]  ? 0xc1000000
[   30.145962][  T115]  ? __die_body+0xb0/0xb0
[   30.146642][  T115]  kthread+0x203/0x220
[   30.147262][  T115]  ? sprint_backtrace_build_id+0x20/0x20
[   30.148032][  T115]  ? kthreadd+0x2f0/0x2f0
[   30.148656][  T115]  ret_from_fork+0x19/0x24
[   30.149412][  T115] Kernel Offset: disabled

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230823/[email protected]

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Signature · 1 line
Kees Cook
#2 lore raw

Debugging now. I already made some progress. Should be able to send a patch soon.

Yonghong

________________________________________
From: Kees Cook <[email protected]>
Sent: Thursday, August 24, 2023 1:25 PM
To: Yonghong Song
Cc: kernel test robot; [email protected]; [email protected]; [email protected]; Song Liu; Zhen Lei; Nick Desaulniers
Subject: Re: [linus:master] [kallsyms] 8cc32a9bbf: Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:test_entry

I was able to reproduce this failure. Yonghong, any ideas what's going on here? I'm still trying to figure out what part of the kallsyms_selftest actually failed (there are about 4 places that all lead to this error message).

-Kees

Quoted 54 lines · kernel test robot

Hello,

kernel test robot noticed "Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:test_entry" on:

commit: 8cc32a9bbf2934d90762d9de0187adcb5ad46a11 ("kallsyms: strip LTO-only suffixes from promoted global functions")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linus/master f7757129e3dea336c407551c98f50057c22bb266] [test failed on linux-next/master 28c736b0e92e11bfe2b9997688213dc43cb22182]

in testcase: boot

compiler: clang-16
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

[   28.923687][    T1] systemd[1]: RTC configured in localtime, applying delta of 0 minutes to system time.
[   28.926842][    T1] systemd[1]: Failed to find module 'autofs4'

Welcome to Debian GNU/Linux 11 (bullseye)!

[   30.135342][  T115] kallsyms_selftest: Test for 1153th symbol failed: (show_trace_log_lvl) addr=c1033b00
[   30.135366][  T115] kallsyms_selftest: abort
[   30.137440][  T115] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: test_entry+0x1419/0x1430
[   30.138878][  T115] CPU: 0 PID: 115 Comm: kallsyms_test Tainted: G                T  6.5.0-rc1-00002-g8cc32a9bbf29 #1
[   30.140321][  T115] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   30.141688][  T115] Call Trace:
[   30.142207][  T115]  panic+0xf4/0x31c
[   30.142789][  T115]  __stack_chk_fail+0x10/0x10
[   30.143470][  T115]  ? test_entry+0x1419/0x1430
[   30.144141][  T115]  test_entry+0x1419/0x1430
[   30.144802][  T115]  ? __die_body+0xb0/0xb0
[   30.145432][  T115]  ? 0xc1000000
[   30.145962][  T115]  ? __die_body+0xb0/0xb0
[   30.146642][  T115]  kthread+0x203/0x220
[   30.147262][  T115]  ? sprint_backtrace_build_id+0x20/0x20
[   30.148032][  T115]  ? kthreadd+0x2f0/0x2f0
[   30.148656][  T115]  ret_from_fork+0x19/0x24
[   30.149412][  T115] Kernel Offset: disabled
Quoted 9 lines

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230823/[email protected]

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

--
Kees Cook

#3 lore raw
Quoted 1 line · Yonghong Song

Debugging now. I already made some progress. Should be able to send a patch soon.

Great; thanks!

-Kees

Signature · 1 line
Kees Cook