================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:320 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:160 Write of size 4 at addr ffffc9000487f820 by task ksoftirqd/1/21 CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.1.99-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] put_bh include/linux/buffer_head.h:320 [inline] end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:160 end_bio_bh_io_sync+0xb3/0x110 fs/buffer.c:2655 req_bio_endio block/blk-mq.c:777 [inline] blk_update_request+0x53b/0x1010 block/blk-mq.c:922 blk_mq_end_request+0x3a/0x70 block/blk-mq.c:1047 blk_complete_reqs block/blk-mq.c:1127 [inline] blk_done_softirq+0xf8/0x140 block/blk-mq.c:1132 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 run_ksoftirqd+0xc6/0x120 kernel/softirq.c:938 smpboot_thread_fn+0x52c/0xa30 kernel/smpboot.c:164 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the virtual mapping at [ffffc90004878000, ffffc90004881000) created by: copy_process+0x637/0x4060 kernel/fork.c:2098 The buggy address belongs to the physical page: page:ffffea00004d9040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13641 memcg:ffff88805ae85982 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88805ae85982 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 6181, tgid 6179 (syz.2.731), ts 205630889596, free_ts 205481391778 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x322e/0x33b0 mm/page_alloc.c:4283 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5551 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] vm_area_alloc_pages mm/vmalloc.c:2994 [inline] __vmalloc_area_node mm/vmalloc.c:3068 [inline] __vmalloc_node_range+0x948/0x1490 mm/vmalloc.c:3240 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct+0x3e5/0x6d0 kernel/fork.c:988 copy_process+0x637/0x4060 kernel/fork.c:2098 create_io_thread+0x11a/0x180 kernel/fork.c:2630 create_io_worker+0x223/0x650 io_uring/io-wq.c:830 io_wqe_create_worker io_uring/io-wq.c:320 [inline] io_wqe_enqueue+0x913/0xc50 io_uring/io-wq.c:946 io_queue_iowq+0x349/0x5e0 io_uring/io_uring.c:459 io_queue_async+0x476/0x640 io_uring/io_uring.c:1886 io_queue_sqe io_uring/io_uring.c:1910 [inline] io_submit_sqe io_uring/io_uring.c:2169 [inline] io_submit_sqes+0xeed/0x1e10 io_uring/io_uring.c:2282 __do_sys_io_uring_enter io_uring/io_uring.c:3288 [inline] __se_sys_io_uring_enter+0x341/0x2730 io_uring/io_uring.c:3220 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3362 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3503 release_pages+0x2836/0x2b40 mm/swap.c:1055 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:565 do_exit+0x9f6/0x26a0 kernel/exit.c:858 do_group_exit+0x202/0x2b0 kernel/exit.c:1021 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 Memory state around the buggy address: ffffc9000487f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000487f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000487f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000487f880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000487f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== vkms_vblank_simulate: vblank timer overrun