syzbot


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

Status: auto-obsoleted due to no activity on 2024/01/01 00:54
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+aba068c680f0815ffd5f@syzkaller.appspotmail.com
First crash: 173d, last: 153d
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 812d 812d 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 427d 546d 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 29d 58d 0/26 moderation: reported on 2024/03/01 03:09
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (6) fs 1 854d 854d 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 1176d 1178d 0/26 auto-closed as invalid on 2021/03/14 02:07
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (5) fs 2 960d 971d 0/26 auto-closed as invalid on 2021/10/15 22:14
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (4) fs 1 1053d 1053d 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 1123d 1123d 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 762d 762d 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 1363d 1400d 0/26 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 0xffff88811ce953e8 of 4 bytes by task 10379 on cpu 1:
 ep_send_events fs/eventpoll.c:1745 [inline]
 ep_poll fs/eventpoll.c:1864 [inline]
 do_epoll_wait+0x805/0xe70 fs/eventpoll.c:2318
 do_epoll_pwait fs/eventpoll.c:2352 [inline]
 __do_sys_epoll_pwait fs/eventpoll.c:2365 [inline]
 __se_sys_epoll_pwait+0x15f/0x280 fs/eventpoll.c:2359
 __x64_sys_epoll_pwait+0x78/0x90 fs/eventpoll.c:2359
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88811ce953e8 of 4 bytes by task 10377 on cpu 0:
 ep_poll_callback+0x4b5/0x5a0 fs/eventpoll.c:1246
 __wake_up_common kernel/sched/wait.c:89 [inline]
 __wake_up_common_lock kernel/sched/wait.c:106 [inline]
 __wake_up+0x64/0xa0 kernel/sched/wait.c:127
 pipe_release+0x114/0x1c0 fs/pipe.c:739
 __fput+0x299/0x630 fs/file_table.c:394
 __fput_sync+0x44/0x50 fs/file_table.c:475
 __do_sys_close fs/open.c:1590 [inline]
 __se_sys_close+0xfa/0x1a0 fs/open.c:1575
 __x64_sys_close+0x1f/0x30 fs/open.c:1575
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x40000018 -> 0x40000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10377 Comm: syz-executor.3 Not tainted 6.7.0-rc2-syzkaller-00265-gd2da77f431ac #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/27 00:53 upstream d2da77f431ac 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2023/11/06 19:15 upstream d2f51b3516da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
* Struck through repros no longer work on HEAD.