BUG: scheduling while atomic: syz-executor.3/14137/0x00000002 Modules linked in: Preemption disabled at: [] percpu_counter_add_batch+0x33/0x160 lib/percpu_counter.c:86 CPU: 1 PID: 14137 Comm: syz-executor.3 Tainted: G W 6.1.75-syzkaller-00066-gd0c6724b0f6f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 io_schedule+0x8f/0x120 kernel/sched/core.c:8984 bit_wait_io+0x15/0xd0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0x227/0x620 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0x1ab/0x230 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer+0x65/0x80 fs/buffer.c:70 lock_buffer include/linux/buffer_head.h:397 [inline] ext4_quota_write+0x362/0x560 fs/ext4/super.c:7137 qtree_write_dquot+0x239/0x530 fs/quota/quota_tree.c:431 v2_write_dquot+0x123/0x190 fs/quota/quota_v2.c:358 dquot_commit+0x3c3/0x520 fs/quota/dquot.c:512 ext4_write_dquot+0x1e7/0x2b0 fs/ext4/super.c:6740 ext4_mark_dquot_dirty+0xea/0x150 fs/ext4/super.c:6788 mark_dquot_dirty fs/quota/dquot.c:372 [inline] mark_all_dquot_dirty fs/quota/dquot.c:410 [inline] __dquot_alloc_space+0x52e/0xc00 fs/quota/dquot.c:1792 dquot_alloc_space_nodirty include/linux/quotaops.h:300 [inline] dquot_alloc_space include/linux/quotaops.h:313 [inline] dquot_alloc_block include/linux/quotaops.h:337 [inline] ext4_xattr_block_set+0x1d5d/0x3760 fs/ext4/xattr.c:2028 ext4_xattr_set_handle+0xdac/0x1560 fs/ext4/xattr.c:2406 ext4_initxattrs+0xa7/0x120 fs/ext4/xattr_security.c:44 security_inode_init_security+0x252/0x390 security/security.c:1133 ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:58 __ext4_new_inode+0x31ef/0x40a0 fs/ext4/ialloc.c:1328 ext4_mkdir+0x421/0xce0 fs/ext4/namei.c:3017 vfs_mkdir+0x398/0x570 fs/namei.c:4113 do_mkdirat+0x1eb/0x450 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f20e5c7dea9 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:00007f20e6a4d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f20e5dac120 RCX: 00007f20e5c7dea9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007f20e5cca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f20e5dac120 R15: 00007ffe8a7c8408