================================================================== 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 960 at addr ffffc90005cebc60 by task vivid-000-vid-c/5229 CPU: 0 UID: 0 PID: 5229 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 10/07/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 1-page vmalloc region starting at 0xffffc90005ceb000 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:0xffff88807fb7ef00 pfn:0x7fb7e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88807fb7ef00 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_ZERO|__GFP_NOWARN), pid 5226, tgid 5222 (syz.6.8067), ts 3397397698244 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_noprof+0x10/0x100 mm/page_alloc.c:5471 alloc_pages_bulk_noprof+0x5fa/0x7c0 mm/page_alloc.c:5295 alloc_pages_bulk_mempolicy_noprof+0x356/0x16d0 mm/mempolicy.c:2794 vm_area_alloc_pages mm/vmalloc.c:3736 [inline] __vmalloc_area_node mm/vmalloc.c:3914 [inline] __vmalloc_node_range_noprof+0xa0a/0x1540 mm/vmalloc.c:4104 vmalloc_user_noprof+0xad/0xe0 mm/vmalloc.c:4259 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_core_poll+0x4b0/0x830 drivers/media/common/videobuf2/videobuf2-core.c:2713 vb2_poll drivers/media/common/videobuf2/videobuf2-v4l2.c:966 [inline] vb2_fop_poll+0x196/0x310 drivers/media/common/videobuf2/videobuf2-v4l2.c:1232 v4l2_poll+0x147/0x2c0 drivers/media/v4l2-core/v4l2-dev.c:350 vfs_poll include/linux/poll.h:82 [inline] ep_item_poll fs/eventpoll.c:1344 [inline] ep_insert+0x11da/0x1af0 fs/eventpoll.c:1944 page last free pid 5226 tgid 5222 ts 3397397668277 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 __kasan_populate_vmalloc_do mm/kasan/shadow.c:393 [inline] __kasan_populate_vmalloc+0x1a8/0x1c0 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:580 [inline] alloc_vmap_area+0xd1a/0x1420 mm/vmalloc.c:2145 __get_vm_area_node+0x200/0x2f0 mm/vmalloc.c:3248 __vmalloc_node_range_noprof+0x343/0x1540 mm/vmalloc.c:4064 vmalloc_user_noprof+0xad/0xe0 mm/vmalloc.c:4259 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_core_poll+0x4b0/0x830 drivers/media/common/videobuf2/videobuf2-core.c:2713 vb2_poll drivers/media/common/videobuf2/videobuf2-v4l2.c:966 [inline] vb2_fop_poll+0x196/0x310 drivers/media/common/videobuf2/videobuf2-v4l2.c:1232 v4l2_poll+0x147/0x2c0 drivers/media/v4l2-core/v4l2-dev.c:350 vfs_poll include/linux/poll.h:82 [inline] ep_item_poll fs/eventpoll.c:1344 [inline] ep_insert+0x11da/0x1af0 fs/eventpoll.c:1944 do_epoll_ctl_file+0x8c2/0xee0 fs/eventpoll.c:2695 do_epoll_ctl fs/eventpoll.c:2742 [inline] __do_sys_epoll_ctl fs/eventpoll.c:2759 [inline] __se_sys_epoll_ctl+0x162/0x230 fs/eventpoll.c:2750 Memory state around the buggy address: ffffc90005cebf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90005cebf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90005cec000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90005cec080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90005cec100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================