syzbot


general protection fault in ucma_connect

Status: fixed on 2018/03/23 18:14
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+36712f50b0552615bf59@syzkaller.appspotmail.com
Fix commit: e8980d67d601 RDMA/ucma: Ensure that CM_ID exists prior to access it
First crash: 2397d, last: 2397d
Duplicate bugs (3)
duplicates (3):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in ucma_accept rdma C 3 2396d 2403d 0/28 closed as dup on 2018/03/19 10:17
general protection fault in ucma_set_ib_path rdma C 2 2404d 2403d 0/28 closed as dup on 2018/03/19 14:14
general protection fault in ucma_query_route rdma C 5 2396d 2401d 0/28 closed as dup on 2018/03/19 10:15
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 3.16 000/410] 3.16.57-rc1 review 426 (426) 2018/11/12 17:42
[PATCH 3.2 000/153] 3.2.102-rc1 review 155 (155) 2018/05/30 22:14
[PATCH 4.4 00/72] 4.4.127-stable review 83 (83) 2018/05/17 08:56
[PATCH 4.9 000/102] 4.9.93-stable review 111 (111) 2018/04/12 16:56
[PATCH 4.15 00/72] 4.15.16-stable review 78 (78) 2018/04/07 06:10
[PATCH 4.14 00/67] 4.14.33-stable review 71 (71) 2018/04/06 22:10
general protection fault in ucma_connect 1 (2) 2018/03/17 00:21

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] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4215 Comm: syzkaller255546 Not tainted 4.16.0-rc5+ #355
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ucma_copy_conn_param drivers/infiniband/core/ucma.c:1021 [inline]
RIP: 0010:ucma_connect+0x49d/0x870 drivers/infiniband/core/ucma.c:1042
RSP: 0018:ffff8801b7d678f8 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff8801b7d67aa8 RCX: 0000000000000004
RDX: dffffc0000000000 RSI: 1ffff10036facf27 RDI: 0000000000000020
RBP: ffff8801b7d67ad0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff886133c0 R11: 0000000000000000 R12: 1ffff10036facf21
R13: ffff8801b7d67968 R14: ffff8801bc250e40 R15: ffff8801b7d67928
FS:  00007f8b2af61700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8b2af3fe78 CR3: 00000001bb359004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1633
 __vfs_write+0xef/0x970 fs/read_write.c:480
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x445ad9
RSP: 002b:00007f8b2af60da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 0000000000445ad9
RDX: 0000000000000120 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00000000006dac38 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 006d635f616d6472
R13: 2f646e6162696e69 R14: 666e692f7665642f R15: 0000000000000004
Code: b6 14 16 84 d2 74 09 80 fa 03 0f 8e a5 01 00 00 48 8d 78 20 89 8b 90 fe ff ff 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <0f> b6 0c 11 48 89 fa 83 e2 07 83 c2 01 38 ca 7c 08 84 c9 0f 85 
RIP: ucma_copy_conn_param drivers/infiniband/core/ucma.c:1021 [inline] RSP: ffff8801b7d678f8
RIP: ucma_connect+0x49d/0x870 drivers/infiniband/core/ucma.c:1042 RSP: ffff8801b7d678f8
---[ end trace 038c1f5808ef1630 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/16 08:40 upstream e2c15aff5f35 08dacaa0 .config console log report syz C ci-upstream-kasan-gce
2018/03/16 08:34 upstream e2c15aff5f35 08dacaa0 .config console log report syz ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.