syzbot


INFO: rcu detected stall in mod_objcg_state

Status: auto-obsoleted due to no activity on 2024/02/25 04:20
Subsystems: cgroups mm
[Documentation on labels]
First crash: 275d, last: 275d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in mod_objcg_state 1 202d 202d 0/3 auto-obsoleted due to no activity on 2024/06/17 09:03

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=e07c/1/0x4000000000000000 softirq=78193/78195 fqs=0
rcu: 	(detected by 0, t=10506 jiffies, g=129829, q=131 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1528 Comm: syz-executor.5 Not tainted 6.7.0-rc6-next-20231222-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:lookup_object lib/debugobjects.c:195 [inline]
RIP: 0010:debug_object_deactivate+0x19e/0x370 lib/debugobjects.c:765
Code: 80 3c 28 00 0f 85 7f 01 00 00 48 8b 1b 48 85 db 0f 84 0c 01 00 00 48 8d 7b 18 41 83 c4 01 48 89 f8 48 c1 e8 03 42 80 3c 28 00 <0f> 85 47 01 00 00 4c 3b 73 18 75 c2 48 8d 7b 10 48 b8 00 00 00 00
RSP: 0018:ffffc900001f0d40 EFLAGS: 00000046
RAX: 1ffff1100ffbfed5 RBX: ffff88807fdff690 RCX: 0000000000000002
RDX: 1ffffffff25860d2 RSI: 0000000000000004 RDI: ffff88807fdff6a8
RBP: ffffc900001f0e20 R08: 0000000000000001 R09: fffff5200003e196
R10: 0000000000000003 R11: ffffffff8acf3060 R12: 0000000000000002
R13: dffffc0000000000 R14: ffff88803f9ea340 R15: 1ffff9200003e1aa
FS:  0000555555af8480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000480 CR3: 0000000054fc6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 debug_hrtimer_deactivate kernel/time/hrtimer.c:427 [inline]
 debug_deactivate kernel/time/hrtimer.c:483 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1656 [inline]
 __hrtimer_run_queues+0x47a/0xc20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x10c/0x410 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:mod_objcg_state+0x2e7/0x770 mm/memcontrol.c:3395
Code: 0f 85 a2 03 00 00 48 03 1c ed 60 ba a8 8c 48 89 df e8 1d 49 fe ff 4d 85 e4 0f 85 86 01 00 00 9c 58 f6 c4 02 0f 85 fb 02 00 00 <4d> 85 f6 0f 84 63 01 00 00 48 83 c4 18 4c 89 f7 5b 5d 41 5c 41 5d
RSP: 0018:ffffc90003737da0 EFLAGS: 00000246
RAX: 0000000000000046 RBX: ffff8880b9938220 RCX: 1ffffffff1e751db
RDX: 0000000000000000 RSI: ffffffff8b2f95c0 RDI: ffffffff81e79847
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff8f3a5b17 R11: 0000000000000000 R12: 0000000000000200
R13: ffff8880b9938220 R14: 0000000000000000 R15: ffff8880b9938278
 __memcg_slab_free_hook+0x14e/0x270 mm/slub.c:2011
 memcg_slab_free_hook mm/slub.c:2030 [inline]
 slab_free mm/slub.c:4301 [inline]
 kmem_cache_free+0x315/0x360 mm/slub.c:4367
 file_free fs/file_table.c:74 [inline]
 __fput+0x524/0xb70 fs/file_table.c:389
 __fput_sync+0x47/0x50 fs/file_table.c:461
 __do_sys_close fs/open.c:1592 [inline]
 __se_sys_close fs/open.c:1577 [inline]
 __x64_sys_close+0x86/0xf0 fs/open.c:1577
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x62/0x6a
RIP: 0033:0x7f82df67bbda
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffd968c84e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f82df67bbda
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000032 R08: 0000001b32220000 R09: 0000000000000173
R10: 000000008173678d R11: 0000000000000293 R12: 00007f82df201498
R13: ffffffffffffffff R14: 00007f82df200000 R15: 000000000012b3af
 </TASK>
rcu: rcu_preempt kthread starved for 10506 jiffies! g129829 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:28256 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0xf15/0x5c80 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0xe7/0x270 kernel/sched/core.c:6817
 schedule_timeout+0x136/0x290 kernel/time/timer.c:2183
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:1830
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 1533 Comm: syz-executor.4 Not tainted 6.7.0-rc6-next-20231222-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x4e4/0x1570 kernel/smp.c:855
Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 7e c5 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 44 0e 00 00 8b 43 08 31
RSP: 0018:ffffc900037b7ab8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b9942060 RCX: ffffffff817c4e68
RDX: ffff8880b3e55940 RSI: ffffffff817c4e42 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed101732840d
R13: 0000000000000001 R14: ffff8880b9942068 R15: ffff8880b983dec0
FS:  00007fec7638f6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec7634dd58 CR3: 0000000021228000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2086 [inline]
 text_poke_bp_batch+0x22b/0x750 arch/x86/kernel/alternative.c:2296
 text_poke_flush arch/x86/kernel/alternative.c:2487 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2484 [inline]
 text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2494
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x1d7/0x400 kernel/jump_label.c:829
 static_key_enable_cpuslocked+0x1b7/0x270 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 __sched_core_enable kernel/sched/core.c:398 [inline]
 sched_core_get+0x86/0xa0 kernel/sched/core.c:422
 sched_core_alloc_cookie kernel/sched/core_sched.c:18 [inline]
 sched_core_share_pid+0x41f/0xa00 kernel/sched/core_sched.c:185
 __do_sys_prctl+0xf79/0x1f60 kernel/sys.c:2703
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x62/0x6a
RIP: 0033:0x7fec7567cce9
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:00007fec7638f0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000009d
RAX: ffffffffffffffda RBX: 00007fec7579bf80 RCX: 00007fec7567cce9
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000003e
RBP: 00007fec756c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fec7579bf80 R15: 00007ffda6e77588
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/27 04:11 linux-next 39676dfe5233 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in mod_objcg_state
* Struck through repros no longer work on HEAD.