syzbot


BUG: soft lockup in lock_is_held_type

Status: auto-obsoleted due to no activity on 2022/12/25 06:00
Reported-by: syzbot+6142de3f0a8c23758eb6@syzkaller.appspotmail.com
First crash: 731d, last: 636d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: soft lockup in lock_is_held_type (2) 1 510d 510d 0/1 upstream: reported on 2022/12/31 04:23
linux-4.14 BUG: soft lockup in lock_is_held_type 1 787d 787d 0/1 auto-closed as invalid on 2022/07/26 21:52
upstream INFO: rcu detected stall in lock_is_held_type (4) mm 1 437d 437d 0/26 auto-obsoleted due to no activity on 2023/06/11 21:13
upstream INFO: rcu detected stall in lock_is_held_type (3) wireless 1 1028d 1028d 0/26 auto-closed as invalid on 2021/10/29 13:54

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.1:11606]
Modules linked in:
irq event stamp: 3838937
hardirqs last  enabled at (3838936): [<ffffffff881950e9>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (3838936): [<ffffffff881950e9>] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:184
hardirqs last disabled at (3838937): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (0): [<ffffffff81370d39>] copy_process.part.0+0x15b9/0x8260 kernel/fork.c:1856
softirqs last disabled at (497): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (497): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 11606 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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:ffff8880ba007ce8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286
RBP: ffff88804bdfc200 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 1ffff11017400fa7 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fd19acd8700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563c8373296f CR3: 0000000058346000 CR4: 00000000003406f0
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: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:ffff888053c276e0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff816cefaf
RDX: 0000000000000000 RSI: ffff88804bdfc200 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000074071 R12: dffffc0000000000
R13: 00007fd19c384279 R14: ffff8880b5b8fd80 R15: 00000000000000e8
 __lt_find include/linux/rbtree_latch.h:113 [inline]
 latch_tree_find include/linux/rbtree_latch.h:208 [inline]
 bpf_prog_kallsyms_find.part.0+0x5f/0x270 kernel/bpf/core.c:512
 bpf_prog_kallsyms_find include/linux/rcupdate.h:628 [inline]
 is_bpf_text_address+0x196/0x1b0 kernel/bpf/core.c:547
 kernel_text_address kernel/extable.c:152 [inline]
 kernel_text_address+0xbd/0xf0 kernel/extable.c:122
 __kernel_text_address+0x9/0x30 kernel/extable.c:107
 unwind_get_return_address arch/x86/kernel/unwind_orc.c:297 [inline]
 unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:292
 __save_stack_trace+0xaf/0x190 arch/x86/kernel/stacktrace.c:45
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
 skb_clone+0x151/0x3d0 net/core/skbuff.c:1293
 __netlink_deliver_tap_skb net/netlink/af_netlink.c:296 [inline]
 __netlink_deliver_tap net/netlink/af_netlink.c:321 [inline]
 netlink_deliver_tap+0x955/0xb00 net/netlink/af_netlink.c:334
 __netlink_sendskb net/netlink/af_netlink.c:1269 [inline]
 netlink_dump+0xa4f/0xc10 net/netlink/af_netlink.c:2268
 netlink_recvmsg+0xa56/0xea0 net/netlink/af_netlink.c:2000
 sock_recvmsg_nosec net/socket.c:859 [inline]
 sock_recvmsg net/socket.c:866 [inline]
 sock_recvmsg net/socket.c:862 [inline]
 __sys_recvfrom+0x249/0x3a0 net/socket.c:1956
 __do_sys_recvfrom net/socket.c:1974 [inline]
 __se_sys_recvfrom net/socket.c:1970 [inline]
 __x64_sys_recvfrom+0xdd/0x1b0 net/socket.c:1970
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd19c384279
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:00007fd19acd8168 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 00007fd19c497050 RCX: 00007fd19c384279
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007fd19c3de189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffccd1c7b7f R14: 00007fd19acd8300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/27 06:00 linux-4.19.y 3f8a27f9e27b 07177916 .config console log report info ci2-linux-4-19 BUG: soft lockup in lock_is_held_type
2022/07/22 04:51 linux-4.19.y 3f8a27f9e27b 5e6028b9 .config console log report info ci2-linux-4-19 BUG: soft lockup in lock_is_held_type
2022/05/24 16:23 linux-4.19.y 3f8a27f9e27b fcfad4ff .config console log report info ci2-linux-4-19 BUG: soft lockup in lock_is_held_type
* Struck through repros no longer work on HEAD.