syzbot


KCSAN: data-race in xprt_clear_locked / xprt_connect

Status: auto-closed as invalid on 2020/03/27 06:09
Subsystems: net nfs
[Documentation on labels]
First crash: 1609d, last: 1551d

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

read to 0xffff88809f7d94c0 of 8 bytes by task 21205 on cpu 1:
 xprt_release_write net/sunrpc/xprt.c:386 [inline]
 xprt_connect+0x318/0x3a0 net/sunrpc/xprt.c:857
 call_connect+0x118/0x1a0 net/sunrpc/clnt.c:2086
 __rpc_execute+0xf5/0x640 net/sunrpc/sched.c:904
 rpc_execute+0x1b5/0x1c0 net/sunrpc/sched.c:982
 rpc_run_task+0x379/0x440 net/sunrpc/clnt.c:1136
 rpc_call_sync+0xa7/0x130 net/sunrpc/clnt.c:1165
 rpc_ping net/sunrpc/clnt.c:2719 [inline]
 rpc_create_xprt+0x376/0x3d0 net/sunrpc/clnt.c:482
 rpc_create+0x2e4/0x4e0 net/sunrpc/clnt.c:598
 nfs_create_rpc_client+0x3d7/0x450 fs/nfs/client.c:532
 nfs_init_client fs/nfs/client.c:647 [inline]
 nfs_init_client+0x69/0xc0 fs/nfs/client.c:634
 nfs_get_client+0x91d/0xa00 fs/nfs/client.c:428
 nfs_init_server+0x1d8/0x7a0 fs/nfs/client.c:686
 nfs_create_server+0xcc/0x3d0 fs/nfs/client.c:973
 nfs_try_mount+0xa0/0x560 fs/nfs/super.c:1904
 nfs_fs_mount+0x7e7/0x15c0 fs/nfs/super.c:2766
 legacy_get_tree+0x7e/0xf0 fs/fs_context.c:647
 vfs_get_tree+0x56/0x1a0 fs/super.c:1545
 do_new_mount fs/namespace.c:2822 [inline]
 do_mount+0x1004/0x14f0 fs/namespace.c:3142
 ksys_mount+0xe8/0x160 fs/namespace.c:3351
 __do_sys_mount fs/namespace.c:3365 [inline]
 __se_sys_mount fs/namespace.c:3362 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3362
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88809f7d94c0 of 8 bytes by task 6464 on cpu 0:
 xprt_clear_locked+0x24/0xb0 net/sunrpc/xprt.c:184
 xprt_release_xprt_cong+0x15a/0x170 net/sunrpc/xprt.c:377
 xprt_unlock_connect+0xd1/0xe0 net/sunrpc/xprt.c:809
 xs_udp_setup_socket+0xf7/0x390 net/sunrpc/xprtsock.c:2186
 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: 6464 Comm: kworker/u5:0 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: xprtiod xs_udp_setup_socket
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/17 06:09 https://github.com/google/ktsan.git kcsan 245a43005292 3de7aabb .config console log report ci2-upstream-kcsan-gce
2020/01/12 11:32 https://github.com/google/ktsan.git kcsan 245a43005292 31290a45 .config console log report ci2-upstream-kcsan-gce
2019/11/20 06:44 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.