XFS (loop5): Quotacheck: Done. ================================================================== BUG: KASAN: stack-out-of-bounds in __lock_acquire+0x114/0x764c kernel/locking/lockdep.c:4926 Read of size 8 at addr ffff800024c07618 by task syz-executor.5/9810 CPU: 1 PID: 9810 Comm: syz-executor.5 Not tainted 6.3.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __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:319 [inline] print_report+0x174/0x514 mm/kasan/report.c:430 kasan_report+0xd4/0x130 mm/kasan/report.c:536 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:381 __lock_acquire+0x114/0x764c kernel/locking/lockdep.c:4926 lock_acquire+0x2f0/0x8c8 kernel/locking/lockdep.c:5669 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x68/0x88 kernel/locking/spinlock.c:162 down+0x3c/0xe8 kernel/locking/semaphore.c:59 xfs_buf_lock+0x284/0xaa8 fs/xfs/xfs_buf.c:1120 xfs_buf_delwri_submit_buffers+0x14c/0xad8 fs/xfs/xfs_buf.c:2165 xfs_buf_delwri_submit+0xbc/0x244 fs/xfs/xfs_buf.c:2243 xfs_qm_shrink_scan+0x17c/0x35c fs/xfs/xfs_qm.c:522 do_shrink_slab+0x5b8/0x14cc mm/vmscan.c:853 shrink_slab+0x1e0/0x7f0 mm/vmscan.c:1013 drop_slab_node mm/vmscan.c:1041 [inline] drop_slab+0x124/0x26c mm/vmscan.c:1059 drop_caches_sysctl_handler+0x178/0x394 fs/drop_caches.c:66 proc_sys_call_handler+0x4cc/0x7cc fs/proc/proc_sysctl.c:604 proc_sys_write+0x2c/0x3c fs/proc/proc_sysctl.c:630 do_iter_write+0x534/0x964 fs/read_write.c:861 vfs_iter_write+0x88/0xac fs/read_write.c:902 iter_file_splice_write+0x610/0xc40 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:1023 splice_direct_to_actor+0x3c4/0x944 fs/splice.c:978 do_splice_direct+0x1f4/0x334 fs/splice.c:1066 do_sendfile+0x4bc/0xc70 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __arm64_sys_sendfile64+0x23c/0x3b4 fs/read_write.c:1309 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the virtual mapping at [ffff800024c00000, ffff800024c09000) created by: copy_process+0x4b8/0x3808 kernel/fork.c:2100 The buggy address belongs to the physical page: page:00000000fa254fe9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10feda memcg:ffff0000c9bf0b02 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff0000c9bf0b02 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff800024c07500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff800024c07580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff800024c07600: f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ffff800024c07680: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffff800024c07700: 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 ffff7000046ce8c6 KASAN: maybe wild-memory-access in range [0xffff800023674630-0xffff800023674637] Mem abort info: ESR = 0x0000000096000007 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 = 0x00000007 CM = 0, WnR = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001ace6f000 [ffff7000046ce8c6] pgd=000000023f02e003, p4d=000000023f02e003, pud=000000023f02d003, pmd=100000010d0fb003, pte=0000000000000000 Internal error: Oops: 0000000096000007 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 9810 Comm: syz-executor.5 Tainted: G B 6.3.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] pc : __lock_acquire+0xc8c/0x764c kernel/locking/lockdep.c:5026 lr : mark_usage kernel/locking/lockdep.c:4556 [inline] lr : __lock_acquire+0xc40/0x764c kernel/locking/lockdep.c:5010 sp : ffff80001ef267a0 x29: ffff80001ef26a40 x28: ffff0000deae2508 x27: ffff0000deae1b40 x26: ffff0000deae2580 x25: 0000000000000002 x24: 1fffe0001bd5c4b0 x23: ffff0000deae2560 x22: 0000000000000099 x21: 0000000000000000 x20: 0000000000000000 x19: ffff800023674630 x18: 1fffe000368995b6 x17: 0000000000000000 x16: ffff80001246250c x15: 0000000000000000 x14: 0000000000000000 x13: dfff800000000000 x12: dfff800000000000 x11: ffff0000deae2510 x10: ffff800018c0b620 x9 : ffff800018c0b620 x8 : 1ffff000046ce8c6 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001ef25fb8 x4 : ffff800015dc52c0 x3 : ffff800008318ee4 x2 : 0000000000000008 x1 : ffff0000deae2560 x0 : 0000000000000001 Call trace: generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] __lock_acquire+0xc8c/0x764c kernel/locking/lockdep.c:5026 lock_acquire+0x2f0/0x8c8 kernel/locking/lockdep.c:5669 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x68/0x88 kernel/locking/spinlock.c:162 down+0x3c/0xe8 kernel/locking/semaphore.c:59 xfs_buf_lock+0x284/0xaa8 fs/xfs/xfs_buf.c:1120 xfs_buf_delwri_submit_buffers+0x14c/0xad8 fs/xfs/xfs_buf.c:2165 xfs_buf_delwri_submit+0xbc/0x244 fs/xfs/xfs_buf.c:2243 xfs_qm_shrink_scan+0x17c/0x35c fs/xfs/xfs_qm.c:522 do_shrink_slab+0x5b8/0x14cc mm/vmscan.c:853 shrink_slab+0x1e0/0x7f0 mm/vmscan.c:1013 drop_slab_node mm/vmscan.c:1041 [inline] drop_slab+0x124/0x26c mm/vmscan.c:1059 drop_caches_sysctl_handler+0x178/0x394 fs/drop_caches.c:66 proc_sys_call_handler+0x4cc/0x7cc fs/proc/proc_sysctl.c:604 proc_sys_write+0x2c/0x3c fs/proc/proc_sysctl.c:630 do_iter_write+0x534/0x964 fs/read_write.c:861 vfs_iter_write+0x88/0xac fs/read_write.c:902 iter_file_splice_write+0x610/0xc40 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:1023 splice_direct_to_actor+0x3c4/0x944 fs/splice.c:978 do_splice_direct+0x1f4/0x334 fs/splice.c:1066 do_sendfile+0x4bc/0xc70 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __arm64_sys_sendfile64+0x23c/0x3b4 fs/read_write.c:1309 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: d343fd08 927de508 8b080133 d343fe68 (386d6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: d343fd08 lsr x8, x8, #3 4: 927de508 and x8, x8, #0x1ffffffffffffff8 8: 8b080133 add x19, x9, x8 c: d343fe68 lsr x8, x19, #3 * 10: 386d6908 ldrb w8, [x8, x13] <-- trapping instruction