syzbot


general protection fault in xfrmi_decode_session

Status: upstream: reported C repro on 2019/04/10 14:34
Reported-by: syzbot+e10b6610bfc30a9e12e6@syzkaller.appspotmail.com
First crash: 1180d, last: 659d

Fix bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in xfrmi_decode_session C done 16694 1157d 1229d 13/22 fixed on 2019/05/27 12:48

Sample crash report:
batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
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: 0 PID: 6688 Comm: syz-executor531 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+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 28 68 18 fb e8 e3 2b 2a
RSP: 0018:ffff8880860ff188 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff863f8884
RDX: 0000000000000000 RSI: ffffffff863f82d0 RDI: ffff88809e8c8708
RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 00000000eeb03607 R12: ffff88809e8c8700
R13: 000000000000003f R14: ffff8880896e0900 R15: 0000000000000000
FS:  00007f02def82700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000000a083e000 CR4: 00000000001406f0
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:0x448c79
Code: e8 cc 14 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 2b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f02def81d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000006dec78 RCX: 0000000000448c79
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00000000006dec70 R08: 0000000000010005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec7c
R13: 0000000000003172 R14: 656c6c616b7a7973 R15: 00000000006dec7c
Modules linked in:
---[ end trace 797c78e7ec769cfa ]---
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+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 28 68 18 fb e8 e3 2b 2a
RSP: 0018:ffff8880860ff188 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff863f8884
RDX: 0000000000000000 RSI: ffffffff863f82d0 RDI: ffff88809e8c8708
RBP: 0000000000000039 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 00000000eeb03607 R12: ffff88809e8c8700
R13: 000000000000003f R14: ffff8880896e0900 R15: 0000000000000000
FS:  00007f02def82700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000000a083e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4353):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2020/07/23 11:11 linux-4.19.y 20b3a3dfdf6c 340ea530 .config log report syz C
ci2-linux-4-19 2020/06/25 15:33 linux-4.19.y a39e75458e1c c7b4497a .config log report syz C
ci2-linux-4-19 2020/06/09 05:26 linux-4.19.y 106fa147d3da 0d60b78a .config log report syz C
ci2-linux-4-19 2019/12/24 00:38 linux-4.19.y 672481c2deff be5c2c81 .config log report syz C
ci2-linux-4-19 2019/12/21 00:04 linux-4.19.y 7d120bf21c05 34011c05 .config log report syz C
ci2-linux-4-19 2019/12/15 09:01 linux-4.19.y 312017a460d5 eef6e580 .config log report syz C
ci2-linux-4-19 2019/10/29 18:12 linux-4.19.y ef244c308885 5ea87a66 .config log report syz C
ci2-linux-4-19 2019/10/28 13:14 linux-4.19.y c3038e718a19 25bb509e .config log report syz C
ci2-linux-4-19 2019/10/25 22:32 linux-4.19.y c3038e718a19 04ca72cd .config log report syz C
ci2-linux-4-19 2019/10/20 01:20 linux-4.19.y c3038e718a19 8c88c9c1 .config log report syz C
ci2-linux-4-19 2019/08/06 00:44 linux-4.19.y b3060a1a313f 6affd8e8 .config log report syz C
ci2-linux-4-19 2019/08/04 13:19 linux-4.19.y b3060a1a313f 6affd8e8 .config log report syz C
ci2-linux-4-19 2019/06/16 07:54 linux-4.19.y 7aa823a959e1 442206d7 .config log report syz C
ci2-linux-4-19 2019/05/04 05:11 linux-4.19.y a03957ab0fd5 d28f4ce5 .config log report syz C
ci2-linux-4-19 2019/04/30 05:28 linux-4.19.y 19bb613acb9a b617407b .config log report syz C
ci2-linux-4-19 2019/04/23 12:54 linux-4.19.y c98875d930e9 53199d6e .config log report syz C
ci2-linux-4-19 2019/04/10 14:56 linux-4.19.y 4d552acf3370 65b612b7 .config log report syz C
ci2-linux-4-19 2020/09/12 15:55 linux-4.19.y a87f96283793 21d289c2 .config log report
ci2-linux-4-19 2020/09/11 04:03 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/10 21:14 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/10 17:33 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/10 08:06 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/10 00:00 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/09 20:36 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/09 15:15 linux-4.19.y c37da90efff5 0ea7a887 .config log report
ci2-linux-4-19 2020/09/09 10:04 linux-4.19.y c37da90efff5 0ea7a887 .config log report
ci2-linux-4-19 2020/09/09 07:08 linux-4.19.y c37da90efff5 0ea7a887 .config log report
ci2-linux-4-19 2020/09/09 04:56 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/09 01:35 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 23:28 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 22:06 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 19:00 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 17:43 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 13:36 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 10:22 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 10:21 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 09:17 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/08 01:14 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/07 18:08 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/07 15:07 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/07 12:29 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/07 05:26 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/07 01:54 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 23:41 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 21:37 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 20:54 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 19:24 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 18:11 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 13:20 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 08:43 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 05:18 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/06 02:01 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 22:34 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 21:01 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 19:57 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 17:55 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 16:03 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 08:14 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 06:22 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 06:02 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 04:13 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/05 03:01 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/04 19:56 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/04 18:45 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2019/04/10 14:33 linux-4.19.y 4d552acf3370 65b612b7 .config log report