syzbot


INFO: rcu detected stall in tipc_sendmsg (2)

Status: fixed on 2023/10/12 12:48
Subsystems: tipc
[Documentation on labels]
Fix commit: 8c21ab1bae94 net/sched: fq_pie: avoid stalls in fq_pie_timer()
First crash: 292d, last: 292d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tipc_sendmsg tipc 1 916d 916d 0/26 closed as invalid on 2022/02/08 10:10

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (1 GPs behind) idle=b90c/1/0x4000000000000000 softirq=84660/84661 fqs=4763
rcu: 	         hardirqs   softirqs   csw/system
rcu: 	 number:        0          0            0
rcu: 	cputime:      278      52209            6   ==> 52490(ms)
rcu: 	(t=10500 jiffies g=123257 q=893 ncpus=2)
CPU: 0 PID: 28088 Comm: syz-executor.3 Not tainted 6.5.0-rc3-syzkaller-00840-g36e68eadd303 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:200
Code: 96 90 99 02 66 0f 1f 44 00 00 f3 0f 1e fa 48 8b be b0 01 00 00 e8 b0 ff ff ff 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 <f3> 0f 1e fa 65 8b 05 ad 3a 7d 7e 89 c1 48 8b 34 24 81 e1 00 01 00
RSP: 0018:ffffc90000007bb8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffffc90016f08390 RCX: ffffffff8859f002
RDX: ffff888043ce5940 RSI: 0000000000000100 RDI: 0000000000000006
RBP: ffff888034682b00 R08: 0000000000000006 R09: 000000000001c9c3
R10: 0000000000000000 R11: 0000000038a90599 R12: 000000000001c9c3
R13: 0000000000000000 R14: fffffff0a3da8872 R15: 0000000000000001
FS:  00007f3d13dfe6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000a038 CR3: 0000000080ac5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pie_calculate_probability+0x41c/0x850 net/sched/sch_pie.c:409
 fq_pie_timer+0x1da/0x4f0 net/sched/sch_fq_pie.c:387
 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700
 expire_timers kernel/time/timer.c:1751 [inline]
 __run_timers+0x764/0xb10 kernel/time/timer.c:2022
 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
 __do_softirq+0x218/0x965 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:filter_irq_stacks+0x5d/0x90 kernel/stacktrace.c:394
Code: 81 fa d0 15 40 8a 73 09 83 c0 01 48 83 c4 10 5b c3 48 81 fa 30 b0 37 8a 72 09 48 81 fa 95 b9 37 8a 72 e5 83 c0 01 48 83 c7 08 <39> c6 75 b8 89 f0 eb d9 31 c0 c3 89 74 24 0c 89 44 24 08 48 89 3c
RSP: 0018:ffffc9000332edc0 EFLAGS: 00000292
RAX: 0000000000000013 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: ffffffff8a40008b RSI: 0000000000000013 RDI: ffffc9000332eee0
RBP: ffffc9000332ee48 R08: 0000000000000000 R09: fffffbfff1d57d7a
R10: ffffffff8eabebd7 R11: 0000000000094000 R12: 0000000000000001
R13: 0000000000000000 R14: ffffc9000332ee48 R15: ffffea0000b08f80
 __stack_depot_save+0x39/0x510 lib/stackdepot.c:377
 kasan_save_stack+0x43/0x50 mm/kasan/common.c:46
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
 ____kasan_slab_free mm/kasan/common.c:236 [inline]
 ____kasan_slab_free+0x15e/0x1b0 mm/kasan/common.c:200
 kasan_slab_free include/linux/kasan.h:162 [inline]
 slab_free_hook mm/slub.c:1792 [inline]
 slab_free_freelist_hook+0x10b/0x1e0 mm/slub.c:1818
 slab_free mm/slub.c:3801 [inline]
 __kmem_cache_free+0xb8/0x2f0 mm/slub.c:3814
 tipc_dest_pop+0x223/0x2d0 net/tipc/name_table.c:1180
 tipc_sk_mcast_rcv+0x502/0xf70 net/tipc/socket.c:1249
 tipc_mcast_xmit+0x65e/0xdb0 net/tipc/bcast.c:424
 tipc_sendmcast+0x87a/0xb50 net/tipc/socket.c:888
 __tipc_sendmsg+0x121c/0x17e0 net/tipc/socket.c:1470
 tipc_sendmsg+0x4f/0x70 net/tipc/socket.c:1404
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg+0xd9/0x180 net/socket.c:748
 ____sys_sendmsg+0x2ac/0x940 net/socket.c:2494
 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2548
 __sys_sendmmsg+0x1a1/0x450 net/socket.c:2634
 __do_sys_sendmmsg net/socket.c:2663 [inline]
 __se_sys_sendmmsg net/socket.c:2660 [inline]
 __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2660
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d1527cae9
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:00007f3d13dfe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f3d1539bf80 RCX: 00007f3d1527cae9
RDX: 0000000000000300 RSI: 0000000020002f40 RDI: 0000000000000003
RBP: 00007f3d152c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d1539bf80 R15: 00007fff8f878798
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/04 02:41 net-next 36e68eadd303 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in tipc_sendmsg
* Struck through repros no longer work on HEAD.