syzbot


KCSAN: data-race in unix_dgram_disconnected / unix_dgram_poll

Status: closed as invalid on 2020/06/18 14:24
Subsystems: net
[Documentation on labels]
First crash: 1462d, last: 1462d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in unix_dgram_disconnected / unix_dgram_poll

write to 0xffff888099aaa630 of 4 bytes by task 19512 on cpu 0:
 unix_dgram_disconnected net/unix/af_unix.c:486 [inline]
 unix_dgram_disconnected+0xa8/0xd0 net/unix/af_unix.c:475
 unix_dgram_connect+0x419/0x5a0 net/unix/af_unix.c:1199
 __sys_connect_file+0xdc/0xf0 net/socket.c:1859
 __sys_connect+0x11b/0x150 net/socket.c:1876
 __do_sys_connect net/socket.c:1887 [inline]
 __se_sys_connect net/socket.c:1884 [inline]
 __x64_sys_connect+0x48/0x60 net/socket.c:1884
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888099aaa630 of 4 bytes by task 19507 on cpu 1:
 unix_dgram_poll+0x98/0x400 net/unix/af_unix.c:2701
 sock_poll+0xeb/0x240 net/socket.c:1271
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll.isra.0+0x8d/0x180 fs/eventpoll.c:887
 ep_send_events_proc+0x120/0x5a0 fs/eventpoll.c:1744
 ep_scan_ready_list.constprop.0+0x190/0x430 fs/eventpoll.c:714
 ep_send_events fs/eventpoll.c:1788 [inline]
 ep_poll+0xe2/0x910 fs/eventpoll.c:1925
 do_epoll_wait+0x15a/0x180 fs/eventpoll.c:2320
 __do_sys_epoll_wait fs/eventpoll.c:2330 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2327 [inline]
 __x64_sys_epoll_wait+0x5a/0x70 fs/eventpoll.c:2327
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19507 Comm: syz-executor.0 Not tainted 5.7.0-rc1-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/04/23 08:17 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 2e44d63e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.