syzbot


INFO: rcu detected stall in ip_expire

Status: upstream: reported on 2024/09/21 13:44
Reported-by: syzbot+05094aed4644a88e03b3@syzkaller.appspotmail.com
First crash: 6d22h, last: 6d22h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in ip_expire (2) net 1 1358d 1358d 0/28 auto-closed as invalid on 2021/04/09 11:48
upstream INFO: rcu detected stall in ip_expire net 1 1488d 1488d 0/28 auto-closed as invalid on 2020/11/30 05:39

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2748 jiffies s: 1653 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3789 Comm: syz.4.20 Not tainted 6.1.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
Code: 41 0f 94 c1 48 8b 7c 24 20 44 89 f6 8b 54 24 1c 48 8b 4c 24 30 4c 8b 44 24 38 6a 00 6a 00 ff 75 10 ff 74 24 40 e8 e8 04 00 00 <48> 83 c4 20 48 c7 c7 c0 14 0c 8b e8 c8 6f 3c 09 b8 ff ff ff ff 65
RSP: 0018:ffffc900000073c0 EFLAGS: 00000086
RAX: 0000000000000001 RBX: ffffc90000007440 RCX: ffffffff816b3d32
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffffffff911dc228
RBP: ffffc90000007528 R08: dffffc0000000000 R09: fffffbfff223b846
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000e84
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000046
FS:  00007f3f43ca26c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3f42dffd58 CR3: 000000005ccf9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 seqcount_lockdep_reader_access+0xf8/0x220 include/linux/seqlock.h:102
 timekeeping_get_delta kernel/time/timekeeping.c:254 [inline]
 timekeeping_get_ns kernel/time/timekeeping.c:388 [inline]
 ktime_get+0x7f/0x270 kernel/time/timekeeping.c:848
 clockevents_program_event+0xe1/0x310 kernel/time/clockevents.c:326
 hrtimer_interrupt+0x546/0x980 kernel/time/hrtimer.c:1828
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:_raw_spin_lock_irqsave+0x1/0x120 kernel/locking/spinlock.c:161
Code: c9 41 b8 01 00 00 00 45 31 c9 ff 74 24 08 e8 e6 46 b9 f6 48 83 c4 08 48 89 df 5b e9 49 a5 ba f6 66 0f 1f 84 00 00 00 00 00 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 83 ec 60 49 89
RSP: 0018:ffffc90000007870 EFLAGS: 00000206
RAX: 000ffff888073fc2 RBX: ffffffff97622c80 RCX: 00000000000198a0
RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffffff97622c88
RBP: ffffc90000007990 R08: dffffc0000000000 R09: ffffc900000078e0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073fc2768
R13: ffffc900000078f0 R14: dffffc0000000000 R15: ffffc900000078e0
 debug_object_assert_init+0x160/0x420 lib/debugobjects.c:886
 debug_timer_assert_init kernel/time/timer.c:792 [inline]
 debug_assert_init kernel/time/timer.c:837 [inline]
 timer_delete+0xa2/0x2f0 kernel/time/timer.c:1277
 del_timer include/linux/timer.h:211 [inline]
 inet_frag_kill+0x1f/0x1190 net/ipv4/inet_fragment.c:230
 ipq_kill net/ipv4/ip_fragment.c:118 [inline]
 ip_expire+0x16a/0x700 net/ipv4/ip_fragment.c:156
 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 __do_softirq kernel/softirq.c:605 [inline]
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5120
Code: 32 0b 00 48 83 c4 08 4c 89 f7 e8 68 31 00 00 0f 1f 44 00 00 4c 89 f7 e8 9b ed 51 09 e8 26 21 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc900046874c8 EFLAGS: 00000282
RAX: cc5912d16d139100 RBX: ffff88802e0e3bb4 RCX: ffffffff816af0fa
RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: ffff888025956f38
RBP: ffffc90004687510 R08: dffffc0000000000 R09: fffffbfff223b845
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888025955940
R13: 1ffff110171c76e3 R14: ffff8880b8e3a9c0 R15: ffff8880b8e3b718
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x1447/0x4570 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x60 kernel/kcov.c:219
Code: 8b 15 f5 bf 77 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 1c 16 00 00 00 74 2c 8b 91 f8 15 00 00 83 fa 02 75 21 <48> 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39
RSP: 0018:ffffc90004687858 EFLAGS: 00000246
RAX: ffffffff8aa466d8 RBX: 1ffffffff2006f50 RCX: ffff888025955940
RDX: 0000000000000002 RSI: 00000000000000e9 RDI: 000000000000000f
RBP: 00000000000000e9 R08: ffffffff8aa46560 R09: ffffc90004687ba0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff90037a82
R13: ffffffff90037a80 R14: ffffffff90037a8f R15: ffffc90004687ba0
 __insn_get_emulate_prefix arch/x86/lib/insn.c:91 [inline]
 insn_get_emulate_prefix arch/x86/lib/insn.c:109 [inline]
 insn_get_prefixes+0x3e8/0x18a0 arch/x86/lib/insn.c:134
 insn_get_opcode+0x1ae/0xa50 arch/x86/lib/insn.c:272
 insn_get_modrm+0x22a/0x790 arch/x86/lib/insn.c:343
 insn_get_sib arch/x86/lib/insn.c:421 [inline]
 insn_get_displacement+0x13a/0x970 arch/x86/lib/insn.c:464
 insn_get_immediate+0x458/0x1390 arch/x86/lib/insn.c:632
 insn_get_length arch/x86/lib/insn.c:707 [inline]
 insn_decode+0x36c/0x500 arch/x86/lib/insn.c:747
 text_poke_loc_init+0xd2/0x680 arch/x86/kernel/alternative.c:1638
 arch_jump_label_transform_queue+0x71/0xd0 arch/x86/kernel/jump_label.c:138
 __jump_label_update+0x177/0x3a0 kernel/jump_label.c:488
 static_key_slow_inc_cpuslocked+0xaf/0x140 kernel/jump_label.c:165
 static_key_slow_inc+0x16/0x30 kernel/jump_label.c:186
 bpf_enable_runtime_stats kernel/bpf/syscall.c:4855 [inline]
 bpf_enable_stats+0xfe/0x140 kernel/bpf/syscall.c:4874
 __sys_bpf+0x60a/0x6c0 kernel/bpf/syscall.c:5103
 __do_sys_bpf kernel/bpf/syscall.c:5124 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5122 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5122
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3f42f7def9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3f43ca2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f3f43135f80 RCX: 00007f3f42f7def9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00007f3f42ff0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3f43135f80 R15: 00007ffe27560548
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/21 13:44 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in ip_expire
* Struck through repros no longer work on HEAD.