================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: stack-out-of-bounds in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: stack-out-of-bounds in xfs_buf_lock+0x9e/0x520 fs/xfs/xfs_buf.c:1194 Read of size 4 at addr ffffc90003267bac by task syz.5.82/6177 CPU: 1 UID: 0 PID: 6177 Comm: syz.5.82 Not tainted 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] xfs_buf_lock+0x9e/0x520 fs/xfs/xfs_buf.c:1194 xfs_buf_delwri_submit_buffers+0x147/0xaa0 fs/xfs/xfs_buf.c:2298 xfs_buf_delwri_submit+0x8a/0x2d0 fs/xfs/xfs_buf.c:2376 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:577 do_shrink_slab+0x452/0x11c0 mm/shrinker.c:437 shrink_slab+0x32b/0x12a0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:432 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x406/0x5d0 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x535/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb734185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb73501f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb734375fa0 RCX: 00007fb734185d29 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007fb734201aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb734375fa0 R15: 00007ffec624a828 The buggy address belongs to the virtual mapping at [ffffc90003260000, ffffc90003269000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2806 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88803043fe00 pfn:0x3043f memcg:ffff88802f019d82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88803043fe00 0000000000000000 00000001ffffffff ffff88802f019d82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 6098, tgid 6098 (syz.5.56), ts 111391075816, free_ts 111210999069 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476 __alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x724/0x1530 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct kernel/fork.c:1116 [inline] copy_process+0x2f06/0x8e50 kernel/fork.c:2224 kernel_clone+0xfd/0x960 kernel/fork.c:2806 __do_sys_clone3+0x1f9/0x270 kernel/fork.c:3110 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6081 tgid 6078 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0x661/0x1080 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x237/0x7b0 mm/mmu_gather.c:468 exit_mmap+0x3df/0xb20 mm/mmap.c:1681 __mmput+0x12a/0x4c0 kernel/fork.c:1348 mmput+0x62/0x70 kernel/fork.c:1370 exit_mm kernel/exit.c:570 [inline] do_exit+0x9ba/0x2d70 kernel/exit.c:925 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x24ed/0x26c0 kernel/signal.c:3017 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003267a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003267b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003267b80: 00 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 f3 f3 f3 ^ ffffc90003267c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003267c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ================================================================== ================================================================== BUG: KASAN: stack-out-of-bounds in arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] BUG: KASAN: stack-out-of-bounds in raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] BUG: KASAN: stack-out-of-bounds in atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline] BUG: KASAN: stack-out-of-bounds in xfs_buf_lock+0x4bb/0x520 fs/xfs/xfs_buf.c:1194 Read of size 4 at addr ffffc90003267bac by task syz.5.82/6177 CPU: 0 UID: 0 PID: 6177 Comm: syz.5.82 Tainted: G B 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline] xfs_buf_lock+0x4bb/0x520 fs/xfs/xfs_buf.c:1194 xfs_buf_delwri_submit_buffers+0x147/0xaa0 fs/xfs/xfs_buf.c:2298 xfs_buf_delwri_submit+0x8a/0x2d0 fs/xfs/xfs_buf.c:2376 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:577 do_shrink_slab+0x452/0x11c0 mm/shrinker.c:437 shrink_slab+0x32b/0x12a0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:432 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x406/0x5d0 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x535/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb734185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb73501f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb734375fa0 RCX: 00007fb734185d29 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007fb734201aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb734375fa0 R15: 00007ffec624a828 The buggy address belongs to the virtual mapping at [ffffc90003260000, ffffc90003269000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2806 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88803043fe00 pfn:0x3043f memcg:ffff88802f019d82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88803043fe00 0000000000000000 00000001ffffffff ffff88802f019d82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 6098, tgid 6098 (syz.5.56), ts 111391075816, free_ts 111210999069 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476 __alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x724/0x1530 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct kernel/fork.c:1116 [inline] copy_process+0x2f06/0x8e50 kernel/fork.c:2224 kernel_clone+0xfd/0x960 kernel/fork.c:2806 __do_sys_clone3+0x1f9/0x270 kernel/fork.c:3110 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6081 tgid 6078 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0x661/0x1080 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x237/0x7b0 mm/mmu_gather.c:468 exit_mmap+0x3df/0xb20 mm/mmap.c:1681 __mmput+0x12a/0x4c0 kernel/fork.c:1348 mmput+0x62/0x70 kernel/fork.c:1370 exit_mm kernel/exit.c:570 [inline] do_exit+0x9ba/0x2d70 kernel/exit.c:925 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x24ed/0x26c0 kernel/signal.c:3017 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003267a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003267b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003267b80: 00 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 f3 f3 f3 ^ ffffc90003267c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003267c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ================================================================== ================================================================== BUG: KASAN: stack-out-of-bounds in down+0x8e/0xa0 kernel/locking/semaphore.c:60 Read of size 4 at addr ffffc900032679c8 by task syz.5.82/6177 CPU: 0 UID: 0 PID: 6177 Comm: syz.5.82 Tainted: G B 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 down+0x8e/0xa0 kernel/locking/semaphore.c:60 xfs_buf_lock+0x133/0x520 fs/xfs/xfs_buf.c:1196 xfs_buf_delwri_submit_buffers+0x147/0xaa0 fs/xfs/xfs_buf.c:2298 xfs_buf_delwri_submit+0x8a/0x2d0 fs/xfs/xfs_buf.c:2376 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:577 do_shrink_slab+0x452/0x11c0 mm/shrinker.c:437 shrink_slab+0x32b/0x12a0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:432 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x406/0x5d0 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x535/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb734185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb73501f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb734375fa0 RCX: 00007fb734185d29 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007fb734201aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb734375fa0 R15: 00007ffec624a828 The buggy address belongs to the virtual mapping at [ffffc90003260000, ffffc90003269000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2806 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88803043fe00 pfn:0x3043f memcg:ffff88802f019d82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88803043fe00 0000000000000000 00000001ffffffff ffff88802f019d82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 6098, tgid 6098 (syz.5.56), ts 111391075816, free_ts 111210999069 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476 __alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x724/0x1530 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct kernel/fork.c:1116 [inline] copy_process+0x2f06/0x8e50 kernel/fork.c:2224 kernel_clone+0xfd/0x960 kernel/fork.c:2806 __do_sys_clone3+0x1f9/0x270 kernel/fork.c:3110 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6081 tgid 6078 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0x661/0x1080 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x237/0x7b0 mm/mmu_gather.c:468 exit_mmap+0x3df/0xb20 mm/mmap.c:1681 __mmput+0x12a/0x4c0 kernel/fork.c:1348 mmput+0x62/0x70 kernel/fork.c:1370 exit_mm kernel/exit.c:570 [inline] do_exit+0x9ba/0x2d70 kernel/exit.c:925 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x24ed/0x26c0 kernel/signal.c:3017 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003267880: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 ffffc90003267900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003267980: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 ^ ffffc90003267a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffffc90003267a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ================================================================== BUG: KASAN: stack-out-of-bounds in list_empty include/linux/list.h:373 [inline] BUG: KASAN: stack-out-of-bounds in up+0xa6/0xb0 kernel/locking/semaphore.c:188 Read of size 8 at addr ffffc900032679d0 by task syz.5.82/6177 CPU: 0 UID: 0 PID: 6177 Comm: syz.5.82 Tainted: G B 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 list_empty include/linux/list.h:373 [inline] up+0xa6/0xb0 kernel/locking/semaphore.c:188 xfs_buf_unlock fs/xfs/xfs_buf.c:1207 [inline] xfs_buf_relse fs/xfs/xfs_buf.h:315 [inline] xfs_buf_delwri_submit_buffers+0x689/0xaa0 fs/xfs/xfs_buf.c:2309 xfs_buf_delwri_submit+0x8a/0x2d0 fs/xfs/xfs_buf.c:2376 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:577 do_shrink_slab+0x452/0x11c0 mm/shrinker.c:437 shrink_slab+0x32b/0x12a0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:432 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x406/0x5d0 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x535/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb734185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb73501f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb734375fa0 RCX: 00007fb734185d29 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007fb734201aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb734375fa0 R15: 00007ffec624a828 The buggy address belongs to the virtual mapping at [ffffc90003260000, ffffc90003269000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2806 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88803043fe00 pfn:0x3043f memcg:ffff88802f019d82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88803043fe00 0000000000000000 00000001ffffffff ffff88802f019d82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 6098, tgid 6098 (syz.5.56), ts 111391075816, free_ts 111210999069 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476 __alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x724/0x1530 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct kernel/fork.c:1116 [inline] copy_process+0x2f06/0x8e50 kernel/fork.c:2224 kernel_clone+0xfd/0x960 kernel/fork.c:2806 __do_sys_clone3+0x1f9/0x270 kernel/fork.c:3110 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6081 tgid 6078 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0x661/0x1080 mm/page_alloc.c:2659 tlb_batch_list_free mm/mmu_gather.c:159 [inline] tlb_finish_mmu+0x237/0x7b0 mm/mmu_gather.c:468 exit_mmap+0x3df/0xb20 mm/mmap.c:1681 __mmput+0x12a/0x4c0 kernel/fork.c:1348 mmput+0x62/0x70 kernel/fork.c:1370 exit_mm kernel/exit.c:570 [inline] do_exit+0x9ba/0x2d70 kernel/exit.c:925 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x24ed/0x26c0 kernel/signal.c:3017 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003267880: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 ffffc90003267900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003267980: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 ^ ffffc90003267a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffffc90003267a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 UID: 0 PID: 6177 Comm: syz.5.82 Tainted: G B 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__list_del_entry_valid_or_report+0x20/0x1c0 lib/list_debug.c:49 Code: 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 83 c7 08 48 83 ec 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 19 01 00 00 48 89 f2 48 8b 4e 08 48 b8 00 00 00 RSP: 0018:ffffc900031e7538 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000d55e000 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008 RBP: ffffc900032679d0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 3d3d3d3d3d3d3d3d R12: ffffc90003267a90 R13: ffffc90003267a88 R14: ffffc90003267a88 R15: ffffc90003267968 FS: 00007fb73501f6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055580609a068 CR3: 0000000024efc000 CR4: 0000000000350ef0 Call Trace: __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del include/linux/list.h:229 [inline] __up.isra.0+0xe/0x190 kernel/locking/semaphore.c:276 up+0x79/0xb0 kernel/locking/semaphore.c:191 xfs_buf_unlock fs/xfs/xfs_buf.c:1207 [inline] xfs_buf_relse fs/xfs/xfs_buf.h:315 [inline] xfs_buf_delwri_submit_buffers+0x689/0xaa0 fs/xfs/xfs_buf.c:2309 xfs_buf_delwri_submit+0x8a/0x2d0 fs/xfs/xfs_buf.c:2376 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:577 do_shrink_slab+0x452/0x11c0 mm/shrinker.c:437 shrink_slab+0x32b/0x12a0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:432 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x406/0x5d0 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x535/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb734185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb73501f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb734375fa0 RCX: 00007fb734185d29 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007fb734201aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb734375fa0 R15: 00007ffec624a828 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x20/0x1c0 lib/list_debug.c:49 Code: 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 83 c7 08 48 83 ec 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 19 01 00 00 48 89 f2 48 8b 4e 08 48 b8 00 00 00 RSP: 0018:ffffc900031e7538 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000d55e000 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008 RBP: ffffc900032679d0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 3d3d3d3d3d3d3d3d R12: ffffc90003267a90 R13: ffffc90003267a88 R14: ffffc90003267a88 R15: ffffc90003267968 FS: 00007fb73501f6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055580609a068 CR3: 0000000024efc000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: f3 0f 1e fa endbr64 e: 48 89 fe mov %rdi,%rsi 11: 48 83 c7 08 add $0x8,%rdi 15: 48 83 ec 18 sub $0x18,%rsp 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 19 01 00 00 jne 0x14d 34: 48 89 f2 mov %rsi,%rdx 37: 48 8b 4e 08 mov 0x8(%rsi),%rcx 3b: 48 rex.W 3c: b8 .byte 0xb8 3d: 00 00 add %al,(%rax)