syzbot


KCSAN: data-race in snd_rawmidi_kernel_write1 / snd_rawmidi_poll

Status: auto-closed as invalid on 2020/03/09 13:34
Subsystems: sound
[Documentation on labels]
First crash: 1577d, last: 1577d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_rawmidi_kernel_write1 / snd_rawmidi_poll (2) sound 173 1227d 1324d 0/26 auto-closed as invalid on 2021/01/18 18:49

Sample crash report:
==================================================================
BUG: KCSAN: data-race in snd_rawmidi_kernel_write1 / snd_rawmidi_poll

read to 0xffff8880afb904b8 of 8 bytes by task 17038 on cpu 0:
 snd_rawmidi_ready sound/core/rawmidi.c:79 [inline]
 snd_rawmidi_poll+0x1ef/0x310 sound/core/rawmidi.c:1409
 vfs_poll include/linux/poll.h:90 [inline]
 do_select+0x7d0/0x1020 fs/select.c:534
 core_sys_select+0x312/0x650 fs/select.c:677
 do_pselect.constprop.0+0x11d/0x160 fs/select.c:759
 __do_sys_pselect6 fs/select.c:784 [inline]
 __se_sys_pselect6 fs/select.c:769 [inline]
 __x64_sys_pselect6+0x12e/0x170 fs/select.c:769
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880afb904b8 of 8 bytes by task 17033 on cpu 1:
 snd_rawmidi_kernel_write1+0x1d4/0x410 sound/core/rawmidi.c:1282
 snd_rawmidi_write+0x1e2/0x780 sound/core/rawmidi.c:1355
 __vfs_write+0x67/0xc0 fs/read_write.c:494
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0x17b/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17033 Comm: syz-executor.5 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/30 13:29 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.