BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 23, name: ksoftirqd/1 preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 no locks held by ksoftirqd/1/23. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:420 [inline] [] handle_softirqs+0xe8/0xc88 kernel/softirq.c:555 CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 __might_resched+0x348/0x4c4 kernel/sched/core.c:8800 __might_sleep+0x94/0x110 kernel/sched/core.c:8729 down_write+0x28/0xc0 kernel/locking/rwsem.c:1576 inode_lock include/linux/fs.h:869 [inline] jfs_fsync+0x9c/0x1d0 fs/jfs/file.c:28 vfs_fsync_range+0x160/0x19c fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] dio_complete+0x510/0x6bc fs/direct-io.c:313 dio_bio_end_aio+0x474/0x544 fs/direct-io.c:368 bio_endio+0x804/0x840 block/bio.c:1645 blk_update_request+0x4a4/0xbcc block/blk-mq.c:987 blk_mq_end_request+0x54/0x88 block/blk-mq.c:1149 lo_complete_rq+0x124/0x274 drivers/block/loop.c:304 blk_complete_reqs block/blk-mq.c:1224 [inline] blk_done_softirq+0x11c/0x168 block/blk-mq.c:1229 handle_softirqs+0x328/0xc88 kernel/softirq.c:579 run_ksoftirqd+0x70/0xc0 kernel/softirq.c:968 smpboot_thread_fn+0x4d8/0x9cc kernel/smpboot.c:164 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 ============================= [ BUG: Invalid wait context ] 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 Tainted: G W ----------------------------- ksoftirqd/1/23 is trying to lock: ffff0000ed16a120 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] ffff0000ed16a120 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: jfs_fsync+0x9c/0x1d0 fs/jfs/file.c:28 other info that might help us debug this: context-{3:3} no locks held by ksoftirqd/1/23. stack backtrace: CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Tainted: G W 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_lock_invalid_wait_context kernel/locking/lockdep.c:4833 [inline] check_wait_context kernel/locking/lockdep.c:4905 [inline] __lock_acquire+0xaec/0x30a4 kernel/locking/lockdep.c:5190 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5871 down_write+0x50/0xc0 kernel/locking/rwsem.c:1577 inode_lock include/linux/fs.h:869 [inline] jfs_fsync+0x9c/0x1d0 fs/jfs/file.c:28 vfs_fsync_range+0x160/0x19c fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] dio_complete+0x510/0x6bc fs/direct-io.c:313 dio_bio_end_aio+0x474/0x544 fs/direct-io.c:368 bio_endio+0x804/0x840 block/bio.c:1645 blk_update_request+0x4a4/0xbcc block/blk-mq.c:987 blk_mq_end_request+0x54/0x88 block/blk-mq.c:1149 lo_complete_rq+0x124/0x274 drivers/block/loop.c:304 blk_complete_reqs block/blk-mq.c:1224 [inline] blk_done_softirq+0x11c/0x168 block/blk-mq.c:1229 handle_softirqs+0x328/0xc88 kernel/softirq.c:579 run_ksoftirqd+0x70/0xc0 kernel/softirq.c:968 smpboot_thread_fn+0x4d8/0x9cc kernel/smpboot.c:164 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844