l2tp_core: tunl 4: sockfd_lookup(fd=12) returned -9 BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 IP: [] sock_hold include/net/sock.h:589 [inline] IP: [] l2tp_session_create+0x948/0x1030 net/l2tp/l2tp_core.c:1809 PGD 1d21df067 PUD 1d2bf9067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 6840 Comm: syz-executor2 Not tainted 4.4.152-ge5c5f1f #89 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800a2193000 task.stack: ffff8801c28e0000 RIP: 0010:[] [] sock_hold include/net/sock.h:589 [inline] RIP: 0010:[] [] l2tp_session_create+0x948/0x1030 net/l2tp/l2tp_core.c:1809 RSP: 0018:ffff8801c28e7b48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8801d4ef9400 RCX: ffffc90003c54000 RDX: 1ffff1003a9df2b0 RSI: ffffffff835a4993 RDI: ffff8801d4ef9580 RBP: ffff8801c28e7bb8 R08: 000000000000000a R09: 000000000000ffff R10: ffffed003a9df2e8 R11: ffffffff8463a140 R12: ffff8801d4ef9728 R13: ffff8801c28e7cd0 R14: ffff8801d4ef9680 R15: ffffffff835a4470 FS: 00007ff03d0f2700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 00000001c998b000 CR4: 00000000001606f0 Stack: ffffffff81140a6a ffff8801d4ef9420 ffff8801d4ef97d8 ffff8801d4ef9690 ffffffff838cbee0 ffff8801d4ef9730 ffff8801d4ef97d0 ffff8801d4ef94e0 2437d34f00000000 ffff8800b7083b80 0000000000000000 ffff8800b7083bb0 Call Trace: [] pppol2tp_connect+0x10f0/0x1910 net/l2tp/l2tp_ppp.c:725 [] SYSC_connect+0x1b8/0x300 net/socket.c:1570 [] SyS_connect+0x24/0x30 net/socket.c:1551 [] entry_SYSCALL_64_fastpath+0x22/0x9e Code: 00 00 48 8d bb 80 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 36 06 00 00 48 8b 83 80 01 00 00 ff 80 80 00 00 00 48 8d 43 20 48 89 c7 48 89 45 b0 e8 f1 13 RIP [] sock_hold include/net/sock.h:589 [inline] RIP [] l2tp_session_create+0x948/0x1030 net/l2tp/l2tp_core.c:1809 RSP CR2: 0000000000000080 ---[ end trace aa4726f92d8e584d ]---