KCSAN: data-race in padata_reorder / padata_reorder (3)

2 views
Skip to first unread message

syzbot

unread,
Dec 7, 2020, 6:56:12 AM12/7/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4ef8451b Merge tag 'perf-tools-for-v5.10-2020-11-03' of gi..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=127efb32500000
kernel config: https://syzkaller.appspot.com/x/.config?x=76dfc991796328d4
dashboard link: https://syzkaller.appspot.com/bug?extid=6595d96e1174d685c6fe
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [daniel....@oracle.com linux-...@vger.kernel.org linux-...@vger.kernel.org steffen....@secunet.com]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6595d9...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in padata_reorder / padata_reorder

write to 0xffff888027eb5c24 of 4 bytes by task 3188 on cpu 0:
padata_find_next kernel/padata.c:280 [inline]
padata_reorder+0x1d8/0x480 kernel/padata.c:309
padata_do_serial+0x1e8/0x200 kernel/padata.c:420
pcrypt_aead_enc+0x46/0x50 crypto/pcrypt.c:87
padata_parallel_worker+0x38/0xd0 kernel/padata.c:157
process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
worker_thread+0x635/0xb90 kernel/workqueue.c:2418
kthread+0x1fa/0x220 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff888027eb5c24 of 4 bytes by task 25145 on cpu 1:
padata_reorder+0x390/0x480 kernel/padata.c:341
padata_do_serial+0x1e8/0x200 kernel/padata.c:420
pcrypt_aead_enc+0x46/0x50 crypto/pcrypt.c:87
padata_do_parallel+0x337/0x350 kernel/padata.c:230
pcrypt_aead_encrypt+0x1b1/0x1e0 crypto/pcrypt.c:115
crypto_aead_encrypt+0x59/0x70 crypto/aead.c:94
tls_do_encryption net/tls/tls_sw.c:528 [inline]
tls_push_record+0x10c6/0x14e0 net/tls/tls_sw.c:762
bpf_exec_tx_verdict+0x674/0xae0 net/tls/tls_sw.c:802
tls_sw_do_sendpage+0x658/0x8f0 net/tls/tls_sw.c:1214
tls_sw_sendpage+0x84/0xb0 net/tls/tls_sw.c:1278
inet_sendpage+0x7f/0xc0 net/ipv4/af_inet.c:831
kernel_sendpage+0x187/0x200 net/socket.c:3646
sock_sendpage+0x5a/0x70 net/socket.c:944
pipe_to_sendpage+0x128/0x160 fs/splice.c:364
splice_from_pipe_feed fs/splice.c:418 [inline]
__splice_from_pipe+0x222/0x4d0 fs/splice.c:562
splice_from_pipe fs/splice.c:597 [inline]
generic_splice_sendpage+0x80/0xb0 fs/splice.c:743
do_splice_from fs/splice.c:764 [inline]
direct_splice_actor+0x80/0xa0 fs/splice.c:933
splice_direct_to_actor+0x345/0x650 fs/splice.c:888
do_splice_direct+0xf5/0x170 fs/splice.c:976
do_sendfile+0x574/0xb70 fs/read_write.c:1257
__do_sys_sendfile64 fs/read_write.c:1318 [inline]
__se_sys_sendfile64 fs/read_write.c:1304 [inline]
__x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
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: 25145 Comm: syz-executor.5 Not tainted 5.10.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 21, 2020, 6:57:08 AM12/21/20
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages