syzbot


INFO: rcu detected stall in security_vm_enough_memory_mm

Status: auto-obsoleted due to no activity on 2025/04/28 08:17
Subsystems: selinux
[Documentation on labels]
First crash: 211d, last: 211d

Sample crash report:
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	(detected by 1, t=10502 jiffies, g=75573, q=279 ncpus=2)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4295020292-4295009790), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g75573 f0x2 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:27696 pid:17    tgid:17    ppid:2      task_flags:0x208040 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5377 [inline]
 __schedule+0xf43/0x5890 kernel/sched/core.c:6764
 __schedule_loop kernel/sched/core.c:6841 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6856
 schedule_timeout+0x124/0x280 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2024
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2226
 kthread+0x3af/0x750 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </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 UID: 0 PID: 14769 Comm: modprobe Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__lock_acquire+0xe6a/0x3c40 kernel/locking/lockdep.c:5242
Code: 0f b6 04 02 84 c0 74 0e 3c 03 7f 0a 48 8b 7c 24 30 e8 2a 5d 86 00 41 8b 85 e8 0a 00 00 83 c0 01 83 f8 2f 41 89 85 e8 0a 00 00 <0f> 87 93 05 00 00 39 05 aa b3 8e 14 0f 82 82 12 00 00 ba 01 00 00
RSP: 0018:ffffc90000007b48 EFLAGS: 00000093
RAX: 0000000000000002 RBX: ffff88802b4253ba RCX: 00000000d439196c
RDX: 1ffff11005684a6d RSI: 0000000000000001 RDI: ffffffff96ebbae8
RBP: ffffffff96ed0138 R08: 0000000000000000 R09: fffffbfff2dd7398
R10: ffffffff96eb9cc7 R11: 0000000000000001 R12: ffff88802b425391
R13: ffff88802b424880 R14: 0000000000000003 R15: ffff88802b425398
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffccb1e7ff8 CR3: 000000002f378000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 advance_sched+0x67f/0xc60 net/sched/sch_taprio.c:985
 __run_hrtimer kernel/time/hrtimer.c:1738 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1802
 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1864
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 d6 a2 3e f6 48 89 df e8 2e 22 3f f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 <bf> 01 00 00 00 e8 95 fa 2f f6 65 8b 05 16 e2 ab 74 85 c0 74 16 5b
RSP: 0018:ffffc900047af5e0 EFLAGS: 00000246
RAX: 0000000000000006 RBX: ffffffff9aa201c8 RCX: 1ffffffff2dda033
RDX: 0000000000000000 RSI: ffffffff8b6cd8e0 RDI: ffffffff8bd2fec0
RBP: 0000000000000206 R08: 0000000000000001 R09: fffffbfff2dd739f
R10: ffffffff96eb9cff R11: 0000000000000002 R12: 00000000000000c4
R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000206
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 avc_reclaim_node security/selinux/avc.c:488 [inline]
 avc_alloc_node+0x365/0x5a0 security/selinux/avc.c:507
 avc_update_node security/selinux/avc.c:841 [inline]
 avc_denied+0x137/0x780 security/selinux/avc.c:1007
 avc_perm_nonode+0x15a/0x180 security/selinux/avc.c:1120
 avc_has_perm_noaudit+0x2d2/0x3a0 security/selinux/avc.c:1160
 cred_has_capability security/selinux/hooks.c:1650 [inline]
 selinux_vm_enough_memory+0x12b/0x1a0 security/selinux/hooks.c:2218
 security_vm_enough_memory_mm+0x93/0x110 security/security.c:1230
 __mmap_prepare mm/vma.c:2264 [inline]
 __mmap_region+0x13ac/0x2760 mm/vma.c:2444
 mmap_region+0x1ab/0x3f0 mm/vma.c:2535
 do_mmap+0xd8d/0x11b0 mm/mmap.c:561
 vm_mmap_pgoff+0x203/0x3a0 mm/util.c:575
 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:607
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline]
 __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82
 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:0x7fa12ed6db74
Code: 63 08 44 89 e8 5b 41 5c 41 5d c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 0c c7 05 f5 46 01 00 16 00 00 00 eb 17 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 dc 46 01 00 48 83 c8 ff c3 0f
RSP: 002b:00007ffccb1e8068 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000292 RCX: 00007fa12ed6db74
RDX: 0000000000000003 RSI: 0000000000002000 RDI: 0000000000000000
RBP: 0000000000002000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000004 R15: 00007ffccb1e8090
 </TASK>
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available
IPVS: lblc: UDP 224.0.0.2:0 - no destination available

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/28 08:11 upstream 9c5968db9e62 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in security_vm_enough_memory_mm
* Struck through repros no longer work on HEAD.