================================================================== BUG: KCSAN: data-race in snd_rawmidi_drain_output / snd_rawmidi_transmit write to 0xffff8880b21eb0f8 of 8 bytes by task 3220 on cpu 1: __snd_rawmidi_transmit_ack sound/core/rawmidi.c:1255 [inline] snd_rawmidi_transmit+0x2e6/0x410 sound/core/rawmidi.c:1314 snd_vmidi_output_work+0xf1/0x200 sound/core/seq/seq_virmidi.c:144 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x20d/0x230 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 read to 0xffff8880b21eb0f8 of 8 bytes by task 22537 on cpu 0: snd_rawmidi_drain_output+0x31a/0x400 sound/core/rawmidi.c:222 close_substream+0x14c/0x2e0 sound/core/rawmidi.c:510 rawmidi_release_priv+0x96/0xf0 sound/core/rawmidi.c:536 snd_rawmidi_release+0x33/0x80 sound/core/rawmidi.c:567 __fput+0x1df/0x460 fs/file_table.c:281 ____fput+0x11/0x20 fs/file_table.c:314 task_work_run+0x8e/0x110 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:216 [inline] __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:246 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:329 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:368 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22537 Comm: syz-executor.3 Not tainted 5.8.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================