syzbot


general protection fault in rdma_init_qp_attr (2)

Status: fixed on 2018/04/06 16:37
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+7b62c837c2516f8f38c8@syzkaller.appspotmail.com
Fix commit: 4b658d1bbc16 RDMA/ucma: Check that device is connected prior to access it
First crash: 2211d, last: 2205d
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 rdma_init_qp_attr (2) 0 (1) 2018/03/23 20:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in rdma_init_qp_attr rdma C 2096 2211d 2228d 4/26 fixed on 2018/03/23 18: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: 0 PID: 4185 Comm: syzkaller097489 Not tainted 4.16.0-rc6+ #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rdma_cap_ib_cm include/rdma/ib_verbs.h:2661 [inline]
RIP: 0010:rdma_init_qp_attr+0x8b/0x720 drivers/infiniband/core/cma.c:1025
RSP: 0018:ffff8801b7ca7840 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801b9061200 RCX: ffffffff841bbfbf
RDX: 0000000000000029 RSI: ffff8801b7ca79c8 RDI: 0000000000000148
RBP: ffff8801b7ca7880 R08: ffffed0036f94f4e R09: ffff8801b7ca79cc
R10: 0000000000000000 R11: ffffed0036f94f4d R12: ffff8801b7ca79c8
R13: ffff8801b7ca7908 R14: 0000000000000000 R15: ffff8801b7ca78c8
FS:  000000000223d880(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 00000001b879c004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_init_qp_attr+0x251/0x440 drivers/infiniband/core/ucma.c:1172
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1649
 __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:0x43fdc9
RSP: 002b:00007fff3ab15da8 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fdc9
RDX: 0000000000000018 RSI: 0000000020000cc0 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000217 R12: 00000000004016f0
R13: 0000000000401780 R14: 0000000000000000 R15: 0000000000000000
Code: 00 00 00 fc ff df 80 3c 02 00 0f 85 8c 06 00 00 4c 8b 33 48 b8 00 00 00 00 00 fc ff df 49 8d be 48 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5d 06 00 00 44 0f b6 7d d4 48 b8 00 00 00 00 
RIP: rdma_cap_ib_cm include/rdma/ib_verbs.h:2661 [inline] RSP: ffff8801b7ca7840
RIP: rdma_init_qp_attr+0x8b/0x720 drivers/infiniband/core/cma.c:1025 RSP: ffff8801b7ca7840
---[ end trace 370b22fcc7e30bd0 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (753):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/25 20:58 upstream bcfc1f455466 e033c1f1 .config console log report syz C ci-upstream-kasan-gce-root
2018/03/25 20:39 upstream cb6416592bc2 e033c1f1 .config console log report syz C ci-upstream-kasan-gce
2018/03/23 19:24 upstream f36b7534b833 2e9d9054 .config console log report syz C ci-upstream-kasan-gce
2018/03/23 19:04 upstream f36b7534b833 2e9d9054 .config console log report syz C ci-upstream-kasan-gce
2018/03/25 21:00 upstream cb6416592bc2 e033c1f1 .config console log report syz ci-upstream-kasan-gce-386
2018/03/23 19:23 upstream f36b7534b833 2e9d9054 .config console log report syz ci-upstream-kasan-gce-386
2018/03/23 19:10 upstream f36b7534b833 2e9d9054 .config console log report syz ci-upstream-kasan-gce-386
2018/03/30 03:05 upstream 0b412605ef5f d47f0ed6 .config console log report ci-upstream-kasan-gce
2018/03/29 16:01 upstream 0b412605ef5f d47f0ed6 .config console log report ci-upstream-kasan-gce-root
2018/03/29 12:00 upstream 0b412605ef5f d47f0ed6 .config console log report ci-upstream-kasan-gce-root
2018/03/27 22:42 upstream 3eb2ce825ea1 bf5e585c .config console log report ci-upstream-kasan-gce-root
2018/03/27 11:02 upstream 3eb2ce825ea1 bf5e585c .config console log report ci-upstream-kasan-gce-root
2018/03/26 20:57 upstream 3eb2ce825ea1 0ca7878b .config console log report ci-upstream-kasan-gce
2018/03/26 17:09 upstream 3eb2ce825ea1 0ca7878b .config console log report ci-upstream-kasan-gce-root
2018/03/25 22:05 upstream cb6416592bc2 e033c1f1 .config console log report ci-upstream-kasan-gce
2018/03/25 19:24 upstream cb6416592bc2 e033c1f1 .config console log report ci-upstream-kasan-gce
2018/03/24 06:27 upstream 99fec39e7725 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/24 00:49 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/24 00:22 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 23:46 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 23:12 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 21:43 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 21:25 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 21:01 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 20:57 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 20:00 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 19:51 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 19:31 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 19:07 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 19:06 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 18:54 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/23 18:49 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/29 00:36 upstream 3eb2ce825ea1 bf5e585c .config console log report ci-upstream-kasan-gce-386
2018/03/24 07:51 upstream 99fec39e7725 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/24 00:54 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/24 00:48 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/24 00:35 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/24 00:19 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/24 00:10 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 23:29 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 23:09 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 22:37 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 22:05 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 22:01 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 21:55 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 21:53 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 21:37 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 21:28 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 21:23 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 20:55 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 20:48 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 20:25 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 19:48 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 19:23 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
2018/03/23 18:51 upstream f36b7534b833 2e9d9054 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.