syzbot


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

Status: auto-obsoleted due to no activity on 2023/04/08 19:56
Subsystems: fs
[Documentation on labels]
First crash: 546d, last: 428d
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 (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 1124d 1124d 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 763d 763d 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
upstream KCSAN: data-race in do_epoll_wait / ep_poll_callback (10) fs 2 153d 139d 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 0xffff88813865bf68 of 4 bytes by task 3776 on cpu 0:
 ep_send_events fs/eventpoll.c:1708 [inline]
 ep_poll fs/eventpoll.c:1823 [inline]
 do_epoll_wait+0x86c/0xe90 fs/eventpoll.c:2258
 do_epoll_pwait fs/eventpoll.c:2292 [inline]
 __do_sys_epoll_pwait fs/eventpoll.c:2305 [inline]
 __se_sys_epoll_pwait+0x15f/0x280 fs/eventpoll.c:2299
 __x64_sys_epoll_pwait+0x78/0x90 fs/eventpoll.c:2299
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813865bf68 of 4 bytes by task 3767 on cpu 1:
 ep_poll_callback+0x44e/0x530 fs/eventpoll.c:1215
 __wake_up_common+0xb3/0x130 kernel/sched/wait.c:107
 __wake_up_common_lock kernel/sched/wait.c:138 [inline]
 __wake_up_sync_key+0x82/0xc0 kernel/sched/wait.c:208
 unix_write_space+0xcd/0x140 net/unix/af_unix.c:538
 sock_wfree+0x119/0x330 net/core/sock.c:2442
 unix_destruct_scm+0x137/0x160 net/unix/scm.c:152
 skb_release_head_state+0xb7/0x1a0 net/core/skbuff.c:953
 skb_release_all net/core/skbuff.c:964 [inline]
 __kfree_skb+0x16/0x140 net/core/skbuff.c:980
 kfree_skb_reason+0x9f/0x280 net/core/skbuff.c:1013
 kfree_skb include/linux/skbuff.h:1225 [inline]
 unix_release_sock+0x63d/0x780 net/unix/af_unix.c:650
 unix_release+0x52/0x70 net/unix/af_unix.c:1042
 __sock_release net/socket.c:651 [inline]
 sock_close+0x70/0x150 net/socket.c:1393
 __fput+0x245/0x570 fs/file_table.c:321
 ____fput+0x15/0x20 fs/file_table.c:349
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x6000001c -> 0x60000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3767 Comm: syz-executor.2 Not tainted 6.2.0-syzkaller-10443-g8cbd92339db0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 06:19 upstream 8cbd92339db0 ee50e71c .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/02/20 06:15 upstream c9c3395d5e3d bcdf85f8 .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/02/11 22:55 upstream 47e9aa14ce5a 93e26d60 .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/02/05 08:32 upstream db27c22251e7 be607b78 .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/01/11 07:16 upstream 40c18f363a08 48bc529a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2022/12/24 22:36 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2022/12/21 14:13 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2022/11/23 10:16 upstream eb7081409f94 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_epoll_wait / ep_poll_callback
2022/10/29 18:51 upstream 91562cf99364 2a71366b .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.