================================================================== BUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_buffer+0x1220/0x22b0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2707 Write of size 640 at addr ffffc90002566e00 by task vivid-000-vid-c/8955 CPU: 1 UID: 0 PID: 8955 Comm: vivid-000-vid-c Tainted: G L syzkaller #0 PREEMPT(full) CPU: 1 UID: 0 PID: 8955 Comm: vivid-000-vid-c Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 tpg_fill_plane_buffer+0x1220/0x22b0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2707 vivid_fillbuff drivers/media/test-drivers/vivid/vivid-kthread-cap.c:470 [inline] vivid_thread_vid_cap_tick+0x115c/0x6340 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:629 vivid_thread_vid_cap+0x927/0x11e0 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:767 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to a 2-page vmalloc region starting at 0xffffc90002565000 allocated at vb2_vmalloc_alloc+0xef/0x360 drivers/media/common/videobuf2/videobuf2-vmalloc.c:47 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888074061a50 pfn:0x74061 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: ffff888074061a50 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 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 8954, tgid 8949 (syz.1.995), ts 259070394371 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_pages_mpol+0x21e/0x390 mm/mempolicy.c:2495 alloc_frozen_pages_noprof mm/mempolicy.c:2566 [inline] alloc_pages_noprof+0xb1/0x2b0 mm/mempolicy.c:2586 vm_area_alloc_pages mm/vmalloc.c:3690 [inline] __vmalloc_area_node mm/vmalloc.c:3915 [inline] __vmalloc_node_range_noprof+0x709/0x1560 mm/vmalloc.c:4105 vmalloc_user_noprof+0xad/0xe0 mm/vmalloc.c:4260 vb2_vmalloc_alloc+0xef/0x360 drivers/media/common/videobuf2/videobuf2-vmalloc.c:47 __vb2_buf_mem_alloc drivers/media/common/videobuf2/videobuf2-core.c:242 [inline] __vb2_queue_alloc+0xa0b/0x1660 drivers/media/common/videobuf2/videobuf2-core.c:523 vb2_core_reqbufs+0xc3f/0x1470 drivers/media/common/videobuf2/videobuf2-core.c:958 __vb2_init_fileio+0x310/0x1040 drivers/media/common/videobuf2/videobuf2-core.c:2879 __vb2_perform_fileio+0x287/0x1660 drivers/media/common/videobuf2/videobuf2-core.c:3025 vb2_fop_read+0x282/0x360 drivers/media/common/videobuf2/videobuf2-v4l2.c:1202 v4l2_read+0x19c/0x2c0 drivers/media/v4l2-core/v4l2-dev.c:316 vfs_read+0x213/0xa80 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:716 page last free pid 7923 tgid 7922 ts 203786645716 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962 free_pg_vec net/packet/af_packet.c:4383 [inline] packet_set_ring+0x1a5b/0x24b0 net/packet/af_packet.c:4606 packet_release+0x805/0xd30 net/packet/af_packet.c:3183 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1526 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] __do_fast_syscall_32+0x437/0x6a0 arch/x86/entry/syscall_32.c:294 do_fast_syscall_32+0x33/0x70 arch/x86/entry/syscall_32.c:316 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Memory state around the buggy address: ffffc90002566f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002566f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90002567000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90002567080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90002567100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================