bisecting fixing commit since fb683b5e3f53a73e761952735736180939a313df building syzkaller on 4b83c8fbed7b9cea831be880ec8aa1098b465f25 testing commit fb683b5e3f53a73e761952735736180939a313df with gcc (GCC) 8.1.0 kernel signature: cdf47701491ab3b6314ea8857b55372467b7d474624807474ffc2fe5164ac248 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in mem_serial_out testing current HEAD a87f96283793d58b042618c689630db264715274 testing commit a87f96283793d58b042618c689630db264715274 with gcc (GCC) 8.1.0 kernel signature: dc46f7967e2641620c74bf6027b2d421faaaf0b138d07ff36ac35c1a8b415211 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in mem_serial_out revisions tested: 2, total time: 22m40.836551075s (build: 15m57.24348627s, test: 5m53.84646336s) the crash still happens on HEAD commit msg: Linux 4.19.145 crash: BUG: unable to handle kernel NULL pointer dereference in mem_serial_out IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready BUG: unable to handle kernel NULL pointer dereference at 0000000000000003 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready PGD 91014067 P4D 91014067 PUD 91015067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7435 Comm: syz-executor.2 Not tainted 4.19.145-syzkaller #0 8021q: adding VLAN 0 to HW filter on device batadv0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:writeb arch/x86/include/asm/io.h:65 [inline] RIP: 0010:mem_serial_out+0x61/0x90 drivers/tty/serial/8250/8250_port.c:407 Code: b6 8b e1 00 00 00 48 8d 7b 40 48 b8 00 00 00 00 00 fc ff df d3 e6 48 89 f9 48 c1 e9 03 80 3c 01 00 75 23 48 63 f6 48 03 73 40 <88> 16 48 83 c4 08 5b 5d c3 89 55 f0 89 75 f4 e8 6b f7 1c fe 8b 55 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready RSP: 0018:ffff88809106f7e0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffffff8abdd150 RCX: 1ffffffff157ba32 RDX: 00000000000000bf RSI: 0000000000000003 RDI: ffffffff8abdd190 RBP: ffff88809106f7f0 R08: ffffed10148261d6 R09: ffffed10148261d5 R10: ffffed10148261d5 R11: ffff8880a4130eab R12: ffffffff8abdd2a0 IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready R13: ffffffff8abdd150 R14: ffffffff8abdd1a0 R15: ffffffff8abdd22c 8021q: adding VLAN 0 to HW filter on device batadv0 FS: 00007f9786aa0700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000003 CR3: 0000000091185000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: serial_port_out include/linux/serial_core.h:274 [inline] serial8250_do_startup+0xf4d/0x1b00 drivers/tty/serial/8250/8250_port.c:2136 serial8250_startup+0x3f/0x50 drivers/tty/serial/8250/8250_port.c:2413 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready uart_port_startup drivers/tty/serial/serial_core.c:218 [inline] uart_startup.part.18+0x38f/0x840 drivers/tty/serial/serial_core.c:257 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready uart_startup drivers/tty/serial/serial_core.c:254 [inline] uart_set_info drivers/tty/serial/serial_core.c:997 [inline] uart_set_info_user drivers/tty/serial/serial_core.c:1025 [inline] uart_ioctl+0x12c8/0x2be0 drivers/tty/serial/serial_core.c:1348 tty_ioctl+0x452/0x1290 drivers/tty/tty_io.c:2669 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a779 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9786a9fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a779 8021q: adding VLAN 0 to HW filter on device batadv0 RDX: 0000000020000080 RSI: 000000000000541f RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9786aa06d4 R13: 00000000004c5c8b R14: 00000000004dbff0 R15: 00000000ffffffff 8021q: adding VLAN 0 to HW filter on device batadv0 Modules linked in: CR2: 0000000000000003 ---[ end trace 87a06b39bf340eaa ]--- IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready RIP: 0010:writeb arch/x86/include/asm/io.h:65 [inline] RIP: 0010:mem_serial_out+0x61/0x90 drivers/tty/serial/8250/8250_port.c:407 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready Code: b6 8b e1 00 00 00 48 8d 7b 40 48 b8 00 00 00 00 00 fc ff df d3 e6 48 89 f9 48 c1 e9 03 80 3c 01 00 75 23 48 63 f6 48 03 73 40 <88> 16 48 83 c4 08 5b 5d c3 89 55 f0 89 75 f4 e8 6b f7 1c fe 8b 55 IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready RSP: 0018:ffff88809106f7e0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffffff8abdd150 RCX: 1ffffffff157ba32 RDX: 00000000000000bf RSI: 0000000000000003 RDI: ffffffff8abdd190 8021q: adding VLAN 0 to HW filter on device batadv0 RBP: ffff88809106f7f0 R08: ffffed10148261d6 R09: ffffed10148261d5 R10: ffffed10148261d5 R11: ffff8880a4130eab R12: ffffffff8abdd2a0 R13: ffffffff8abdd150 R14: ffffffff8abdd1a0 R15: ffffffff8abdd22c FS: 00007f9786aa0700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000960004 CR3: 0000000091185000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400