syzbot


KCSAN: data-race in xprt_connect / xprt_unlock_connect (4)

Status: auto-closed as invalid on 2020/10/20 22:42
Subsystems: net nfs
[Documentation on labels]
First crash: 1355d, last: 1317d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect net nfs 15 1534d 1638d 0/26 auto-closed as invalid on 2020/04/21 10:25
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (6) nfs net 2 1200d 1204d 0/26 auto-closed as invalid on 2021/02/14 19:27
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (7) net nfs 1 1125d 1125d 0/26 auto-closed as invalid on 2021/05/17 10:45
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (3) net nfs 1 1399d 1399d 0/26 auto-closed as invalid on 2020/07/31 03:43
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (2) net nfs 2 1411d 1438d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (5) net nfs 3 1255d 1230d 0/26 auto-closed as invalid on 2020/12/29 09:36

Sample crash report:
==================================================================
BUG: KCSAN: data-race in xprt_connect / xprt_unlock_connect

write to 0xffff8880aaf04cc0 of 8 bytes by task 2336 on cpu 0:
 xprt_unlock_connect+0x7b/0x150 net/sunrpc/xprt.c:820
 xs_udp_setup_socket+0x363/0x450 net/sunrpc/xprtsock.c:2062
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff8880aaf04cc0 of 8 bytes by task 16792 on cpu 1:
 xprt_release_write net/sunrpc/xprt.c:386 [inline]
 xprt_connect+0x2e2/0x440 net/sunrpc/xprt.c:871
 call_connect+0x105/0x150 net/sunrpc/clnt.c:2095
 __rpc_execute+0x11c/0x860 net/sunrpc/sched.c:913
 rpc_execute+0xc5/0x140 net/sunrpc/sched.c:991
 rpc_run_task+0x395/0x3b0 net/sunrpc/clnt.c:1144
 rpc_call_sync net/sunrpc/clnt.c:1173 [inline]
 rpc_ping net/sunrpc/clnt.c:2735 [inline]
 rpc_create_xprt+0x1c6/0x420 net/sunrpc/clnt.c:481
 rpc_create+0x34c/0x440 net/sunrpc/clnt.c:597
 nfs_create_rpc_client+0x2a8/0x330 fs/nfs/client.c:536
 nfs_init_client+0x3d/0xa0 fs/nfs/client.c:653
 nfs_get_client+0x863/0x940 fs/nfs/client.c:430
 nfs_init_server fs/nfs/client.c:692 [inline]
 nfs_create_server+0x455/0x1030 fs/nfs/client.c:996
 nfs_try_get_tree+0x19d/0x6c0 fs/nfs/super.c:922
 nfs_get_tree+0xa9f/0xad0 fs/nfs/fs_context.c:1293
 vfs_get_tree+0x4d/0x1a0 fs/super.c:1547
 do_new_mount fs/namespace.c:2875 [inline]
 path_mount+0x118d/0x1c70 fs/namespace.c:3192
 do_mount fs/namespace.c:3205 [inline]
 __do_sys_mount fs/namespace.c:3413 [inline]
 __se_sys_mount+0x126/0x180 fs/namespace.c:3390
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3390
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16792 Comm: syz-executor.3 Not tainted 5.9.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/15 22:38 upstream fc4f28bb3daf 18d7d030 .config console log report info ci2-upstream-kcsan-gce
2020/08/27 18:10 upstream 15bc20c6af4c 816e0689 .config console log report ci2-upstream-kcsan-gce
2020/08/20 21:55 upstream da2968ff879b 70160577 .config console log report ci2-upstream-kcsan-gce
2020/08/09 01:21 upstream 06a81c1c7db9 f721e4a0 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.