bisecting fixing commit since bfb9e5c03076a446b1f4f6a523ddc8d723c907a6 building syzkaller on 36650b4b2c942bc382314dce384d311fbadd1208 testing commit bfb9e5c03076a446b1f4f6a523ddc8d723c907a6 with gcc (GCC) 8.1.0 kernel signature: 703ea3e18c45a54f87939acb06423473707d9d5ecaee83e85c49115cf8b7032e all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in mem16_serial_out testing current HEAD 98db2bf27b9ed2d5ed0b6c9c8a4bfcb127a19796 testing commit 98db2bf27b9ed2d5ed0b6c9c8a4bfcb127a19796 with gcc (GCC) 8.1.0 kernel signature: 678569142d9a4e2807b9226576868c49381464d55a17e2a3e8f47bf8f97dc9d6 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in mem16_serial_out revisions tested: 2, total time: 24m9.372437175s (build: 17m11.399009309s, test: 6m24.907956463s) the crash still happens on HEAD commit msg: Linux 4.14.171 crash: BUG: unable to handle kernel NULL pointer dereference in mem16_serial_out IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered forwarding state IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready BUG: unable to handle kernel NULL pointer dereference at 0000000000000002 8021q: adding VLAN 0 to HW filter on device bond0 IP: writew arch/x86/include/asm/io.h:66 [inline] IP: mem16_serial_out+0x61/0xa0 drivers/tty/serial/8250/8250_port.c:414 IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready PGD 91204067 P4D 91204067 PUD 9116b067 PMD 0 IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready Oops: 0002 [#1] PREEMPT SMP KASAN IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready Modules linked in: 8021q: adding VLAN 0 to HW filter on device team0 CPU: 1 PID: 7183 Comm: syz-executor.1 Not tainted 4.14.171-syzkaller #0 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880803b62c0 task.stack: ffff8880a4430000 RIP: 0010:writew arch/x86/include/asm/io.h:66 [inline] RIP: 0010:mem16_serial_out+0x61/0xa0 drivers/tty/serial/8250/8250_port.c:414 RSP: 0018:ffff8880a44378a0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff8a45ce10 RCX: 1ffffffff148b9ca RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffffffff8a45ce50 RBP: ffff8880a44378b0 R08: ffff8880803b6b88 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8a45ce60 R13: ffffffff8a45ce10 R14: ffffffff8a45ce10 R15: ffffffff8a45cedc FS: 00007f4e742b9700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000002 CR3: 00000000912d8000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready serial_out drivers/tty/serial/8250/8250.h:120 [inline] serial8250_clear_fifos.part.7+0x35/0xb0 drivers/tty/serial/8250/8250_port.c:557 serial8250_clear_fifos drivers/tty/serial/8250/8250_port.c:556 [inline] serial8250_do_startup+0x34c/0x1ad0 drivers/tty/serial/8250/8250_port.c:2198 serial8250_startup+0x39/0x50 drivers/tty/serial/8250/8250_port.c:2411 uart_port_startup drivers/tty/serial/serial_core.c:231 [inline] uart_startup.part.20+0x2a0/0x710 drivers/tty/serial/serial_core.c:270 uart_startup drivers/tty/serial/serial_core.c:267 [inline] uart_set_info drivers/tty/serial/serial_core.c:1010 [inline] uart_set_info_user drivers/tty/serial/serial_core.c:1038 [inline] uart_ioctl+0x127e/0x2b90 drivers/tty/serial/serial_core.c:1361 tty_ioctl+0x434/0x1260 drivers/tty/tty_io.c:2661 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 IPv6: ADDRCONF(NETDEV_UP): veth0_to_team: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_hsr: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_bond: link is not ready do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a919 RSP: 002b:00007f4e742b8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a919 RDX: 0000000020000240 RSI: 000000000000541f RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4e742b96d4 R13: 00000000004c5e04 R14: 00000000004dc270 R15: 00000000ffffffff Code: 0f b6 8b d1 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 24 48 63 f6 48 03 73 40 <66> 89 16 48 83 c4 08 5b 5d c3 89 55 f0 89 75 f4 e8 4a 16 38 fe RIP: writew arch/x86/include/asm/io.h:66 [inline] RSP: ffff8880a44378a0 RIP: mem16_serial_out+0x61/0xa0 drivers/tty/serial/8250/8250_port.c:414 RSP: ffff8880a44378a0 CR2: 0000000000000002 ---[ end trace b5b1e069d2679584 ]--- IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready