============================= [ BUG: Invalid wait context ] 6.12.0-rc5-next-20241101-syzkaller #0 Not tainted ----------------------------- syz-executor/7980 is trying to lock: ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2328 [inline] ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022 other info that might help us debug this: context-{2:2} 4 locks held by syz-executor/7980: #0: ffff88807cba80e0 (&type->s_umount_key#31){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88807cba80e0 (&type->s_umount_key#31){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88807cba80e0 (&type->s_umount_key#31){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff88801baee948 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x7a/0x160 fs/kernfs/dir.c:1689 #2: ffffffff8e939ee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8e939ee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8e939ee0 (rcu_read_lock){....}-{1:3}, at: kernfs_should_drain_open_files+0x6b/0x320 fs/kernfs/file.c:784 #3: ffff8880b8644818 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #3: ffff8880b8644818 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3051 [inline] #3: ffff8880b8644818 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3095 [inline] #3: ffff8880b8644818 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7e2/0x3870 mm/page_alloc.c:3492 stack backtrace: CPU: 0 UID: 0 PID: 7980 Comm: syz-executor Not tainted 6.12.0-rc5-next-20241101-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 rmqueue_bulk mm/page_alloc.c:2328 [inline] __rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022 rmqueue_pcplist mm/page_alloc.c:3064 [inline] rmqueue mm/page_alloc.c:3095 [inline] get_page_from_freelist+0x895/0x3870 mm/page_alloc.c:3492 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4771 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 stack_depot_save_flags+0x666/0x830 lib/stackdepot.c:627 kasan_save_stack+0x4f/0x60 mm/kasan/common.c:48 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:544 task_work_add+0xd9/0x490 kernel/task_work.c:77 __run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1219 [inline] run_posix_cpu_timers+0x6ac/0x810 kernel/time/posix-cpu-timers.c:1418 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x37c/0x500 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1691 [inline] __hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:get_current arch/x86/include/asm/current.h:49 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:216 Code: 8b 3d 54 d4 9b 0c 48 89 de 5b e9 33 2d 5e 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 c0 d4 03 00 65 8b 15 b0 16 6e 7e 81 e2 00 01 ff 00 RSP: 0018:ffffc90003ef79d0 EFLAGS: 00000246 RAX: ffffffff823e6e3f RBX: 0000000000000001 RCX: ffff8880277e1e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff823e6df6 R09: 1ffffffff285a308 R10: dffffc0000000000 R11: fffffbfff285a309 R12: ffff88805b1c13c0 R13: ffff88805b1c13c4 R14: ffffffff823e6d1b R15: 0000000000000000 kernfs_should_drain_open_files+0x18f/0x320 fs/kernfs/file.c:786 kernfs_drain+0x289/0x6d0 fs/kernfs/dir.c:494 __kernfs_remove+0x400/0x870 fs/kernfs/dir.c:1486 kernfs_remove_by_name_ns+0xdc/0x160 fs/kernfs/dir.c:1694 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfe/0x2c0 fs/sysfs/group.c:319 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:343 __kobject_del+0x84/0x310 lib/kobject.c:595 kobject_del+0x45/0x60 lib/kobject.c:627 ext4_put_super+0x81/0xd50 fs/ext4/super.c:1293 generic_shutdown_super+0x139/0x2d0 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1710 ext4_kill_sb+0x68/0xa0 fs/ext4/super.c:7328 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x24f/0x310 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd2fbb7fa47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe895357f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd2fbb7fa47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe895358b0 RBP: 00007ffe895358b0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe89536930 R13: 00007fd2fbbf11cc R14: 000000000005da16 R15: 00007ffe89536970 ---------------- Code disassembly (best guess): 0: 8b 3d 54 d4 9b 0c mov 0xc9bd454(%rip),%edi # 0xc9bd45a 6: 48 89 de mov %rbx,%rsi 9: 5b pop %rbx a: e9 33 2d 5e 00 jmp 0x5e2d42 f: 0f 1f 00 nopl (%rax) 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: f3 0f 1e fa endbr64 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0c 25 c0 d4 mov %gs:0x3d4c0,%rcx <-- trapping instruction 31: 03 00 33: 65 8b 15 b0 16 6e 7e mov %gs:0x7e6e16b0(%rip),%edx # 0x7e6e16ea 3a: 81 e2 00 01 ff 00 and $0xff0100,%edx