syzbot


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

Status: auto-closed as invalid on 2021/07/14 13:56
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 600d, last: 600d
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 359d 359d 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 401d 401d 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 722d 724d 0/24 auto-closed as invalid on 2021/03/14 02:07
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (5) 2 506d 517d 0/24 auto-closed as invalid on 2021/10/15 22:14
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (3) 1 670d 670d 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 309d 309d 0/24 auto-closed as invalid on 2022/05/01 05:30
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback 221 910d 946d 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 0xffff888100bf83e8 of 4 bytes by task 6525 on cpu 0:
 ep_send_events fs/eventpoll.c:1698 [inline]
 ep_poll fs/eventpoll.c:1798 [inline]
 do_epoll_wait+0x843/0xf00 fs/eventpoll.c:2226
 __do_sys_epoll_wait fs/eventpoll.c:2238 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2233 [inline]
 __x64_sys_epoll_wait+0xf6/0x120 fs/eventpoll.c:2233
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888100bf83e8 of 4 bytes by task 6544 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:2895
 inet_shutdown+0x1e4/0x200 net/ipv4/af_inet.c:911
 __sys_shutdown_sock net/socket.c:2189 [inline]
 __sys_shutdown net/socket.c:2201 [inline]
 __do_sys_shutdown net/socket.c:2209 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2207
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2207
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x4000201b -> 0x40000000

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2021/06/09 13:50 upstream 368094df48e6 84fe5d96 .config console log report info KCSAN: data-race in do_epoll_wait / ep_poll_callback
* Struck through repros no longer work on HEAD.