================================================================== BUG: KCSAN: data-race in snd_rawmidi_drain_output / snd_rawmidi_transmit write to 0xffff888108e900f8 of 8 bytes by task 2020 on cpu 1: __snd_rawmidi_transmit_ack sound/core/rawmidi.c:1267 [inline] snd_rawmidi_transmit+0x2b8/0x3b0 sound/core/rawmidi.c:1326 snd_vmidi_output_work+0xf1/0x200 sound/core/seq/seq_virmidi.c:144 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 read to 0xffff888108e900f8 of 8 bytes by task 23507 on cpu 0: snd_rawmidi_drain_output+0x141/0x440 sound/core/rawmidi.c:232 close_substream+0x14c/0x2e0 sound/core/rawmidi.c:520 rawmidi_release_priv+0x96/0xf0 sound/core/rawmidi.c:546 snd_rawmidi_release+0x33/0x80 sound/core/rawmidi.c:577 __fput+0x263/0x4f0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0x8e/0x110 kernel/task_work.c:140 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x474/0x1670 kernel/exit.c:825 do_group_exit+0xa4/0x180 kernel/exit.c:922 __do_sys_exit_group+0xb/0x10 kernel/exit.c:933 __se_sys_exit_group+0x5/0x10 kernel/exit.c:931 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:931 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 23507 Comm: syz-executor.3 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================