BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 4419, name: jbd2/sda1-8 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 1 lock held by jbd2/sda1-8/4419: #0: ffffffff8c799a40 ( rcu_read_lock){....}-{1:2} , at: lru_gen_refault mm/workingset.c:293 [inline] , at: workingset_refault+0x175/0x11e0 mm/workingset.c:528 CPU: 1 PID: 4419 Comm: jbd2/sda1-8 Not tainted 6.3.0-next-20230505-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106 __might_resched+0x358/0x580 kernel/sched/core.c:10153 might_alloc include/linux/sched/mm.h:306 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc+0x357/0x3b0 mm/slub.c:3475 kmem_cache_zalloc include/linux/slab.h:670 [inline] alloc_buffer_head+0x24/0x150 fs/buffer.c:2974 folio_alloc_buffers+0x2f2/0x810 fs/buffer.c:871 alloc_page_buffers fs/buffer.c:906 [inline] grow_dev_page fs/buffer.c:1014 [inline] grow_buffers fs/buffer.c:1060 [inline] __getblk_slow+0x612/0x1230 fs/buffer.c:1087 __getblk_gfp+0x72/0x80 fs/buffer.c:1382 __getblk include/linux/buffer_head.h:420 [inline] jbd2_journal_get_descriptor_buffer+0x10e/0x410 fs/jbd2/journal.c:1021 journal_submit_commit_record.part.0+0x8b/0x9e0 fs/jbd2/commit.c:129 journal_submit_commit_record fs/jbd2/commit.c:126 [inline] jbd2_journal_commit_transaction+0x3962/0x6200 fs/jbd2/commit.c:884 kjournald2+0x1d4/0x890 fs/jbd2/journal.c:209 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308