syzbot


general protection fault in addr_resolve

Status: fixed on 2018/11/12 21:25
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+20c32fa6ff84a2d28c36@syzkaller.appspotmail.com
Fix commit: fe33507ec38a RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu
First crash: 2045d, last: 2028d
Discussions (2)
Title Replies (including bot) Last reply
RE: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu 3 (3) 2018/10/04 03:34
general protection fault in addr_resolve 2 (4) 2018/09/27 22:06
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in addr_resolve C 433 433d 1837d 0/1 upstream: reported C repro on 2019/04/17 02:44

Sample crash report:
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
IPv6: NLM_F_CREATE should be set when creating new route
IPv6: NLM_F_CREATE should be set when creating new route
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: 6079 Comm: syz-executor651 Not tainted 4.19.0-rc5-next-20180928+ #84
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:copy_src_l2_addr drivers/infiniband/core/addr.c:489 [inline]
RIP: 0010:rdma_set_src_addr_rcu drivers/infiniband/core/addr.c:520 [inline]
RIP: 0010:addr_resolve+0x7bd/0x1b80 drivers/infiniband/core/addr.c:594
Code: 0f 84 da 01 00 00 e8 62 d6 f4 fb 48 8b 85 d0 fd ff ff 48 8d b8 54 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 95
RSP: 0018:ffff8801d4bef368 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801d4bef578 RCX: ffffffff858891e0
RDX: 000000000000003e RSI: ffffffff858891ee RDI: 00000000000001f1
RBP: ffff8801d4bef5a0 R08: ffff8801bba14480 R09: 0000000000000000
R10: ffffed003a97de60 R11: 0000000000000000 R12: ffff8801ccce85a0
R13: 00000000ffffff9d R14: 0000000000000001 R15: 000000000000000a
FS:  0000000000b89880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 00000001c4aa9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rdma_resolve_ip+0x499/0x790 drivers/infiniband/core/addr.c:698
 rdma_resolve_addr+0x2d6/0x2870 drivers/infiniband/core/cma.c:2992
 ucma_resolve_ip+0x242/0x2a0 drivers/infiniband/core/ucma.c:713
 ucma_write+0x336/0x420 drivers/infiniband/core/ucma.c:1686
 __vfs_write+0x119/0x9f0 fs/read_write.c:485
 vfs_write+0x1fc/0x560 fs/read_write.c:549
 ksys_write+0x101/0x260 fs/read_write.c:598
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write fs/read_write.c:607 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:607
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441339
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 db 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe534553f8 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000441339
RDX: 0000000000000048 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00000000006cc018 R08: 0000000000000100 R09: 0000000000000100
R10: 0000000000000100 R11: 0000000000000217 R12: 00000000004022a0
R13: 0000000000402330 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 95414ca7a2cb2aec ]---
RIP: 0010:copy_src_l2_addr drivers/infiniband/core/addr.c:489 [inline]
RIP: 0010:rdma_set_src_addr_rcu drivers/infiniband/core/addr.c:520 [inline]
RIP: 0010:addr_resolve+0x7bd/0x1b80 drivers/infiniband/core/addr.c:594
Code: 0f 84 da 01 00 00 e8 62 d6 f4 fb 48 8b 85 d0 fd ff ff 48 8d b8 54 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 95
RSP: 0018:ffff8801d4bef368 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801d4bef578 RCX: ffffffff858891e0
RDX: 000000000000003e RSI: ffffffff858891ee RDI: 00000000000001f1
RBP: ffff8801d4bef5a0 R08: ffff8801bba14480 R09: 0000000000000000
R10: ffffed003a97de60 R11: 0000000000000000 R12: ffff8801ccce85a0
R13: 00000000ffffff9d R14: 0000000000000001 R15: 000000000000000a
FS:  0000000000b89880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 00000001c4aa9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/28 17:37 linux-next 4794a36bf08d 137d7c66 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/09/27 22:05 linux-next 9e27e2c2d003 0c2fa87b .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/10/08 00:59 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 23:34 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 21:46 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 18:41 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 12:11 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 08:24 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 07:01 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/07 01:45 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/06 12:06 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/06 02:47 linux-next 12ffaa1197f5 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/05 06:47 linux-next 25bcda3e8b9f 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/05 00:14 linux-next 25bcda3e8b9f 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/04 06:18 linux-next 8f84a21675f0 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/03 15:21 linux-next 8f84a21675f0 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/03 02:17 linux-next 62f3d25900c9 0f3e0261 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/02 06:29 linux-next 4794a36bf08d e06f7713 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 21:08 linux-next 4794a36bf08d e06f7713 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 14:05 linux-next 4794a36bf08d 48a50c6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 06:50 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 02:17 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/30 23:24 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/30 18:46 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/30 03:58 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/29 20:39 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/29 19:45 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/29 19:31 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/29 06:51 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/27 18:43 linux-next 9e27e2c2d003 0c2fa87b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/27 18:40 linux-next 9e27e2c2d003 0c2fa87b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/20 13:44 linux-next a0cb0cabe4bb 565a5452 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.