================================================================================ UBSAN: array-index-out-of-bounds in drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:942:56 index 29375 is out of range for type 's8 [257]' CPU: 0 PID: 9477 Comm: vivid-000-vid-c Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:356 precalculate_color+0x2621/0x2900 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:942 tpg_precalculate_colors drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:1093 [inline] tpg_recalc+0x5c8/0x2910 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2144 tpg_calc_text_basep+0xbe/0x2b0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2162 vivid_fillbuff+0x188d/0x3c50 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:466 vivid_thread_vid_cap_tick+0x88b/0x2350 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:727 vivid_thread_vid_cap+0x5d1/0xa50 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:866 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ================================================================================ Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 9477 Comm: vivid-000-vid-c Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 panic+0x382/0x7fb kernel/panic.c:231 ubsan_epilogue+0x54/0x5a lib/ubsan.c:162 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:356 precalculate_color+0x2621/0x2900 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:942 tpg_precalculate_colors drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:1093 [inline] tpg_recalc+0x5c8/0x2910 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2144 tpg_calc_text_basep+0xbe/0x2b0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2162 vivid_fillbuff+0x188d/0x3c50 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:466 vivid_thread_vid_cap_tick+0x88b/0x2350 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:727 vivid_thread_vid_cap+0x5d1/0xa50 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:866 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Kernel Offset: disabled Rebooting in 86400 seconds..