XFS (loop2): Ending clean mount XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. ================================================================== BUG: KASAN: stack-out-of-bounds in __lock_acquire+0x79/0x1f60 kernel/locking/lockdep.c:4925 Read of size 8 at addr ffffc900148ff918 by task syz-executor.2/27474 CPU: 1 PID: 27474 Comm: syz-executor.2 Not tainted 6.2.0-rc3-syzkaller-00376-g7c6984405241 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x1f0 mm/kasan/report.c:417 kasan_report+0xcd/0x100 mm/kasan/report.c:517 __lock_acquire+0x79/0x1f60 kernel/locking/lockdep.c:4925 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb3/0x100 kernel/locking/spinlock.c:162 down+0x35/0xb0 kernel/locking/semaphore.c:59 xfs_buf_lock fs/xfs/xfs_buf.c:1120 [inline] xfs_buf_delwri_submit_buffers+0x22e/0x820 fs/xfs/xfs_buf.c:2165 xfs_buf_delwri_submit+0xbb/0x320 fs/xfs/xfs_buf.c:2243 xfs_qm_shrink_scan+0x1ca/0x410 fs/xfs/xfs_qm.c:522 do_shrink_slab+0x4e1/0xa00 mm/vmscan.c:843 shrink_slab+0x1e6/0x340 mm/vmscan.c:1003 drop_slab_node mm/vmscan.c:1031 [inline] drop_slab+0x164/0x2b0 mm/vmscan.c:1049 drop_caches_sysctl_handler+0xb1/0x160 fs/drop_caches.c:66 proc_sys_call_handler+0x576/0x890 fs/proc/proc_sysctl.c:604 do_iter_write+0x6c2/0xc20 fs/read_write.c:861 iter_file_splice_write+0x7fc/0xfc0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xe6/0x1c0 fs/splice.c:931 splice_direct_to_actor+0x4e4/0xc00 fs/splice.c:886 do_splice_direct+0x279/0x3d0 fs/splice.c:974 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0xd0/0x1b0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f009a88c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f009b576168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f009a9abf80 RCX: 00007f009a88c0c9 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f009a8e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000874 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffed92043bf R14: 00007f009b576300 R15: 0000000000022000 The buggy address belongs to the virtual mapping at [ffffc900148f8000, ffffc90014901000) created by: dup_task_struct+0x8b/0x490 kernel/fork.c:987 The buggy address belongs to the physical page: page:ffffea0000a91140 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a445 memcg:ffff888020edfc82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888020edfc82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 27460, tgid 27460 (syz-executor.3), ts 1214675417519, free_ts 1214312219814 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 vm_area_alloc_pages mm/vmalloc.c:2989 [inline] __vmalloc_area_node mm/vmalloc.c:3057 [inline] __vmalloc_node_range+0x9b2/0x1400 mm/vmalloc.c:3227 alloc_thread_stack_node+0x307/0x500 kernel/fork.c:311 dup_task_struct+0x8b/0x490 kernel/fork.c:987 copy_process+0x53c/0x3f00 kernel/fork.c:2097 kernel_clone+0x21b/0x630 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0x228/0x290 kernel/fork.c:2806 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x4c0 mm/page_alloc.c:3464 pipe_buf_release include/linux/pipe_fs_i.h:183 [inline] pipe_read+0x718/0x1340 fs/pipe.c:324 call_read_iter include/linux/fs.h:2183 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x7ac/0xbf0 fs/read_write.c:470 ksys_read+0x177/0x2a0 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc900148ff800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900148ff880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900148ff900: f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ffffc900148ff980: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffffc900148ffa00: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================