loop4: detected capacity change from 0 to 32768 ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 0 PID: 20210 at kernel/locking/mutex.c:575 __mutex_lock_common+0x1614/0x2154 kernel/locking/mutex.c:575 Modules linked in: CPU: 0 PID: 20210 Comm: syz.4.7238 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 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 : ffff8000209072c0 x29: ffff800020907450 x28: dfff800000000000 x27: 1ffff000036e49a4 x26: ffff80001b724000 x25: ffff700004120e74 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800008d15ae4 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000c0882a28 x18: 0000000000000001 x17: 0000000000000002 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000cd620000 x13: fffffffffffe8fd0 x12: 0000000000040000 x11: 000000000000222d x10: ffff80002472a000 x9 : 5883e19671d32d00 x8 : 5883e19671d32d00 x7 : fffffffffffe8fd0 x6 : fffffffffffe8f50 x5 : ffff800020906a38 x4 : ffff800014b7d4f0 x3 : ffff800008557c4c 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_lookup+0x130/0x3c4 fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] path_getxattr+0xb8/0x218 fs/xattr.c:727 __do_sys_getxattr fs/xattr.c:742 [inline] __se_sys_getxattr fs/xattr.c:739 [inline] __arm64_sys_getxattr+0xa0/0xb8 fs/xattr.c:739 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 85549 hardirqs last enabled at (85549): [] seqcount_lockdep_reader_access include/linux/seqlock.h:105 [inline] hardirqs last enabled at (85549): [] read_seqbegin+0x208/0x30c include/linux/seqlock.h:840 hardirqs last disabled at (85548): [] seqcount_lockdep_reader_access include/linux/seqlock.h:102 [inline] hardirqs last disabled at (85548): [] read_seqbegin+0x74/0x30c include/linux/seqlock.h:840 softirqs last enabled at (85540): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (85538): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace cf31f408a4dbb105 ]--- ================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/osq_lock.c:34:9 index 23 is out of range for type 'unsigned long[8]' CPU: 0 PID: 20210 Comm: syz.4.7238 Tainted: G W 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 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_cpu kernel/locking/osq_lock.c:34 [inline] osq_lock+0x468/0x488 kernel/locking/osq_lock.c:111 mutex_optimistic_spin+0x1d0/0x2bc kernel/locking/mutex.c:453 __mutex_lock_common+0x1b4/0x2154 kernel/locking/mutex.c:599 __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_lookup+0x130/0x3c4 fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] path_getxattr+0xb8/0x218 fs/xattr.c:727 __do_sys_getxattr fs/xattr.c:742 [inline] __se_sys_getxattr fs/xattr.c:739 [inline] __arm64_sys_getxattr+0xa0/0xb8 fs/xattr.c:739 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ Unable to handle kernel paging request at virtual address ffff800014a26e30 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=00000001ae2ee000 [ffff800014a26e30] pgd=100000023ffff003, p4d=100000023ffff003, pud=100000023fffe003, pmd=100000023fff9003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 20210 Comm: syz.4.7238 Tainted: G W 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : osq_lock+0x154/0x488 kernel/locking/osq_lock.c:126 lr : decode_cpu kernel/locking/osq_lock.c:34 [inline] lr : osq_lock+0x468/0x488 kernel/locking/osq_lock.c:111 sp : ffff800020907210 x29: ffff800020907220 x28: 1fffe000368342d9 x27: 1fffe000368342da x26: ffff80001b724000 x25: dfff800000000000 x24: ffff800014a266c0 x23: ffff0001b41a16c8 x22: ffff0001b41a16d0 x21: ffff800014a26e30 x20: ffff0001b41a16c0 x19: ffff0000c0882a70 x18: 0000000000000002 x17: 0000000000000002 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000cd620000 x13: fffffffffffea9e0 x12: 0000000000040000 x11: 000000000003ffff x10: ffff80002472a000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : fffffffffffea9e0 x6 : fffffffffffea978 x5 : ffff800020906918 x4 : ffff800014b7dc70 x3 : ffff80000819c844 x2 : 0000000000000001 x1 : 0000000000000002 x0 : 00000000ffffffff Call trace: osq_lock+0x154/0x488 kernel/locking/osq_lock.c:126 mutex_optimistic_spin+0x1d0/0x2bc kernel/locking/mutex.c:453 __mutex_lock_common+0x1b4/0x2154 kernel/locking/mutex.c:599 __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_lookup+0x130/0x3c4 fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] path_getxattr+0xb8/0x218 fs/xattr.c:727 __do_sys_getxattr fs/xattr.c:742 [inline] __se_sys_getxattr fs/xattr.c:739 [inline] __arm64_sys_getxattr+0xa0/0xb8 fs/xattr.c:739 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 38796908 34000068 aa1503e0 941749b0 (f90002b4) ---[ end trace cf31f408a4dbb106 ]--- ---------------- Code disassembly (best guess): 0: 38796908 ldrb w8, [x8, x25] 4: 34000068 cbz w8, 0x10 8: aa1503e0 mov x0, x21 c: 941749b0 bl 0x5d26cc * 10: f90002b4 str x20, [x21] <-- trapping instruction