------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 6222 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 Modules linked in: CPU: 1 PID: 6222 Comm: kworker/u4:7 Not tainted 6.3.0-rc4-syzkaller-g59caa87f9dfb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: writeback wb_workfn (flush-7:2) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 lr : __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 sp : ffff80001e397000 x29: ffff80001e397190 x28: dfff800000000000 x27: 1ffff000033dc2ac x26: ffff800019ee1000 x25: ffff700003c72e1c x24: 0000000000000000 x23: 0000000000000000 x22: ffff800009074108 x21: 0000000000000000 x20: 0000000000000000 x19: ffff00012ed9ea80 x18: 1fffe000368561b6 x17: ffff800015c7d000 x16: ffff800012323354 x15: 0000000000000000 x14: 0000000040000000 x13: 0000000000000002 x12: 0000000000000001 x11: ff808000080517c4 x10: 0000000040000000 x9 : 96b304028bb0b900 x8 : 96b304028bb0b900 x7 : 1fffe000368561b7 x6 : ffff800008285cb4 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff80001e396b40 x1 : 0000000000000000 x0 : ffff800008285d54 Call trace: __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 hfsplus_ext_write_extent+0x8c/0x1d8 fs/hfsplus/extents.c:149 hfsplus_write_inode+0x34/0x4dc fs/hfsplus/super.c:154 write_inode fs/fs-writeback.c:1453 [inline] __writeback_single_inode+0x5a8/0x1478 fs/fs-writeback.c:1665 writeback_sb_inodes+0x720/0xff8 fs/fs-writeback.c:1891 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2065 wb_do_writeback fs/fs-writeback.c:2208 [inline] wb_workfn+0x37c/0xf9c fs/fs-writeback.c:2248 process_one_work+0x788/0x12d4 kernel/workqueue.c:2390 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2537 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 8860501 hardirqs last enabled at (8860501): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (8860501): [] _raw_spin_unlock_irqrestore+0x44/0xa4 kernel/locking/spinlock.c:194 hardirqs last disabled at (8860500): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (8860500): [] _raw_spin_lock_irqsave+0x2c/0x88 kernel/locking/spinlock.c:162 softirqs last enabled at (8860430): [] spin_unlock_bh include/linux/spinlock.h:395 [inline] softirqs last enabled at (8860430): [] batadv_nc_purge_paths+0x2f4/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (8860428): [] spin_lock_bh include/linux/spinlock.h:355 [inline] softirqs last disabled at (8860428): [] batadv_nc_purge_paths+0xd0/0x378 net/batman-adv/network-coding.c:442 ---[ end trace 0000000000000000 ]---