syzbot


KCSAN: data-race in p9_poll_workfn / p9_write_work (7)

Status: moderation: reported on 2025/05/12 21:18
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+e7fe00759b8dc3c30160@syzkaller.appspotmail.com
First crash: 48d, last: 35d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (2) v9fs 1 1513d 1513d 0/29 auto-closed as invalid on 2021/06/12 15:05
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (5) v9fs 2 451d 459d 0/29 auto-obsoleted due to no activity on 2024/05/09 10:29
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (4) v9fs 1 1020d 1020d 0/29 auto-obsoleted due to no activity on 2022/10/18 20:14
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (3) v9fs 1 1439d 1439d 0/29 auto-closed as invalid on 2021/08/25 10:41
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (6) v9fs 3 390d 407d 0/29 auto-obsoleted due to no activity on 2024/07/10 06:15
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work v9fs 43 2031d 2075d 0/29 auto-closed as invalid on 2020/02/15 21:46

Sample crash report:
==================================================================
BUG: KCSAN: data-race in p9_poll_workfn / p9_write_work

read to 0xffff8881190a1e58 of 4 bytes by task 3397 on cpu 1:
 p9_fd_poll net/9p/trans_fd.c:229 [inline]
 p9_poll_mux net/9p/trans_fd.c:630 [inline]
 p9_poll_workfn+0xeb/0x3e0 net/9p/trans_fd.c:1172
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3319
 worker_thread+0x582/0x770 kernel/workqueue.c:3400
 kthread+0x486/0x510 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

write to 0xffff8881190a1e58 of 4 bytes by task 3679 on cpu 0:
 p9_fd_write net/9p/trans_fd.c:436 [inline]
 p9_write_work+0x5ae/0x720 net/9p/trans_fd.c:485
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3319
 worker_thread+0x582/0x770 kernel/workqueue.c:3400
 kthread+0x486/0x510 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000000 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3679 Comm: kworker/0:8 Not tainted 6.15.0-rc7-syzkaller-00152-gd0c22de9995b #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events p9_write_work
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/25 09:06 upstream d0c22de9995b ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_poll_workfn / p9_write_work
2025/05/12 21:18 upstream 82f2b0b97b36 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_poll_workfn / p9_write_work
* Struck through repros no longer work on HEAD.