================================================================== 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:303 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc90009d676e0 by task ksoftirqd/0/15 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.9.0-rc4-syzkaller-00266-g977b1ef51866 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x23d/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x165/0x540 mm/kasan/report.c:488 kasan_report+0x13f/0x180 mm/kasan/report.c:601 kasan_check_range+0x27e/0x290 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+0xbd/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xbb/0x120 fs/buffer.c:2756 req_bio_endio block/blk-mq.c:786 [inline] blk_update_request+0x541/0x1020 block/blk-mq.c:931 blk_mq_end_request+0x3a/0x70 block/blk-mq.c:1054 blk_complete_reqs block/blk-mq.c:1129 [inline] blk_done_softirq+0xfc/0x150 block/blk-mq.c:1134 __do_softirq+0x2c8/0x970 kernel/softirq.c:554 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:924 smpboot_thread_fn+0x540/0xa20 kernel/smpboot.c:164 kthread+0x2ec/0x380 kernel/kthread.c:388 ret_from_fork+0x47/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 [ffffc90009d60000, ffffc90009d69000) created by: copy_process+0x5cd/0x3df0 kernel/fork.c:2220 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a2be memcg:ffff888022665902 flags: 0xfff80000000000(node=0|zone=1|lastcpupid=0xfff) page_type: 0xffffffff() raw: 00fff80000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888022665902 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 7035, tgid -1450948934 (syz-executor.4), ts 7035, free_ts 174198233346 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1d6/0x200 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x33ba/0x3550 mm/page_alloc.c:3317 __alloc_pages+0x252/0x6a0 mm/page_alloc.c:4575 alloc_pages_mpol+0x3e4/0x670 mm/mempolicy.c:2264 vm_area_alloc_pages mm/vmalloc.c:3561 [inline] __vmalloc_area_node mm/vmalloc.c:3637 [inline] __vmalloc_node_range+0x9a0/0x1480 mm/vmalloc.c:3818 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct+0x3e9/0x7d0 kernel/fork.c:1115 copy_process+0x5cd/0x3df0 kernel/fork.c:2220 kernel_clone+0x222/0x8e0 kernel/fork.c:2797 __do_sys_clone3 kernel/fork.c:3098 [inline] __se_sys_clone3+0x2c7/0x340 kernel/fork.c:3082 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x84/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 5636 tgid 5636 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+0x95d/0xa70 mm/page_alloc.c:2347 free_unref_folios+0x181/0xb10 mm/page_alloc.c:2536 folios_put_refs+0x8df/0xa00 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x479/0x11b0 mm/truncate.c:362 kill_bdev block/bdev.c:85 [inline] blkdev_flush_mapping+0x154/0x2b0 block/bdev.c:644 blkdev_put_whole block/bdev.c:651 [inline] bdev_release+0x485/0x710 block/bdev.c:1075 blkdev_release+0x11/0x20 block/fops.c:628 __fput+0x429/0x8a0 fs/file_table.c:422 __do_sys_close fs/open.c:1556 [inline] __se_sys_close+0x15c/0x1f0 fs/open.c:1541 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x84/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffffc90009d67580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90009d67600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90009d67680: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 ^ ffffc90009d67700: 00 00 00 f2 f2 f2 f2 f2 00 f2 f2 f2 01 f3 f3 f3 ffffc90009d67780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================