syzbot


KCSAN: data-race in do_epoll_wait / ep_poll_callback (5)

Status: auto-closed as invalid on 2021/10/15 22:14
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 463d, last: 452d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (7) 1 304d 304d 0/24 auto-closed as invalid on 2022/03/12 11:24
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (6) 1 346d 346d 0/24 auto-closed as invalid on 2022/01/29 14:05
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (2) 2 668d 670d 0/24 auto-closed as invalid on 2021/03/14 02:07
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (4) 1 545d 545d 0/24 auto-closed as invalid on 2021/07/14 13:56
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (3) 1 615d 615d 0/24 auto-closed as invalid on 2021/05/17 11:16
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (8) 1 255d 255d 0/24 auto-closed as invalid on 2022/05/01 05:30
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback 221 855d 892d 0/24 auto-closed as invalid on 2020/08/31 10:40

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_epoll_wait / ep_poll_callback

write to 0xffff88813adccce8 of 4 bytes by task 32408 on cpu 0:
 ep_send_events fs/eventpoll.c:1699 [inline]
 ep_poll fs/eventpoll.c:1799 [inline]
 do_epoll_wait+0x823/0xf10 fs/eventpoll.c:2227
 __do_sys_epoll_wait fs/eventpoll.c:2239 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2234 [inline]
 __x64_sys_epoll_wait+0x119/0x140 fs/eventpoll.c:2234
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813adccce8 of 4 bytes by task 32412 on cpu 1:
 ep_poll_callback+0x40b/0x4e0 fs/eventpoll.c:1206
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:108
 __wake_up_common_lock kernel/sched/wait.c:138 [inline]
 __wake_up+0x80/0xc0 kernel/sched/wait.c:157
 sock_def_wakeup+0x54/0x70 net/core/sock.c:3013
 inet_shutdown+0x1e4/0x200 net/ipv4/af_inet.c:911
 __sys_shutdown_sock net/socket.c:2248 [inline]
 __sys_shutdown net/socket.c:2260 [inline]
 __do_sys_shutdown net/socket.c:2268 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2266
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2266
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x4000201b -> 0x40000000

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

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/10 22:12 upstream e99f23c5bf59 3ce60af8 .config log report info KCSAN: data-race in do_epoll_wait / ep_poll_callback
ci2-upstream-kcsan-gce 2021/08/30 23:09 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in do_epoll_wait / ep_poll_callback
* Struck through repros no longer work on HEAD.