syzbot


KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock

Status: auto-closed as invalid on 2020/03/29 01:10
Subsystems: net
[Documentation on labels]
First crash: 1653d, last: 1638d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (9) net 1 555d 555d 0/27 auto-obsoleted due to no activity on 2023/03/31 03:37
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (6) net 1 956d 956d 0/27 auto-closed as invalid on 2022/01/05 01:52
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (8) net 1 856d 856d 0/27 auto-closed as invalid on 2022/04/14 22:36
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (4) net 20 1279d 1311d 0/27 auto-closed as invalid on 2021/02/16 06:00
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (7) net 1 909d 906d 0/27 auto-closed as invalid on 2022/02/21 00:16
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (3) net 1 1442d 1442d 0/27 auto-closed as invalid on 2020/09/05 23:08
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (5) net 47 978d 1130d 20/27 fixed on 2021/11/10 00:50
upstream KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock (2) net 1 1480d 1480d 0/27 auto-closed as invalid on 2020/07/30 12:33

Sample crash report:
==================================================================
BUG: KCSAN: data-race in sock_alloc_send_pskb / unix_release_sock

write to 0xffff88809f9dbe6a of 1 bytes by task 23777 on cpu 1:
 unix_release_sock+0x4fd/0x660 net/unix/af_unix.c:542
 unix_release+0x3e/0x70 net/unix/af_unix.c:842
 __sock_release+0x85/0x160 net/socket.c:592
 sock_close+0x24/0x30 net/socket.c:1270
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88809f9dbe6a of 1 bytes by task 23781 on cpu 0:
 sock_alloc_send_pskb+0xe9/0x530 net/core/sock.c:2227
 unix_stream_sendmsg+0x2d5/0x690 net/unix/af_unix.c:1832
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:659
 sock_write_iter+0x16b/0x210 net/socket.c:991
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0x17b/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 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: 23781 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/19 01:08 https://github.com/google/ktsan.git kcsan 245a43005292 bc8bc756 .config console log report ci2-upstream-kcsan-gce
2020/01/04 14:47 https://github.com/google/ktsan.git kcsan 245a43005292 68256974 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.