syzbot


KCSAN: data-race in ucma_create_id / ucma_get_ctx (2)

Status: auto-closed as invalid on 2020/09/03 16:57
Subsystems: rdma
[Documentation on labels]
First crash: 1643d, last: 1643d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ucma_create_id / ucma_get_ctx rdma 1 1894d 1894d 0/28 auto-closed as invalid on 2020/01/31 01:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ucma_create_id / ucma_get_ctx

write to 0xffff888103048100 of 8 bytes by task 1763 on cpu 0:
 ucma_create_id+0x2bf/0x2d0 drivers/infiniband/core/ucma.c:522
 ucma_write+0x229/0x250 drivers/infiniband/core/ucma.c:1764
 vfs_write+0x1d6/0x690 fs/read_write.c:576
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888103048100 of 8 bytes by task 1768 on cpu 1:
 _ucma_find_context drivers/infiniband/core/ucma.c:142 [inline]
 ucma_get_ctx+0x7b/0x140 drivers/infiniband/core/ucma.c:152
 ucma_resolve_ip+0xd3/0x1b0 drivers/infiniband/core/ucma.c:717
 ucma_write+0x229/0x250 drivers/infiniband/core/ucma.c:1764
 vfs_write+0x1d6/0x690 fs/read_write.c:576
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1768 Comm: syz-executor.2 Not tainted 5.8.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/30 16:56 upstream 83bdc7275e62 b0947553 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.