------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 5244 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1a3e/0x2530 kernel/locking/mutex.c:582 Modules linked in: CPU: 0 PID: 5244 Comm: kworker/u4:7 Not tainted 6.2.0-rc7-syzkaller-00199-g420b2d431d18 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: writeback wb_workfn (flush-7:4) 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 53 a4 a1 03 00 0f 85 00 e7 ff ff 48 c7 c7 c0 57 ea 8a 48 c7 c6 60 58 ea 8a e8 d2 e7 a3 f6 <0f> 0b e9 e6 e6 ff ff e8 d6 76 51 f6 e9 59 fb ff ff 0f 0b e9 bd f0 RSP: 0018:ffffc900051c7200 EFLAGS: 00010246 RAX: a47e29ccc4df4e00 RBX: 0000000000000000 RCX: ffff888018f69d40 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc900051c7380 R08: ffffffff816ef9ec R09: fffff52000a38db9 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff67addcfc0 CR3: 0000000043ca7000 CR4: 00000000003506f0 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:1451 [inline] __writeback_single_inode+0x7f9/0x1550 fs/fs-writeback.c:1663 writeback_sb_inodes+0x947/0x1360 fs/fs-writeback.c:1889 wb_writeback+0x4ed/0x1030 fs/fs-writeback.c:2063 wb_do_writeback fs/fs-writeback.c:2206 [inline] wb_workfn+0x470/0x10e0 fs/fs-writeback.c:2246 process_one_work+0x8fa/0x1370 kernel/workqueue.c:2289 worker_thread+0xa63/0x1210 kernel/workqueue.c:2436 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308