syzbot


general protection fault in rdma_init_qp_attr

Status: fixed on 2018/03/23 18:14
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+0df1ab766f8924b1edba@syzkaller.appspotmail.com
Fix commit: a5880b844303 RDMA/ucma: Check that user doesn't overflow QP state
First crash: 2240d, last: 2223d
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/63] 4.4.122-stable review 79 (79) 2018/04/06 07:51
[PATCH 4.9 00/86] 4.9.88-stable review 97 (97) 2018/03/22 17:47
[PATCH 4.15 000/146] 4.15.10-stable review 160 (160) 2018/03/15 10:19
[PATCH 4.14 000/140] 4.14.27-stable review 150 (150) 2018/03/14 18:26
general protection fault in rdma_init_qp_attr 0 (1) 2018/03/07 15:59
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in rdma_init_qp_attr (2) rdma C 753 2217d 2223d 5/26 fixed on 2018/04/06 16:37

Sample crash report:
audit: type=1400 audit(1520446049.334:6): avc:  denied  { map } for  pid=4180 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
audit: type=1400 audit(1520446055.664:7): avc:  denied  { map } for  pid=4194 comm="syzkaller824739" path="/root/syzkaller824739928" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
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: 4194 Comm: syzkaller824739 Not tainted 4.16.0-rc4+ #344
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:2665 [inline]
RIP: 0010:rdma_init_qp_attr+0x8b/0x720 drivers/infiniband/core/cma.c:1025
RSP: 0018:ffff8801d2f7f840 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801b9e2c040 RCX: ffffffff841b86bf
RDX: 0000000000000029 RSI: ffff8801d2f7f9c8 RDI: 0000000000000148
RBP: ffff8801d2f7f880 R08: ffffed003a5eff4e R09: ffff8801d2f7f9cc
R10: 0000000000000000 R11: ffffed003a5eff4d R12: ffff8801d2f7f9c8
R13: ffff8801d2f7f908 R14: 0000000000000000 R15: ffff8801d2f7f908
FS:  00000000010bb880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560443e860a8 CR3: 00000001b9369004 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_init_qp_attr+0x20b/0x3e0 drivers/infiniband/core/ucma.c:1159
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1627
 __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:00007ffdb4873648 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fdc9
RDX: 0000000000000018 RSI: 0000000020000040 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:2665 [inline] RSP: ffff8801d2f7f840
RIP: rdma_init_qp_attr+0x8b/0x720 drivers/infiniband/core/cma.c:1025 RSP: ffff8801d2f7f840
---[ end trace 4ae888ed80f7b750 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2096):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/07 18:10 upstream 86f84779d8e9 a5e76540 .config console log report syz C ci-upstream-kasan-gce
2018/03/06 19:09 upstream ce380619fab9 c8a18476 .config console log report syz C ci-upstream-kasan-gce
2018/03/06 18:45 upstream ce380619fab9 c8a18476 .config console log report syz C ci-upstream-kasan-gce
2018/03/07 18:11 upstream 86f84779d8e9 a5e76540 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 19:47 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 18:55 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/23 01:46 upstream c4f4d2f91772 2e9d9054 .config console log report ci-upstream-kasan-gce
2018/03/21 03:15 upstream 3215b9d57a2c 113a43ff .config console log report ci-upstream-kasan-gce
2018/03/19 20:49 upstream c698ca527893 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/19 05:23 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 03:37 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 02:24 upstream 3032f8c504d2 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 15:25 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 12:51 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 08:43 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/14 02:44 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 21:13 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 09:54 upstream fc6eabbbf8ef 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/13 00:24 upstream fc6eabbbf8ef f505ca4b .config console log report ci-upstream-kasan-gce
2018/03/12 12:42 upstream 0c8efd610b58 f505ca4b .config console log report ci-upstream-kasan-gce
2018/03/11 16:19 upstream 3266b5bd97ea 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/11 09:29 upstream 3266b5bd97ea 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/06 22:50 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:49 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:47 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:38 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:34 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:33 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:32 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:29 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 22:00 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 21:42 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 21:33 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 21:16 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 21:06 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 21:02 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 20:46 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 20:46 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 20:39 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 20:34 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/06 18:28 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/22 05:13 upstream 3215b9d57a2c 95c88d7a .config console log report ci-upstream-kasan-gce-386
2018/03/21 17:53 upstream 3215b9d57a2c f63eeee9 .config console log report ci-upstream-kasan-gce-386
2018/03/19 06:39 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/17 21:57 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/16 09:25 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/16 01:16 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/15 14:36 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/08 13:49 upstream 1b88accf6a65 acd0caa5 .config console log report ci-upstream-kasan-gce-386
2018/03/08 02:51 upstream 851710a80961 d50edb7e .config console log report ci-upstream-kasan-gce-386
2018/03/06 21:11 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce-386
2018/03/06 21:09 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.