kasan: CONFIG_KASAN_INLINE enabled do_mkdirat+0x234/0x2a0 fs/namei.c:3839 __do_sys_mkdir fs/namei.c:3855 [inline] __se_sys_mkdir fs/namei.c:3853 [inline] __x64_sys_mkdir+0x5c/0x80 fs/namei.c:3853 kasan: GPF could be caused by NULL-ptr deref or user memory access do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 general protection fault: 0000 [#1] PREEMPT SMP KASAN entry_SYSCALL_64_after_hwframe+0x49/0xbe CPU: 1 PID: 2829 Comm: syz-executor.5 Not tainted 4.19.51 #23 RIP: 0033:0x4586e7 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Code: 1f 40 00 b8 5a 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 cd c3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ad c3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:net_generic include/net/netns/generic.h:45 [inline] RIP: 0010:xfrmi_decode_session+0x1c1/0x790 net/xfrm/xfrm_interface.c:94 RSP: 002b:00007f7540c16a88 EFLAGS: 00000246 Code: 0a 78 fb 85 db 58 0f 85 93 03 00 00 e8 58 09 78 fb 49 8d bc 24 48 1b 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 61 05 00 00 4d 8b a4 24 48 1b 00 00 e8 08 3b 65 ORIG_RAX: 0000000000000053 RSP: 0018:ffff888033cd7178 EFLAGS: 00010206 RAX: ffffffffffffffda RBX: 00000000200000a8 RCX: 00000000004586e7 RDX: 0000000000000004 RSI: 00000000000001ff RDI: 0000000020000040 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc900108da000 RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a RDX: 0000000000000469 RSI: ffffffff85f2fd98 RDI: 0000000000002348 R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000004 RBP: ffff888033cd71a0 R08: ffff888091592440 R09: ffffed1015d24733 R13: 00000000004c818c R14: 00000000004de9c0 R15: 0000000000000003 R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000800 kobject: 'loop0' (0000000040a4b4d4): kobject_uevent_env R13: 0000000000000039 R14: 000000000000000b R15: ffff88805ece0800 kobject: 'loop0' (0000000040a4b4d4): fill_kobj_path: path = '/devices/virtual/block/loop0' FS: 00007f5ec03db700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e77a0 CR3: 0000000089d65000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __xfrm_policy_check+0x1f6/0x2550 net/xfrm/xfrm_policy.c:2342 __xfrm_policy_check2 include/net/xfrm.h:1203 [inline] xfrm_policy_check include/net/xfrm.h:1208 [inline] xfrm4_policy_check include/net/xfrm.h:1213 [inline] vti_input+0x50f/0x790 net/ipv4/ip_vti.c:63 vti_rcv+0x10b/0x140 net/ipv4/ip_vti.c:109 xfrm4_esp_rcv+0xd2/0x230 net/ipv4/xfrm4_protocol.c:100 ip_local_deliver_finish+0x27e/0xc60 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:450 [inline] ip_rcv_finish+0x1d9/0x2f0 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:4932 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5044 netif_receive_skb_internal+0x117/0x520 net/core/dev.c:5147 napi_frags_finish net/core/dev.c:5690 [inline] napi_gro_frags+0x602/0xa20 net/core/dev.c:5763 tun_get_user+0x2ed8/0x4ba0 drivers/net/tun.c:1946 tun_chr_write_iter+0xbd/0x156 drivers/net/tun.c:1992 call_write_iter include/linux/fs.h:1820 [inline] do_iter_readv_writev+0x558/0x830 fs/read_write.c:681 do_iter_write fs/read_write.c:960 [inline] do_iter_write+0x184/0x5f0 fs/read_write.c:941 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1005 do_writev+0x15e/0x370 fs/read_write.c:1040 __do_sys_writev fs/read_write.c:1113 [inline] __se_sys_writev fs/read_write.c:1110 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1110 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459181 Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 b9 fb ff c3 48 83 ec 08 e8 fa 2c 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 43 2d 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f5ec03daba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000003e RCX: 0000000000459181 RDX: 0000000000000001 RSI: 00007f5ec03dac00 RDI: 00000000000000f0 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 00007f5ec03db9d0 R11: 0000000000000293 R12: 00007f5ec03db6d4 R13: 00000000004c8003 R14: 00000000004de780 R15: 00000000ffffffff Modules linked in: ---[ end trace f8567461e79aa4a7 ]--- RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline] RIP: 0010:net_generic include/net/netns/generic.h:45 [inline] RIP: 0010:xfrmi_decode_session+0x1c1/0x790 net/xfrm/xfrm_interface.c:94 Code: 0a 78 fb 85 db 58 0f 85 93 03 00 00 e8 58 09 78 fb 49 8d bc 24 48 1b 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 61 05 00 00 4d 8b a4 24 48 1b 00 00 e8 08 3b 65 RSP: 0018:ffff888033cd7178 EFLAGS: 00010206 kobject: 'loop3' (00000000c4116b72): kobject_uevent_env RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc900108da000 RDX: 0000000000000469 RSI: ffffffff85f2fd98 RDI: 0000000000002348 RBP: ffff888033cd71a0 R08: ffff888091592440 R09: ffffed1015d24733 R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000800 R13: 0000000000000039 R14: 000000000000000b R15: ffff88805ece0800 FS: 00007f5ec03db700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 kobject: 'loop3' (00000000c4116b72): fill_kobj_path: path = '/devices/virtual/block/loop3' CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004e77a0 CR3: 0000000089d65000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400