syzbot


INFO: rcu detected stall in inet_ioctl (2)

Status: auto-obsoleted due to no activity on 2024/12/25 20:16
Subsystems: mm
[Documentation on labels]
First crash: 116d, last: 116d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in inet_ioctl net 1 2062d 2062d 0/28 auto-closed as invalid on 2019/10/25 09:21

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P6476/2:b..l P6252/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=30361, q=775893 ncpus=2)
task:syz-executor    state:R  running task     stack:20992 pid:6252  tgid:6252  ppid:6241   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6675
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6997
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:debug_lockdep_rcu_enabled+0x0/0x40 kernel/rcu/update.c:319
Code: 0a 8c 48 c7 c6 00 ed 0a 8c e8 0c 5c 91 f5 90 0f 0b 90 90 90 eb c6 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 31 c0 83 3d 2f 9a 58 04 00 74 1e 83 3d 86 cb 58 04 00
RSP: 0018:ffffc90002dbf3f0 EFLAGS: 00000282
RAX: ffffffff820b328d RBX: ffff8880200de4e0 RCX: ffff888025659e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880200de4e0
RBP: 000000000000186c R08: ffffffff8208f9c6 R09: 1ffff1100401bc9c
R10: dffffc0000000000 R11: ffffed100401bc9d R12: 0000000000000001
R13: dffffc0000000000 R14: ffff8880200de524 R15: ffff8880200de530
 rcu_read_unlock include/linux/rcupdate.h:878 [inline]
 page_ext_put+0x1b/0xc0 mm/page_ext.c:550
 __reset_page_owner+0x2de/0x430 mm/page_owner.c:300
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1108 [inline]
 free_unref_page+0xcfb/0xf20 mm/page_alloc.c:2638
 __slab_free+0x31b/0x3d0 mm/slub.c:4491
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
 __kasan_kmalloc+0x23/0xb0 mm/kasan/common.c:385
 kasan_kmalloc include/linux/kasan.h:257 [inline]
 __kmalloc_cache_noprof+0x19c/0x2c0 mm/slub.c:4296
 kmalloc_noprof include/linux/slab.h:878 [inline]
 kzalloc_noprof include/linux/slab.h:1014 [inline]
 ____ip_mc_inc_group+0x31d/0xbf0 net/ipv4/igmp.c:1452
 __ip_mc_inc_group net/ipv4/igmp.c:1487 [inline]
 ip_mc_inc_group net/ipv4/igmp.c:1493 [inline]
 ip_mc_up+0x124/0x300 net/ipv4/igmp.c:1792
 inetdev_event+0xfaa/0x1550 net/ipv4/devinet.c:1603
 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93
 __dev_notify_flags+0x207/0x400
 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8914
 devinet_ioctl+0xa4e/0x1aa0 net/ipv4/devinet.c:1173
 inet_ioctl+0x3d7/0x4f0 net/ipv4/af_inet.c:1003
 sock_do_ioctl+0x158/0x460 net/socket.c:1228
 sock_ioctl+0x626/0x8e0 net/socket.c:1347
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc28857db3b
RSP: 002b:00007fc28885fe30 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc28885ff50 RCX: 00007fc28857db3b
RDX: 00007fc28885feb0 RSI: 0000000000008914 RDI: 0000000000000005
RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000023
R13: 0000000000000048 R14: 00007fc289264620 R15: 00007fc28885feb0
 </TASK>
task:syz.0.170       state:R  running task     stack:24992 pid:6476  tgid:6473  ppid:6216   flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6675
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6854
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6878
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __local_bh_enable_ip+0x179/0x200 kernel/softirq.c:389
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline]
 __dev_queue_xmit+0x1764/0x3e80 net/core/dev.c:4451
 dev_queue_xmit include/linux/netdevice.h:3094 [inline]
 neigh_hh_output include/net/neighbour.h:526 [inline]
 neigh_output include/net/neighbour.h:540 [inline]
 ip_finish_output2+0xd41/0x1390 net/ipv4/ip_output.c:236
 ip_local_out net/ipv4/ip_output.c:130 [inline]
 __ip_queue_xmit+0x118c/0x1b80 net/ipv4/ip_output.c:536
 __tcp_transmit_skb+0x2544/0x3b30 net/ipv4/tcp_output.c:1466
 tcp_transmit_skb net/ipv4/tcp_output.c:1484 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:4059 [inline]
 tcp_connect+0x2c21/0x4940 net/ipv4/tcp_output.c:4145
 tcp_v4_connect+0x1127/0x1ba0 net/ipv4/tcp_ipv4.c:341
 __inet_stream_connect+0x262/0xf30 net/ipv4/af_inet.c:679
 tcp_sendmsg_fastopen+0x3a2/0x5d0 net/ipv4/tcp.c:1038
 tcp_sendmsg_locked+0x4a23/0x50a0 net/ipv4/tcp.c:1090
 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1357
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x1a6/0x270 net/socket.c:745
 __sys_sendto+0x39b/0x4f0 net/socket.c:2210
 __do_sys_sendto net/socket.c:2222 [inline]
 __se_sys_sendto net/socket.c:2218 [inline]
 __x64_sys_sendto+0xde/0x100 net/socket.c:2218
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f99ac97df39
RSP: 002b:00007f99ad761038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f99acb36058 RCX: 00007f99ac97df39
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f99ac9f0216 R08: 0000000020000000 R09: 0000000000000010
R10: 00000000200007fd R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f99acb36058 R15: 00007f99acc5fa28
 </TASK>
rcu: rcu_preempt kthread starved for 10476 jiffies! g30361 f0x2 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:24912 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6767
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 51 Comm: kworker/1:1 Not tainted 6.11.0-syzkaller-10669-g11a299a7933e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events nsim_dev_trap_report_work
RIP: 0010:lock_is_held_type+0x13b/0x190
Code: 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 42 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc90000a17a80 EFLAGS: 00000206
RAX: 3124b65dcc7c2400 RBX: 0000000000000000 RCX: ffff888020ae3c00
RDX: 0000000000000100 RSI: ffffffff8c0adbc0 RDI: ffffffff8c6100a0
RBP: 0000000000000007 R08: ffffffff8a3d3dd6 R09: 1ffffffff284d0f8
R10: dffffc0000000000 R11: fffffbfff284d0f9 R12: 0000000000000246
R13: ffff888020ae3c00 R14: 00000000ffffffff R15: ffffffff8fcd18c8
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff13f62228 CR3: 000000008d5da000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/26 20:08 upstream 11a299a7933e 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in inet_ioctl
* Struck through repros no longer work on HEAD.