syzbot


INFO: rcu detected stall in newlstat (4)

Status: auto-obsoleted due to no activity on 2023/05/30 04:31
Subsystems: tomoyo
[Documentation on labels]
First crash: 428d, last: 428d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in newlstat (5) tomoyo 1 328d 328d 0/26 auto-obsoleted due to no activity on 2023/09/06 16:16
upstream INFO: rcu detected stall in newlstat tomoyo 7 884d 947d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in newlstat (3) tomoyo 1 665d 665d 0/26 auto-closed as invalid on 2022/10/05 01:09
upstream INFO: rcu detected stall in newlstat (2) fs 1 792d 792d 0/26 auto-closed as invalid on 2022/04/30 11:07

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=1bb4/1/0x4000000000000000 softirq=204231/204233 fqs=3
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P2684/1:b..l
rcu: 	(detected by 1, t=10505 jiffies, g=271045, q=206 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5117 Comm: syz-executor.5 Not tainted 6.2.0-syzkaller-12944-ge492250d5252 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:__lock_acquire+0xdc4/0x5d40 kernel/locking/lockdep.c:4930
Code: 01 0f 87 5a f3 ff ff 45 89 d4 0f 87 61 32 00 00 4a 8d 7c e3 08 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 80 3c 11 00 <0f> 85 25 32 00 00 4a 8b 44 e3 08 48 85 c0 0f 85 39 f3 ff ff e9 1e
RSP: 0018:ffffc90000007bb8 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff8880b982b818 RCX: 1ffff11017305704
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880b982b820
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888031aa60c0 R14: 0000000000000000 R15: 0000000000000001
FS:  0000555556857400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556860848 CR3: 000000003264a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_acquire kernel/locking/lockdep.c:5669 [inline]
 lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x266/0x1010 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x180/0x660 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:tomoyo_encode2.part.0+0x17f/0x3a0 security/tomoyo/realpath.c:51
Code: 2b 48 89 d3 e8 f2 06 a2 fd 41 83 c6 01 44 89 ef 49 83 c4 01 44 89 f6 e8 af 02 a2 fd 45 39 f5 0f 84 73 01 00 00 e8 d1 06 a2 fd <4c> 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 42 0f b6 04 38 38 d0 7f 08
RSP: 0018:ffffc900036bf9b8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88802b086089 RCX: 0000000000000000
RDX: ffff888031aa60c0 RSI: ffffffff83e21bdf RDI: 0000000000000004
RBP: 000000000000007a R08: 0000000000000004 R09: 0000000000000042
R10: 0000000000000009 R11: 0000000000094001 R12: ffff888027beefc4
R13: 0000000000000042 R14: 0000000000000009 R15: dffffc0000000000
 tomoyo_encode2 security/tomoyo/realpath.c:31 [inline]
 tomoyo_encode+0x2c/0x50 security/tomoyo/realpath.c:80
 tomoyo_realpath_from_path+0x185/0x600 security/tomoyo/realpath.c:283
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x22d/0x430 security/tomoyo/file.c:822
 security_inode_getattr+0xd3/0x140 security/security.c:1375
 vfs_getattr fs/stat.c:167 [inline]
 vfs_statx+0x16e/0x430 fs/stat.c:242
 vfs_fstatat+0x90/0xb0 fs/stat.c:276
 vfs_lstat include/linux/fs.h:2871 [inline]
 __do_sys_newlstat+0x84/0x100 fs/stat.c:432
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff93208b0a6
Code: ff ff ff 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 29 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 02 c3 90 48 c7 c2 b8 ff ff ff f7 d8 64 89 02
RSP: 002b:00007ffde52e4fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff93208b0a6
RDX: 00007ffde52e4ff0 RSI: 00007ffde52e4ff0 RDI: 00007ffde52e5080
RBP: 00007ffde52e5080 R08: 0000000000000001 R09: 00007ffde52e4e50
R10: 0000555556858893 R11: 0000000000000246 R12: 00007ff9320e6b24
R13: 00007ffde52e6140 R14: 0000555556858810 R15: 00007ffde52e6180
 </TASK>
task:syz-executor.3  state:R  running task     stack:28240 pid:2684  ppid:5119   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0xcce/0x5b20 kernel/sched/core.c:6622
 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:6934
 irqentry_exit+0x35/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:lock_acquire+0x227/0x670 kernel/locking/lockdep.c:5637
Code: 0a 9d 7e 83 f8 01 0f 85 76 03 00 00 9c 58 f6 c4 02 0f 85 61 03 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc900044ffa50 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff9200089ff4d RCX: 58cce5e7c8d5ebdc
RDX: 1ffff1100ebf7556 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff914d4b87
R10: fffffbfff229a970 R11: 0000000000000000 R12: 0000000000000002
R13: 0000000000000000 R14: ffffffff8c793380 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:327 [inline]
 rcu_read_lock include/linux/rcupdate.h:773 [inline]
 percpu_ref_put_many include/linux/percpu-refcount.h:330 [inline]
 percpu_ref_put include/linux/percpu-refcount.h:351 [inline]
 css_put include/linux/cgroup_refcnt.h:79 [inline]
 mem_cgroup_put include/linux/memcontrol.h:812 [inline]
 lru_gen_del_mm+0x57e/0x910 mm/vmscan.c:3416
 __mmput+0x398/0x4c0 kernel/fork.c:1219
 mmput+0x60/0x70 kernel/fork.c:1231
 exit_mm kernel/exit.c:563 [inline]
 do_exit+0x9d7/0x2a40 kernel/exit.c:856
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019
 get_signal+0x2315/0x25b0 kernel/signal.c:2859
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f01a868c0f9
RSP: 002b:00007f01a94cc218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f01a87abf88 RCX: 00007f01a868c0f9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f01a87abf88
RBP: 00007f01a87abf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f01a87abf8c
R13: 00007ffde60fa68f R14: 00007f01a94cc300 R15: 0000000000022000
 </TASK>
rcu: rcu_preempt kthread starved for 10490 jiffies! g271045 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:28440 pid:15    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0xcce/0x5b20 kernel/sched/core.c:6622
 schedule+0xde/0x1a0 kernel/sched/core.c:6698
 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1608
 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1807
 kthread+0x2e8/0x3a0 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:
CPU: 1 PID: 2683 Comm: syz-executor.1 Not tainted 6.2.0-syzkaller-12944-ge492250d5252 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x438/0x10a0 kernel/smp.c:987
Code: ff 41 83 e4 01 44 89 e6 e8 05 39 0b 00 45 85 e4 74 48 48 8b 04 24 49 89 c5 83 e0 07 49 c1 ed 03 49 89 c4 4d 01 fd 41 83 c4 03 <e8> 93 3c 0b 00 f3 90 41 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 4e
RSP: 0018:ffffc90004d875d8 EFLAGS: 00000202
RAX: 0000000000000002 RBX: ffff8880b98407c0 RCX: ffffffff8178e643
RDX: ffff888086c80200 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000003
R13: ffffed10173080f9 R14: 0000000000000001 R15: dffffc0000000000
FS:  00007fddd271a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32321000 CR3: 000000002c7e8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1155
 __purge_vmap_area_lazy+0x207/0x1f90 mm/vmalloc.c:1746
 _vm_unmap_aliases.part.0+0x474/0x5a0 mm/vmalloc.c:2206
 _vm_unmap_aliases mm/vmalloc.c:2180 [inline]
 vm_unmap_aliases+0x49/0x50 mm/vmalloc.c:2229
 change_page_attr_set_clr+0x226/0x470 arch/x86/mm/pat/set_memory.c:1837
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1885 [inline]
 set_memory_ro+0x7c/0xa0 arch/x86/mm/pat/set_memory.c:2076
 bpf_prog_lock_ro include/linux/filter.h:856 [inline]
 bpf_prog_select_runtime+0x508/0x650 kernel/bpf/core.c:2211
 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1298
 bpf_prepare_filter+0x183/0x370 net/core/filter.c:1346
 __get_filter+0x20a/0x2c0 net/core/filter.c:1515
 sk_attach_filter+0x20/0x170 net/core/filter.c:1530
 sk_setsockopt+0x1917/0x3c00 net/core/sock.c:1297
 __sys_setsockopt+0x500/0x5b0 net/socket.c:2270
 __do_sys_setsockopt net/socket.c:2285 [inline]
 __se_sys_setsockopt net/socket.c:2282 [inline]
 __x64_sys_setsockopt+0xbe/0x160 net/socket.c:2282
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fddd1a8c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fddd271a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fddd1babf80 RCX: 00007fddd1a8c0f9
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007fddd1ae7ae9 R08: 0000000000000010 R09: 0000000000000000
R10: 00000000200002c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe2edc4b3f R14: 00007fddd271a300 R15: 0000000000022000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/01 04:26 upstream e492250d5252 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in newlstat
* Struck through repros no longer work on HEAD.