syzbot


general protection fault in rdma_join_multicast

Status: fixed on 2018/03/23 18:14
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+e6aba77967bd72cbc9d6@syzkaller.appspotmail.com
Fix commit: 7688f2c3bbf5 RDMA/ucma: Fix access to non-initialized CM_ID object
First crash: 2451d, last: 2437d
Discussions (8)
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/97] 4.4.124-stable review 122 (122) 2018/04/10 15:14
[PATCH 4.9 000/177] 4.9.90-stable review 186 (186) 2018/03/24 16:31
[PATCH 4.14 00/77] 4.14.30-stable review 82 (82) 2018/03/24 16:17
[PATCH 3.18 00/47] 3.18.102-stable review 54 (54) 2018/03/24 10:05
[PATCH 4.15 00/84] 4.15.13-stable review 94 (94) 2018/03/24 09:05
general protection fault in rdma_join_multicast 0 (1) 2018/03/07 06:59

Sample crash report:
audit: type=1400 audit(1521319653.606:6): avc:  denied  { map } for  pid=4222 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(1521319665.926:7): avc:  denied  { map } for  pid=4238 comm="syzkaller947936" path="/root/syzkaller947936310" 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: 0 PID: 4239 Comm: syzkaller947936 Not tainted 4.16.0-rc5+ #357
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rdma_protocol_roce include/rdma/ib_verbs.h:2546 [inline]
RIP: 0010:rdma_join_multicast+0x46d/0x3bb0 drivers/infiniband/core/cma.c:4194
RSP: 0018:ffff8801b0fff4f0 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff8801b5b43100 RCX: 0000000000000029
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 0000000000000148
RBP: ffff8801b0fff7f0 R08: 0000000000000000 R09: 1ffff100361ffe7c
R10: ffff8801b0fff3a8 R11: 0000000000000001 R12: ffff8801afe74940
R13: ffff8801b5b431ad R14: 0000000000000000 R15: ffff8801afe74b40
FS:  00000000011b3880(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cc0a0 CR3: 00000001aef74004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_process_join+0x4da/0xa90 drivers/infiniband/core/ucma.c:1375
 ucma_join_ip_multicast+0x274/0x3b0 drivers/infiniband/core/ucma.c:1423
 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:0x441639
RSP: 002b:00007ffea1c44eb8 EFLAGS: 00000207 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441639
RDX: 0000000000000038 RSI: 00000000200003c0 RDI: 0000000000000003
RBP: 0000000000000003 R08: 000000a800000000 R09: 000000a800000000
R10: 000000a800000000 R11: 0000000000000207 R12: 0000000000000000
R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000
Code: 00 48 c1 ea 03 80 3c 02 00 0f 85 d7 34 00 00 49 8b 04 24 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 f5 35 00 00 49 c1 e6 04 4c 03 b0 48 01 00 00 
RIP: rdma_protocol_roce include/rdma/ib_verbs.h:2546 [inline] RSP: ffff8801b0fff4f0
RIP: rdma_join_multicast+0x46d/0x3bb0 drivers/infiniband/core/cma.c:4194 RSP: ffff8801b0fff4f0
---[ end trace ce423934f80d79e7 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (258):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/17 20:50 upstream 8f5fd927c3a7 08dacaa0 .config console log report syz C ci-upstream-kasan-gce
2018/03/06 23:04 upstream ce380619fab9 c8a18476 .config console log report syz C ci-upstream-kasan-gce
2018/03/17 20:50 upstream 8f5fd927c3a7 08dacaa0 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 22:48 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/21 01:03 upstream 1b5f3ba415fe 113a43ff .config console log report ci-upstream-kasan-gce
2018/03/20 15:18 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce
2018/03/20 02:38 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/20 01:29 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/19 20:59 upstream c698ca527893 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/19 17:08 upstream c698ca527893 7e7d7ed2 .config console log report ci-upstream-kasan-gce
2018/03/18 22:23 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 17:07 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 12:31 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 11:23 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 08:29 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/18 00:30 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 21:54 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 12:39 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 10:48 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 07:12 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/17 00:50 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 19:59 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 16:34 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 14:56 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 12:07 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 10:22 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 08:55 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/16 06:42 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 22:26 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/15 17:45 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce
2018/03/20 23:17 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce-386
2018/03/20 19:05 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce-386
2018/03/20 07:52 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce-386
2018/03/20 05:39 upstream 1b5f3ba415fe 7e7d7ed2 .config console log report ci-upstream-kasan-gce-386
2018/03/19 11:45 upstream c698ca527893 7e7d7ed2 .config console log report ci-upstream-kasan-gce-386
2018/03/19 02:07 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 20:45 upstream 9e1909b9da04 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 18:19 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 15:03 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 10:03 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 05:10 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/18 02:09 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/17 18:55 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/17 16:36 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/17 09:19 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/17 04:37 upstream 8f5fd927c3a7 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/16 22:27 upstream df09348f78dc 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/16 01:52 upstream e2c15aff5f35 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/15 16:13 upstream 0aa3fdb8b3a6 08dacaa0 .config console log report ci-upstream-kasan-gce-386
2018/03/06 22:30 upstream ce380619fab9 c8a18476 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.