------------[ cut here ]------------ kernel BUG at net/l2tp/l2tp_core.c:1569! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 18075 Comm: systemd-udevd Not tainted 5.7.0-rc7-next-20200529-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:l2tp_session_free net/l2tp/l2tp_core.c:1569 [inline] RIP: 0010:l2tp_session_free+0x218/0x250 net/l2tp/l2tp_core.c:1562 Code: 89 ef e8 9b fe 55 fc e9 4b ff ff ff e8 71 28 2e fa 4c 89 e7 e8 89 9e e0 fe e9 39 ff ff ff e8 5f 28 2e fa 0f 0b e8 58 28 2e fa <0f> 0b 4c 89 e7 e8 6e 31 6d fa e9 48 fe ff ff 48 89 df e8 61 31 6d RSP: 0018:ffffc9000922f278 EFLAGS: 00010246 RAX: ffff8880a88ca5c0 RBX: ffff88809f37e400 RCX: ffffffff8744d1fd RDX: 0000000000000000 RSI: ffffffff8744d348 RDI: 0000000000000005 RBP: ffff8880984b7000 R08: ffff8880a88ca5c0 R09: ffffed1013096e1a R10: ffff8880984b70cb R11: ffffed1013096e19 R12: 0000000000000000 R13: ffff88809e629030 R14: ffffc9000922f3e0 R15: ffff8880a88ca5c0 FS: 00007f58a352f8c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0ea67fd8 CR3: 00000000a3026000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: l2tp_session_dec_refcount net/l2tp/l2tp_core.h:257 [inline] pppol2tp_session_destruct+0x12e/0x180 net/l2tp/l2tp_ppp.c:424 __sk_destruct+0x4b/0x7b0 net/core/sock.c:1783 sk_destruct+0xbd/0xe0 net/core/sock.c:1827 __sk_free+0xef/0x3d0 net/core/sock.c:1838 sk_free+0x78/0xa0 net/core/sock.c:1849 sock_put include/net/sock.h:1778 [inline] pppol2tp_put_sk+0x9b/0xd0 net/l2tp/l2tp_ppp.c:408 rcu_do_batch kernel/rcu/tree.c:2345 [inline] rcu_core+0x5a2/0x13a0 kernel/rcu/tree.c:2573 __do_softirq+0x268/0x9ee kernel/softirq.c:292 invoke_softirq kernel/softirq.c:380 [inline] irq_exit_rcu+0x13c/0x170 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0xef/0x260 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:576 RIP: 0010:ima_match_policy+0x1cf/0x1410 security/integrity/ima/ima_policy.c:557 Code: 48 89 44 24 50 e8 a1 4d 05 fe 4c 8d 73 10 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 74 08 3c 03 0f 8e ab 0f 00 00 44 8b 63 10 <31> ff 8b 2c 24 44 21 e5 89 ee e8 12 4f 05 fe 85 ed 0f 84 ea 06 00 RSP: 0018:ffffc9000922f5d0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffffff8985a8e0 RCX: ffffffff836dba65 RDX: 0000000000000000 RSI: ffffffff836dadff RDI: 0000000000000001 RBP: ffffffff8a06b2c0 R08: ffff8880a88ca5c0 R09: ffffed1015ce719c R10: ffff8880ae738cdb R11: ffffed1015ce719b R12: 0000000000000002 R13: dffffc0000000000 R14: ffffffff8985a8f0 R15: 0000000000000004 ima_get_action+0x76/0xa0 security/integrity/ima/ima_api.c:194 process_measurement+0x24e/0x1750 security/integrity/ima/ima_main.c:215 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:491 do_open fs/namei.c:3236 [inline] path_openat+0x17a4/0x27d0 fs/namei.c:3351 do_filp_open+0x192/0x260 fs/namei.c:3378 do_sys_openat2+0x585/0x7a0 fs/open.c:1173 do_sys_open+0xc3/0x140 fs/open.c:1189 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f58a23a26f0 Code: 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 19 30 2c 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 fe 9d 01 00 48 89 04 24 RSP: 002b:00007fff0ea65e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 000055e5537a50e0 RCX: 00007f58a23a26f0 RDX: 00000000000001b6 RSI: 0000000000080000 RDI: 000055e551895f4c RBP: 0000000000000008 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000080000 R11: 0000000000000246 R12: 000055e55189568a R13: 0000000000000001 R14: 0000000000000000 R15: 000055e5537a4bb0 Modules linked in: ---[ end trace 3e38516212ead50d ]--- RIP: 0010:l2tp_session_free net/l2tp/l2tp_core.c:1569 [inline] RIP: 0010:l2tp_session_free+0x218/0x250 net/l2tp/l2tp_core.c:1562 Code: 89 ef e8 9b fe 55 fc e9 4b ff ff ff e8 71 28 2e fa 4c 89 e7 e8 89 9e e0 fe e9 39 ff ff ff e8 5f 28 2e fa 0f 0b e8 58 28 2e fa <0f> 0b 4c 89 e7 e8 6e 31 6d fa e9 48 fe ff ff 48 89 df e8 61 31 6d RSP: 0018:ffffc9000922f278 EFLAGS: 00010246 RAX: ffff8880a88ca5c0 RBX: ffff88809f37e400 RCX: ffffffff8744d1fd RDX: 0000000000000000 RSI: ffffffff8744d348 RDI: 0000000000000005 RBP: ffff8880984b7000 R08: ffff8880a88ca5c0 R09: ffffed1013096e1a R10: ffff8880984b70cb R11: ffffed1013096e19 R12: 0000000000000000 R13: ffff88809e629030 R14: ffffc9000922f3e0 R15: ffff8880a88ca5c0 FS: 00007f58a352f8c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0ea67fd8 CR3: 00000000a3026000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400