syzbot


KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_do_drain_init (3)

Status: auto-closed as invalid on 2021/01/11 09:19
Subsystems: sound
[Documentation on labels]
First crash: 1228d, last: 1228d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_do_drain_init (2) sound 1 1279d 1279d 0/26 auto-closed as invalid on 2020/11/22 00:04
upstream KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_do_drain_init (4) sound 2 1162d 1188d 0/26 auto-closed as invalid on 2021/03/18 12:09
upstream KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_do_drain_init sound 1 1322d 1322d 0/26 auto-closed as invalid on 2020/10/09 11:40

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_do_drain_init

write to 0xffff888119b27000 of 4 bytes by task 12690 on cpu 0:
 snd_pcm_do_drain_init+0x28c/0x5b0 sound/core/pcm_native.c:1953
 snd_pcm_action_single sound/core/pcm_native.c:1207 [inline]
 snd_pcm_action sound/core/pcm_native.c:1290 [inline]
 snd_pcm_drain+0x2c5/0xa00 sound/core/pcm_native.c:2029
 snd_pcm_kernel_ioctl+0x217/0xda0 sound/core/pcm_native.c:3333
 snd_pcm_oss_sync+0xaf/0x690 sound/core/oss/pcm_oss.c:1697
 snd_pcm_oss_ioctl+0x612/0x2900 sound/core/oss/pcm_oss.c:2590
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888119b27000 of 4 bytes by task 12675 on cpu 1:
 pcm_sanity_check sound/core/pcm_lib.c:2067 [inline]
 __snd_pcm_lib_xfer+0xea/0x1170 sound/core/pcm_lib.c:2130
 snd_pcm_oss_write3+0x182/0x210 sound/core/oss/pcm_oss.c:1221
 snd_pcm_oss_write2+0x13a/0x250 sound/core/oss/pcm_oss.c:1361
 snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1419 [inline]
 snd_pcm_oss_write+0x322/0x880 sound/core/oss/pcm_oss.c:2765
 vfs_write+0x21a/0x7c0 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/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12675 Comm: syz-executor.1 Not tainted 5.10.0-rc7-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
2020/12/07 09:13 upstream 0477e9288185 f80ce148 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.