syzbot


KCSAN: data-race in xprt_clear_locked / xprt_prepare_transmit (3)

Status: closed as invalid on 2020/01/09 14:13
Subsystems: net nfs
[Documentation on labels]
First crash: 1586d, last: 1563d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in xprt_clear_locked / xprt_prepare_transmit nfs net 1 1637d 1637d 0/26 closed as invalid on 2019/10/15 15:50
upstream KCSAN: data-race in xprt_clear_locked / xprt_prepare_transmit (2) nfs net 3 1602d 1607d 0/26 closed as invalid on 2019/11/19 14:44

Sample crash report:
xs_tcp_setup_socket: connect returned unhandled error -13
xs_tcp_setup_socket: connect returned unhandled error -13
==================================================================
BUG: KCSAN: data-race in xprt_clear_locked / xprt_prepare_transmit

read to 0xffff8881265e04c0 of 8 bytes by task 672 on cpu 1:
 xprt_lock_write net/sunrpc/xprt.c:305 [inline]
 xprt_prepare_transmit+0x6c/0x120 net/sunrpc/xprt.c:1407
 call_connect+0xfc/0x1a0 net/sunrpc/clnt.c:2084
 __rpc_execute+0xf5/0x640 net/sunrpc/sched.c:904
 rpc_async_schedule+0x66/0xa0 net/sunrpc/sched.c:989
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8881265e04c0 of 8 bytes by task 12421 on cpu 0:
 xprt_clear_locked+0x24/0xb0 net/sunrpc/xprt.c:184
 xprt_release_xprt+0x15a/0x170 net/sunrpc/xprt.c:359
 xprt_release_write net/sunrpc/xprt.c:389 [inline]
 xprt_release_write net/sunrpc/xprt.c:384 [inline]
 xprt_autoclose+0x139/0x150 net/sunrpc/xprt.c:668
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12421 Comm: kworker/u5:6 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: xprtiod xprt_autoclose
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/17 22:10 https://github.com/google/ktsan.git kcsan 245a43005292 1af3875f .config console log report ci2-upstream-kcsan-gce
2019/11/24 18:00 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.