syzbot


KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_kernel_ioctl (2)

Status: auto-closed as invalid on 2021/01/09 06:55
Subsystems: sound
[Documentation on labels]
Reported-by: syzbot+c175b85e4b7982b2f99f@syzkaller.appspotmail.com
First crash: 1244d, last: 1244d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_kernel_ioctl (3) sound 1 1132d 1132d 0/26 auto-closed as invalid on 2021/05/01 19:27
upstream KCSAN: data-race in __snd_pcm_lib_xfer / snd_pcm_kernel_ioctl sound 2 1320d 1326d 0/26 auto-closed as invalid on 2020/10/25 12:28

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

write to 0xffff8880143fe000 of 4 bytes by task 21730 on cpu 0:
 snd_pcm_post_start sound/core/pcm_native.c:1368 [inline]
 snd_pcm_action_single sound/core/pcm_native.c:1209 [inline]
 snd_pcm_action sound/core/pcm_native.c:1290 [inline]
 snd_pcm_action_lock_irq sound/core/pcm_native.c:1305 [inline]
 snd_pcm_start_lock_irq sound/core/pcm_native.c:1398 [inline]
 snd_pcm_kernel_ioctl+0x8b7/0xda0 sound/core/pcm_native.c:3331
 snd_pcm_oss_set_trigger+0x3cc/0x490 sound/core/oss/pcm_oss.c:2102
 snd_pcm_oss_poll+0x429/0x510 sound/core/oss/pcm_oss.c:2831
 vfs_poll include/linux/poll.h:90 [inline]
 do_pollfd fs/select.c:869 [inline]
 do_poll fs/select.c:917 [inline]
 do_sys_poll+0x611/0xb80 fs/select.c:1011
 __do_sys_ppoll fs/select.c:1111 [inline]
 __se_sys_ppoll+0x169/0x1b0 fs/select.c:1091
 __x64_sys_ppoll+0x63/0x70 fs/select.c:1091
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880143fe000 of 4 bytes by task 21737 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_read3+0x291/0x380 sound/core/oss/pcm_oss.c:1260
 snd_pcm_oss_read2 sound/core/oss/pcm_oss.c:1471 [inline]
 snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1518 [inline]
 snd_pcm_oss_read+0x6e2/0x8a0 sound/core/oss/pcm_oss.c:2742
 do_loop_readv_writev fs/read_write.c:761 [inline]
 do_iter_read+0x2be/0x4b0 fs/read_write.c:803
 vfs_readv fs/read_write.c:921 [inline]
 do_readv+0x13d/0x280 fs/read_write.c:958
 __do_sys_readv fs/read_write.c:1049 [inline]
 __se_sys_readv fs/read_write.c:1046 [inline]
 __x64_sys_readv+0x41/0x50 fs/read_write.c:1046
 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: 21737 Comm: syz-executor.0 Not tainted 5.10.0-rc6-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/05 06:54 upstream e87297fa080a 20366b87 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.