syzbot


INFO: rcu detected stall in inet_release (5)

Status: auto-obsoleted due to no activity on 2024/10/01 20:59
Subsystems: mm cgroups
[Documentation on labels]
First crash: 209d, last: 209d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in inet_release (3) net 1 776d 776d 0/28 auto-obsoleted due to no activity on 2023/04/07 20:53
upstream INFO: rcu detected stall in inet_release (2) mm kasan 1 1088d 1088d 0/28 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in inet_release (4) net 1 433d 433d 0/28 closed as invalid on 2024/02/01 10:31
upstream INFO: rcu detected stall in inet_release net 1 1971d 1970d 13/28 fixed on 2019/10/09 10:54
linux-4.19 BUG: soft lockup in inet_release 1 1036d 1036d 0/1 auto-closed as invalid on 2022/07/27 00:21
linux-4.19 BUG: soft lockup in inet_release (2) 1 781d 781d 0/1 auto-obsoleted due to no activity on 2023/04/08 16:55

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5084/2:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=11569, q=1050 ncpus=2)
task:syz-executor    state:R  running task     stack:22336 pid:5084  tgid:5084  ppid:5077   flags:0x00000000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6745
 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7067
 irqentry_exit+0x36/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_release+0x3ba/0x6c0 kernel/locking/lockdep.c:5762
Code: 7e 83 f8 01 0f 85 f5 01 00 00 9c 58 f6 c4 02 0f 85 e0 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc9000324fb28 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 7129843068c91779 RCX: ffffc9000324fb78
RDX: 1ffff1100386151a RSI: ffffffff8b2cb200 RDI: ffffffff8b8ff600
RBP: 1ffff92000649f67 R08: 0000000000000000 R09: fffffbfff1fc8822
R10: ffffffff8fe44117 R11: 0000000000000002 R12: 0000000000000002
R13: 0000000000000003 R14: ffff88801c30a8d8 R15: ffff88801c309e00
 rcu_lock_release include/linux/rcupdate.h:339 [inline]
 rcu_read_unlock+0x1c/0x60 include/linux/rcupdate.h:812
 percpu_ref_tryget_many include/linux/percpu-refcount.h:250 [inline]
 percpu_ref_tryget include/linux/percpu-refcount.h:266 [inline]
 css_tryget include/linux/cgroup_refcnt.h:45 [inline]
 css_tryget include/linux/cgroup_refcnt.h:42 [inline]
 get_mem_cgroup_from_objcg+0x14d/0x230 include/linux/memcontrol.h:536
 obj_cgroup_uncharge_pages mm/memcontrol.c:3392 [inline]
 refill_obj_stock+0x36b/0x670 mm/memcontrol.c:3665
 obj_cgroup_uncharge mm/memcontrol.c:3714 [inline]
 __memcg_slab_free_hook+0x229/0x5a0 mm/memcontrol.c:3801
 memcg_slab_free_hook mm/slub.c:2130 [inline]
 slab_free mm/slub.c:4435 [inline]
 kmem_cache_free+0x357/0x3a0 mm/slub.c:4513
 sk_prot_free net/core/sock.c:2114 [inline]
 __sk_destruct+0x47a/0x730 net/core/sock.c:2208
 sk_destruct+0xc2/0xf0 net/core/sock.c:2223
 __sk_free+0xf4/0x3e0 net/core/sock.c:2234
 sk_free+0x7c/0xa0 net/core/sock.c:2245
 sock_put include/net/sock.h:1879 [inline]
 tcp_close+0xe1/0x130 net/ipv4/tcp.c:2963
 inet_release+0x13c/0x280 net/ipv4/af_inet.c:437
 __sock_release+0xb0/0x270 net/socket.c:659
 sock_close+0x1c/0x30 net/socket.c:1421
 __fput+0x408/0xbb0 fs/file_table.c:422
 __fput_sync+0x47/0x50 fs/file_table.c:507
 __do_sys_close fs/open.c:1563 [inline]
 __se_sys_close fs/open.c:1548 [inline]
 __x64_sys_close+0x86/0x100 fs/open.c:1548
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6024b7490a
RSP: 002b:00007ffcb0f58e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f6024b7490a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffcb0f58e7c R08: 00007ffcb0f5877c R09: 00007ffcb0f58b67
R10: 00007ffcb0f587d0 R11: 0000000000000293 R12: 0000000000000032
R13: 000000000001de8f R14: 000000000001ddff R15: 0000000000000008
 </TASK>
rcu: rcu_preempt kthread starved for 10387 jiffies! g11569 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:27680 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6837
 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2581
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2000
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2202
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/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: 0 PID: 0 Comm: swapper/0 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:72 [inline]
RIP: 0010:acpi_safe_halt+0x1a/0x20 drivers/acpi/processor_idle.c:113
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 65 48 8b 05 88 63 1c 75 48 8b 00 a8 08 75 0c 66 90 0f 00 2d 58 be b3 00 fb f4 <fa> c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffffff8d807d70 EFLAGS: 00000246
RAX: 0000000000004000 RBX: 0000000000000001 RCX: ffffffff8ae75899
RDX: 0000000000000001 RSI: ffff8880196cc000 RDI: ffff8880196cc064
RBP: ffff8880196cc064 R08: 0000000000000001 R09: ffffed1017246fdd
R10: ffff8880b9237eeb R11: 0000000000000000 R12: ffff88801bb8a000
R13: ffffffff8e742500 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa661304030 CR3: 000000006d270000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0xc5/0x160 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0x85/0x500 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x313/0x3f0 kernel/sched/idle.c:332
 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:430
 rest_init+0x16b/0x2b0 init/main.c:747
 start_kernel+0x3df/0x4c0 init/main.c:1103
 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507
 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488
 common_startup_64+0x13e/0x148
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/03 20:54 upstream e9d22f7a6655 409d975c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in inet_release
* Struck through repros no longer work on HEAD.