kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 2 PID: 497 Comm: kworker/u10:1 Not tainted 4.13.0-rc7-next-20170901+ #13 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: events_unbound flush_to_ldisc task: ffff88006d2cc400 task.stack: ffff88006d2d0000 RIP: 0010:__read_once_size include/linux/compiler.h:276 [inline] RIP: 0010:n_tty_receive_buf_common+0x154/0x2520 drivers/tty/n_tty.c:1690 RSP: 0018:ffff88006d2d7110 EFLAGS: 00010202 RAX: 000000000000044c RBX: ffff88004b7781c0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff88004b7785d8 RDI: 0000000000002260 RBP: ffff88006d2d72b8 R08: ffff88006d2d69e0 R09: ffff88006d2d69d8 R10: ffff88006d2d6950 R11: 1ffff1000da59b13 R12: ffff88004cc78db4 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88004cc78db4 FS: 0000000000000000(0000) GS:ffff88006de00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f709b893330 CR3: 0000000069657000 CR4: 00000000000026e0 DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: n_tty_receive_buf2+0x33/0x40 drivers/tty/n_tty.c:1746 tty_ldisc_receive_buf+0xa7/0x180 drivers/tty/tty_buffer.c:455 tty_port_default_receive_buf+0x106/0x160 drivers/tty/tty_port.c:37 receive_buf drivers/tty/tty_buffer.c:474 [inline] flush_to_ldisc+0x3c4/0x590 drivers/tty/tty_buffer.c:523 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 Code: 89 85 18 ff ff ff 48 8d 45 98 48 89 85 e0 fe ff ff e8 81 0e fe fe 48 8b 85 18 ff ff ff c6 00 00 48 8b 85 a0 fe ff ff 48 c1 e8 03 <42> 80 3c 30 00 0f 85 6d 1e 00 00 48 8b 85 28 ff ff ff 4c 8b a8 RIP: __read_once_size include/linux/compiler.h:276 [inline] RSP: ffff88006d2d7110 RIP: n_tty_receive_buf_common+0x154/0x2520 drivers/tty/n_tty.c:1690 RSP: ffff88006d2d7110 ---[ end trace 57940a797e31793e ]--- Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..