================================================================== 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 ffffc90003357bac by task syz.2.3991/25016 CPU: 0 UID: 0 PID: 25016 Comm: syz.2.3991 Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #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 iter_file_splice_write+0x912/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x349/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x178/0x250 fs/splice.c:1233 do_sendfile+0xaed/0xe30 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1410 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:0x7fbb99d85d29 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:00007fbb9ac06038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbb99f76160 RCX: 00007fbb99d85d29 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000007 RBP: 00007fbb99e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000023b R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbb99f76160 R15: 00007ffed6ab7e88 The buggy address belongs to the virtual mapping at [ffffc90003350000, ffffc90003359000) 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:0x27 pfn:0x23399 memcg:ffff888034376382 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000027 0000000000000000 00000001ffffffff ffff888034376382 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 24903, tgid 24903 (syz.2.3969), ts 1822645748559, free_ts 1822112374622 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 21658 tgid 21658 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706 folios_put_refs+0x587/0x7b0 mm/swap.c:962 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x306/0x3c0 mm/truncate.c:501 invalidate_bdev+0x88/0xa0 block/bdev.c:102 generic_shutdown_super+0x15f/0x3d0 fs/super.c:642 kill_block_super+0x3b/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2089 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473 deactivate_super+0xde/0x100 fs/super.c:506 cleanup_mnt+0x222/0x450 fs/namespace.c:1373 task_work_run+0x151/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x27b/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: ffffc90003357a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003357b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003357b80: 00 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 f3 f3 f3 ^ ffffc90003357c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003357c80: 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 ffffc90003357bac by task syz.2.3991/25016 CPU: 0 UID: 0 PID: 25016 Comm: syz.2.3991 Tainted: G B 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #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 iter_file_splice_write+0x912/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x349/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x178/0x250 fs/splice.c:1233 do_sendfile+0xaed/0xe30 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1410 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:0x7fbb99d85d29 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:00007fbb9ac06038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbb99f76160 RCX: 00007fbb99d85d29 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000007 RBP: 00007fbb99e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000023b R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbb99f76160 R15: 00007ffed6ab7e88 The buggy address belongs to the virtual mapping at [ffffc90003350000, ffffc90003359000) 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:0x27 pfn:0x23399 memcg:ffff888034376382 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000027 0000000000000000 00000001ffffffff ffff888034376382 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 24903, tgid 24903 (syz.2.3969), ts 1822645748559, free_ts 1822112374622 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 21658 tgid 21658 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706 folios_put_refs+0x587/0x7b0 mm/swap.c:962 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x306/0x3c0 mm/truncate.c:501 invalidate_bdev+0x88/0xa0 block/bdev.c:102 generic_shutdown_super+0x15f/0x3d0 fs/super.c:642 kill_block_super+0x3b/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2089 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473 deactivate_super+0xde/0x100 fs/super.c:506 cleanup_mnt+0x222/0x450 fs/namespace.c:1373 task_work_run+0x151/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x27b/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: ffffc90003357a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003357b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003357b80: 00 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 f3 f3 f3 ^ ffffc90003357c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003357c80: 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 ffffc900033579c8 by task syz.2.3991/25016 CPU: 0 UID: 0 PID: 25016 Comm: syz.2.3991 Tainted: G B 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #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 iter_file_splice_write+0x912/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x349/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x178/0x250 fs/splice.c:1233 do_sendfile+0xaed/0xe30 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1410 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:0x7fbb99d85d29 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:00007fbb9ac06038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbb99f76160 RCX: 00007fbb99d85d29 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000007 RBP: 00007fbb99e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000023b R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbb99f76160 R15: 00007ffed6ab7e88 The buggy address belongs to the virtual mapping at [ffffc90003350000, ffffc90003359000) 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:0x27 pfn:0x23399 memcg:ffff888034376382 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000027 0000000000000000 00000001ffffffff ffff888034376382 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 24903, tgid 24903 (syz.2.3969), ts 1822645748559, free_ts 1822112374622 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 21658 tgid 21658 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xa7b/0x14f0 mm/page_alloc.c:2706 folios_put_refs+0x587/0x7b0 mm/swap.c:962 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x306/0x3c0 mm/truncate.c:501 invalidate_bdev+0x88/0xa0 block/bdev.c:102 generic_shutdown_super+0x15f/0x3d0 fs/super.c:642 kill_block_super+0x3b/0x90 fs/super.c:1710 xfs_kill_sb+0x15/0x50 fs/xfs/xfs_super.c:2089 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473 deactivate_super+0xde/0x100 fs/super.c:506 cleanup_mnt+0x222/0x450 fs/namespace.c:1373 task_work_run+0x151/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x27b/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: ffffc90003357880: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 ffffc90003357900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003357980: 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 ^ ffffc90003357a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffffc90003357a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ------------[ cut here ]------------ pvqspinlock: lock 0xffffc90003357988 has corrupted value 0x0! WARNING: CPU: 0 PID: 25016 at kernel/locking/qspinlock_paravirt.h:504 __pv_queued_spin_unlock_slowpath+0x237/0x330 kernel/locking/qspinlock_paravirt.h:504 Modules linked in: CPU: 0 UID: 0 PID: 25016 Comm: syz.2.3991 Tainted: G B 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__pv_queued_spin_unlock_slowpath+0x237/0x330 kernel/locking/qspinlock_paravirt.h:504 Code: 03 0f b6 14 02 4c 89 e8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 67 41 8b 55 00 4c 89 ee 48 c7 c7 40 3a 6d 8b e8 9a f5 2f f6 90 <0f> 0b 90 90 e9 64 ff ff ff 90 0f 0b 48 89 df 4c 89 04 24 e8 51 8e RSP: 0018:ffffc9000b897248 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffffc90003357988 RCX: ffffc900121a9000 RDX: 0000000000080000 RSI: ffffffff815a5146 RDI: 0000000000000001 RBP: ffffc90003357990 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 6c6e697073717670 R12: ffffc90003357998 R13: ffffc90003357988 R14: ffffc90003357a88 R15: ffffc90003357968 FS: 00007fbb9ac066c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa431577bac CR3: 000000007ee3c000 CR4: 0000000000350ef0 Call Trace: __raw_callee_save___pv_queued_spin_unlock_slowpath+0x15/0x30 .slowpath+0x9/0x18 pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:589 [inline] queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline] do_raw_spin_unlock+0x172/0x230 kernel/locking/spinlock_debug.c:142 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x22/0x80 kernel/locking/spinlock.c:194 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 iter_file_splice_write+0x912/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x349/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x178/0x250 fs/splice.c:1233 do_sendfile+0xaed/0xe30 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1410 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:0x7fbb99d85d29 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:00007fbb9ac06038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbb99f76160 RCX: 00007fbb99d85d29 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000007 RBP: 00007fbb99e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000023b R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbb99f76160 R15: 00007ffed6ab7e88