================================================================== 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:1191 Read of size 4 at addr ffffc90005877b84 by task kswapd0/111 CPU: 0 PID: 111 Comm: kswapd0 Not tainted 6.9.0-syzkaller-07726-g3c999d1ae3c7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 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:1191 xfs_buf_delwri_submit_buffers+0x140/0xa40 fs/xfs/xfs_buf.c:2290 xfs_buf_delwri_submit+0x8a/0x270 fs/xfs/xfs_buf.c:2368 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:522 do_shrink_slab+0x44f/0x11c0 mm/shrinker.c:435 shrink_slab+0x18a/0x1310 mm/shrinker.c:662 shrink_one+0x493/0x7c0 mm/vmscan.c:4774 shrink_many mm/vmscan.c:4835 [inline] lru_gen_shrink_node mm/vmscan.c:4935 [inline] shrink_node+0x231f/0x3a80 mm/vmscan.c:5894 kswapd_shrink_node mm/vmscan.c:6704 [inline] balance_pgdat+0x9a0/0x19a0 mm/vmscan.c:6895 kswapd+0x5ea/0xbf0 mm/vmscan.c:7164 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the virtual mapping at [ffffc90005870000, ffffc90005879000) created by: kernel_clone+0xfd/0x980 kernel/fork.c:2797 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x127b81 memcg:ffff888045c40d02 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888045c40d02 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 2, tgid 2 (kthreadd), ts 1202643644874, free_ts 1202581535396 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317 __alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575 alloc_pages_mpol+0x275/0x610 mm/mempolicy.c:2264 vm_area_alloc_pages mm/vmalloc.c:3561 [inline] __vmalloc_area_node mm/vmalloc.c:3637 [inline] __vmalloc_node_range+0xa26/0x14b0 mm/vmalloc.c:3818 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1115 [inline] copy_process+0x2f38/0x8fc0 kernel/fork.c:2220 kernel_clone+0xfd/0x980 kernel/fork.c:2797 kernel_thread+0xc0/0x100 kernel/fork.c:2859 create_kthread kernel/kthread.c:412 [inline] kthreadd+0x4ef/0x7d0 kernel/kthread.c:765 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 32173 tgid 32173 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347 free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487 __put_partials+0x14c/0x170 mm/slub.c:2920 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3871 [inline] slab_alloc_node mm/slub.c:3918 [inline] kmem_cache_alloc+0x136/0x330 mm/slub.c:3925 kmem_cache_zalloc include/linux/slab.h:739 [inline] lsm_inode_alloc security/security.c:670 [inline] security_inode_alloc+0x3e/0x240 security/security.c:1587 inode_init_always+0xc2f/0xf50 fs/inode.c:232 alloc_inode+0x7d/0x230 fs/inode.c:268 new_inode_pseudo fs/inode.c:1007 [inline] new_inode+0x22/0x270 fs/inode.c:1033 __ext4_new_inode+0x331/0x51e0 fs/ext4/ialloc.c:958 ext4_symlink+0x3d4/0xa60 fs/ext4/namei.c:3395 vfs_symlink fs/namei.c:4489 [inline] vfs_symlink+0x3e8/0x630 fs/namei.c:4473 do_symlinkat+0x263/0x310 fs/namei.c:4515 __do_sys_symlinkat fs/namei.c:4531 [inline] __se_sys_symlinkat fs/namei.c:4528 [inline] __x64_sys_symlinkat+0x97/0xc0 fs/namei.c:4528 Memory state around the buggy address: ffffc90005877a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90005877b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 >ffffc90005877b80: f1 f1 04 f2 04 f2 00 f3 f3 f3 00 00 00 00 00 00 ^ ffffc90005877c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90005877c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ==================================================================