syzbot


KCSAN: data-race in __snd_rawmidi_transmit_ack / snd_rawmidi_drain_output (2)

Status: auto-closed as invalid on 2020/05/07 09:35
Subsystems: sound
[Documentation on labels]
First crash: 1564d, last: 1517d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __snd_rawmidi_transmit_ack / snd_rawmidi_drain_output (3) sound 1 1413d 1413d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __snd_rawmidi_transmit_ack / snd_rawmidi_drain_output sound 1 1642d 1642d 0/26 closed as invalid on 2019/11/19 13:44

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __snd_rawmidi_transmit_ack / snd_rawmidi_drain_output

write to 0xffff88810031f3c8 of 1 bytes by task 10342 on cpu 1:
 snd_rawmidi_drain_output+0x5f/0x310 sound/core/rawmidi.c:210
 close_substream.part.0+0x1f6/0x2f0 sound/core/rawmidi.c:499
 close_substream sound/core/rawmidi.c:485 [inline]
 rawmidi_release_priv+0x11a/0x180 sound/core/rawmidi.c:525
 snd_rawmidi_release+0x3f/0x90 sound/core/rawmidi.c:556
 __fput+0x1c3/0x4f0 fs/file_table.c:280
 ____fput+0x1b/0x30 fs/file_table.c:313
 task_work_run+0xf5/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2ae/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+0x36e/0x390 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810031f3c8 of 1 bytes by task 2522 on cpu 0:
 __snd_rawmidi_transmit_ack+0x10a/0x1c0 sound/core/rawmidi.c:1237
 snd_rawmidi_transmit+0x91/0xc0 sound/core/rawmidi.c:1293
 snd_vmidi_output_work+0xaf/0x1f0 sound/core/seq/seq_virmidi.c:143
 process_one_work+0x424/0x930 kernel/workqueue.c:2264
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2410
 kthread+0x1cb/0x1f0 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2522 Comm: kworker/0:1H Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_highpri snd_vmidi_output_work
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/27 09:34 https://github.com/google/ktsan.git kcsan 766d004d1b85 40bcfdd5 .config console log report ci2-upstream-kcsan-gce
2020/02/12 19:11 https://github.com/google/ktsan.git kcsan f60f0f543333 84f4fc8a .config console log report ci2-upstream-kcsan-gce
2020/01/10 15:03 https://github.com/google/ktsan.git kcsan 245a43005292 532ec44e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.