syzbot


INFO: rcu detected stall in ipv6_list_rcv (2)

Status: auto-closed as invalid on 2021/12/05 01:49
Subsystems: net
[Documentation on labels]
First crash: 944d, last: 944d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in ipv6_list_rcv trace 2 1245d 1246d 0/26 auto-closed as invalid on 2021/03/09 05:51

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (1 GPs behind) idle=bfb/1/0x4000000000000000 softirq=277399/277400 fqs=3 
	(t=10500 jiffies g=533149 q=734)
rcu: rcu_preempt kthread starved for 10494 jiffies! g533149 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:28696 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4955 [inline]
 __schedule+0x940/0x26f0 kernel/sched/core.c:6236
 schedule+0xd3/0x270 kernel/sched/core.c:6315
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1966
 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2139
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 24728 Comm: syz-executor.3 Not tainted 5.15.0-rc4-next-20211005-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sysvec_apic_timer_interrupt+0x4c/0xc0 arch/x86/kernel/apic/apic.c:1097
Code: 89 e8 38 19 00 00 65 8a 05 c5 f4 ce 76 84 c0 74 20 e8 68 16 13 f8 48 89 ef e8 00 21 fe f7 e8 4b 17 13 f8 44 89 e6 48 89 ef 5d <41> 5c e9 5d 14 00 00 48 c7 c7 e0 86 88 89 e8 01 19 00 00 48 c7 c7
RSP: 0018:ffffc90000dc02b8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffff110173a748c RSI: 0000000000000000 RDI: ffffc90000dc02c8
RBP: 0000000000000000 R08: ffffffff8ef13058 R09: ffffffff8ef1304f
R10: ffffffff8ef13057 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fd6b2cf9700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe5d298da21 CR3: 00000000a22d7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__find_rr_leaf+0x2e7/0xd20 net/ipv6/route.c:795
Code: e8 3e 21 9d f9 48 8d bb 80 00 00 00 48 89 f8 48 c1 e8 03 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 49 08 00 00 44 8b a3 80 00 00 00 <44> 8b 74 24 10 44 89 e7 44 89 f6 e8 19 23 9d f9 45 39 f4 0f 85 53
RSP: 0018:ffffc90000dc0370 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88807f02ba00 RCX: 0000000000000100
RDX: ffff88807d891d00 RSI: ffffffff87d95612 RDI: ffff88807f02ba80
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff87d955da R11: 0000000000000000 R12: 0000000000000100
R13: ffffc90000dc0658 R14: 0000000000000000 R15: ffff8880a77a90a0
 find_rr_leaf net/ipv6/route.c:847 [inline]
 rt6_select net/ipv6/route.c:891 [inline]
 fib6_table_lookup+0x649/0xa20 net/ipv6/route.c:2185
 ip6_pol_route+0x1c5/0x11d0 net/ipv6/route.c:2221
 pol_lookup_func include/net/ip6_fib.h:579 [inline]
 fib6_rule_lookup+0x111/0x6f0 net/ipv6/fib6_rules.c:115
 ip6_route_input_lookup net/ipv6/route.c:2291 [inline]
 ip6_route_input+0x63c/0xbc0 net/ipv6/route.c:2587
 ip6_rcv_finish_core.constprop.0.isra.0+0x168/0x570 net/ipv6/ip6_input.c:63
 ip6_list_rcv_finish.constprop.0+0x231/0xb90 net/ipv6/ip6_input.c:127
 ip6_sublist_rcv net/ipv6/ip6_input.c:307 [inline]
 ipv6_list_rcv+0x350/0x490 net/ipv6/ip6_input.c:342
 __netif_receive_skb_list_ptype net/core/dev.c:5481 [inline]
 __netif_receive_skb_list_core+0x549/0x8e0 net/core/dev.c:5529
 __netif_receive_skb_list net/core/dev.c:5581 [inline]
 netif_receive_skb_list_internal+0x75e/0xd80 net/core/dev.c:5672
 netif_receive_skb_list net/core/dev.c:5724 [inline]
 netif_receive_skb_list+0x54/0x5b0 net/core/dev.c:5714
 ieee80211_rx_napi+0x34c/0x3d0 net/mac80211/rx.c:4996
 ieee80211_rx include/net/mac80211.h:4582 [inline]
 ieee80211_tasklet_handler+0xd4/0x130 net/mac80211/main.c:235
 tasklet_action_common.constprop.0+0x201/0x2e0 kernel/softirq.c:784
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:tomoyo_check_acl+0xb0/0x450 security/tomoyo/domain.c:173
Code: 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 e5 fa d8 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 0f b6 04 28 <38> d0 7f 08 84 c0 0f 85 f7 02 00 00 44 0f b6 73 18 31 ff 44 89 f6
RSP: 0018:ffffc90013f4fbf0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff888019a34700 RCX: ffffc9000feba000
RDX: 0000000000000000 RSI: ffffffff839d7c6b RDI: ffff888019a34718
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000002
R10: ffffffff839d7cf1 R11: 0000000000000000 R12: ffffc90013f4fcb8
R13: ffff88801c33ea90 R14: 0000000000000000 R15: 0000000000000002
 tomoyo_path_number_perm+0x32a/0x590 security/tomoyo/file.c:733
 security_file_ioctl+0x50/0xb0 security/security.c:1540
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0xb3/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd6b57a38d9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd6b2cf9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd6b58a8020 RCX: 00007fd6b57a38d9
RDX: 0000000020000080 RSI: 0000000040089416 RDI: 0000000000000005
RBP: 00007fd6b57fdcb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffebf8a85bf R14: 00007fd6b2cf9300 R15: 0000000000022000
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 24722 Comm: syz-executor.3 Not tainted 5.15.0-rc4-next-20211005-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:604 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:688 [inline]
 rcu_pending kernel/rcu/tree.c:3889 [inline]
 rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2608
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1428
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x40/0xc0 arch/x86/kernel/apic/apic.c:1097
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 ce 72 25 f8 48 89 ef e8 16 e9 25 f8 e8 d1 6c 46 f8 fb bf 01 00 00 00 <e8> a6 84 19 f8 65 8b 05 ff 30 cc 76 85 c0 74 02 5d c3 0f 1f 44 00
RSP: 0018:ffffc90000007e08 EFLAGS: 00000206
RAX: 00000000008dcd8e RBX: ffffffff87386d70 RCX: 1ffffffff1add399
RDX: 0000000000000000 RSI: 0000000000000101 RDI: 0000000000000001
RBP: ffff8880b9c28240 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff817cabf8 R11: 0000000000000000 R12: ffffc90000007e98
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880b9c28240
 expire_timers kernel/time/timer.c:1465 [inline]
 __run_timers.part.0+0x665/0xa20 kernel/time/timer.c:1734
 __run_timers kernel/time/timer.c:1715 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:tomoyo_domain_quota_is_ok+0x16d/0x550 security/tomoyo/util.c:1059
Code: 00 48 8b 6d 00 48 3b 2c 24 0f 84 89 00 00 00 e8 59 75 d7 fd 48 8d 7d 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 42 0f b6 04 30 <38> d0 7f 08 84 c0 0f 85 4a 03 00 00 0f b6 5d 18 31 ff 89 de e8 1a
RSP: 0018:ffffc90013f2f5a0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffffc9000f4b5000
RDX: 0000000000000000 RSI: ffffffff839f01f7 RDI: ffff8880779dfa98
RBP: ffff8880779dfa80 R08: 0000000000000000 R09: 0000000000000010
R10: ffffffff839f03ca R11: 0000000000000010 R12: 0000000000000100
R13: 00000000000003a8 R14: dffffc0000000000 R15: 0000000000000000
 tomoyo_supervisor+0x2f2/0xf00 security/tomoyo/common.c:2089
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission security/tomoyo/file.c:587 [inline]
 tomoyo_path_permission+0x270/0x3a0 security/tomoyo/file.c:573
 tomoyo_check_open_permission+0x33e/0x380 security/tomoyo/file.c:777
 tomoyo_file_open security/tomoyo/tomoyo.c:311 [inline]
 tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:306
 security_file_open+0x45/0xb0 security/security.c:1634
 do_dentry_open+0x353/0x11d0 fs/open.c:809
 do_open fs/namei.c:3428 [inline]
 path_openat+0x1c9a/0x2740 fs/namei.c:3561
 do_filp_open+0x1aa/0x400 fs/namei.c:3588
 do_sys_openat2+0x16d/0x4d0 fs/open.c:1200
 do_sys_open fs/open.c:1216 [inline]
 __do_sys_openat fs/open.c:1232 [inline]
 __se_sys_openat fs/open.c:1227 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1227
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd6b57a38d9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd6b2d1a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd6b58a7f60 RCX: 00007fd6b57a38d9
RDX: 0000000000000002 RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007fd6b57fdcb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffebf8a85bf R14: 00007fd6b2d1a300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	89 e8                	mov    %ebp,%eax
   2:	38 19                	cmp    %bl,(%rcx)
   4:	00 00                	add    %al,(%rax)
   6:	65 8a 05 c5 f4 ce 76 	mov    %gs:0x76cef4c5(%rip),%al        # 0x76cef4d2
   d:	84 c0                	test   %al,%al
   f:	74 20                	je     0x31
  11:	e8 68 16 13 f8       	callq  0xf813167e
  16:	48 89 ef             	mov    %rbp,%rdi
  19:	e8 00 21 fe f7       	callq  0xf7fe211e
  1e:	e8 4b 17 13 f8       	callq  0xf813176e
  23:	44 89 e6             	mov    %r12d,%esi
  26:	48 89 ef             	mov    %rbp,%rdi
  29:	5d                   	pop    %rbp
* 2a:	41 5c                	pop    %r12 <-- trapping instruction
  2c:	e9 5d 14 00 00       	jmpq   0x148e
  31:	48 c7 c7 e0 86 88 89 	mov    $0xffffffff898886e0,%rdi
  38:	e8 01 19 00 00       	callq  0x193e
  3d:	48                   	rex.W
  3e:	c7                   	.byte 0xc7
  3f:	c7                   	.byte 0xc7

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/06 01:42 linux-next 29616f67fcbd 0a63fd36 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in ipv6_list_rcv
* Struck through repros no longer work on HEAD.