syzbot


KCSAN: data-race in p9_conn_cancel / p9_write_work (6)

Status: auto-obsoleted due to no activity on 2024/11/08 10:55
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+5aed3635a4aca54df6e9@syzkaller.appspotmail.com
First crash: 135d, last: 63d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in p9_conn_cancel / p9_write_work (5) v9fs 3 203d 243d 0/28 auto-obsoleted due to no activity on 2024/06/21 12:43
upstream KCSAN: data-race in p9_conn_cancel / p9_write_work (4) v9fs 2 374d 398d 0/28 auto-obsoleted due to no activity on 2024/01/02 07:46
upstream KCSAN: data-race in p9_conn_cancel / p9_write_work v9fs 1 1472d 1456d 0/28 auto-closed as invalid on 2020/12/30 07:04
upstream KCSAN: data-race in p9_conn_cancel / p9_write_work (3) v9fs 1 962d 962d 0/28 auto-closed as invalid on 2022/05/24 19:24
upstream KCSAN: data-race in p9_conn_cancel / p9_write_work (2) v9fs 2 1404d 1416d 0/28 auto-closed as invalid on 2021/03/08 14:39

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

write to 0xffff888122b74428 of 4 bytes by task 3343 on cpu 0:
 p9_conn_cancel+0x89/0x400 net/9p/trans_fd.c:199
 p9_poll_mux net/9p/trans_fd.c:631 [inline]
 p9_poll_workfn+0x133/0x410 net/9p/trans_fd.c:1177
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888122b74428 of 4 bytes by task 24 on cpu 1:
 p9_write_work+0x26/0x750 net/9p/trans_fd.c:453
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000000 -> 0xffffff98

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0 Tainted: G        W          6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events p9_write_work
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/04 10:54 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_conn_cancel / p9_write_work
2024/09/05 05:50 upstream c7fb1692dc01 dfbe2ed4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_conn_cancel / p9_write_work
2024/08/04 01:35 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_conn_cancel / p9_write_work
2024/07/24 03:07 upstream 28bbe4ea686a e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in p9_conn_cancel / p9_write_work
* Struck through repros no longer work on HEAD.