From: kernel test robot <oliver.sang@intel.com>
To: Gary Guo <gary@garyguo.net>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Boqun Feng <boqun.feng@gmail.com>, <oliver.sang@intel.com>
Subject: [nbdd0121:thin-lto] b0a98f58bf: WARNING:at_arch/x86/kernel/cpu/bugs.c:#__warn_thunk
Date: Tue, 30 Apr 2024 14:50:10 +0800 [thread overview]
Message-ID: <202404301415.c99f265e-oliver.sang@intel.com> (raw)
hi, Gary Guo,
we noticed this is a 'WIP' patch, but not sure if the report could supply any
useful information while you working on it. so just report. if no value, you
could just ignore it. and you could let us know if you don't want us to test
this thin-lto branch further. Thanks!
below are details.
Hello,
kernel test robot noticed "WARNING:at_arch/x86/kernel/cpu/bugs.c:#__warn_thunk" on:
commit: b0a98f58bf741dea8f63918b49d7284a8813529a ("WIP")
https://github.com/nbdd0121/linux thin-lto
in testcase: boot
compiler: clang-17
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
(please refer to attached dmesg/kmsg for entire log/backtrace)
+-----------------------------------------------------+------------+------------+
| | 8ccee0cffe | b0a98f58bf |
+-----------------------------------------------------+------------+------------+
| WARNING:at_arch/x86/kernel/cpu/bugs.c:#__warn_thunk | 0 | 12 |
| RIP:__warn_thunk | 0 | 12 |
+-----------------------------------------------------+------------+------------+
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 <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202404301415.c99f265e-oliver.sang@intel.com
[ 10.955420][ T1] ------------[ cut here ]------------
[ 10.957286][ T1] Unpatched return thunk in use. This should not happen!
[ 10.958546][ T1] WARNING: CPU: 1 PID: 1 at arch/x86/kernel/cpu/bugs.c:2935 __warn_thunk (arch/x86/kernel/cpu/bugs.c:2935)
[ 10.961253][ T1] Modules linked in:
[ 10.962024][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-00040-gb0a98f58bf74 #1
[ 10.963648][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 10.965496][ T1] RIP: 0010:__warn_thunk (arch/x86/kernel/cpu/bugs.c:2935)
[ 10.966458][ T1] Code: 90 90 90 0f 1f 44 00 00 80 3d b7 39 f0 01 00 74 06 c3 cc cc cc cc cc c6 05 a8 39 f0 01 01 48 c7 c7 e0 0b 7c 82 e8 89 d9 0a 00 <0f> 0b c3 cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90
All code
========
0: 90 nop
1: 90 nop
2: 90 nop
3: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
8: 80 3d b7 39 f0 01 00 cmpb $0x0,0x1f039b7(%rip) # 0x1f039c6
f: 74 06 je 0x17
11: c3 retq
12: cc int3
13: cc int3
14: cc int3
15: cc int3
16: cc int3
17: c6 05 a8 39 f0 01 01 movb $0x1,0x1f039a8(%rip) # 0x1f039c6
1e: 48 c7 c7 e0 0b 7c 82 mov $0xffffffff827c0be0,%rdi
25: e8 89 d9 0a 00 callq 0xad9b3
2a:* 0f 0b ud2 <-- trapping instruction
2c: c3 retq
2d: cc int3
2e: cc int3
2f: cc int3
30: cc int3
31: cc int3
32: 90 nop
33: 90 nop
34: 90 nop
35: 90 nop
36: 90 nop
37: 90 nop
38: 90 nop
39: 90 nop
3a: 90 nop
3b: 90 nop
3c: 90 nop
3d: 90 nop
3e: 90 nop
3f: 90 nop
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: c3 retq
3: cc int3
4: cc int3
5: cc int3
6: cc int3
7: cc int3
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
[ 10.969630][ T1] RSP: 0000:ffffb7f3c00135f8 EFLAGS: 00010246
[ 10.970643][ T1] RAX: 4fecddd0f0d72700 RBX: ffffb7f3c0013660 RCX: ffffffff82a52410
[ 10.971991][ T1] RDX: 0000000000000002 RSI: 00000000ffff7fff RDI: ffffffff82b12820
[ 10.973378][ T1] RBP: ffffb7f3c0013648 R08: 0000000000007fff R09: ffffffff82a52820
[ 10.974754][ T1] R10: 0000000000017ffd R11: 0000000000000004 R12: ffffffff82a0a0f8
[ 10.976149][ T1] R13: 0000000000000000 R14: ffff8aa9e43ca180 R15: 0000000000000000
[ 10.977562][ T1] FS: 0000000000000000(0000) GS:ffff8aacefd00000(0000) knlGS:0000000000000000
[ 10.979154][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.980286][ T1] CR2: 0000000000000000 CR3: 00000003f981a000 CR4: 00000000000406f0
[ 10.981739][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 10.983221][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 10.984710][ T1] Call Trace:
[ 10.986395][ T1] <TASK>
[ 10.987024][ T1] ? __warn (kernel/panic.c:240 kernel/panic.c:694)
[ 10.987821][ T1] ? __warn_thunk (arch/x86/kernel/cpu/bugs.c:2935)
[ 10.988675][ T1] ? report_bug (lib/bug.c:? lib/bug.c:219)
[ 10.989549][ T1] ? handle_bug (arch/x86/kernel/traps.c:239)
[ 10.990399][ T1] ? exc_invalid_op (arch/x86/kernel/traps.c:260)
[ 10.991293][ T1] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:621)
[ 10.992220][ T1] ? __warn_thunk (arch/x86/kernel/cpu/bugs.c:2935)
[ 10.993086][ T1] ? __warn_thunk (arch/x86/kernel/cpu/bugs.c:2935)
[ 10.993962][ T1] warn_thunk_thunk (arch/x86/entry/entry.S:48)
[ 10.994828][ T1] _RNvXCs2QyWO3yttfn_10rust_printNtB2_9RustPrintNtCschHAZg3Q02y_6kernel6Module4init (samples/rust/rust_print.rs:34 samples/rust/rust_print.rs:70)
[ 10.997733][ T1] ? _RNvXsq_NtNtCschHAZg3Q02y_6kernel4sync3arcINtB5_3ArclENtNtCsaLd0RqVoAA2_4core3fmt7Display3fmtCs2QyWO3yttfn_10rust_print (rust/kernel/sync/arc.rs:783)
[ 11.000098][ T1] ? info_print_prefix (kernel/printk/printk.c:1341 kernel/printk/printk.c:1358)
[ 11.001066][ T1] ? _prb_read_valid (kernel/printk/printk_ringbuffer.c:2146)
[ 11.002003][ T1] ? prb_read_valid (kernel/printk/printk_ringbuffer.c:2182)
[ 11.002894][ T1] ? prb_read_valid (kernel/printk/printk_ringbuffer.c:2182)
[ 11.003780][ T1] ? _RNvXs_Cs2QyWO3yttfn_10rust_printNtB4_9RustPrintNtNtNtCsaLd0RqVoAA2_4core3ops4drop4Drop4drop (samples/rust/rust_print.rs:8)
[ 11.009628][ T1] ? __rust_print_init (samples/rust/rust_print.rs:8 samples/rust/rust_print.rs:8)
[ 11.010475][ T1] ? add_device_randomness (drivers/char/random.c:926)
[ 11.011323][ T1] ? _RNvXsN_NtCsaLd0RqVoAA2_4core3fmtRlNtB5_5Debug3fmtCsfhon98HOB6q_12rust_minimal (samples/rust/rust_minimal.rs:7)
[ 11.012937][ T1] ? _RNvXs_Cs2QyWO3yttfn_10rust_printNtB4_9RustPrintNtNtNtCsaLd0RqVoAA2_4core3ops4drop4Drop4drop (samples/rust/rust_print.rs:8)
[ 11.014778][ T1] ? do_one_initcall (init/main.c:1238)
[ 11.015685][ T1] ? crng_fast_key_erasure (include/linux/string.h:353 drivers/char/random.c:309)
[ 11.016630][ T1] ? crng_make_state (include/linux/spinlock.h:406 drivers/char/random.c:342)
[ 11.020605][ T1] ? get_random_u32 (include/linux/string.h:353 drivers/char/random.c:404 drivers/char/random.c:532)
[ 11.021414][ T1] ? sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043)
[ 11.022358][ T1] ? sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043)
[ 11.023396][ T1] ? asm_sysvec_apic_timer_interrupt (arch/x86/include/asm/idtentry.h:702)
[ 11.024489][ T1] ? sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043)
[ 11.025538][ T1] ? parameq (kernel/params.c:99)
[ 11.026339][ T1] ? __pfx_ignore_unknown_bootoption (init/main.c:1284)
[ 11.027455][ T1] ? parse_args (kernel/params.c:153 kernel/params.c:186)
[ 11.028293][ T1] ? do_initcall_level (init/main.c:1299)
[ 11.029227][ T1] ? do_initcalls (init/main.c:1313)
[ 11.030104][ T1] ? kernel_init_freeable (init/main.c:1550)
[ 11.031108][ T1] ? __pfx_kernel_init (init/main.c:1429)
[ 11.032042][ T1] ? kernel_init (init/main.c:1439)
[ 11.032929][ T1] ? ret_from_fork (arch/x86/kernel/process.c:153)
[ 11.033788][ T1] ? __pfx_kernel_init (init/main.c:1429)
[ 11.034707][ T1] ? ret_from_fork_asm (arch/x86/entry/entry_64.S:256)
[ 11.035653][ T1] </TASK>
[ 11.036288][ T1] ---[ end trace 0000000000000000 ]---
[ 11.037336][ T1] rust_print: [samples/rust/rust_print.rs:34] c = "hello, world"
[ 11.039003][ T1] rust_print: "hello, world"
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20240430/202404301415.c99f265e-oliver.sang@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-04-30 6:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202404301415.c99f265e-oliver.sang@intel.com \
--to=oliver.sang@intel.com \
--cc=boqun.feng@gmail.com \
--cc=gary@garyguo.net \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).