BUG: soft lockup in lock_is_held_type

9 views
Skip to first unread message

syzbot

unread,
May 24, 2022, 12:24:26 PM5/24/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=111d5355f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=6142de3f0a8c23758eb6
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6142de...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [syz-executor.2:28309]
Modules linked in:
irq event stamp: 2446445
hardirqs last enabled at (2446444): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2446445): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
netlink: 'syz-executor.5': attribute type 1 has an invalid length.
softirqs last enabled at (3262): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (3275): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3275): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 1 PID: 28309 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_is_held_type+0x17a/0x210 kernel/locking/lockdep.c:3948
Code: 00 00 00 00 fc ff df c7 85 84 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 75 63 48 83 3d 45 cc a6 08 00 74 2c 48 89 df 57 9d <0f> 1f 44 00 00 48 83 c4 08 44 89 e0 5b 5d 41 5c c3 48 83 c4 08 41
RSP: 0018:ffff8880ba107ce8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
IPv6: ADDRCONF(NETDEV_UP): bond924: link is not ready
RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286
RBP: ffff888026fea680 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 1ffff11017420fa7 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f1010060700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f924000 CR3: 00000000b3c86000 CR4: 00000000003406e0
8021q: adding VLAN 0 to HW filter on device bond924
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
lock_is_held include/linux/lockdep.h:344 [inline]
rcu_read_lock_sched_held+0x16c/0x1d0 kernel/rcu/update.c:118
trace_timer_expire_exit include/trace/events/timer.h:121 [inline]
call_timer_fn+0x617/0x700 kernel/time/timer.c:1339
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x4/0x20 kernel/kcov.c:174
Code: 00 00 00 0f 1f 00 48 8b 0c 24 48 89 f2 48 89 fe bf 06 00 00 00 e9 2c ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 48 8b 0c 24 <40> 0f b6 d6 40 0f b6 f7 bf 01 00 00 00 e9 0a ff ff ff 66 2e 0f 1f
RSP: 0018:ffff88804287f6a0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: ffff888093f43baf RCX: ffffffff8347fe5c
RDX: 0000000000000007 RSI: 000000000000006c RDI: 0000000000000020
RBP: 0000000000000039 R08: 0000000000000001 R09: 000000000000002f
R10: 0000000000000006 R11: 00000000bae1feda R12: ffff888093f43b80
R13: ffff88809e7078b8 R14: dffffc0000000000 R15: 000000000000006c
ima_write_template_field_data+0x13c/0x1c0 security/integrity/ima/ima_template_lib.c:60
ima_alloc_init_template+0x247/0x4f0 security/integrity/ima/ima_api.c:57
ima_store_measurement+0x1a7/0x4c0 security/integrity/ima/ima_api.c:294
process_measurement+0x109f/0x1440 security/integrity/ima/ima_main.c:292
ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391
do_last fs/namei.c:3425 [inline]
path_openat+0x7e4/0x2df0 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
do_sys_open+0x3b3/0x520 fs/open.c:1085
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f10116eb0f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1010060168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f10117fdf60 RCX: 00007f10116eb0f9
RDX: 0000000000000000 RSI: 0000000001145042 RDI: 0000000020000400
RBP: 00007f101174508d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf3866d7f R14: 00007f1010060300 R15: 0000000000022000
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 28271 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:write_comp_data+0x23/0x70 kernel/kcov.c:122
Code: 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 c0 df 01 00 65 8b 05 7a 59 9f 7e a9 00 01 1f 00 75 4f 8b 86 60 13 00 00 <83> f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13 00 00 48 8b 38 48
RSP: 0018:ffff8880289af598 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff11005135eb8 RCX: ffffffff8158819e
RDX: 0000000000000001 RSI: ffff8880265ec5c0 RDI: 0000000000000005
RBP: ffff8880289af670 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000002
FS: 00005555562f8400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb8be0b008 CR3: 000000009c91a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
csd_lock_wait kernel/smp.c:108 [inline]
smp_call_function_single+0x1ee/0x420 kernel/smp.c:302
smp_call_function_many+0x743/0x8d0 kernel/smp.c:434
smp_call_function kernel/smp.c:492 [inline]
on_each_cpu+0x47/0x240 kernel/smp.c:602
text_poke_bp+0xd7/0x1a0 arch/x86/kernel/alternative.c:818
__jump_label_transform+0x2d6/0x460 arch/x86/kernel/jump_label.c:103
arch_jump_label_transform+0x26/0x40 arch/x86/kernel/jump_label.c:111
__jump_label_update+0x1cf/0x230 kernel/jump_label.c:383
jump_label_update kernel/jump_label.c:768 [inline]
jump_label_update+0x177/0x310 kernel/jump_label.c:747
__static_key_slow_dec_cpuslocked+0x23d/0x280 kernel/jump_label.c:212
__static_key_slow_dec kernel/jump_label.c:223 [inline]
static_key_slow_dec+0x5b/0x90 kernel/jump_label.c:237
tracepoint_remove_func kernel/tracepoint.c:347 [inline]
tracepoint_probe_unregister+0x513/0x860 kernel/tracepoint.c:443
bpf_raw_tracepoint_release+0x82/0xf0 kernel/bpf/syscall.c:1525
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xbf3/0x2be0 kernel/exit.c:870
do_group_exit+0x125/0x310 kernel/exit.c:967
get_signal+0x3f2/0x1f70 kernel/signal.c:2589
do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f440c71de21
Code: Bad RIP value.
RSP: 002b:00007ffc2ca9ff70 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 00007f440c80bf60 RCX: 00007f440c71de21
RDX: 00007ffc2ca9ffb0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f440c80d960 R08: 0000000000000000 R09: 0000029535146ddd
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000275921
R13: 00007ffc2caa00c0 R14: 00007ffc2caa00e0 R15: 0000000000000032
----------------
Code disassembly (best guess), 6 bytes skipped:
0: df c7 ffreep %st(7)
2: 85 84 08 00 00 00 00 test %eax,0x0(%rax,%rcx,1)
9: 00 00 add %al,(%rax)
b: 48 c1 e8 03 shr $0x3,%rax
f: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1)
13: 75 63 jne 0x78
15: 48 83 3d 45 cc a6 08 cmpq $0x0,0x8a6cc45(%rip) # 0x8a6cc62
1c: 00
1d: 74 2c je 0x4b
1f: 48 89 df mov %rbx,%rdi
22: 57 push %rdi
23: 9d popfq
* 24: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction
29: 48 83 c4 08 add $0x8,%rsp
2d: 44 89 e0 mov %r12d,%eax
30: 5b pop %rbx
31: 5d pop %rbp
32: 41 5c pop %r12
34: c3 retq
35: 48 83 c4 08 add $0x8,%rsp
39: 41 rex.B


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 25, 2022, 1:00:48 AM12/25/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages