2024-05-07 07:13:53

by kernel test robot

[permalink] [raw]
Subject: [kpsingh:static_calls_type_1] [security] 5bbd3fa92f: WARNING:at_kernel/static_call_inline.c:#__static_call_update



Hello,

kernel test robot noticed "WARNING:at_kernel/static_call_inline.c:#__static_call_update" on:

commit: 5bbd3fa92fe5e068bcb5599c083604534482f3ed ("security: Replace indirect LSM hook calls with static calls")
https://git.kernel.org/cgit/linux/kernel/git/kpsingh/linux.git static_calls_type_1

in testcase: boot

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

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


+--------------------------------------------------------------+------------+------------+
| | 95f2cb9a72 | 5bbd3fa92f |
+--------------------------------------------------------------+------------+------------+
| WARNING:at_kernel/static_call_inline.c:#__static_call_update | 0 | 18 |
| RIP:__static_call_update | 0 | 18 |
| WARNING:at_include/linux/jump_label.h:#security_add_hooks | 0 | 18 |
| RIP:security_add_hooks | 0 | 18 |
+--------------------------------------------------------------+------------+------------+


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]


[ 0.000000][ T0] ------------[ cut here ]------------
[ 0.000000][ T0] WARNING: CPU: 0 PID: 0 at kernel/static_call_inline.c:153 __static_call_update (kernel/static_call_inline.c:153 (discriminator 1))
[ 0.000000][ T0] Modules linked in:
[ 0.000000][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.9.0-rc1-00005-g5bbd3fa92fe5 #1 389a224020672eccea7146ad75c3c4c77719aafb
[ 0.000000][ T0] RIP: 0010:__static_call_update (kernel/static_call_inline.c:153 (discriminator 1))
[ 0.000000][ T0] Code: 80 3d 7d 82 50 05 00 0f 85 b9 fe ff ff 48 89 de 48 c7 c7 40 a1 93 84 c6 05 66 82 50 05 01 e8 66 d3 b8 ff 0f 0b e9 9c fe ff ff <0f> 0b 48 c7 c7 a0 86 e0 85 e8 91 00 f8 02 48 8b 74 24 20 48 b8 00
All code
========
0: 80 3d 7d 82 50 05 00 cmpb $0x0,0x550827d(%rip) # 0x5508284
7: 0f 85 b9 fe ff ff jne 0xfffffffffffffec6
d: 48 89 de mov %rbx,%rsi
10: 48 c7 c7 40 a1 93 84 mov $0xffffffff8493a140,%rdi
17: c6 05 66 82 50 05 01 movb $0x1,0x5508266(%rip) # 0x5508284
1e: e8 66 d3 b8 ff call 0xffffffffffb8d389
23: 0f 0b ud2
25: e9 9c fe ff ff jmp 0xfffffffffffffec6
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 c7 c7 a0 86 e0 85 mov $0xffffffff85e086a0,%rdi
33: e8 91 00 f8 02 call 0x2f800c9
38: 48 8b 74 24 20 mov 0x20(%rsp),%rsi
3d: 48 rex.W
3e: b8 .byte 0xb8
...

Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 c7 c7 a0 86 e0 85 mov $0xffffffff85e086a0,%rdi
9: e8 91 00 f8 02 call 0x2f8009f
e: 48 8b 74 24 20 mov 0x20(%rsp),%rsi
13: 48 rex.W
14: b8 .byte 0xb8
...
[ 0.000000][ T0] RSP: 0000:ffffffff85807db0 EFLAGS: 00010046 ORIG_RAX: 0000000000000000
[ 0.000000][ T0] RAX: 0000000000000000 RBX: ffffffff84586c88 RCX: 0000000000000000
[ 0.000000][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 0.000000][ T0] RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
[ 0.000000][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff855efa30
[ 0.000000][ T0] R13: dffffc0000000000 R14: ffffffff861cb7c0 R15: ffffffff855efb00
[ 0.000000][ T0] FS: 0000000000000000(0000) GS:ffffffff858e4000(0000) knlGS:0000000000000000
[ 0.000000][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.000000][ T0] CR2: ffff888000013d50 CR3: 000000000760a000 CR4: 00000000000000b0
[ 0.000000][ T0] Call Trace:
[ 0.000000][ T0] <TASK>
[ 0.000000][ T0] ? __warn (kernel/panic.c:694)
[ 0.000000][ T0] ? __static_call_update (kernel/static_call_inline.c:153 (discriminator 1))
[ 0.000000][ T0] ? report_bug (lib/bug.c:180 lib/bug.c:219)
[ 0.000000][ T0] ? early_fixup_exception (arch/x86/mm/extable.c:424)
[ 0.000000][ T0] ? __SCT__lsm_static_call_bpf_token_capable_6 (??:?)
[ 0.000000][ T0] ? early_idt_handler_common (arch/x86/kernel/head_64.S:542)
[ 0.000000][ T0] ? __SCT__lsm_static_call_bpf_token_capable_6 (??:?)
[ 0.000000][ T0] ? __static_call_update (kernel/static_call_inline.c:153 (discriminator 1))
[ 0.000000][ T0] ? lockdown_read (security/lockdown/lockdown.c:60)
[ 0.000000][ T0] ? __down_trylock_console_sem (kernel/printk/printk.c:329)
[ 0.000000][ T0] ? static_call_del_module (kernel/static_call_inline.c:135)
[ 0.000000][ T0] ? console_trylock (kernel/printk/printk.c:2678)
[ 0.000000][ T0] ? vprintk_emit (kernel/printk/printk.c:2342 kernel/printk/printk.c:2297)
[ 0.000000][ T0] ? security_add_hooks (security/security.c:409 security/security.c:624)
[ 0.000000][ T0] ? lockdown_lsm_init (security/lockdown/lockdown.c:94)
[ 0.000000][ T0] ? initialize_lsm (security/security.c:309 (discriminator 4))
[ 0.000000][ T0] ? early_security_init (security/security.c:497 (discriminator 2))
[ 0.000000][ T0] ? start_kernel (init/main.c:898 (discriminator 3))
[ 0.000000][ T0] ? x86_64_start_reservations (arch/x86/kernel/head64.c:495)
[ 0.000000][ T0] ? x86_64_start_kernel (??:?)
[ 0.000000][ T0] ? common_startup_64 (arch/x86/kernel/head_64.S:421)
[ 0.000000][ T0] </TASK>
[ 0.000000][ T0] irq event stamp: 0
[ 0.000000][ T0] hardirqs last enabled at (0): 0x0
[ 0.000000][ T0] hardirqs last disabled at (0): 0x0
[ 0.000000][ T0] softirqs last enabled at (0): 0x0
[ 0.000000][ T0] softirqs last disabled at (0): 0x0
[ 0.000000][ T0] ---[ end trace 0000000000000000 ]---



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


Attachments:
(No filename) (6.10 kB)
job-script (4.76 kB)
reproduce (714.00 B)
config-6.9.0-rc1-00005-g5bbd3fa92fe5 (151.34 kB)
dmesg.xz (72.85 kB)
Download all attachments