syzbot


general protection fault in rdma_reject

Status: closed as dup on 2018/03/22 15:25
Reported-by: syzbot+b9336dcb3661363ee088@syzkaller.appspotmail.com
First crash: 1788d, last: 1779d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: null-ptr-deref Write in rdma_resolve_addr C 66 1776d 1787d

Sample crash report:
audit: type=1400 audit(1521188662.048:6): avc:  denied  { map } for  pid=4171 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(1521188684.800:7): avc:  denied  { map } for  pid=4189 comm="syzkaller901248" path="/root/syzkaller901248759" 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: 4193 Comm: syzkaller901248 Not tainted 4.16.0-rc5+ #355
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rdma_reject+0x37/0x220 drivers/infiniband/core/cma.c:3851
RSP: 0018:ffff8801b361f8f8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 1ffff100366c3f29 RCX: ffffffff841bd2bf
RDX: 0000000000000078 RSI: ffff8801b361f970 RDI: 00000000000003c0
RBP: ffff8801b361f928 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff886133c0 R11: 0000000000000000 R12: 0000000000000077
R13: ffff8801b361faa8 R14: ffff8801b361f970 R15: 0000000000000000
FS:  00007fa1e5fa1700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa1e5f7fdb8 CR3: 00000001b9136004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ucma_reject+0x149/0x220 drivers/infiniband/core/ucma.c:1112
 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:0x445b29
RSP: 002b:00007fa1e5fa0ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000006dac3c RCX: 0000000000445b29
RDX: 0000000000000110 RSI: 0000000020000440 RDI: 0000000000000003
RBP: 00000000006dac38 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc87896bcf R14: 00007fa1e5fa19c0 R15: 0000000000000004
Code: 49 89 ff 53 41 89 d4 49 89 f6 48 83 ec 08 e8 e1 44 55 fd 49 8d bf c0 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a0 01 00 00 4d 8b af c0 03 00 00 4d 85 ed 0f 
RIP: rdma_reject+0x37/0x220 drivers/infiniband/core/cma.c:3851 RSP: ffff8801b361f8f8
---[ end trace 64f6e283f928b89b ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2018/03/16 08:27 upstream e2c15aff5f35 08dacaa0 .config console log report syz C
ci-upstream-kasan-gce 2018/03/08 13:51 upstream 1b88accf6a65 acd0caa5 .config console log report syz C
ci-upstream-kasan-gce 2018/03/17 12:38 upstream 8f5fd927c3a7 08dacaa0 .config console log report syz
ci-upstream-kasan-gce-386 2018/03/16 08:23 upstream e2c15aff5f35 08dacaa0 .config console log report syz
ci-upstream-kasan-gce-386 2018/03/12 13:52 upstream 0c8efd610b58 f505ca4b .config console log report syz
ci-upstream-kasan-gce-386 2018/03/08 14:34 upstream 1b88accf6a65 acd0caa5 .config console log report syz
ci-upstream-kasan-gce 2018/03/08 13:16 upstream 1b88accf6a65 acd0caa5 .config console log report
* Struck through repros no longer work on HEAD.