syzbot


KCSAN: data-race in af_alg_sendmsg / af_alg_wait_for_data

Status: closed as invalid on 2019/11/19 13:44
Subsystems: crypto
[Documentation on labels]
First crash: 2131d, last: 2131d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in af_alg_sendmsg / af_alg_wait_for_data (3) crypto 6 8 1899d 2010d 0/29 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in af_alg_sendmsg / af_alg_wait_for_data (2) crypto 6 3 2096d 2104d 0/29 auto-closed as invalid on 2020/02/07 16:47
upstream KCSAN: data-race in af_alg_sendmsg / af_alg_wait_for_data (4) crypto 6 25 1645d 1718d 0/29 auto-closed as invalid on 2021/03/28 23:05

Sample crash report:
==================================================================
BUG: KCSAN: data-race in af_alg_sendmsg / af_alg_wait_for_data

write to 0xffff8880b9dd85d4 of 1 bytes by task 10043 on cpu 1:
 af_alg_sendmsg+0x9c3/0xbe0 crypto/af_alg.c:944
 aead_sendmsg+0x89/0xa0 crypto/algif_aead.c:71
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x59d/0x5d0 net/socket.c:2311
 __sys_sendmsg+0xa0/0x160 net/socket.c:2356
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg net/socket.c:2363 [inline]
 __x64_sys_sendmsg+0x51/0x70 net/socket.c:2363
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b9dd85d4 of 1 bytes by task 10035 on cpu 0:
 af_alg_wait_for_data+0x1f3/0x2e0 crypto/af_alg.c:759
 _aead_recvmsg crypto/algif_aead.c:110 [inline]
 aead_recvmsg+0x477/0xca0 crypto/algif_aead.c:330
 sock_recvmsg_nosec net/socket.c:871 [inline]
 sock_recvmsg net/socket.c:889 [inline]
 sock_recvmsg+0x92/0xb0 net/socket.c:885
 sock_read_iter+0x15f/0x1e0 net/socket.c:967
 call_read_iter include/linux/fs.h:1889 [inline]
 aio_read+0x172/0x240 fs/aio.c:1543
 __io_submit_one fs/aio.c:1813 [inline]
 io_submit_one+0x657/0xe70 fs/aio.c:1862
 __do_sys_io_submit fs/aio.c:1921 [inline]
 __se_sys_io_submit fs/aio.c:1891 [inline]
 __x64_sys_io_submit+0x104/0x2d0 fs/aio.c:1891
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10035 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/25 12:21 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.