FAT-fs (loop3): Directory bread(block 65) failed ext4_test_bit(bit=14, block=18) = 1 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 11625 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:read_pnet include/net/net_namespace.h:307 [inline] RIP: 0010:xs_net include/net/xfrm.h:253 [inline] RIP: 0010:xfrmi_decode_session+0x146/0x770 net/xfrm/xfrm_interface.c:94 Code: 7c dc 10 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 f4 05 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5c dc 10 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 c7 05 00 00 4c 8b 23 e8 a8 22 51 fa e8 33 9c 62 FAT-fs (loop3): Directory bread(block 66) failed RSP: 0018:ffff8882302ef408 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000a35d000 RDX: 0000000000000000 RSI: ffffffff86ffe8b0 RDI: ffff888042328788 FAT-fs (loop3): Directory bread(block 67) failed RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888042328780 R13: 0000000000000048 R14: ffff8882303c0640 R15: 0000000000000000 FS: 00007f5b7b02d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 FAT-fs (loop3): Directory bread(block 68) failed CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30925000 CR3: 000000023a804000 CR4: 00000000003426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __xfrm_policy_check+0x1eb/0x2300 net/xfrm/xfrm_policy.c:2339 __xfrm_policy_check2 include/net/xfrm.h:1202 [inline] xfrm_policy_check include/net/xfrm.h:1207 [inline] xfrm4_policy_check include/net/xfrm.h:1212 [inline] vti_input+0x57c/0x800 net/ipv4/ip_vti.c:63 xfrm4_esp_rcv+0xc8/0x220 net/ipv4/xfrm4_protocol.c:100 ip_local_deliver_finish+0x495/0xc00 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:289 [inline] ip_local_deliver+0x188/0x500 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:461 [inline] ip_rcv_finish+0x1ca/0x2e0 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] ip_rcv+0xca/0x3c0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4954 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066 netif_receive_skb_internal+0xf0/0x3f0 net/core/dev.c:5156 napi_frags_finish net/core/dev.c:5684 [inline] napi_gro_frags+0x67b/0x990 net/core/dev.c:5757 tun_get_user+0x3029/0x5100 drivers/net/tun.c:1957 tun_chr_write_iter+0xdb/0x1d0 drivers/net/tun.c:2007 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5b7cabb0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5b7b02d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5b7cbdaf80 RCX: 00007f5b7cabb0f9 RDX: 000000000000003a RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00007f5b7cb16ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe35ded89f R14: 00007f5b7b02d300 R15: 0000000000022000 Modules linked in: ---[ end trace f4d13ab86c7d20ad ]--- RIP: 0010:read_pnet include/net/net_namespace.h:307 [inline] RIP: 0010:xs_net include/net/xfrm.h:253 [inline] RIP: 0010:xfrmi_decode_session+0x146/0x770 net/xfrm/xfrm_interface.c:94 Code: 7c dc 10 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 f4 05 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5c dc 10 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 c7 05 00 00 4c 8b 23 e8 a8 22 51 fa e8 33 9c 62 RSP: 0018:ffff8882302ef408 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000a35d000 RDX: 0000000000000000 RSI: ffffffff86ffe8b0 RDI: ffff888042328788 RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888042328780 R13: 0000000000000048 R14: ffff8882303c0640 R15: 0000000000000000 FS: 00007f5b7b02d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30925000 CR3: 000000023a804000 CR4: 00000000003426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7c dc jl 0xffffffde 2: 10 48 89 adc %cl,-0x77(%rax) 5: fa cli 6: 48 c1 ea 03 shr $0x3,%rdx a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) e: 0f 85 f4 05 00 00 jne 0x608 14: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1b: fc ff df 1e: 49 8b 5c dc 10 mov 0x10(%r12,%rbx,8),%rbx 23: 48 89 da mov %rbx,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 c7 05 00 00 jne 0x5fb 34: 4c 8b 23 mov (%rbx),%r12 37: e8 a8 22 51 fa callq 0xfa5122e4 3c: e8 .byte 0xe8 3d: 33 .byte 0x33 3e: 9c pushfq 3f: 62 .byte 0x62