BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 IP: [] l2tp_session_free+0x11c/0x200 net/l2tp/l2tp_core.c:1667 PGD 80000001d3bfc067 PUD 1cd2c4067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 6656 Comm: syzkaller934612 Not tainted 4.4.116-g17c7c49 #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b0238000 task.stack: ffff8801d4af0000 RIP: 0010:[] [] l2tp_session_free+0x11c/0x200 net/l2tp/l2tp_core.c:1667 RSP: 0018:ffff8801d4af7cd8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8800b9587180 RCX: ffffffff8345b1e1 RDX: 1ffff1003b048210 RSI: 0000000000000001 RDI: ffff8801d8241080 RBP: ffff8801d4af7cf8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1003a95ef5c R12: ffff8801d8240f00 R13: ffff8800b9587188 R14: 0000000000000000 R15: ffffffff82de7e10 FS: 00007fc3d045c700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 00000001cf10a000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801c993aa80 ffff8800b9587180 ffff8801c993ae50 ffff8801c993ad58 ffff8801d4af7d20 ffffffff83465003 ffff8801c993aa80 ffffffff83464f30 ffff8801d7e03ba0 ffff8801d4af7d48 ffffffff82dfcd1a ffff8801c993aa80 Call Trace: [] l2tp_session_dec_refcount_1 net/l2tp/l2tp_core.h:293 [inline] [] pppol2tp_session_destruct+0xd3/0x110 net/l2tp/l2tp_ppp.c:477 [] sk_destruct+0x4a/0x4c0 net/core/sock.c:1447 [] __sk_free+0x57/0x230 net/core/sock.c:1480 [] sk_free+0x30/0x40 net/core/sock.c:1491 [] sock_put include/net/sock.h:1639 [inline] [] pppol2tp_release+0x27a/0x310 net/l2tp/l2tp_ppp.c:518 [] sock_release+0x8d/0x1e0 net/socket.c:586 [] sock_close+0x16/0x20 net/socket.c:1037 [] __fput+0x233/0x6d0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x104/0x180 kernel/task_work.c:115 [] tracehook_notify_resume include/linux/tracehook.h:191 [inline] [] exit_to_usermode_loop+0x13d/0x160 arch/x86/entry/common.c:251 [] prepare_exit_to_usermode arch/x86/entry/common.c:282 [inline] [] syscall_return_slowpath+0x1b5/0x1f0 arch/x86/entry/common.c:347 [] int_ret_from_sys_call+0x25/0xa3 Code: 49 8d bc 24 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 c3 00 00 00 4d 8b b4 24 80 01 00 00 41 ff 8e 80 00 00 00 74 64 e8 45 5b f0 fd e8 40 5b f0 fd 4c RIP [] l2tp_session_free+0x11c/0x200 net/l2tp/l2tp_core.c:1667 RSP CR2: 0000000000000080 ---[ end trace e563f4fa2b65e753 ]---