================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: stack-out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] BUG: KASAN: stack-out-of-bounds in put_bh include/linux/buffer_head.h:303 [inline] BUG: KASAN: stack-out-of-bounds in end_buffer_read_sync+0x93/0xe0 fs/buffer.c:161 Write of size 4 at addr ffffc900016af890 by task ksoftirqd/1/28 CPU: 1 PID: 28 Comm: ksoftirqd/1 Not tainted 6.8.0-syzkaller-11567-gb3603fcb79b1 #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_write include/linux/instrumented.h:96 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] put_bh include/linux/buffer_head.h:303 [inline] end_buffer_read_sync+0x93/0xe0 fs/buffer.c:161 end_bio_bh_io_sync+0xe5/0x140 fs/buffer.c:2756 bio_endio+0x5f0/0x700 block/bio.c:1603 req_bio_endio block/blk-mq.c:791 [inline] blk_update_request+0x647/0x1820 block/blk-mq.c:936 blk_mq_end_request+0x4f/0x90 block/blk-mq.c:1059 lo_complete_rq+0x232/0x2f0 drivers/block/loop.c:366 blk_complete_reqs+0xae/0xf0 block/blk-mq.c:1134 __do_softirq+0x218/0x922 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:924 [inline] run_ksoftirqd+0x35/0x60 kernel/softirq.c:916 smpboot_thread_fn+0x661/0xa10 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 The buggy address belongs to the virtual mapping at [ffffc900016a8000, ffffc900016b1000) created by: kernel_clone+0xfd/0x980 kernel/fork.c:2796 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a0ca flags: 0xfff80000000000(node=0|zone=1|lastcpupid=0xfff) page_type: 0xffffffff() raw: 00fff80000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 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 5268, tgid 5268 (syz-executor162), ts 876154569358, free_ts 875702282378 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:3545 [inline] __vmalloc_area_node mm/vmalloc.c:3621 [inline] __vmalloc_node_range+0xa26/0x14b0 mm/vmalloc.c:3802 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1114 [inline] copy_process+0xe56/0x9160 kernel/fork.c:2219 kernel_clone+0xfd/0x980 kernel/fork.c:2796 __do_sys_clone+0xba/0x100 kernel/fork.c:2939 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 page last free pid 5477 tgid 5477 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_folios+0x256/0xad0 mm/page_alloc.c:2536 folios_put_refs+0x49c/0x750 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x385/0x460 mm/truncate.c:526 invalidate_bdev+0xab/0xd0 block/bdev.c:96 ntfs_loadlog_and_replay+0x239/0x5c0 fs/ntfs3/fsntfs.c:330 ntfs_fill_super+0x1fc9/0x4490 fs/ntfs3/super.c:1278 get_tree_bdev+0x36f/0x610 fs/super.c:1632 vfs_get_tree+0x8f/0x380 fs/super.c:1797 do_new_mount fs/namespace.c:3352 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __x64_sys_mount+0x297/0x320 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 Memory state around the buggy address: ffffc900016af780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900016af800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900016af880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900016af900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900016af980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================