================================================================== BUG: KCSAN: data-race in __snd_rawmidi_transmit_ack / snd_rawmidi_drain_output write to 0xffff8880a9940338 of 8 bytes by task 2504 on cpu 0: __snd_rawmidi_transmit_ack+0xcf/0x1b0 sound/core/rawmidi.c:1160 snd_rawmidi_transmit+0x9a/0xd0 sound/core/rawmidi.c:1219 snd_vmidi_output_work+0xb3/0x200 sound/core/seq/seq_virmidi.c:143 process_one_work+0x40b/0x8d0 kernel/workqueue.c:2264 worker_thread+0xa0/0x800 kernel/workqueue.c:2410 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 read to 0xffff8880a9940338 of 8 bytes by task 17168 on cpu 1: snd_rawmidi_drain_output+0x1e3/0x300 sound/core/rawmidi.c:188 close_substream.part.0+0x203/0x300 sound/core/rawmidi.c:476 close_substream sound/core/rawmidi.c:462 [inline] rawmidi_release_priv+0x11f/0x180 sound/core/rawmidi.c:502 snd_rawmidi_release+0x45/0x90 sound/core/rawmidi.c:533 __fput+0x1e1/0x520 fs/file_table.c:280 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 17168 Comm: syz-executor.4 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================