syzbot


KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write (2)

Status: auto-closed as invalid on 2021/04/23 19:29
Subsystems: sound
[Documentation on labels]
First crash: 1142d, last: 1133d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write sound 232 1176d 1352d 19/26 fixed on 2021/03/10 01:49

Sample crash report:
==================================================================
BUG: KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write

write to 0xffff8880387bc878 of 8 bytes by task 2925 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:294

read to 0xffff8880387bc878 of 8 bytes by task 7824 on cpu 1:
 snd_rawmidi_write+0x5ef/0x720 sound/core/rawmidi.c:1489
 vfs_write+0x223/0x7e0 fs/read_write.c:603
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 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: 1 PID: 7824 Comm: syz-executor.2 Tainted: G        W         5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/19 19:23 upstream 8b12a62a4e3e 2af9d324 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write
2021/03/14 23:52 upstream 75013c6c52d8 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write
2021/03/13 09:32 upstream f296bfd5cd04 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write
2021/03/11 03:16 upstream 05a59d79793d 764067f3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_rawmidi_transmit / snd_rawmidi_write
* Struck through repros no longer work on HEAD.