syzbot


INFO: rcu detected stall in __sock_create

Status: upstream: reported on 2024/06/22 04:53
Reported-by: syzbot+98af6fc09289b3da4e76@syzkaller.appspotmail.com
First crash: 77d, last: 77d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in __sock_create kernel 1 1739d 1739d 0/27 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in __sock_create (2) kernel 2 1704d 1704d 0/27 closed as invalid on 2020/01/08 05:33
linux-5.15 INFO: rcu detected stall in __sock_create 1 108d 108d 0/3 auto-obsoleted due to no activity on 2024/08/30 14:48
android-5-15 BUG: soft lockup in __sock_create 18 6d14h 142d 0/2 premoderation: reported on 2024/04/18 17:44

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5710/1:b..l P5534/1:b..l
	(detected by 1, t=10502 jiffies, g=22505, q=87 ncpus=2)
task:syz-executor.1  state:R  running task     stack:20632 pid:5534  ppid:5507   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 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_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:658
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:403
Code: 8a e8 98 13 37 09 65 66 8b 05 20 80 af 7e 66 85 c0 75 57 bf 01 00 00 00 e8 e1 42 0a 00 e8 7c 36 3d 00 fb 65 8b 05 cc 4f ae 7e <85> c0 75 05 e8 7b 73 ac ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc900036464a0 EFLAGS: 00000286
RAX: 0000000080000000 RBX: 1ffff920006c8c98 RCX: ffffffff816ad40a
RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: ffffffff8b3d4660
RBP: ffffc90003646550 R08: dffffc0000000000 R09: fffffbfff2093a46
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920006c8c9c R14: ffffc900036464e0 R15: 0000000000000201
 inet6_fill_ifla6_attrs+0x1237/0x2460 net/ipv6/addrconf.c:5742
 inet6_fill_link_af+0x9a/0x120 net/ipv6/addrconf.c:5774
 rtnl_fill_link_af+0x1a5/0x410 net/core/rtnetlink.c:1653
 rtnl_fill_ifinfo+0x1d55/0x2090 net/core/rtnetlink.c:1857
 rtmsg_ifinfo_build_skb+0xdc/0x180 net/core/rtnetlink.c:3938
 rtmsg_ifinfo_event net/core/rtnetlink.c:3970 [inline]
 rtmsg_ifinfo+0x71/0x120 net/core/rtnetlink.c:3979
 __dev_notify_flags+0xdd/0x610 net/core/dev.c:8619
 dev_change_flags+0xe7/0x190 net/core/dev.c:8661
 vlan_device_event+0x429/0x1d10 net/8021q/vlan.c:468
 notifier_call_chain kernel/notifier.c:87 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:455
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190 net/core/dev.c:8661
 do_setlink+0xcf4/0x3de0 net/core/rtnetlink.c:2801
 __rtnl_newlink net/core/rtnetlink.c:3576 [inline]
 rtnl_newlink+0x172c/0x2050 net/core/rtnetlink.c:3623
 rtnetlink_rcv_msg+0x818/0xff0 net/core/rtnetlink.c:6121
 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352
 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg net/socket.c:730 [inline]
 __sys_sendto+0x480/0x600 net/socket.c:2148
 __do_sys_sendto net/socket.c:2160 [inline]
 __se_sys_sendto net/socket.c:2156 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2156
 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:0x7f045787ed9c
RSP: 002b:00007fffdea29a90 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f04584e4620 RCX: 00007f045787ed9c
RDX: 000000000000002c RSI: 00007f04584e4670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fffdea29ae4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f04584e4670 R15: 0000000000000000
 </TASK>
task:syz-executor.2  state:R  running task     stack:24512 pid:5710  ppid:4528   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 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:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666
Code: 2b 00 74 08 4c 89 f7 e8 4f ab 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90004fc75a0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920009f8ec0 RCX: 1ffff920009f8e60
RDX: dffffc0000000000 RSI: ffffffff8aec13c0 RDI: ffffffff8b3d4660
RBP: ffffc90004fc76f0 R08: dffffc0000000000 R09: fffffbfff2093a45
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920009f8ebc
R13: dffffc0000000000 R14: ffffc90004fc7600 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 is_bpf_text_address+0x3e/0x2a0 kernel/bpf/core.c:731
 kernel_text_address+0x9f/0xd0 kernel/extable.c:125
 __kernel_text_address+0x9/0x40 kernel/extable.c:79
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422
 sk_prot_alloc+0x58/0x200 net/core/sock.c:2041
 sk_alloc+0x36/0x350 net/core/sock.c:2100
 unix_create1+0xb4/0x7f0
 unix_create+0x146/0x1f0 net/unix/af_unix.c:1024
 __sock_create+0x488/0x910 net/socket.c:1550
 sock_create net/socket.c:1601 [inline]
 __sys_socketpair+0x335/0x700 net/socket.c:1732
 __do_sys_socketpair net/socket.c:1781 [inline]
 __se_sys_socketpair net/socket.c:1778 [inline]
 __x64_sys_socketpair+0x97/0xb0 net/socket.c:1778
 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:0x7f41e1e7d0a9
RSP: 002b:00007f41e2cc80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007f41e1fb3f80 RCX: 00007f41e1e7d0a9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000001
RBP: 00007f41e1eec074 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f41e1fb3f80 R15: 00007fff4f476a88
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10612 jiffies! g22505 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=8095
rcu: rcu_preempt kthread starved for 10618 jiffies! g22505 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
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:I stack:25528 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5708 Comm: syz-executor.3 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:update_current_exec_runtime+0x1/0x250 kernel/sched/sched.h:3223
Code: 38 8c 73 8e 80 e1 07 80 c1 03 38 c1 0f 8c 3d ff ff ff 48 c7 c7 38 8c 73 8e e8 8b 46 7b 00 e9 2c ff ff ff 66 0f 1f 44 00 00 55 <41> 57 41 56 41 55 41 54 53 49 89 d6 49 89 f7 49 89 fc 49 bd 00 00
RSP: 0018:ffffc90004fb7840 EFLAGS: 00000002
RAX: 0000000000000001 RBX: ffff88807e82bb80 RCX: ffffffff8166cbc4
RDX: 00000000000087f1 RSI: 0000003ae21dba26 RDI: ffff88807e82bb80
RBP: ffff88807e82bc40 R08: dffffc0000000000 R09: fffffbfff1ce7146
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b983aa00
R13: 00000000000087f1 R14: dffffc0000000000 R15: 0000003ae21dba26
FS:  00007f8fc70256c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8fc7024f00 CR3: 0000000057d7a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 update_curr_rt+0x169/0x6f0 kernel/sched/rt.c:1069
 dequeue_task_rt+0x26/0x880 kernel/sched/rt.c:1559
 deactivate_task kernel/sched/core.c:2097 [inline]
 __schedule+0x5f9/0x4550 kernel/sched/core.c:6512
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 futex_wait_queue+0x149/0x1d0 kernel/futex/waitwake.c:355
 futex_wait+0x203/0x5c0 kernel/futex/waitwake.c:656
 do_futex+0x3b5/0x490 kernel/futex/syscalls.c:106
 __do_sys_futex kernel/futex/syscalls.c:183 [inline]
 __se_sys_futex+0x3d7/0x460 kernel/futex/syscalls.c:164
 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:0x7f8fc627d0a9
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:00007f8fc7025178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007f8fc63b3f88 RCX: 00007f8fc627d0a9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f8fc63b3f88
RBP: 00007f8fc63b3f80 R08: 00007f8fc70256c0 R09: 00007f8fc70256c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8fc63b3f8c
R13: 000000000000000b R14: 00007ffddbf0d6d0 R15: 00007ffddbf0d7b8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/22 04:52 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in __sock_create
* Struck through repros no longer work on HEAD.