rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P9760/1:b..l P9946/1:b..l rcu: (detected by 0, t=10503 jiffies, g=55189, q=238 ncpus=2) task:syz-executor.3 state:R running task stack:27280 pid:9946 tgid:9941 ppid:7043 flags:0x00000002 Call Trace: 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_acquire+0x1f2/0x560 kernel/locking/lockdep.c:5722 Code: c1 05 9a af 96 7e 83 f8 01 0f 85 ea 02 00 00 9c 58 f6 c4 02 0f 85 d5 02 00 00 48 85 ed 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:ffffc90003a57e08 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff9200074afc3 RCX: 00000000d439196c RDX: 0000000000000001 RSI: ffffffff8b2cb260 RDI: ffffffff8b900180 RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff284d658 R10: ffffffff9426b2c7 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8dbb1920 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] __task_pid_nr_ns+0x3f/0x500 kernel/pid.c:510 task_tgid_vnr include/linux/pid.h:294 [inline] __do_sys_getpid+0x1d/0x30 kernel/sys.c:969 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:0x7f69cf67a6e7 RSP: 002b:00007f69d0393cc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000027 RAX: ffffffffffffffda RBX: 00007f69d0393e30 RCX: 00007f69cf67a6e7 RDX: 00007f69d0393d00 RSI: 00007f69d0393e30 RDI: 0000000000000021 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000202 R12: 0000000000000073 R13: 00007f69d0394f40 R14: 9999999999999999 R15: 0000000000000000 task:syz-executor.0 state:R running task stack:23984 pid:9760 tgid:9760 ppid:9736 flags:0x00004002 Call Trace: 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_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:kasan_check_range+0x0/0x1a0 mm/kasan/generic.c:188 Code: d6 d4 ff ff 89 43 08 5b 5d 41 5c c3 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <66> 0f 1f 00 48 85 f6 0f 84 50 01 00 00 48 89 f8 41 54 44 0f b6 c2 RSP: 0018:ffffc90003376d78 EFLAGS: 00000246 RAX: 0000000000000008 RBX: ffff88805ee2c4b0 RCX: ffffffff8ad90ade RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88805ee2c4b0 RBP: 8080808080808080 R08: 0000000000000007 R09: 0000000000000010 R10: 000000000000000f R11: 0000000000000007 R12: 000000000000000f R13: fefefefefefefeff R14: ffff888016856fb8 R15: 0000000000000000 read_word_at_a_time+0xe/0x20 include/asm-generic/rwonce.h:85 sized_strscpy+0xae/0x290 lib/string.c:143 sized_strscpy include/linux/fortify-string.h:329 [inline] __update_page_owner_handle+0x256/0x320 mm/page_owner.c:251 __set_page_owner+0x13f/0x560 mm/page_owner.c:325 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x136a/0x2df0 mm/page_alloc.c:3402 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4660 alloc_pages_mpol_noprof+0x275/0x610 mm/mempolicy.c:2265 get_free_pages_noprof+0xc/0x40 mm/page_alloc.c:4707 selinux_genfs_get_sid security/selinux/hooks.c:1318 [inline] inode_doinit_with_dentry+0x8d3/0x12c0 security/selinux/hooks.c:1541 selinux_d_instantiate+0x26/0x30 security/selinux/hooks.c:6335 security_d_instantiate+0x57/0xf0 security/security.c:3916 d_instantiate+0x5c/0x90 fs/dcache.c:1878 debugfs_create_dir+0x1b5/0x5f0 fs/debugfs/inode.c:609 nsim_dev_port_debugfs_init+0x144/0x4e0 drivers/net/netdevsim/dev.c:400 __nsim_dev_port_add+0x402/0x7d0 drivers/net/netdevsim/dev.c:1386 nsim_dev_port_add_all drivers/net/netdevsim/dev.c:1446 [inline] nsim_drv_probe+0xdbf/0x1490 drivers/net/netdevsim/dev.c:1604 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:656 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:798 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:828 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:956 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:457 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1028 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:532 device_add+0x114b/0x1a70 drivers/base/core.c:3721 nsim_bus_dev_new drivers/net/netdevsim/bus.c:442 [inline] new_device_store+0x41d/0x730 drivers/net/netdevsim/bus.c:173 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x343/0x500 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6b6/0x1140 fs/read_write.c:590 ksys_write+0x12f/0x260 fs/read_write.c:643 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:0x7fab9d67bcaf RSP: 002b:00007ffd54580a60 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fab9d67bcaf RDX: 0000000000000003 RSI: 00007ffd54580ab0 RDI: 0000000000000005 RBP: 00007fab9d6da2ce R08: 0000000000000000 R09: 00007ffd545808b7 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 00007ffd54580ab0 R14: 00007fab9e2e4620 R15: 0000000000000003 rcu: rcu_preempt kthread starved for 10587 jiffies! g55189 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:27680 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0xf15/0x5d00 kernel/sched/core.c:6745 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6924 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x61/0x80 kernel/locking/spinlock.c:194 prepare_to_swait_event+0xf0/0x470 kernel/sched/swait.c:119 rcu_gp_fqs_loop+0x202/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 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 9950 Comm: syz-executor.1 Not tainted 6.10.0-rc2-syzkaller-00064-g71d7b52cc33b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202 Code: 90 f3 0f 1e fa 53 48 8b 74 24 08 48 89 fb 48 83 c7 18 e8 3a 48 80 f6 48 89 df e8 22 c5 80 f6 e8 cd b3 a9 f6 fb bf 01 00 00 00 42 07 72 f6 65 8b 05 d3 56 18 75 85 c0 74 06 5b c3 cc cc cc cc RSP: 0018:ffffc900033d7cf0 EFLAGS: 00000202 RAX: 000000000201d4f1 RBX: ffff888026aec0c0 RCX: 1ffffffff1fc8459 RDX: 0000000000000000 RSI: ffffffff8b2caf60 RDI: 0000000000000001 RBP: ffff888026aec4c0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff8fe46557 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000021 R14: ffff888026aec0c0 R15: ffff888026aec0c0 FS: 00007f37bd7ff6c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32a41000 CR3: 000000002d1d6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_irq include/linux/spinlock.h:401 [inline] get_signal+0x1e3e/0x2710 kernel/signal.c:2912 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x14a/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f37bdc7cf69 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:00007f37bd7ff0c8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 00007f37bddb4120 RCX: 00007f37bdc7cf69 RDX: 0000000000000000 RSI: 0000000000000090 RDI: 0000000020000140 RBP: 00007f37bdcda6fe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f37bddb4120 R15: 00007ffc8f5b01e8