syzbot


KCSAN: data-race in snd_ctl_notify / snd_ctl_notify

Status: auto-closed as invalid on 2020/02/08 21:27
Subsystems: sound
[Documentation on labels]
First crash: 1645d, last: 1608d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_ctl_notify / snd_ctl_notify (2) sound 1 1423d 1423d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in snd_ctl_notify / snd_ctl_notify (3) sound 1 1282d 1282d 0/26 auto-closed as invalid on 2020/11/25 15:05

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

read to 0xffff88821841e858 of 4 bytes by task 11434 on cpu 1:
 snd_ctl_notify sound/core/control.c:154 [inline]
 snd_ctl_notify+0xd7/0x3b0 sound/core/control.c:141
 loopback_active_notify+0xcb/0xe0 sound/drivers/aloop.c:242
 loopback_trigger+0x59f/0x710 sound/drivers/aloop.c:296
 snd_pcm_do_start sound/core/pcm_native.c:1213 [inline]
 snd_pcm_do_start+0x6d/0x90 sound/core/pcm_native.c:1209
 snd_pcm_action_single+0x5a/0xc0 sound/core/pcm_native.c:1072
 snd_pcm_action+0x83/0x90 sound/core/pcm_native.c:1155
 snd_pcm_start+0x2b/0x40 sound/core/pcm_native.c:1252
 __snd_pcm_lib_xfer+0xd40/0x1176 sound/core/pcm_lib.c:2236
 snd_pcm_oss_write3+0x97/0x180 sound/core/oss/pcm_oss.c:1223
 io_playback_transfer+0x1c0/0x1f0 sound/core/oss/io.c:47
 snd_pcm_plug_write_transfer+0x21b/0x290 sound/core/oss/pcm_plugin.c:620
 snd_pcm_oss_write2+0x157/0x230 sound/core/oss/pcm_oss.c:1352
 snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1418 [inline]
 snd_pcm_oss_write+0x528/0x600 sound/core/oss/pcm_oss.c:2760
 __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+0xd5/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/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88821841e858 of 4 bytes by task 11438 on cpu 0:
 snd_ctl_notify sound/core/control.c:154 [inline]
 snd_ctl_notify+0xe9/0x3b0 sound/core/control.c:141
 loopback_active_notify+0xcb/0xe0 sound/drivers/aloop.c:242
 loopback_trigger+0x59f/0x710 sound/drivers/aloop.c:296
 snd_pcm_do_start sound/core/pcm_native.c:1213 [inline]
 snd_pcm_do_start+0x6d/0x90 sound/core/pcm_native.c:1209
 snd_pcm_action_single+0x5a/0xc0 sound/core/pcm_native.c:1072
 snd_pcm_action+0x83/0x90 sound/core/pcm_native.c:1155
 snd_pcm_start+0x2b/0x40 sound/core/pcm_native.c:1252
 __snd_pcm_lib_xfer+0xd40/0x1176 sound/core/pcm_lib.c:2236
 snd_pcm_oss_write3+0x97/0x180 sound/core/oss/pcm_oss.c:1223
 io_playback_transfer+0x1c0/0x1f0 sound/core/oss/io.c:47
 snd_pcm_plug_write_transfer+0x21b/0x290 sound/core/oss/pcm_plugin.c:620
 snd_pcm_oss_write2+0x157/0x230 sound/core/oss/pcm_oss.c:1352
 snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1418 [inline]
 snd_pcm_oss_write+0x528/0x600 sound/core/oss/pcm_oss.c:2760
 __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+0xd5/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/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/30 21:20 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config console log report ci2-upstream-kcsan-gce
2019/11/30 02:01 https://github.com/google/ktsan.git kcsan ef798c30ba4e 3a75be00 .config console log report ci2-upstream-kcsan-gce
2019/11/22 14:46 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
2019/11/19 12:01 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
2019/11/17 12:51 https://github.com/google/ktsan.git kcsan 5863cc791e4c d5696d51 .config console log report ci2-upstream-kcsan-gce
2019/11/13 05:45 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config console log report ci2-upstream-kcsan-gce
2019/11/11 18:09 https://github.com/google/ktsan.git kcsan 94c006602e13 377d77fa .config console log report ci2-upstream-kcsan-gce
2019/11/10 04:27 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
2019/11/09 00:43 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config console log report ci2-upstream-kcsan-gce
2019/11/05 09:26 https://github.com/google/ktsan.git kcsan 94c006602e13 76630fc9 .config console log report ci2-upstream-kcsan-gce
2019/11/04 15:42 https://github.com/google/ktsan.git kcsan 94c006602e13 18e12644 .config console log report ci2-upstream-kcsan-gce
2019/11/04 12:53 https://github.com/google/ktsan.git kcsan 05f2236801fe 18e12644 .config console log report ci2-upstream-kcsan-gce
2019/11/04 08:49 https://github.com/google/ktsan.git kcsan 05f2236801fe b35fad31 .config console log report ci2-upstream-kcsan-gce
2019/11/02 21:56 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
2019/10/29 06:26 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
2019/10/28 18:09 https://github.com/google/ktsan.git kcsan 05f2236801fe 439d7b14 .config console log report ci2-upstream-kcsan-gce
2019/10/26 01:09 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config console log report ci2-upstream-kcsan-gce
2019/10/24 21:26 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config console log report ci2-upstream-kcsan-gce
2019/10/24 21:16 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.