loop4: detected capacity change from 0 to 32768 ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: CPU: 1 PID: 26331 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 Modules linked in: CPU: 1 PID: 26331 Comm: syz-executor.4 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 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 : ffff80009e1d73e0 x29: ffff80009e1d7570 x28: dfff800000000000 x27: 1ffff000124ff4ec x26: ffff8000927fa000 x25: ffff700013c3ae98 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800080e3877c x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000d7117028 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008a71b23c x15: 0000000000000001 x14: 1fffe00036833432 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 00000000000014be x9 : afd52792a0e1ce00 x8 : afd52792a0e1ce00 x7 : fffffffffffed678 x6 : fffffffffffed620 x5 : ffff80009e1d6cd8 x4 : ffff80008e400058 x3 : ffff8000805a359c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: __mutex_lock_common+0x1660/0x21a0 kernel/locking/mutex.c:582 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_lookup+0x128/0x45c fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x374 fs/namei.c:1694 lookup_slow+0x60/0x84 fs/namei.c:1711 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3672 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 74567 hardirqs last enabled at (74567): [] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline] hardirqs last enabled at (74567): [] read_seqbegin+0x80/0x144 include/linux/seqlock.h:837 hardirqs last disabled at (74566): [] seqcount_lockdep_reader_access include/linux/seqlock.h:101 [inline] hardirqs last disabled at (74566): [] read_seqbegin+0x3c/0x144 include/linux/seqlock.h:837 softirqs last enabled at (74538): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (74538): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (74207): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ================================================================================ 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: 1 PID: 26331 Comm: syz-executor.4 Tainted: G W 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 decode_cpu kernel/locking/osq_lock.c:34 [inline] osq_lock+0x444/0x464 kernel/locking/osq_lock.c:111 mutex_optimistic_spin+0x264/0x49c kernel/locking/mutex.c:460 __mutex_lock_common+0x1bc/0x21a0 kernel/locking/mutex.c:607 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_lookup+0x128/0x45c fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x374 fs/namei.c:1694 lookup_slow+0x60/0x84 fs/namei.c:1711 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3672 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================ Unable to handle kernel paging request at virtual address ffff80008e2a9b40 KASAN: probably user-memory-access in range [0x000000047154da00-0x000000047154da07] 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, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001af6a1000 [ffff80008e2a9b40] pgd=100000023ffff803, p4d=100000023ffff803, pud=100000023fffe803, pmd=100000023fff9803, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 26331 Comm: syz-executor.4 Tainted: G W 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : osq_lock+0x154/0x464 kernel/locking/osq_lock.c:126 lr : decode_cpu kernel/locking/osq_lock.c:34 [inline] lr : osq_lock+0x444/0x464 kernel/locking/osq_lock.c:111 sp : ffff80009e1d7320 x29: ffff80009e1d7330 x28: 1fffe00036835d69 x27: 1fffe00036835d6a x26: ffff8000927fa000 x25: dfff800000000000 x24: ffff80008e2a9b40 x23: ffff0001b41aeb48 x22: ffff0001b41aeb50 x21: ffff80008e2a9b40 x20: ffff0001b41aeb40 x19: ffff0000d7117070 x18: 0000000000000000 x17: 3d3d3d3d3d3d3d3d x16: ffff80008a668900 x15: ffff70001225d288 x14: 1ffff0001225d288 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000040000 x10: 000000000003ffff x9 : 0000000000000000 x8 : 0000000000000000 x7 : fffffffffffeedf8 x6 : fffffffffffeed78 x5 : ffff80009e1d6bd8 x4 : ffff80008e400778 x3 : ffff8000801b871c x2 : 0000000000000001 x1 : 0000000000000002 x0 : 00000000ffffffff Call trace: osq_lock+0x154/0x464 kernel/locking/osq_lock.c:126 mutex_optimistic_spin+0x264/0x49c kernel/locking/mutex.c:460 __mutex_lock_common+0x1bc/0x21a0 kernel/locking/mutex.c:607 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 reiserfs_write_lock+0x7c/0xe8 fs/reiserfs/lock.c:27 reiserfs_lookup+0x128/0x45c fs/reiserfs/namei.c:364 __lookup_slow+0x250/0x374 fs/namei.c:1694 lookup_slow+0x60/0x84 fs/namei.c:1711 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3672 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x428/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Code: 38796908 34000068 aa1503e0 941a5c62 (f90002b4) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 38796908 ldrb w8, [x8, x25] 4: 34000068 cbz w8, 0x10 8: aa1503e0 mov x0, x21 c: 941a5c62 bl 0x697194 * 10: f90002b4 str x20, [x21] <-- trapping instruction