XFS (loop0): Quotacheck: Done. ================================================================== BUG: KASAN: stack-out-of-bounds in __lock_acquire+0x114/0x75e8 kernel/locking/lockdep.c:5012 Read of size 8 at addr ffff800097cc7618 by task syz-executor.0/7165 CPU: 0 PID: 7165 Comm: syz-executor.0 Not tainted 6.5.0-rc4-syzkaller-00043-g86d7896480b0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 __lock_acquire+0x114/0x75e8 kernel/locking/lockdep.c:5012 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5761 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 down+0x3c/0xe8 kernel/locking/semaphore.c:59 xfs_buf_lock+0x178/0x624 fs/xfs/xfs_buf.c:1119 xfs_buf_delwri_submit_buffers+0x12c/0x87c fs/xfs/xfs_buf.c:2164 xfs_buf_delwri_submit+0xbc/0x244 fs/xfs/xfs_buf.c:2242 xfs_qm_shrink_scan+0x17c/0x35c fs/xfs/xfs_qm.c:522 do_shrink_slab+0x4b0/0x1060 mm/vmscan.c:900 shrink_slab+0x1e0/0x844 mm/vmscan.c:1060 drop_slab_node mm/vmscan.c:1088 [inline] drop_slab+0x124/0x26c mm/vmscan.c:1106 drop_caches_sysctl_handler+0x178/0x394 fs/drop_caches.c:66 proc_sys_call_handler+0x4cc/0x7cc fs/proc/proc_sysctl.c:598 proc_sys_write+0x2c/0x3c fs/proc/proc_sysctl.c:624 do_iter_write+0x65c/0xaa8 fs/read_write.c:860 vfs_iter_write+0x88/0xac fs/read_write.c:901 iter_file_splice_write+0x628/0xc58 fs/splice.c:739 do_splice_from fs/splice.c:936 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:1145 splice_direct_to_actor+0x2a0/0x7e4 fs/splice.c:1091 do_splice_direct+0x20c/0x348 fs/splice.c:1197 do_sendfile+0x4b8/0xcc4 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1316 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __arm64_sys_sendfile64+0x23c/0x3b4 fs/read_write.c:1308 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the virtual mapping at [ffff800097cc0000, ffff800097cc9000) created by: copy_process+0x488/0x34b8 kernel/fork.c:2330 The buggy address belongs to the physical page: page:00000000964bc97d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x117e7a memcg:ffff0000d5fe0d02 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff0000d5fe0d02 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff800097cc7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff800097cc7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff800097cc7600: f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ffff800097cc7680: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffff800097cc7700: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000019 KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff800000000019] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 7165 Comm: syz-executor.0 Tainted: G B 6.5.0-rc4-syzkaller-00043-g86d7896480b0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_wait_context kernel/locking/lockdep.c:4780 [inline] pc : __lock_acquire+0x568/0x75e8 kernel/locking/lockdep.c:5094 lr : hlock_class kernel/locking/lockdep.c:232 [inline] lr : check_wait_context kernel/locking/lockdep.c:4780 [inline] lr : __lock_acquire+0x738/0x75e8 kernel/locking/lockdep.c:5094 sp : ffff800097a467a0 x29: ffff800097a46a60 x28: ffff0000c40b8000 x27: ffff0000c40b8ad0 x26: 1fffe0001881715a x25: ffff0000c40b8a60 x24: 0000000000000001 x23: 0000000000000002 x22: 0000000000001402 x21: ffff8000912ae9e0 x20: 0000000000000000 x19: 00000000000000c8 x18: 1fffe00019898469 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 1ffff000121f0d44 x13: 0000000000000000 x12: dfff800000000000 x11: 0000000000000001 x10: 0000000000000000 x9 : 0000000000000000 x8 : 0000000000000019 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800097a45f98 x4 : ffff80008e17ef80 x3 : ffff80008031c468 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: check_wait_context kernel/locking/lockdep.c:4780 [inline] __lock_acquire+0x568/0x75e8 kernel/locking/lockdep.c:5094 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5761 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 down+0x3c/0xe8 kernel/locking/semaphore.c:59 xfs_buf_lock+0x178/0x624 fs/xfs/xfs_buf.c:1119 xfs_buf_delwri_submit_buffers+0x12c/0x87c fs/xfs/xfs_buf.c:2164 xfs_buf_delwri_submit+0xbc/0x244 fs/xfs/xfs_buf.c:2242 xfs_qm_shrink_scan+0x17c/0x35c fs/xfs/xfs_qm.c:522 do_shrink_slab+0x4b0/0x1060 mm/vmscan.c:900 shrink_slab+0x1e0/0x844 mm/vmscan.c:1060 drop_slab_node mm/vmscan.c:1088 [inline] drop_slab+0x124/0x26c mm/vmscan.c:1106 drop_caches_sysctl_handler+0x178/0x394 fs/drop_caches.c:66 proc_sys_call_handler+0x4cc/0x7cc fs/proc/proc_sysctl.c:598 proc_sys_write+0x2c/0x3c fs/proc/proc_sysctl.c:624 do_iter_write+0x65c/0xaa8 fs/read_write.c:860 vfs_iter_write+0x88/0xac fs/read_write.c:901 iter_file_splice_write+0x628/0xc58 fs/splice.c:739 do_splice_from fs/splice.c:936 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:1145 splice_direct_to_actor+0x2a0/0x7e4 fs/splice.c:1091 do_splice_direct+0x20c/0x348 fs/splice.c:1197 do_sendfile+0x4b8/0xcc4 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1316 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __arm64_sys_sendfile64+0x23c/0x3b4 fs/read_write.c:1308 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: 34000ee8 aa1f03e8 91032113 d343fe68 (38ec6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 34000ee8 cbz w8, 0x1dc 4: aa1f03e8 mov x8, xzr 8: 91032113 add x19, x8, #0xc8 c: d343fe68 lsr x8, x19, #3 * 10: 38ec6908 ldrsb w8, [x8, x12] <-- trapping instruction