syzbot


general protection fault in cma_comp_exch

Status: closed as dup on 2018/03/22 09:09
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+a04114f716dd2f836d5b@syzkaller.appspotmail.com
First crash: 2425d, last: 2425d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: null-ptr-deref Write in rdma_resolve_addr rdma C 66 2425d 2436d

Sample crash report:
audit: type=1400 audit(1521563087.500:7): avc:  denied  { map } for  pid=4236 comm="syzkaller767679" path="/root/syzkaller767679650" 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: 4265 Comm: syzkaller767679 Not tainted 4.16.0-rc6+ #360
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0xa09/0x3e00 kernel/locking/lockdep.c:3310
RSP: 0018:ffff8801cb0af330 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000046 RSI: 0000000000000000 RDI: ffffffff86ec9ce0
RBP: ffff8801cb0af6c0 R08: ffffffff841b7aee R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000230 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffff8801b03283c0
FS:  00007f1e3139f700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1e3137de78 CR3: 00000001add10001 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152
 cma_comp_exch+0x2e/0xb0 drivers/infiniband/core/cma.c:448
 rdma_bind_addr+0xe3/0x1b50 drivers/infiniband/core/cma.c:3352
 ucma_bind+0x1b1/0x260 drivers/infiniband/core/ucma.c:657
 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:0x449949
RSP: 002b:00007f1e3139eda8 EFLAGS: 00000297 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000006dac5c RCX: 0000000000449949
RDX: 0000000000000090 RSI: 0000000020000940 RDI: 0000000000000018
RBP: 00000000006dac58 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 006d635f616d6472
R13: 2f646e6162696e69 R14: 666e692f7665642f R15: 0000000000000006
Code: 81 c4 60 03 00 00 44 89 d0 5b 41 5a 41 5c 41 5d 41 5e 41 5f 5d 49 8d 62 f8 c3 4c 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 0a 33 00 00 49 81 3b e0 ed 9f 87 41 bd 00 00 
RIP: __lock_acquire+0xa09/0x3e00 kernel/locking/lockdep.c:3310 RSP: ffff8801cb0af330
---[ end trace 08e45d46c59cca87 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/20 16:27 upstream 1b5f3ba415fe 72c33b66 .config console log report syz C ci-upstream-kasan-gce
2018/03/20 16:12 upstream 1b5f3ba415fe 72c33b66 .config console log report syz ci-upstream-kasan-gce-386
2018/03/20 15:53 upstream 1b5f3ba415fe 72c33b66 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.