------------[ cut here ]------------ Trying to vfree() bad address (0000000000000001) WARNING: CPU: 1 PID: 13152 at mm/vmalloc.c:2561 __vunmap+0x999/0xb70 mm/vmalloc.c:2561 Modules linked in: CPU: 1 PID: 13152 Comm: syz-executor.4 Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__vunmap+0x999/0xb70 mm/vmalloc.c:2561 Code: c0 31 d2 31 f6 48 c7 c7 ff ff ff ff e8 70 33 ff ff e9 fd fe ff ff e8 a6 3e c4 ff 4c 89 e6 48 c7 c7 00 cd 96 89 e8 9c 55 3a 07 <0f> 0b e9 b2 f7 ff ff 45 31 ff e9 38 ff ff ff 48 8d 45 20 48 c7 04 RSP: 0018:ffffc9000207f2d8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff815d87b5 RDI: fffff5200040fe4d RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815d25ee R11: 0000000000000000 R12: 0000000000000001 R13: fffffbfff1ad9174 R14: 0000607f4607b4f8 R15: ffffe8ffffd7b4f8 FS: 00007f1bc73ab700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3043d000 CR3: 000000003455b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __vfree+0x3c/0xd0 mm/vmalloc.c:2635 vfree+0x5a/0x90 mm/vmalloc.c:2666 ipcomp_free_scratches+0xc4/0x160 net/xfrm/xfrm_ipcomp.c:203 ipcomp_free_data net/xfrm/xfrm_ipcomp.c:312 [inline] ipcomp_init_state+0x77c/0xa40 net/xfrm/xfrm_ipcomp.c:364 ipcomp6_init_state+0xc2/0x700 net/ipv6/ipcomp6.c:154 __xfrm_init_state+0x995/0x15c0 net/xfrm/xfrm_state.c:2648 xfrm_state_construct net/xfrm/xfrm_user.c:627 [inline] xfrm_add_sa+0x1ef1/0x35f0 net/xfrm/xfrm_user.c:684 xfrm_user_rcv_msg+0x430/0xa20 net/xfrm/xfrm_user.c:2812 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2834 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2403 ___sys_sendmsg+0xf3/0x170 net/socket.c:2457 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2486 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1bc73ab188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffed2185a3f R14: 00007f1bc73ab300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: c0 31 d2 shlb $0xd2,(%rcx) 3: 31 f6 xor %esi,%esi 5: 48 c7 c7 ff ff ff ff mov $0xffffffffffffffff,%rdi c: e8 70 33 ff ff callq 0xffff3381 11: e9 fd fe ff ff jmpq 0xffffff13 16: e8 a6 3e c4 ff callq 0xffc43ec1 1b: 4c 89 e6 mov %r12,%rsi 1e: 48 c7 c7 00 cd 96 89 mov $0xffffffff8996cd00,%rdi 25: e8 9c 55 3a 07 callq 0x73a55c6 2a: 0f 0b ud2 <-- trapping instruction 2c: e9 b2 f7 ff ff jmpq 0xfffff7e3 31: 45 31 ff xor %r15d,%r15d 34: e9 38 ff ff ff jmpq 0xffffff71 39: 48 8d 45 20 lea 0x20(%rbp),%rax 3d: 48 rex.W 3e: c7 .byte 0xc7 3f: 04 .byte 0x4