------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 12 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1a3e/0x2530 kernel/locking/mutex.c:582 Modules linked in: CPU: 1 PID: 12 Comm: kworker/u4:1 Not tainted 6.5.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:__mutex_lock_common+0x1a3e/0x2530 kernel/locking/mutex.c:582 Code: 04 28 84 c0 0f 85 82 08 00 00 83 3d 73 da d2 03 00 0f 85 00 e7 ff ff 48 c7 c7 00 83 0a 8b 48 c7 c6 a0 83 0a 8b e8 02 02 8d f6 <0f> 0b e9 e6 e6 ff ff e8 16 b7 3a f6 e9 59 fb ff ff 0f 0b e9 bd f0 RSP: 0018:ffffc900001171e0 EFLAGS: 00010246 RAX: 25182448ad956b00 RBX: 0000000000000000 RCX: ffff888016a6d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000117360 R08: ffffffff8152d442 R09: 1ffff92000022db4 R10: dffffc0000000000 R11: fffff52000022db5 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556816938 CR3: 0000000037159000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 hfsplus_ext_write_extent+0x8e/0x1f0 fs/hfsplus/extents.c:149 hfsplus_write_inode+0x22/0x5e0 fs/hfsplus/super.c:154 write_inode fs/fs-writeback.c:1456 [inline] __writeback_single_inode+0x69b/0xfa0 fs/fs-writeback.c:1668 writeback_sb_inodes+0x8e3/0x11d0 fs/fs-writeback.c:1894 wb_writeback+0x44d/0xc60 fs/fs-writeback.c:2070 wb_do_writeback fs/fs-writeback.c:2217 [inline] wb_workfn+0x400/0xff0 fs/fs-writeback.c:2257 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304