syzbot


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

Status: auto-closed as invalid on 2021/07/14 13:56
Subsystems: fs
[Documentation on labels]
First crash: 1537d, last: 1537d
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (7) fs 6 1 1296d 1296d 0/29 auto-closed as invalid on 2022/03/12 11:24
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (9) fs 6 9 911d 1030d 0/29 auto-obsoleted due to no activity on 2023/04/08 19:56
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (11) fs 6 3 513d 541d 0/29 auto-obsoleted due to no activity on 2024/05/03 13:41
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (6) fs 6 1 1338d 1338d 0/29 auto-closed as invalid on 2022/01/29 14:05
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (2) fs 6 2 1659d 1662d 0/29 auto-closed as invalid on 2021/03/14 02:07
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (5) fs 6 2 1444d 1455d 0/29 auto-closed as invalid on 2021/10/15 22:14
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (12) fs 6 1 197d 197d 0/29 auto-obsoleted due to no activity on 2025/04/05 04:24
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (3) fs 6 1 1607d 1607d 0/29 auto-closed as invalid on 2021/05/17 11:16
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (8) fs 6 1 1246d 1246d 0/29 auto-closed as invalid on 2022/05/01 05:30
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback fs 6 221 1847d 1884d 0/29 auto-closed as invalid on 2020/08/31 10:40
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (10) fs 6 2 636d 622d 0/29 auto-obsoleted due to no activity on 2024/01/01 00:54

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