ci starts bisection 2022-07-26 05:41:25.367259414 +0000 UTC m=+13884.678534926 bisecting fixing commit since f1583cb1be35c23df60b1c39e3e7e6704d749d0b building syzkaller on d236a457274375e5273ac4e958722659929c469f testing commit f1583cb1be35c23df60b1c39e3e7e6704d749d0b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4a5bfe3b1b6f4260790beec2c26d239a5a6cec507adfee125e69188a3b3f4a07 all runs: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer testing current HEAD e0dccc3b76fb35bb257b4118367a883073d7390e testing commit e0dccc3b76fb35bb257b4118367a883073d7390e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 25702727ede6ca138b16e00e6c639a7b95ab5133f7a73fb59d46827e1e4b31cb run #0: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #1: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #2: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #3: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #4: crashed: INFO: rcu detected stall in corrupted run #5: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #6: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #7: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer run #8: crashed: SYZFAIL: wrong response packet run #9: crashed: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer revisions tested: 2, total time: 21m29.559567596s (build: 13m57.669841428s, test: 6m41.386350778s) the crash still happens on HEAD commit msg: Linux 5.19-rc8 crash: KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer ================================================================== BUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2545 [inline] BUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_buffer+0xcaa/0x4430 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2626 Write of size 640 at addr ffffc90003b65fe0 by task vivid-000-vid-c/5584 CPU: 0 PID: 5584 Comm: vivid-000-vid-c Not tainted 5.19.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memcpy+0x39/0x60 mm/kasan/shadow.c:66 tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2545 [inline] tpg_fill_plane_buffer+0xcaa/0x4430 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2626 vivid_fillbuff+0x1821/0x4530 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:470 vivid_thread_vid_cap_tick+0x9d5/0x1e60 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:729 vivid_thread_vid_cap+0x556/0xaa0 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:872 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the virtual mapping at [ffffc900039a4000, ffffc90003b67000) created by: vb2_vmalloc_alloc+0x100/0x380 drivers/media/common/videobuf2/videobuf2-vmalloc.c:47 The buggy address belongs to the physical page: page:ffffea0001dd89c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x77627 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 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_NOWARN|__GFP_ZERO), pid 5582, tgid 5576 (syz-executor.4), ts 105807489216, free_ts 105739146761 prep_new_page mm/page_alloc.c:2456 [inline] get_page_from_freelist+0x19d3/0x3b30 mm/page_alloc.c:4198 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5426 vm_area_alloc_pages mm/vmalloc.c:2927 [inline] __vmalloc_area_node mm/vmalloc.c:2995 [inline] __vmalloc_node_range+0x560/0x1010 mm/vmalloc.c:3165 vmalloc_user+0x62/0x80 mm/vmalloc.c:3319 vb2_vmalloc_alloc+0x100/0x380 drivers/media/common/videobuf2/videobuf2-vmalloc.c:47 __vb2_buf_mem_alloc drivers/media/common/videobuf2/videobuf2-core.c:233 [inline] __vb2_queue_alloc+0x4bb/0x1210 drivers/media/common/videobuf2/videobuf2-core.c:444 vb2_core_reqbufs+0x5e8/0xc30 drivers/media/common/videobuf2/videobuf2-core.c:838 __vb2_init_fileio+0x2d5/0xbc0 drivers/media/common/videobuf2/videobuf2-core.c:2636 __vb2_perform_fileio+0xaa9/0x1280 drivers/media/common/videobuf2/videobuf2-core.c:2761 vb2_fop_read+0x1b1/0x390 drivers/media/common/videobuf2/videobuf2-v4l2.c:1175 v4l2_read+0x1e4/0x280 drivers/media/v4l2-core/v4l2-dev.c:314 do_loop_readv_writev fs/read_write.c:763 [inline] do_loop_readv_writev fs/read_write.c:750 [inline] do_iter_read+0x3e7/0x690 fs/read_write.c:805 vfs_readv+0xc3/0x130 fs/read_write.c:923 do_preadv fs/read_write.c:1015 [inline] __do_sys_preadv fs/read_write.c:1065 [inline] __se_sys_preadv fs/read_write.c:1060 [inline] __x64_sys_preadv+0x1d1/0x290 fs/read_write.c:1060 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1371 [inline] free_pcp_prepare+0x549/0xd20 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page+0x19/0x6a0 mm/page_alloc.c:3438 kasan_depopulate_vmalloc_pte+0x5c/0x70 mm/kasan/shadow.c:359 apply_to_pte_range mm/memory.c:2625 [inline] apply_to_pmd_range mm/memory.c:2669 [inline] apply_to_pud_range mm/memory.c:2705 [inline] apply_to_p4d_range mm/memory.c:2741 [inline] __apply_to_page_range+0x501/0xbc0 mm/memory.c:2775 kasan_release_vmalloc+0xa7/0xc0 mm/kasan/shadow.c:469 __purge_vmap_area_lazy+0x701/0x2320 mm/vmalloc.c:1722 drain_vmap_area_work+0x49/0xc0 mm/vmalloc.c:1751 process_one_work+0x865/0x13d0 kernel/workqueue.c:2289 worker_thread+0x598/0xec0 kernel/workqueue.c:2436 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Memory state around the buggy address: ffffc90003b65f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003b65f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003b66000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90003b66080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90003b66100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================