syzbot


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

Status: closed as invalid on 2019/11/19 14:44
Subsystems: nfs net
[Documentation on labels]
First crash: 1628d, last: 1624d
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 (3) net nfs 2 1585d 1608d 0/26 closed as invalid on 2020/01/09 14:13
upstream KCSAN: data-race in xprt_clear_locked / xprt_prepare_transmit net nfs 1 1659d 1659d 0/26 closed as invalid on 2019/10/15 15:50

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

read to 0xffff8880844974c0 of 8 bytes by task 8820 on cpu 0:
 xprt_lock_write net/sunrpc/xprt.c:303 [inline]
 xprt_prepare_transmit+0x6c/0x120 net/sunrpc/xprt.c:1403
 call_connect+0xfc/0x1a0 net/sunrpc/clnt.c:2091
 __rpc_execute+0xf5/0x640 net/sunrpc/sched.c:903
 rpc_async_schedule+0x66/0xa0 net/sunrpc/sched.c:988
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8880844974c0 of 8 bytes by task 8405 on cpu 1:
 xprt_clear_locked+0x24/0xb0 net/sunrpc/xprt.c:184
 xprt_release_xprt net/sunrpc/xprt.c:357 [inline]
 xprt_release_xprt+0x4e/0x70 net/sunrpc/xprt.c:354
 xprt_release_write net/sunrpc/xprt.c:385 [inline]
 xprt_release_write net/sunrpc/xprt.c:380 [inline]
 xprt_autoclose+0x139/0x150 net/sunrpc/xprt.c:664
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 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: 1 PID: 8405 Comm: kworker/u5:1 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: xprtiod xprt_autoclose
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/08 21:01 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config console log report ci2-upstream-kcsan-gce
2019/11/05 05:21 https://github.com/google/ktsan.git kcsan 94c006602e13 76630fc9 .config console log report ci2-upstream-kcsan-gce
2019/11/04 02:08 https://github.com/google/ktsan.git kcsan 05f2236801fe b35fad31 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.