================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:308 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x8f/0xe0 fs/buffer.c:161 Write of size 4 at addr ffffc900058af8a0 by task ksoftirqd/1/22 CPU: 1 PID: 22 Comm: ksoftirqd/1 Not tainted 6.6.0-rc5-syzkaller-00234-g8cb1f10d8c4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 check_region_inline mm/kasan/generic.c:181 [inline] kasan_check_range+0xef/0x190 mm/kasan/generic.c:187 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:308 [inline] end_buffer_read_sync+0x8f/0xe0 fs/buffer.c:161 end_bio_bh_io_sync+0xdd/0x130 fs/buffer.c:2780 bio_endio+0x593/0x6a0 block/bio.c:1603 req_bio_endio block/blk-mq.c:783 [inline] blk_update_request+0x67b/0x1780 block/blk-mq.c:928 blk_mq_end_request+0x57/0x520 block/blk-mq.c:1051 lo_complete_rq+0x232/0x2f0 drivers/block/loop.c:370 blk_complete_reqs+0xb2/0xf0 block/blk-mq.c:1131 __do_softirq+0x218/0x965 kernel/softirq.c:553 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x660/0xa00 kernel/smpboot.c:164 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 The buggy address belongs to the virtual mapping at [ffffc900058a8000, ffffc900058b1000) created by: kernel_clone+0xfd/0x920 kernel/fork.c:2909 The buggy address belongs to the physical page: page:ffffea0001d7ae00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75eb8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 6748, tgid 6748 (syz-executor.0), ts 125509091253, free_ts 125450308656 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0xa6e/0x1540 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1118 [inline] copy_process+0x13e3/0x73f0 kernel/fork.c:2327 kernel_clone+0xfd/0x920 kernel/fork.c:2909 __do_sys_clone3+0x1f1/0x260 kernel/fork.c:3210 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/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:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 mm/swap.c:1042 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] mapping_try_invalidate+0x39a/0x480 mm/truncate.c:535 invalidate_bdev+0xb1/0xd0 block/bdev.c:87 ntfs_loadlog_and_replay+0x23e/0x5e0 fs/ntfs3/fsntfs.c:330 ntfs_fill_super+0x2680/0x4350 fs/ntfs3/super.c:1222 get_tree_bdev+0x3b5/0x650 fs/super.c:1577 vfs_get_tree+0x8c/0x370 fs/super.c:1750 do_new_mount fs/namespace.c:3335 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc900058af780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900058af800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900058af880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900058af900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900058af980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================