syzbot
general protection fault in rdma_resolve_route
Status:
upstream: reported C repro on 2019/10/06 23:21
Reported-by: syzbot+69226cc89d87fd4f8f40@syzkaller.appspotmail.com
First crash: 2504d, last: 1545d
▶
▼
Last patch testing requests (7)
▶
▼
Fix bisection attempts (25)
Sample crash report:
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
Modules linked in:
CPU: 0 PID: 10960 Comm: syz-executor148 Not tainted 4.14.280-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a4df0680 task.stack: ffff88808f930000
RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:2682 [inline]
RIP: 0010:rdma_resolve_route+0x1cf/0x2e70 drivers/infiniband/core/cma.c:2687
RSP: 0018:ffff88808f937a50 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000029 RSI: 0000000000000001 RDI: 0000000000000148
RBP: ffff88808f937c10 R08: ffffffff8b9bba00 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000282
R13: ffff8880a51bb680 R14: 0000000000000000 R15: 0000000000000000
FS: 0000555555775300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2f21cd9150 CR3: 00000000a535c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ucma_resolve_route+0xb2/0x120 drivers/infiniband/core/ucma.c:740
ucma_write+0x206/0x2c0 drivers/infiniband/core/ucma.c:1672
__vfs_write+0xe4/0x630 fs/read_write.c:480
vfs_write+0x17f/0x4d0 fs/read_write.c:544
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f2f21c61b69
RSP: 002b:00007ffed2361548 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2f21c61b69
RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d
R10: 000000000000000d R11: 0000000000000246 R12: 00007ffed2361560
R13: 00000000000f4240 R14: 000000000000861a R15: 00007ffed2361554
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 31 26 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7d 00 49 8d bf 48 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 01 26 00 00 48 b8 00 00 00 00 00 fc ff df 45
RIP: rdma_cap_ib_sa include/rdma/ib_verbs.h:2682 [inline] RSP: ffff88808f937a50
RIP: rdma_resolve_route+0x1cf/0x2e70 drivers/infiniband/core/cma.c:2687 RSP: ffff88808f937a50
---[ end trace 3bac86a8a4f741e8 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 48 c1 ea 03 shr $0x3,%rdx
4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
8: 0f 85 31 26 00 00 jne 0x263f
e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
15: fc ff df
18: 4d 8b 7d 00 mov 0x0(%r13),%r15
1c: 49 8d bf 48 01 00 00 lea 0x148(%r15),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 01 26 00 00 jne 0x2635
34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
3b: fc ff df
3e: 45 rex.RB
* Struck through repros no longer work on HEAD.