syzbot


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

Status: auto-closed as invalid on 2021/10/15 22:14
Subsystems: fs
[Documentation on labels]
First crash: 962d, last: 951d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (7) fs 1 804d 804d 0/26 auto-closed as invalid on 2022/03/12 11:24
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (9) fs 9 419d 538d 0/26 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 3 21d 49d 0/26 moderation: reported on 2024/03/01 03:09
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (6) fs 1 846d 846d 0/26 auto-closed as invalid on 2022/01/29 14:05
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (2) fs 2 1167d 1170d 0/26 auto-closed as invalid on 2021/03/14 02:07
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (4) fs 1 1045d 1045d 0/26 auto-closed as invalid on 2021/07/14 13:56
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (3) fs 1 1115d 1115d 0/26 auto-closed as invalid on 2021/05/17 11:16
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (8) fs 1 754d 754d 0/26 auto-closed as invalid on 2022/05/01 05:30
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback fs 221 1355d 1392d 0/26 auto-closed as invalid on 2020/08/31 10:40
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (10) fs 2 144d 130d 0/26 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 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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/10 22:12 upstream e99f23c5bf59 3ce60af8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2021/08/30 23:09 upstream 8596e589b787 8f58a0ef .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.