------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 8019 at kernel/locking/mutex.c:575 __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 Modules linked in: CPU: 1 PID: 8019 Comm: syz-executor.4 Not tainted 5.15.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 lr : __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 sp : ffff80001f387640 x29: ffff80001f3877c0 x28: dfff800000000000 x27: 1ffff000030803ac x26: ffff800018401000 x25: ffff700003e70ee4 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800008d03000 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000ca36f828 x18: 0000000000000001 x17: ff80800008335eb0 x16: ffff800011967f54 x15: ffff800008335eb0 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000001e8d x10: ffff80001ef71000 x9 : ba3b658fcb70f400 x8 : ba3b658fcb70f400 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001f386db8 x4 : ffff8000149efca0 x3 : ffff80000854e4f0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000028 Call trace: __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_fileattr_set+0x7c/0x420 fs/reiserfs/ioctl.c:34 vfs_fileattr_set+0x70c/0xad4 fs/ioctl.c:700 do_vfs_ioctl+0x1634/0x2a38 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 4045 hardirqs last enabled at (4045): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (4044): [] kasan_quarantine_put+0x9c/0x204 mm/kasan/quarantine.c:204 softirqs last enabled at (4028): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (4026): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace b7664dbcafe4fe95 ]--- ================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9 index 664 is out of range for type 'unsigned long[8]' CPU: 1 PID: 8019 Comm: syz-executor.4 Tainted: G W 5.15.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 decode_tail kernel/locking/qspinlock.c:130 [inline] queued_spin_lock_slowpath+0x854/0x938 kernel/locking/qspinlock.c:468 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x334/0x35c kernel/locking/spinlock_debug.c:115 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0xb8/0x10c kernel/locking/spinlock.c:154 __mutex_lock_common+0x380/0x2154 kernel/locking/mutex.c:608 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_fileattr_set+0x7c/0x420 fs/reiserfs/ioctl.c:34 vfs_fileattr_set+0x70c/0xad4 fs/ioctl.c:700 do_vfs_ioctl+0x1634/0x2a38 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ Unable to handle kernel paging request at virtual address ffff800014873b20 Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047 CM = 0, WnR = 1 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001b4933000 [ffff800014873b20] pgd=100000023ffff003, p4d=100000023ffff003, pud=100000023fffe003, pmd=100000023fff9003, pte=0000000000000000 Internal error: Oops: 96000047 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 8019 Comm: syz-executor.4 Tainted: G W 5.15.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x36c/0x938 kernel/locking/qspinlock.c:471 lr : decode_tail kernel/locking/qspinlock.c:130 [inline] lr : queued_spin_lock_slowpath+0x854/0x938 kernel/locking/qspinlock.c:468 sp : ffff80001f387420 x29: ffff80001f3874c0 x28: 1ffff00003e70e90 x27: 0000000000000000 x26: dfff800000000000 x25: ffff700003e70e88 x24: 0000000000080000 x23: ffff800014873b20 x22: ffff0001b4828b08 x21: ffff0001b4828b00 x20: ffff800014873b20 x19: ffff0000ca36f830 x18: 0000000000000003 x17: ff80800008335eb0 x16: 0000000000000002 x15: ffff800008335eb0 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000001cd17 x10: ffff800014873b00 x9 : 0000000000000002 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001f386b18 x4 : ffff8000149efca0 x3 : ffff80000819b8b0 x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff0001b4828b08 Call trace: queued_spin_lock_slowpath+0x36c/0x938 kernel/locking/qspinlock.c:474 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x334/0x35c kernel/locking/spinlock_debug.c:115 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0xb8/0x10c kernel/locking/spinlock.c:154 __mutex_lock_common+0x380/0x2154 kernel/locking/mutex.c:608 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_fileattr_set+0x7c/0x420 fs/reiserfs/ioctl.c:34 vfs_fileattr_set+0x70c/0xad4 fs/ioctl.c:700 do_vfs_ioctl+0x1634/0x2a38 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1703e0 94171a9e aa1603e0 52800081 (f90002f5) ---[ end trace b7664dbcafe4fe96 ]--- ---------------- Code disassembly (best guess): 0: aa1703e0 mov x0, x23 4: 94171a9e bl 0x5c6a7c 8: aa1603e0 mov x0, x22 c: 52800081 mov w1, #0x4 // #4 * 10: f90002f5 str x21, [x23] <-- trapping instruction