syzbot


KCSAN: data-race in pipe_poll / pipe_release (4)

Status: auto-obsoleted due to no activity on 2024/04/10 23:01
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+875381b0fdbe00c3521f@syzkaller.appspotmail.com
First crash: 38d, last: 38d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pipe_poll / pipe_release (2) fs 1 1215d 1215d 0/26 auto-closed as invalid on 2021/01/19 18:58
upstream KCSAN: data-race in pipe_poll / pipe_release (3) fs 1 779d 779d 0/26 auto-closed as invalid on 2022/04/01 01:04
upstream KCSAN: data-race in pipe_poll / pipe_release fs 3 1545d 1611d 0/26 auto-closed as invalid on 2020/03/30 06:30

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pipe_poll / pipe_release

read-write to 0xffff88813fc23124 of 4 bytes by task 30961 on cpu 0:
 pipe_release+0x6d/0x1c0 fs/pipe.c:739
 __fput+0x299/0x630 fs/file_table.c:376
 __fput_sync+0x44/0x50 fs/file_table.c:461
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close+0xfa/0x1a0 fs/open.c:1539
 __x64_sys_close+0x1f/0x30 fs/open.c:1539
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88813fc23124 of 4 bytes by task 293 on cpu 1:
 pipe_poll+0x220/0x250 fs/pipe.c:710
 vfs_poll include/linux/poll.h:88 [inline]
 aio_poll_complete_work+0xd6/0x360 fs/aio.c:1734
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 293 Comm: kworker/1:2 Not tainted 6.8.0-rc7-syzkaller-00020-g5847c9777c30 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: events aio_poll_complete_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/06 23:01 upstream 5847c9777c30 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pipe_poll / pipe_release
* Struck through repros no longer work on HEAD.