================================================================== BUG: KCSAN: data-race in strscpy / strscpy write to 0xffff888138b4abb0 of 8 bytes by task 4370 on cpu 0: strscpy+0xa9/0x170 lib/string.c:165 strscpy_pad+0x27/0x80 lib/string_helpers.c:835 __set_task_comm+0x46/0x140 fs/exec.c:1232 set_task_comm include/linux/sched.h:1984 [inline] __kthread_create_on_node+0x2b2/0x320 kernel/kthread.c:474 kthread_create_on_node+0x8a/0xb0 kernel/kthread.c:512 cryptomgr_schedule_probe crypto/algboss.c:158 [inline] cryptomgr_notify+0x4a4/0x590 crypto/algboss.c:226 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x70/0xe0 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:305 [inline] crypto_alg_mod_lookup+0x282/0x4e0 crypto/api.c:335 crypto_find_alg+0x62/0x70 crypto/api.c:544 crypto_type_has_alg+0x2c/0x60 crypto/algapi.c:1030 crypto_has_ahash+0x29/0x30 crypto/ahash.c:533 xfrm_probe_algs+0x56/0x2a0 net/xfrm/xfrm_algo.c:824 pfkey_register+0xd4/0x3f0 net/key/af_key.c:1701 pfkey_process net/key/af_key.c:2844 [inline] pfkey_sendmsg+0x6de/0x8f0 net/key/af_key.c:3695 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x375/0x4c0 net/socket.c:2504 ___sys_sendmsg net/socket.c:2558 [inline] __sys_sendmsg+0x1e3/0x270 net/socket.c:2587 __do_sys_sendmsg net/socket.c:2596 [inline] __se_sys_sendmsg net/socket.c:2594 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2594 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888138b4abb1 of 1 bytes by task 4408 on cpu 1: strscpy+0xde/0x170 lib/string.c:174 ____bpf_get_current_comm kernel/bpf/helpers.c:260 [inline] bpf_get_current_comm+0x45/0x70 kernel/bpf/helpers.c:252 ___bpf_prog_run+0x281/0x3050 kernel/bpf/core.c:1822 __bpf_prog_run32+0x74/0xa0 kernel/bpf/core.c:2043 bpf_dispatcher_nop_func include/linux/bpf.h:1124 [inline] __bpf_prog_run include/linux/filter.h:601 [inline] bpf_prog_run include/linux/filter.h:608 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2263 [inline] bpf_trace_run4+0x9f/0x150 kernel/trace/bpf_trace.c:2304 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x811/0x910 kernel/sched/core.c:6619 schedule+0x54/0x90 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 kthread+0x12c/0x1e0 kernel/kthread.c:369 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x74 -> 0x72 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4408 Comm: cryptomgr_probe Not tainted 6.2.0-syzkaller-12913-gae3419fbac84-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 ==================================================================