syzbot


general protection fault in ucma_set_ib_path (2)

Status: fixed on 2018/05/08 18:30
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+a67bc93e14682d92fc2f@syzkaller.appspotmail.com
Fix commit: 8435168d50e6 RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device
First crash: 2411d, last: 2404d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 3.16 000/366] 3.16.60-rc1 review 370 (370) 2019/03/29 15:47
[PATCH 4.4 00/97] 4.4.129-stable review 111 (111) 2018/05/17 08:54
[PATCH 4.16 000/196] 4.16.4-stable review 213 (213) 2018/04/28 14:59
[PATCH 4.9 00/95] 4.9.96-stable review 120 (120) 2018/04/26 06:46
[PATCH 4.14 000/164] 4.14.36-stable review 172 (172) 2018/04/24 07:25
general protection fault in ucma_set_ib_path (2) 0 (1) 2018/04/03 15:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ucma_set_ib_path rdma C 2 2437d 2436d 0/28 closed as dup on 2018/03/19 14:14

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: 1 PID: 4480 Comm: syzkaller522221 Not tainted 4.16.0+ #12
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rdma_cap_opa_ah include/rdma/ib_verbs.h:2773 [inline]
RIP: 0010:ucma_set_ib_path.isra.14+0x26a/0x850 drivers/infiniband/core/ucma.c:1249
RSP: 0018:ffff8801ad1ef7f0 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000029
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000148
RBP: ffff8801ad1ef9f0 R08: ffffed0035a3df18 R09: ffffffff87b6c65c
R10: 0000000000000002 R11: ffffed0035a3df17 R12: ffff8801ad1ef8a0
R13: 1ffff10035a3df00 R14: ffff8801d97290f0 R15: ffff8801ad112900
FS:  0000000002371880(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000140 CR3: 00000001d96c3001 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_set_option_ib drivers/infiniband/core/ucma.c:1272 [inline]
 ucma_set_option_level drivers/infiniband/core/ucma.c:1291 [inline]
 ucma_set_option+0x234/0x520 drivers/infiniband/core/ucma.c:1325
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1656
 __vfs_write+0xef/0x970 fs/read_write.c:485
 vfs_write+0x189/0x510 fs/read_write.c:549
 ksys_write+0xef/0x220 fs/read_write.c:598
 SYSC_write fs/read_write.c:610 [inline]
 SyS_write+0x24/0x30 fs/read_write.c:607
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x440039
RSP: 002b:00007ffc058b1de8 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440039
RDX: 0000000000000020 RSI: 0000000020001500 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401960
R13: 00000000004019f0 R14: 0000000000000000 R15: 0000000000000000
Code: 00 00 48 c1 ea 03 80 3c 02 00 0f 85 0d 05 00 00 49 8b 07 48 ba 00 00 00 00 00 fc ff df 48 8d b8 48 01 00 00 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 54 05 00 00 48 c1 e3 04 48 03 98 48 01 00 00 
RIP: rdma_cap_opa_ah include/rdma/ib_verbs.h:2773 [inline] RSP: ffff8801ad1ef7f0
RIP: ucma_set_ib_path.isra.14+0x26a/0x850 drivers/infiniband/core/ucma.c:1249 RSP: ffff8801ad1ef7f0
---[ end trace f29aeaedf97bccec ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/03 15:19 upstream 642e7fd23353 676bd07e .config console log report syz C ci-upstream-kasan-gce-root
2018/04/03 13:28 upstream 642e7fd23353 676bd07e .config console log report syz C ci-upstream-kasan-gce
2018/04/03 14:34 upstream 642e7fd23353 676bd07e .config console log report syz ci-upstream-kasan-gce-386
2018/04/03 13:15 upstream 642e7fd23353 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/11 00:31 upstream f2d285669aae 8b8de427 .config console log report ci-upstream-kasan-gce-386
2018/04/11 00:27 upstream f2d285669aae 8b8de427 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.