================================================================== 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 ffffc90005ac77e0 by task ksoftirqd/0/15 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.1.134-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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:316 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:427 kasan_report+0x136/0x160 mm/kasan/report.c:531 check_region_inline mm/kasan/generic.c:-1 [inline] 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:780 [inline] blk_update_request+0x53b/0x1010 block/blk-mq.c:925 blk_mq_end_request+0x3a/0x70 block/blk-mq.c:1050 blk_complete_reqs block/blk-mq.c:1130 [inline] blk_done_softirq+0xf8/0x140 block/blk-mq.c:1135 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:578 run_ksoftirqd+0xc6/0x120 kernel/softirq.c:945 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:295 The buggy address belongs to the virtual mapping at [ffffc90005ac0000, ffffc90005ac9000) created by: copy_process+0x637/0x40a0 kernel/fork.c:2096 The buggy address belongs to the physical page: page:ffffea0000907b80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x241ee memcg:ffff88802f966a82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88802f966a82 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 4254, tgid 4254 (syz-executor), ts 194965175515, free_ts 189906956928 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5606 vm_area_alloc_pages mm/vmalloc.c:2994 [inline] __vmalloc_area_node mm/vmalloc.c:3063 [inline] __vmalloc_node_range+0x9b3/0x14b0 mm/vmalloc.c:3235 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct+0x3e5/0x6d0 kernel/fork.c:989 copy_process+0x637/0x40a0 kernel/fork.c:2096 kernel_clone+0x222/0x920 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0x242/0x2c0 kernel/fork.c:2806 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 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:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3479 __vunmap+0x873/0xa30 mm/vmalloc.c:2718 vb2_vmalloc_put+0x64/0xa0 drivers/media/common/videobuf2/videobuf2-vmalloc.c:68 __vb2_buf_mem_free+0x100/0x290 drivers/media/common/videobuf2/videobuf2-core.c:266 __vb2_free_mem drivers/media/common/videobuf2/videobuf2-core.c:496 [inline] __vb2_queue_free+0x437/0xa30 drivers/media/common/videobuf2/videobuf2-core.c:541 vb2_core_reqbufs+0x60b/0x13c0 drivers/media/common/videobuf2/videobuf2-core.c:800 __vb2_cleanup_fileio+0xfd/0x1f0 drivers/media/common/videobuf2/videobuf2-core.c:2757 vb2_core_queue_release+0x13/0x80 drivers/media/common/videobuf2/videobuf2-core.c:2474 vb2_queue_release drivers/media/common/videobuf2/videobuf2-v4l2.c:934 [inline] _vb2_fop_release drivers/media/common/videobuf2/videobuf2-v4l2.c:1119 [inline] vb2_fop_release+0x15e/0x1e0 drivers/media/common/videobuf2/videobuf2-v4l2.c:1133 v4l2_release+0x1de/0x390 drivers/media/v4l2-core/v4l2-dev.c:456 __fput+0x3f6/0x8d0 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 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 Memory state around the buggy address: ffffc90005ac7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90005ac7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90005ac7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc90005ac7800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90005ac7880: f1 f1 f1 f1 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 ==================================================================