syzbot


KCSAN: data-race in xprt_connect / xprt_unlock_connect

Status: auto-closed as invalid on 2020/04/21 10:25
Subsystems: net nfs
[Documentation on labels]
First crash: 1640d, last: 1535d
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 (6) nfs net 2 1201d 1205d 0/26 auto-closed as invalid on 2021/02/14 19:27
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (4) net nfs 4 1318d 1356d 0/26 auto-closed as invalid on 2020/10/20 22:42
upstream KCSAN: data-race in xprt_connect / xprt_unlock_connect (7) net nfs 1 1126d 1126d 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 1400d 1400d 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 1412d 1439d 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 1256d 1231d 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 0xffff888121486cc0 of 8 bytes by task 21771 on cpu 1:
 xprt_unlock_connect+0xa5/0xe0 net/sunrpc/xprt.c:808
 xs_udp_setup_socket+0xf7/0x390 net/sunrpc/xprtsock.c:2186
 process_one_work+0x40b/0x8d0 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

read to 0xffff888121486cc0 of 8 bytes by task 24089 on cpu 0:
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 24089 Comm: syz-executor.5 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/11 10:23 https://github.com/google/ktsan.git kcsan f60f0f543333 084454ae .config console log report ci2-upstream-kcsan-gce
2020/02/07 16:29 https://github.com/google/ktsan.git kcsan 6cccb8ba35bd 06150bf1 .config console log report ci2-upstream-kcsan-gce
2020/02/06 07:10 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config console log report ci2-upstream-kcsan-gce
2020/01/31 03:19 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2020/01/24 21:57 https://github.com/google/ktsan.git kcsan 245a43005292 2e95ab33 .config console log report ci2-upstream-kcsan-gce
2020/01/24 02:59 https://github.com/google/ktsan.git kcsan 245a43005292 11ebf937 .config console log report ci2-upstream-kcsan-gce
2019/12/29 15:20 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
2019/12/19 13:14 https://github.com/google/ktsan.git kcsan 245a43005292 79b211f7 .config console log report ci2-upstream-kcsan-gce
2019/12/15 21:19 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config console log report ci2-upstream-kcsan-gce
2019/11/27 18:22 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d63f89c .config console log report ci2-upstream-kcsan-gce
2019/11/21 20:35 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config console log report ci2-upstream-kcsan-gce
2019/11/16 12:14 https://github.com/google/ktsan.git kcsan 5863cc791e4c cdac920b .config console log report ci2-upstream-kcsan-gce
2019/11/13 18:02 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config console log report ci2-upstream-kcsan-gce
2019/11/10 16:38 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
2019/10/30 03:14 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.