syzbot


BUG: unable to handle kernel paging request in xfrmi_decode_session

Status: auto-closed as invalid on 2020/04/22 00:19
Reported-by: syzbot+a7f6aa5dcbe9ccbb0059@syzkaller.appspotmail.com
First crash: 2045d, last: 1807d
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 (2) 3 1594d 1639d 0/1 auto-closed as invalid on 2020/11/20 10:52

Sample crash report:
BUG: unable to handle kernel paging request at ffffffff00000000
PGD 8e70067 P4D 8e70067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10431 Comm: syz-executor.5 Not tainted 4.19.91-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:xs_net include/net/xfrm.h:253 [inline]
RIP: 0010:xfrmi_decode_session+0x15d/0x790 net/xfrm/xfrm_interface.c:94
Code: 80 3c 02 00 0f 85 06 06 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 d9 05 00 00 <4c> 8b 23 e8 0b 52 0c fb e8 36 c8 1e fb 45 31 c9 45 31 c0 31 d2 31
RSP: 0018:ffff88808f167178 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff00000000 RCX: ffffc9001081c000
RDX: 1fffffffe0000000 RSI: ffffffff864c7b7c RDI: ffff88807dcc5788
RBP: ffff88808f1671a0 R08: ffff8880a17b6400 R09: ffffed1015d04733
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff88807dcc5780
R13: 0000000000000039 R14: 000000000000000b R15: ffff888056021a40
FS:  00007ff72a534700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff00000000 CR3: 0000000055928000 CR4: 00000000001426f0
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:1202 [inline]
 xfrm_policy_check include/net/xfrm.h:1207 [inline]
 xfrm4_policy_check include/net/xfrm.h:1212 [inline]
 vti_input+0x50f/0x770 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/0xc30 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:453 [inline]
 ip_rcv_finish+0x1d9/0x2e0 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:4946
 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5058
 netif_receive_skb_internal+0x117/0x700 net/core/dev.c:5161
 napi_frags_finish net/core/dev.c:5704 [inline]
 napi_gro_frags+0x602/0xa20 net/core/dev.c:5777
 tun_get_user+0x2f08/0x4c30 drivers/net/tun.c:1939
 tun_chr_write_iter+0xbd/0x156 drivers/net/tun.c:1985
 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:0x45a7d1
Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 e4 b7 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:00007ff72a533ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00000000200000b6 RCX: 000000000045a7d1
RDX: 0000000000000001 RSI: 00007ff72a533c00 RDI: 00000000000000f0
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007ff72a5346d4
R13: 00000000004cab2a R14: 00000000004e4078 R15: 00000000ffffffff
Modules linked in:
CR2: ffffffff00000000
---[ end trace b7670e0fb99f0099 ]---
RIP: 0010:xs_net include/net/xfrm.h:253 [inline]
RIP: 0010:xfrmi_decode_session+0x15d/0x790 net/xfrm/xfrm_interface.c:94
Code: 80 3c 02 00 0f 85 06 06 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 d9 05 00 00 <4c> 8b 23 e8 0b 52 0c fb e8 36 c8 1e fb 45 31 c9 45 31 c0 31 d2 31
RSP: 0018:ffff88808f167178 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff00000000 RCX: ffffc9001081c000
RDX: 1fffffffe0000000 RSI: ffffffff864c7b7c RDI: ffff88807dcc5788
RBP: ffff88808f1671a0 R08: ffff8880a17b6400 R09: ffffed1015d04733
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffff88807dcc5780
R13: 0000000000000039 R14: 000000000000000b R15: ffff888056021a40
FS:  00007ff72a534700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff00000000 CR3: 0000000055928000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/24 00:18 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/12/20 23:48 linux-4.19.y 7d120bf21c05 34011c05 .config console log report ci2-linux-4-19
2019/12/15 08:48 linux-4.19.y 312017a460d5 eef6e580 .config console log report ci2-linux-4-19
2019/11/20 07:27 linux-4.19.y c555efaf1402 432c7650 .config console log report ci2-linux-4-19
2019/11/20 03:37 linux-4.19.y c555efaf1402 432c7650 .config console log report ci2-linux-4-19
2019/10/28 12:58 linux-4.19.y c3038e718a19 25bb509e .config console log report ci2-linux-4-19
2019/10/20 01:00 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/08/06 00:27 linux-4.19.y b3060a1a313f 6affd8e8 .config console log report ci2-linux-4-19
2019/08/04 13:02 linux-4.19.y b3060a1a313f 6affd8e8 .config console log report ci2-linux-4-19
2019/05/04 04:51 linux-4.19.y a03957ab0fd5 d28f4ce5 .config console log report ci2-linux-4-19
2019/04/30 05:08 linux-4.19.y 19bb613acb9a b617407b .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.