bisecting fixing commit since 775d01b65b5daa002a9ba60f2d2bb3b1a6ce12fb building syzkaller on 048f2d494ee4a016e2386c28bf8cccdd87896cbd testing commit 775d01b65b5daa002a9ba60f2d2bb3b1a6ce12fb with gcc (GCC) 8.1.0 kernel signature: 26048c47e9e36d7b8347baf8df5e7c2a999dc299 all runs: crashed: KASAN: stack-out-of-bounds Write in ax25_getname testing current HEAD bfb9e5c03076a446b1f4f6a523ddc8d723c907a6 testing commit bfb9e5c03076a446b1f4f6a523ddc8d723c907a6 with gcc (GCC) 8.1.0 kernel signature: d0098041bada45253b8ea05ba3143fbeca1b9da8 all runs: crashed: KASAN: stack-out-of-bounds Write in ax25_getname revisions tested: 2, total time: 22m25.362996763s (build: 15m35.416878139s, test: 6m17.85792212s) the crash still happens on HEAD commit msg: Linux 4.14.159 crash: KASAN: stack-out-of-bounds Write in ax25_getname IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: stack-out-of-bounds in memset include/linux/string.h:332 [inline] BUG: KASAN: stack-out-of-bounds in ax25_getname+0x50/0x7e0 net/ax25/af_ax25.c:1409 Write of size 72 at addr ffff8880947bfcd8 by task syz-executor.1/7645 CPU: 0 PID: 7645 Comm: syz-executor.1 Not tainted 4.14.159-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 print_address_description.cold.7+0x9/0x1c9 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.8+0x11a/0x2d3 mm/kasan/report.c:409 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memset+0x23/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:332 [inline] ax25_getname+0x50/0x7e0 net/ax25/af_ax25.c:1409 get_raw_socket drivers/vhost/net.c:1044 [inline] get_socket drivers/vhost/net.c:1101 [inline] vhost_net_set_backend drivers/vhost/net.c:1136 [inline] vhost_net_ioctl+0xd7b/0x1460 drivers/vhost/net.c:1312 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a219 RSP: 002b:00007f08de6f2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a219 RDX: 0000000020d7c000 RSI: 000000004008af30 RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f08de6f36d4 R13: 00000000004c56ed R14: 00000000004da738 R15: 00000000ffffffff The buggy address belongs to the page: page:ffffea000251efc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x1fffc0000000000() raw: 01fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880947bfc00: f1 f1 f1 04 f2 f2 f2 f2 f2 f2 f2 04 f2 f2 f2 f2 ffff8880947bfc80: f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 >ffff8880947bfd00: 00 04 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 ^ ffff8880947bfd80: 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 ffff8880947bfe00: 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 f3 f3 f3 f3 ==================================================================