BUG: unable to handle kernel NULL pointer dereference at 0000000000000007 IP: writeb arch/x86/include/asm/io.h:65 [inline] IP: mem_serial_out+0x70/0x90 drivers/tty/serial/8250/8250_port.c:408 PGD 436ee067 P4D 436ee067 PUD a50c5067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 17151 Comm: syz-executor.1 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 task: ffff8880a9dc2600 task.stack: ffff888056408000 RIP: 0010:writeb arch/x86/include/asm/io.h:65 [inline] RIP: 0010:mem_serial_out+0x70/0x90 drivers/tty/serial/8250/8250_port.c:408 RSP: 0018:ffff88805640f988 EFLAGS: 00010202 CPU: 1 PID: 17153 Comm: syz-executor.4 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RAX: dffffc0000000000 RBX: 0000000000000007 RCX: 0000000000000000 Call Trace: RDX: 1ffffffff14911af RSI: ffffffff835075f6 RDI: ffffffff8a488d78 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 RBP: ffff88805640f9a0 R08: ffff8880a9dc2600 R09: ffff8880a9dc2ec8 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8a488d38 should_failslab+0xdb/0x130 mm/failslab.c:32 R13: 00000000000000a0 R14: 0000000000000028 R15: ffff888218fa0ef8 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc_track_caller+0x2ec/0x790 mm/slab.c:3735 FS: 00007fec58cdd700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 memdup_user+0x26/0xa0 mm/util.c:164 CR2: 0000000000000007 CR3: 0000000097f88000 CR4: 00000000001426f0 map_update_elem+0x191/0xc90 kernel/bpf/syscall.c:557 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 SYSC_bpf kernel/bpf/syscall.c:1500 [inline] SyS_bpf+0x5c4/0x2db8 kernel/bpf/syscall.c:1475 Call Trace: serial_port_out include/linux/serial_core.h:265 [inline] serial8250_do_startup+0x13e0/0x1d80 drivers/tty/serial/8250/8250_port.c:2169 serial8250_startup+0x5c/0x80 drivers/tty/serial/8250/8250_port.c:2411 uart_port_startup drivers/tty/serial/serial_core.c:231 [inline] uart_startup.part.0+0x2e9/0x720 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+0x12e9/0x2610 drivers/tty/serial/serial_core.c:1361 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 tty_ioctl+0x841/0x1320 drivers/tty/tty_io.c:2661 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a849 RSP: 002b:00007fa4badc0c78 EFLAGS: 00000246 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fa4badc0c90 RCX: 000000000045a849 RDX: 0000000000000020 RSI: 0000000020000380 RDI: 0000000000000002 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa4badc16d4 R13: 00000000004c0e91 R14: 00000000004d4a70 R15: 0000000000000004 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a849 RSP: 002b:00007fec58cdcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a849 RDX: 0000000020000240 RSI: 000000000000541f RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fec58cdd6d4 R13: 00000000004c5d6b R14: 00000000004dc0f0 R15: 00000000ffffffff Code: 24 d1 00 00 00 49 8d 7c 24 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 d3 e3 80 3c 02 00 75 19 48 63 db 49 03 5c 24 40 <44> 88 2b 5b 41 5c 41 5d 5d c3 e8 f1 65 37 fe eb c0 e8 4a 66 37 RIP: writeb arch/x86/include/asm/io.h:65 [inline] RSP: ffff88805640f988 RIP: mem_serial_out+0x70/0x90 drivers/tty/serial/8250/8250_port.c:408 RSP: ffff88805640f988 CR2: 0000000000000007 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 17154 Comm: syz-executor.0 Tainted: G D 4.14.158-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+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc_trace+0x4b/0x790 mm/slab.c:3616 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] sctp_add_bind_addr+0x6d/0x360 net/sctp/bind_addr.c:159 sctp_copy_local_addr_list+0x2e0/0x430 net/sctp/protocol.c:229 sctp_copy_one_addr+0x52/0x120 net/sctp/bind_addr.c:449 sctp_bind_addr_copy+0xfc/0x294 net/sctp/bind_addr.c:71 sctp_assoc_set_bind_addr_from_ep+0x13a/0x190 net/sctp/associola.c:1612 __sctp_connect+0x655/0xb60 net/sctp/socket.c:1206 __sctp_setsockopt_connectx+0x1fc/0x290 net/sctp/socket.c:1371 sctp_setsockopt_connectx_old net/sctp/socket.c:1386 [inline] sctp_setsockopt net/sctp/socket.c:4015 [inline] sctp_setsockopt+0x1bc7/0x3f50 net/sctp/socket.c:3979 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1865 [inline] SyS_setsockopt+0x13c/0x210 net/socket.c:1844 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a849 RSP: 002b:00007fcc49a1dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fcc49a1dc90 RCX: 000000000045a849 RDX: 000000000000006b RSI: 0000000000000084 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 000000000000001c R09: 0000000000000000 R10: 000000002055bfe4 R11: 0000000000000246 R12: 00007fcc49a1e6d4 R13: 00000000004d2b30 R14: 00000000004e2c18 R15: 0000000000000006 kobject: 'loop5' (ffff8880a414f660): kobject_uevent_env kobject: 'loop5' (ffff8880a414f660): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (ffff88809b2aeaa0): kobject_uevent_env kobject: 'loop3' (ffff88809b2aeaa0): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (ffff8880a414f660): kobject_uevent_env kobject: 'loop5' (ffff8880a414f660): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop5' (ffff8880a414f660): kobject_uevent_env FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 kobject: 'loop5' (ffff8880a414f660): fill_kobj_path: path = '/devices/virtual/block/loop5' CPU: 0 PID: 17169 Comm: syz-executor.4 Tainted: G D 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: kobject: 'loop4' (ffff8880a40fed60): kobject_uevent_env __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 kobject: 'loop4' (ffff8880a40fed60): fill_kobj_path: path = '/devices/virtual/block/loop4' slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x2f0/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] map_update_elem+0x22b/0xc90 kernel/bpf/syscall.c:571 SYSC_bpf kernel/bpf/syscall.c:1500 [inline] SyS_bpf+0x5c4/0x2db8 kernel/bpf/syscall.c:1475 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a849 RSP: 002b:00007fa4badc0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fa4badc0c90 RCX: 000000000045a849 RDX: 0000000000000020 RSI: 0000000020000380 RDI: 0000000000000002 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa4badc16d4 R13: 00000000004c0e91 R14: 00000000004d4a70 R15: 0000000000000004 ---[ end trace 1a2a3d0811d736d4 ]---