rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: (detected by 1, t=10502 jiffies, g=494093, q=189) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4295213387-4295202885), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g494093 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:28864 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4681 [inline] __schedule+0x93a/0x26f0 kernel/sched/core.c:5938 schedule+0xd3/0x270 kernel/sched/core.c:6017 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881 rcu_gp_fqs_loop kernel/rcu/tree.c:1996 [inline] rcu_gp_kthread+0xd34/0x1980 kernel/rcu/tree.c:2169 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 29779 Comm: syz-executor.3 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:110 Code: c7 00 27 ec 8e e8 98 47 89 00 eb b0 66 0f 1f 44 00 00 be 01 00 00 00 e9 e6 fb 2c 00 cc cc cc cc cc cc 89 ff 89 b7 00 c0 5f ff 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 48 RSP: 0018:ffffc90000007fd0 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffffffff8b315a60 RCX: 1ffff11017383f0c RDX: 1ffffffff1662b4c RSI: 0000000000000000 RDI: 00000000000000b0 RBP: 0000000000000000 R08: ffffffff8eecd018 R09: ffffffff8eecd00f R10: ffffffff8eecd017 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f30df48f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005130b0 CR3: 000000005fefc000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: apic_eoi arch/x86/include/asm/apic.h:399 [inline] ack_APIC_irq arch/x86/include/asm/apic.h:445 [inline] __sysvec_apic_timer_interrupt+0x79/0x530 arch/x86/kernel/apic/apic.c:1104 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x3ba/0xb40 kernel/locking/qspinlock.c:508 Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 72 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f RSP: 0018:ffffc900017bf1c0 EFLAGS: 00000206 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffff11004ff9e20 RDX: 0000000000000001 RSI: ffffffff817bd251 RDI: ffffffff81332591 RBP: ffff888027fcf100 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817bd219 R11: 0000000000000000 R12: 0000000000003dc7 R13: ffffed1004ff9e20 R14: 0000000000000001 R15: ffff8880b9c52900 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113 spin_lock include/linux/spinlock.h:354 [inline] ext4_lock_group+0x1e5/0x240 fs/ext4/ext4.h:3456 ext4_mb_mark_diskspace_used+0x541/0x1230 fs/ext4/mballoc.c:3766 ext4_mb_new_blocks+0xd30/0x5230 fs/ext4/mballoc.c:5533 ext4_ext_map_blocks+0x1fa3/0x6070 fs/ext4/extents.c:4245 ext4_map_blocks+0x653/0x17d0 fs/ext4/inode.c:638 ext4_alloc_file_blocks.isra.0+0x2c1/0xae0 fs/ext4/extents.c:4432 ext4_fallocate+0x45e/0x3ff0 fs/ext4/extents.c:4712 vfs_fallocate+0x48d/0xd80 fs/open.c:311 ioctl_preallocate+0x18e/0x200 fs/ioctl.c:497 file_ioctl fs/ioctl.c:537 [inline] do_vfs_ioctl+0x1144/0x15d0 fs/ioctl.c:1048 __do_sys_ioctl fs/ioctl.c:1067 [inline] __se_sys_ioctl fs/ioctl.c:1055 [inline] __x64_sys_ioctl+0x108/0x200 fs/ioctl.c:1055 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f30df48f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000020000040 RSI: 000000004030582a RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff9c84f78f R14: 00007f30df48f300 R15: 0000000000022000 ================================ WARNING: inconsistent lock state 5.14.0-rc6-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage. syz-executor.1/29781 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: print_other_cpu_stall kernel/rcu/tree_stall.h:543 [inline] ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: check_cpu_stall kernel/rcu/tree_stall.h:709 [inline] ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: rcu_pending kernel/rcu/tree.c:3922 [inline] ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: rcu_sched_clock_irq+0xc9a/0x20c0 kernel/rcu/tree.c:2641 {IN-HARDIRQ-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:159 rcu_report_exp_cpu_mult+0x1c/0x280 kernel/rcu/tree_exp.h:237 flush_smp_call_function_queue+0x34b/0x640 kernel/smp.c:663 __sysvec_call_function_single+0x95/0x3d0 arch/x86/kernel/smp.c:248 sysvec_call_function_single+0x8e/0xc0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:646 rmqueue_pcplist mm/page_alloc.c:3678 [inline] rmqueue mm/page_alloc.c:3704 [inline] get_page_from_freelist+0x8c1/0x2f80 mm/page_alloc.c:4166 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5391 alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2244 __get_free_pages mm/page_alloc.c:5428 [inline] get_zeroed_page+0x10/0x40 mm/page_alloc.c:5437 pud_alloc_one include/asm-generic/pgalloc.h:166 [inline] __pud_alloc+0x37/0x170 mm/memory.c:4841 pud_alloc include/linux/mm.h:2167 [inline] __handle_mm_fault+0x5fd/0x5320 mm/memory.c:4628 handle_mm_fault+0x1c8/0x790 mm/memory.c:4791 faultin_page mm/gup.c:951 [inline] __get_user_pages+0x503/0xf70 mm/gup.c:1173 __get_user_pages_locked mm/gup.c:1359 [inline] __get_user_pages_remote+0x18f/0x840 mm/gup.c:1868 get_user_pages_remote+0x63/0x90 mm/gup.c:1941 get_arg_page+0xba/0x200 fs/exec.c:220 copy_string_kernel+0x1b4/0x520 fs/exec.c:631 kernel_execve+0x25c/0x460 fs/exec.c:1961 call_usermodehelper_exec_async+0x2e3/0x580 kernel/umh.c:112 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 irq event stamp: 9674389 hardirqs last enabled at (9674388): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 hardirqs last disabled at (9674389): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1100 softirqs last enabled at (6476068): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last enabled at (6476068): [] __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636 softirqs last disabled at (6476071): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (6476071): [] __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rcu_node_0); lock(rcu_node_0); *** DEADLOCK *** 7 locks held by syz-executor.1/29781: #0: ffff8880286e4460 (sb_writers#5){.+.+}-{0:0}, at: ioctl_preallocate+0x18e/0x200 fs/ioctl.c:497 #1: ffff8880851e3660 (&sb->s_type->i_mutex_key#10){++++}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #1: ffff8880851e3660 (&sb->s_type->i_mutex_key#10){++++}-{3:3}, at: ext4_fallocate+0x332/0x3ff0 fs/ext4/extents.c:4690 #2: ffff8880851e3450 (&ei->i_data_sem){++++}-{3:3}, at: ext4_map_blocks+0x5e1/0x17d0 fs/ext4/inode.c:631 #3: ffff888027fcf118 (&bgl->locks[i].lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #3: ffff888027fcf118 (&bgl->locks[i].lock){+.+.}-{2:2}, at: ext4_lock_group fs/ext4/ext4.h:3456 [inline] #3: ffff888027fcf118 (&bgl->locks[i].lock){+.+.}-{2:2}, at: ext4_mb_regular_allocator+0x1977/0x3870 fs/ext4/mballoc.c:2740 #4: ffffffff8b97c280 (rcu_read_lock){....}-{1:2}, at: ieee80211_iterate_active_interfaces_atomic+0x0/0x180 net/mac80211/util.c:1237 #5: ffffffff8c77dd38 (hwsim_radio_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffffffff8c77dd38 (hwsim_radio_lock){+.-.}-{2:2}, at: mac80211_hwsim_tx_frame_no_nl.isra.0+0x68f/0x1330 drivers/net/wireless/mac80211_hwsim.c:1516 #6: ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: print_other_cpu_stall kernel/rcu/tree_stall.h:543 [inline] #6: ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: check_cpu_stall kernel/rcu/tree_stall.h:709 [inline] #6: ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: rcu_pending kernel/rcu/tree.c:3922 [inline] #6: ffffffff8b9850d8 (rcu_node_0){?.-.}-{2:2}, at: rcu_sched_clock_irq+0xc9a/0x20c0 kernel/rcu/tree.c:2641 stack backtrace: CPU: 1 PID: 29781 Comm: syz-executor.1 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105 print_usage_bug kernel/locking/lockdep.c:203 [inline] valid_state kernel/locking/lockdep.c:3933 [inline] mark_lock_irq kernel/locking/lockdep.c:4136 [inline] mark_lock.cold+0x61/0x8e kernel/locking/lockdep.c:4593 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4194 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4212 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4280 [inline] lockdep_hardirqs_on_prepare+0x135/0x400 kernel/locking/lockdep.c:4232 trace_hardirqs_on+0x5b/0x1c0 kernel/trace/trace_preemptirq.c:49 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:mac80211_hwsim_tx_frame_no_nl.isra.0+0x749/0x1330 drivers/net/wireless/mac80211_hwsim.c:1524 Code: ed 27 43 fc 48 89 d8 48 c1 e8 03 80 3c 28 00 0f 85 93 09 00 00 48 8b 1b 48 81 fb e0 dc 77 8c 0f 84 f7 04 00 00 e8 c7 27 43 fc <49> 39 de 4c 89 ac 24 90 00 00 00 c6 84 24 98 00 00 00 00 74 bb e8 RSP: 0018:ffffc90000dc0ba0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88802f26b2a0 RCX: 0000000000000100 RDX: ffff88801834b880 RSI: ffffffff85328139 RDI: 0000000000000003 RBP: dffffc0000000000 R08: 000000000000000a R09: 0000000000000000 R10: ffffffff85328189 R11: 0000000000000000 R12: ffff88807348b500 R13: ffff888068fd34d0 R14: ffff888068fd32a0 R15: 0000000000000000 mac80211_hwsim_tx_frame+0x1ee/0x2a0 drivers/net/wireless/mac80211_hwsim.c:1784 mac80211_hwsim_beacon_tx+0x49b/0x930 drivers/net/wireless/mac80211_hwsim.c:1838 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xd5/0x1a0 drivers/net/wireless/mac80211_hwsim.c:1861 __run_hrtimer kernel/time/hrtimer.c:1537 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1601 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1618 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0xde/0x180 mm/kasan/generic.c:189 Code: 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 48 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00 <74> f2 eb d4 41 bc 08 00 00 00 48 89 ea 45 29 dc 4d 8d 1c 2c eb 0c RSP: 0018:ffffc9000193ef80 EFLAGS: 00000246 RAX: ffffed1002d0b538 RBX: ffffed1002d0b539 RCX: ffffffff8212b788 RDX: ffffed1002d0b539 RSI: 0000000000000008 RDI: ffff88801685a9c0 RBP: ffffed1002d0b538 R08: 0000000000000000 R09: ffff88801685a9c7 R10: ffffed1002d0b538 R11: 0000000000000000 R12: ffffc9000193f388 R13: 0000000000000003 R14: 0000000000000002 R15: ffff88801685a800 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] test_bit_le include/asm-generic/bitops/le.h:85 [inline] mb_test_bit fs/ext4/mballoc.c:461 [inline] mb_find_order_for_block+0x228/0x2d0 fs/ext4/mballoc.c:1634 mb_mark_used+0x49c/0xdc0 fs/ext4/mballoc.c:1959 ext4_mb_use_best_found+0x207/0x8e0 fs/ext4/mballoc.c:2015 ext4_mb_simple_scan_group+0x39f/0x6c0 fs/ext4/mballoc.c:2293 ext4_mb_regular_allocator+0x1a76/0x3870 fs/ext4/mballoc.c:2755 ext4_mb_new_blocks+0x24d4/0x5230 fs/ext4/mballoc.c:5515 ext4_ext_map_blocks+0x1fa3/0x6070 fs/ext4/extents.c:4245 ext4_map_blocks+0x653/0x17d0 fs/ext4/inode.c:638 ext4_alloc_file_blocks.isra.0+0x2c1/0xae0 fs/ext4/extents.c:4432 ext4_fallocate+0x45e/0x3ff0 fs/ext4/extents.c:4712 vfs_fallocate+0x48d/0xd80 fs/open.c:311 ioctl_preallocate+0x18e/0x200 fs/ioctl.c:497 file_ioctl fs/ioctl.c:537 [inline] do_vfs_ioctl+0x1144/0x15d0 fs/ioctl.c:1048 __do_sys_ioctl fs/ioctl.c:1067 [inline] __se_sys_ioctl fs/ioctl.c:1055 [inline] __x64_sys_ioctl+0x108/0x200 fs/ioctl.c:1055 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2f9e27a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000020000040 RSI: 000000004030582a RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fffb380c57f R14: 00007f2f9e27a300 R15: 0000000000022000 softirq: huh, entered softirq 8 HRTIMER ffffffff81657620 with preempt_count 00000101, exited with 00000102? ---------------- Code disassembly (best guess): 0: c7 00 27 ec 8e e8 movl $0xe88eec27,(%rax) 6: 98 cwtl 7: 47 89 00 rex.RXB mov %r8d,(%r8) a: eb b0 jmp 0xffffffbc c: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 12: be 01 00 00 00 mov $0x1,%esi 17: e9 e6 fb 2c 00 jmpq 0x2cfc02 1c: cc int3 1d: cc int3 1e: cc int3 1f: cc int3 20: cc int3 21: cc int3 22: 89 ff mov %edi,%edi 24: 89 b7 00 c0 5f ff mov %esi,-0xa04000(%rdi) * 2a: c3 retq <-- trapping instruction 2b: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 32: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 39: fc ff df 3c: 53 push %rbx 3d: 89 fb mov %edi,%ebx 3f: 48 rex.W