================================================================== BUG: KCSAN: data-race in snd_rawmidi_drain_output / snd_rawmidi_transmit write to 0xffff88810a58db78 of 8 bytes by task 2984 on cpu 0: __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:296 read to 0xffff88810a58db78 of 8 bytes by task 32265 on cpu 1: 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+0x24e/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0x8e/0x110 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:294 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 32265 Comm: syz-executor.4 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================