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: 4d09h, last: 4d09h
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 1469d 1469d 0/28 auto-closed as invalid on 2021/06/12 15:05
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (5) v9fs 2 407d 415d 0/28 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 976d 976d 0/28 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 1395d 1395d 0/28 auto-closed as invalid on 2021/08/25 10:41
upstream KCSAN: data-race in p9_poll_workfn / p9_write_work (6) v9fs 3 346d 363d 0/28 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 1987d 2031d 0/28 auto-closed as invalid on 2020/02/15 21:46

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

write to 0xffff888119847c9c of 4 bytes by task 1051 on cpu 1:
 p9_write_work+0x414/0x720 net/9p/trans_fd.c:500
 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

read to 0xffff888119847c9c of 4 bytes by task 2968 on cpu 0:
 p9_poll_mux net/9p/trans_fd.c:648 [inline]
 p9_poll_workfn+0x1cf/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

value changed: 0x00000015 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 2968 Comm: kworker/0:2 Not tainted 6.15.0-rc6-syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: events p9_poll_workfn
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.