syzbot


INFO: rcu detected stall in tun_chr_close

Status: auto-obsoleted due to no activity on 2024/04/23 00:30
Reported-by: syzbot+cdea7226491ec0ff7a30@syzkaller.appspotmail.com
First crash: 312d, last: 312d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tun_chr_close (3) netfilter 1 1578d 1578d 0/28 auto-closed as invalid on 2020/10/25 04:38
upstream INFO: rcu detected stall in tun_chr_close (2) netfilter 1 1719d 1718d 0/28 closed as invalid on 2020/05/30 17:14
upstream INFO: rcu detected stall in tun_chr_close (4) bpf net 3 1038d 1108d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in tun_chr_close net 13 2173d 2253d 0/28 auto-closed as invalid on 2019/06/08 11:01
linux-5.15 INFO: rcu detected stall in tun_chr_close (2) 1 75d 75d 0/3 upstream: reported on 2024/09/06 18:42
upstream INFO: rcu detected stall in tun_chr_close (5) net 1 536d 536d 0/28 auto-obsoleted due to no activity on 2023/09/01 17:23
android-5-15 BUG: soft lockup in tun_chr_close 3 184d 214d 0/2 auto-obsoleted due to no activity on 2024/08/19 06:38

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (31 ticks this GP) idle=4ef/1/0x4000000000000002 softirq=170150/170152 fqs=2105 
	(detected by 1, t=10504 jiffies, g=203549, q=12368)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2620 Comm: syz-executor.3 Not tainted 5.15.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:perf_tp_event_match kernel/events/core.c:9912 [inline]
RIP: 0010:perf_tp_event+0x221/0xc40 kernel/events/core.c:9963
Code: 27 28 00 4c 8b 75 18 4d 8b 24 24 4d 85 e4 0f 84 9e 02 00 00 49 83 c4 a0 0f 84 94 02 00 00 48 8b 44 24 18 4c 8d a8 88 00 00 00 <4d> 8d bc 24 d8 01 00 00 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00
RSP: 0018:ffffc90000007640 EFLAGS: 00000046
RAX: ffffffff81a1b6c9 RBX: ffff888043ce8b28 RCX: ffff888056413b80
RDX: 0000000000000101 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900000078a8 R08: ffffffff81a1c2b6 R09: fffffbfff1bc73a6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888031a67620
R13: ffff8880b9a345f0 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fdf5d63e6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4eda31bd58 CR3: 000000004793c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9938
 perf_trace_preemptirq_template+0x31d/0x430 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x10e/0x190 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:664
RIP: 0010:rcu_read_unlock_special+0x84/0x520 kernel/rcu/tree_plugin.h:671
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 bd d0 96 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007b00 EFLAGS: 00000206
RAX: 659c24288ef9f100 RBX: 1ffff92000000f68 RCX: ffffffff8162ee48
RDX: dffffc0000000000 RSI: ffffffff8a8b0f80 RDI: ffffffff8ad87e00
RBP: ffffc90000007bd0 R08: dffffc0000000000 R09: fffffbfff1f79e1a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8c923200
R13: ffff888056413fd8 R14: ffffc90000007b40 R15: 1ffff92000000f64
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:728 [inline]
 ieee80211_iterate_active_interfaces_atomic+0x12e/0x140 net/mac80211/util.c:831
 mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__unfreeze_partials+0x173/0x210
Code: ff ff 0f 0b eb c1 48 8b 04 24 48 8b 4c 24 20 48 89 01 48 89 2c 24 e9 ed fe ff ff 48 85 ff 74 0a 48 8b 74 24 08 e8 2d 93 5c 08 <48> 8b 34 24 48 85 f6 74 5a 48 8b 06 48 83 f8 ff 74 73 48 8b 6e 08
RSP: 0018:ffffc9000576f568 EFLAGS: 00000246
RAX: 659c24288ef9f100 RBX: ffff888011c42140 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8a8b0f80 RDI: 0000000000000001
RBP: ffffea000232a000 R08: dffffc0000000000 R09: fffffbfff1f79e1a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff7fffffff
R13: 0000000000000000 R14: ffff888011c40a08 R15: ffffea0000c79608
 put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
 do_slab_free mm/slub.c:3487 [inline]
 ___cache_free+0xe3/0x100 mm/slub.c:3506
 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 __kmalloc_node_track_caller+0x14d/0x390 mm/slub.c:4958
 kmalloc_reserve net/core/skbuff.c:356 [inline]
 __alloc_skb+0x12c/0x590 net/core/skbuff.c:427
 alloc_skb include/linux/skbuff.h:1167 [inline]
 nlmsg_new include/net/netlink.h:953 [inline]
 mpls_netconf_notify_devconf+0x42/0xf0 net/mpls/af_mpls.c:1188
 mpls_dev_notify+0x54b/0x780 net/mpls/af_mpls.c:1663
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 call_netdevice_notifiers_info net/core/dev.c:2018 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2030 [inline]
 call_netdevice_notifiers net/core/dev.c:2044 [inline]
 unregister_netdevice_many+0xf1b/0x18f0 net/core/dev.c:11090
 unregister_netdevice_queue+0x2e6/0x350 net/core/dev.c:11023
 unregister_netdevice include/linux/netdevice.h:3012 [inline]
 __tun_detach+0x6b4/0x15a0 drivers/net/tun.c:685
 tun_detach drivers/net/tun.c:701 [inline]
 tun_chr_close+0x104/0x1b0 drivers/net/tun.c:3434
 __fput+0x3bf/0x890 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fdf5f0bcda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdf5d63e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007fdf5f1ebf80 RCX: 00007fdf5f0bcda9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007fdf5f10947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fdf5f1ebf80 R15: 00007fff7fe8ede8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/14 00:29 linux-5.15.y 26c690eff0a5 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in tun_chr_close
* Struck through repros no longer work on HEAD.