syzbot


BUG: unable to handle kernel paging request in xfrmi_decode_session (2)

Status: auto-closed as invalid on 2020/11/20 10:52
Reported-by: syzbot+4dbbeab3c727f6a215e1@syzkaller.appspotmail.com
First crash: 1414d, last: 1370d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel paging request in xfrmi_decode_session 11 1582d 1820d 0/1 auto-closed as invalid on 2020/04/22 00:19

Sample crash report:
BUG: unable to handle kernel paging request at ffffffff00000000
PGD 8c70067 P4D 8c70067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 28828 Comm: syz-executor.4 Not tainted 4.19.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:read_pnet include/net/net_namespace.h:300 [inline]
RIP: 0010:xs_net include/net/xfrm.h:253 [inline]
RIP: 0010:xfrmi_decode_session+0x150/0x770 net/xfrm/xfrm_interface.c:94
Code: 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 28 68 18 fb e8 e3 2b 2a fb 45 31 c9 45 31 c0 31 d2 31
RSP: 0018:ffff88821065f188 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff00000000 RCX: ffffc9000e700000
RDX: 1fffffffe0000000 RSI: ffffffff863f82d0 RDI: ffff88804f74e708
RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: ffff88804f74e700
R13: 00000000000000bc R14: ffff88802ae53700 R15: 0000000000000000
FS:  00007f54953f3700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff00000000 CR3: 000000003a5c7000 CR4: 00000000001406e0
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:5683 [inline]
 napi_gro_frags+0x67b/0x990 net/core/dev.c:5756
 tun_get_user+0x2a53/0x4be0 drivers/net/tun.c:1949
 tun_chr_write_iter+0xb0/0x150 drivers/net/tun.c:1995
 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
 __kernel_write+0x109/0x370 fs/read_write.c:506
 write_pipe_buf+0x153/0x1f0 fs/splice.c:798
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x389/0x800 fs/splice.c:627
 splice_from_pipe fs/splice.c:662 [inline]
 default_file_splice_write+0xd8/0x180 fs/splice.c:810
 do_splice_from fs/splice.c:852 [inline]
 do_splice fs/splice.c:1154 [inline]
 __do_sys_splice fs/splice.c:1428 [inline]
 __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c1f9
Code: 8d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f54953f2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 0000000000032080 RCX: 000000000045c1f9
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 000000000078c098 R08: 0000000000010005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078c04c
R13: 00007fff5db6537f R14: 00007f54953f39c0 R15: 000000000078c04c
Modules linked in:
CR2: ffffffff00000000
---[ end trace 266311fe975a476d ]---
RIP: 0010:read_pnet include/net/net_namespace.h:300 [inline]
RIP: 0010:xs_net include/net/xfrm.h:253 [inline]
RIP: 0010:xfrmi_decode_session+0x150/0x770 net/xfrm/xfrm_interface.c:94
Code: 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 28 68 18 fb e8 e3 2b 2a fb 45 31 c9 45 31 c0 31 d2 31
RSP: 0018:ffff88821065f188 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff00000000 RCX: ffffc9000e700000
RDX: 1fffffffe0000000 RSI: ffffffff863f82d0 RDI: ffff88804f74e708
RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: ffff88804f74e700
R13: 00000000000000bc R14: ffff88802ae53700 R15: 0000000000000000
FS:  00007f54953f3700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff00000000 CR3: 000000003a5c7000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/23 10:51 linux-4.19.y 20b3a3dfdf6c 340ea530 .config console log report ci2-linux-4-19
2020/06/25 14:52 linux-4.19.y a39e75458e1c c7b4497a .config console log report ci2-linux-4-19
2020/06/09 04:56 linux-4.19.y 106fa147d3da 0d60b78a .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.