BUG: scheduling while atomic: syz-executor.4/9375/0x00000002 Modules linked in: Preemption disabled at: [] percpu_counter_add_batch+0x33/0x160 lib/percpu_counter.c:86 CPU: 0 PID: 9375 Comm: syz-executor.4 Not tainted 6.1.75-syzkaller-00017-gca4095789fda #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_free_space+0x97a/0xcf0 fs/quota/dquot.c:1977 dquot_free_space_nodirty include/linux/quotaops.h:379 [inline] dquot_free_space include/linux/quotaops.h:384 [inline] dquot_free_block include/linux/quotaops.h:395 [inline] ext4_xattr_block_set+0x1f81/0x3760 fs/ext4/xattr.c:2053 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:0x7f2f1b07c967 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 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:00007f2f1bd73ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f2f1bd73f80 RCX: 00007f2f1b07c967 RDX: 00000000000001ff RSI: 0000000020000040 RDI: 00000000ffffff9c RBP: 0000000020000140 R08: 00000000200000c0 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000020000040 R13: 00007f2f1bd73f40 R14: 0000000000000000 R15: 0000000000000000