bisecting fixing commit since 9791581c049c10929e97098374dd1716a81fefcc building syzkaller on d4f4eca56fbea6f58a4d5adfd19cb5e0dc32fe46 testing commit 9791581c049c10929e97098374dd1716a81fefcc with gcc (GCC) 10.2.1 20210217 kernel signature: 399b3e26da0329912b73f554dd90a6566e52f5f5e8b5e927a1fab5a8f616d72c run #0: crashed: UBSAN: array-index-out-of-bounds in decode_data run #1: crashed: UBSAN: array-index-out-of-bounds in decode_data run #2: crashed: UBSAN: array-index-out-of-bounds in decode_data run #3: crashed: UBSAN: array-index-out-of-bounds in decode_data run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK reproducer seems to be flaky testing current HEAD 7fef2edf7cc753b51f7ccc74993971b0a9c81eca testing commit 7fef2edf7cc753b51f7ccc74993971b0a9c81eca with gcc (GCC) 10.2.1 20210217 kernel signature: 7154cbb4be9b7a5f11bcef1d466bb178076cf86931548fa8e8b90dd496bc62e4 run #0: crashed: UBSAN: array-index-out-of-bounds in decode_data run #1: crashed: UBSAN: array-index-out-of-bounds in decode_data run #2: crashed: UBSAN: array-index-out-of-bounds in decode_data run #3: crashed: UBSAN: array-index-out-of-bounds in decode_data run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK Reproducer flagged being flaky revisions tested: 2, total time: 32m58.457209627s (build: 13m23.152863411s, test: 18m42.729890257s) the crash still happens on HEAD commit msg: sd: don't mess with SD_MINORS for CONFIG_DEBUG_BLOCK_EXT_DEVT crash: UBSAN: array-index-out-of-bounds in decode_data ================================================================================ UBSAN: array-index-out-of-bounds in drivers/net/hamradio/6pack.c:833:16 index 400 is out of range for type 'unsigned char [400]' CPU: 1 PID: 10395 Comm: kworker/u4:8 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x45/0x59 lib/dump_stack.c:105 ubsan_epilogue+0x5/0x40 lib/ubsan.c:148 __ubsan_handle_out_of_bounds.cold+0x43/0x48 lib/ubsan.c:288 decode_data.part.0+0x2c7/0x2d0 drivers/net/hamradio/6pack.c:833 decode_data drivers/net/hamradio/6pack.c:953 [inline] sixpack_decode drivers/net/hamradio/6pack.c:956 [inline] sixpack_receive_buf drivers/net/hamradio/6pack.c:453 [inline] sixpack_receive_buf+0xaef/0x10c0 drivers/net/hamradio/6pack.c:430 tty_ldisc_receive_buf+0xfa/0x1c0 drivers/tty/tty_buffer.c:475 tty_port_default_receive_buf+0x5c/0x90 drivers/tty/tty_port.c:39 receive_buf drivers/tty/tty_buffer.c:491 [inline] flush_to_ldisc+0x19c/0x3d0 drivers/tty/tty_buffer.c:543 process_one_work+0x84c/0x13d0 kernel/workqueue.c:2276 worker_thread+0x598/0x1040 kernel/workqueue.c:2422 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ================================================================================ Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 10395 Comm: kworker/u4:8 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x45/0x59 lib/dump_stack.c:105 panic+0x256/0x4eb kernel/panic.c:232 ubsan_epilogue+0x3f/0x40 lib/ubsan.c:162 __ubsan_handle_out_of_bounds.cold+0x43/0x48 lib/ubsan.c:288 decode_data.part.0+0x2c7/0x2d0 drivers/net/hamradio/6pack.c:833 decode_data drivers/net/hamradio/6pack.c:953 [inline] sixpack_decode drivers/net/hamradio/6pack.c:956 [inline] sixpack_receive_buf drivers/net/hamradio/6pack.c:453 [inline] sixpack_receive_buf+0xaef/0x10c0 drivers/net/hamradio/6pack.c:430 tty_ldisc_receive_buf+0xfa/0x1c0 drivers/tty/tty_buffer.c:475 tty_port_default_receive_buf+0x5c/0x90 drivers/tty/tty_port.c:39 receive_buf drivers/tty/tty_buffer.c:491 [inline] flush_to_ldisc+0x19c/0x3d0 drivers/tty/tty_buffer.c:543 process_one_work+0x84c/0x13d0 kernel/workqueue.c:2276 worker_thread+0x598/0x1040 kernel/workqueue.c:2422 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Kernel Offset: disabled Rebooting in 86400 seconds..