Greeting,
FYI, we noticed WARNING:at_drivers/base/core.c:#device_release due to commit (built with gcc-11):
commit: 32cfc58411fdcd0356c1d2dbd672456b91711528 ("driver core: bus: bus_add/probe/remove_device() cleanups")
https://git.kernel.org/cgit/linux/kernel/git/gregkh/driver-core.git kobject-const-2
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
[ 7.413634][ T1] ------------[ cut here ]------------
[ 7.414679][ T1] Device 'platform' does not have a release() function, it is broken and must be fixed. See Documentation/core-api/kobject.rst.
[ 7.415012][ T1] WARNING: CPU: 0 PID: 1 at drivers/base/core.c:2333 device_release (core.c:?)
[ 7.416557][ T1] Modules linked in:
[ 7.417270][ T1] CPU: 0 PID: 1 Comm: swapper Tainted: G T 6.2.0-rc5-00074-g32cfc58411fd #1 fea6d2f7f9227ffb651eb679824789897e0f7420
[ 7.418323][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-5 04/01/2014
[ 7.420353][ T1] RIP: 0010:device_release (core.c:?)
[ 7.421346][ T1] Code: 40 40 48 85 c0 74 0a 48 89 ef e8 d3 19 26 00 eb 1b 48 8b 75 50 48 85 f6 75 04 48 8b 75 00 48 c7 c7 98 66 18 82 e8 b0 53 24 00 <0f> 0b 4c 89 e7 5d 41 5c e9 9a 77 dc ff 53 48 89 fb 48 8b 05 90 7d
All code
========
0: 40 rex
1: 40 rex
2: 48 85 c0 test %rax,%rax
5: 74 0a je 0x11
7: 48 89 ef mov %rbp,%rdi
a: e8 d3 19 26 00 callq 0x2619e2
f: eb 1b jmp 0x2c
11: 48 8b 75 50 mov 0x50(%rbp),%rsi
15: 48 85 f6 test %rsi,%rsi
18: 75 04 jne 0x1e
1a: 48 8b 75 00 mov 0x0(%rbp),%rsi
1e: 48 c7 c7 98 66 18 82 mov $0xffffffff82186698,%rdi
25: e8 b0 53 24 00 callq 0x2453da
2a:* 0f 0b ud2 <-- trapping instruction
2c: 4c 89 e7 mov %r12,%rdi
2f: 5d pop %rbp
30: 41 5c pop %r12
32: e9 9a 77 dc ff jmpq 0xffffffffffdc77d1
37: 53 push %rbx
38: 48 89 fb mov %rdi,%rbx
3b: 48 rex.W
3c: 8b .byte 0x8b
3d: 05 .byte 0x5
3e: 90 nop
3f: 7d .byte 0x7d
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 4c 89 e7 mov %r12,%rdi
5: 5d pop %rbp
6: 41 5c pop %r12
8: e9 9a 77 dc ff jmpq 0xffffffffffdc77a7
d: 53 push %rbx
e: 48 89 fb mov %rdi,%rbx
11: 48 rex.W
12: 8b .byte 0x8b
13: 05 .byte 0x5
14: 90 nop
15: 7d .byte 0x7d
[ 7.421657][ T1] RSP: 0000:ffff88810011beb0 EFLAGS: 00010282
[ 7.422795][ T1] RAX: 000000000000007d RBX: ffffffff828a9460 RCX: 0000000000000003
[ 7.424307][ T1] RDX: 00000000000000ed RSI: 00000000ffff7fff RDI: 0000000000000001
[ 7.425012][ T1] RBP: ffffffff828aa140 R08: 0000000000000000 R09: 0000000000000001
[ 7.426550][ T1] R10: ffffffff827f45d8 R11: 2720656369766544 R12: 0000000000000000
[ 7.428327][ T1] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 7.429877][ T1] FS: 0000000000000000(0000) GS:ffffffff82456000(0000) knlGS:0000000000000000
[ 7.431623][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7.431658][ T1] CR2: ffff88843ffff000 CR3: 0000000002426000 CR4: 00000000000406b0
[ 7.433224][ T1] Call Trace:
[ 7.433848][ T1] <TASK>
[ 7.434449][ T1] kobject_cleanup (kobject.c:?)
[ 7.434991][ T1] platform_bus_init (??:?)
[ 7.435926][ T1] driver_init (??:?)
[ 7.436705][ T1] kernel_init_freeable (main.c:?)
[ 7.437744][ T1] ? rest_init (main.c:?)
[ 7.438324][ T1] kernel_init (main.c:?)
[ 7.439150][ T1] ret_from_fork (??:?)
[ 7.439977][ T1] </TASK>
[ 7.440578][ T1] irq event stamp: 2867
[ 7.441355][ T1] hardirqs last enabled at (2875): __up_console_sem (printk.c:?)
[ 7.441656][ T1] hardirqs last disabled at (2884): __up_console_sem (printk.c:?)
[ 7.443509][ T1] softirqs last enabled at (2728): __do_softirq (??:?)
[ 7.444988][ T1] softirqs last disabled at (2711): irq_exit (??:?)
[ 7.446666][ T1] ---[ end trace 0000000000000000 ]---
[ 7.447739][ T9] Callback from call_rcu_tasks_trace() invoked.
[ 7.448334][ T8] Callback from call_rcu_tasks_rude() invoked.
[ 7.449938][ T1] Kernel panic - not syncing: Failed to register CPU subsystem
[ 7.451412][ T1] CPU: 0 PID: 1 Comm: swapper Tainted: G W T 6.2.0-rc5-00074-g32cfc58411fd #1 fea6d2f7f9227ffb651eb679824789897e0f7420
[ 7.451643][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-5 04/01/2014
[ 7.451643][ T1] Call Trace:
[ 7.451643][ T1] <TASK>
[ 7.451643][ T1] dump_stack_lvl (??:?)
[ 7.451643][ T1] panic (??:?)
[ 7.451643][ T1] ? kobject_cleanup (kobject.c:?)
[ 7.451643][ T1] cpu_dev_init (??:?)
[ 7.451643][ T1] driver_init (??:?)
[ 7.451643][ T1] kernel_init_freeable (main.c:?)
[ 7.451643][ T1] ? rest_init (main.c:?)
[ 7.451643][ T1] kernel_init (main.c:?)
[ 7.451643][ T1] ret_from_fork (??:?)
[ 7.451643][ T1] </TASK>
If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-lkp/[email protected]
To reproduce:
# build kernel
cd linux
cp config-6.2.0-rc5-00074-g32cfc58411fd .config
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests