syzbot


KCSAN: data-race in snd_rawmidi_poll / snd_rawmidi_receive (2)

Status: auto-closed as invalid on 2020/08/01 22:25
Subsystems: sound
[Documentation on labels]
First crash: 1407d, last: 1399d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_rawmidi_poll / snd_rawmidi_receive (4) sound 1 1258d 1236d 0/26 auto-closed as invalid on 2020/12/21 12:01
upstream KCSAN: data-race in snd_rawmidi_poll / snd_rawmidi_receive (3) sound 3 1314d 1321d 0/26 auto-closed as invalid on 2020/10/25 18:38
upstream KCSAN: data-race in snd_rawmidi_poll / snd_rawmidi_receive sound 4 1554d 1613d 0/26 auto-closed as invalid on 2020/04/03 07:54

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

write to 0xffff88809499b878 of 8 bytes by task 19745 on cpu 1:
 snd_rawmidi_receive+0x2c0/0x4b0 sound/core/rawmidi.c:1001
 snd_virmidi_dev_receive_event sound/core/seq/seq_virmidi.c:88 [inline]
 snd_virmidi_event_input+0x1b1/0x250 sound/core/seq/seq_virmidi.c:110
 snd_seq_deliver_single_event+0x31b/0x4f0 sound/core/seq/seq_clientmgr.c:638
 snd_seq_deliver_event+0x192/0x4a0 sound/core/seq/seq_clientmgr.c:839
 snd_seq_kernel_client_dispatch+0x16f/0x190 sound/core/seq/seq_clientmgr.c:2323
 snd_seq_oss_dispatch sound/core/seq/oss/seq_oss_device.h:138 [inline]
 snd_seq_oss_midi_reset+0x270/0x2d0 sound/core/seq/oss/seq_oss_midi.c:477
 snd_seq_oss_synth_reset+0x281/0x4a0 sound/core/seq/oss/seq_oss_synth.c:404
 snd_seq_oss_reset+0x3b/0x160 sound/core/seq/oss/seq_oss_init.c:435
 snd_seq_oss_release+0x76/0x170 sound/core/seq/oss/seq_oss_init.c:412
 odev_release+0x3a/0x60 sound/core/seq/oss/seq_oss.c:140
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c8/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath arch/x86/entry/common.c:329 [inline]
 do_syscall_64+0xb9/0x120 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88809499b878 of 8 bytes by task 19737 on cpu 0:
 snd_rawmidi_ready sound/core/rawmidi.c:102 [inline]
 snd_rawmidi_poll+0x170/0x210 sound/core/rawmidi.c:1502
 vfs_poll include/linux/poll.h:90 [inline]
 do_select+0x901/0xf40 fs/select.c:534
 core_sys_select+0x3e3/0x600 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6 fs/select.c:800 [inline]
 __se_sys_pselect6+0x248/0x290 fs/select.c:791
 __x64_sys_pselect6+0x74/0x80 fs/select.c:791
 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/27 22:19 upstream 6116dea80dfd a2cdad9d .config console log report ci2-upstream-kcsan-gce
2020/06/27 06:39 upstream 1590a2e1c681 ffec44b5 .config console log report ci2-upstream-kcsan-gce
2020/06/26 00:50 upstream 908f7d12d3ba aea82c00 .config console log report ci2-upstream-kcsan-gce
2020/06/24 19:50 upstream 26e122e97a3d 9d60b18e .config console log report ci2-upstream-kcsan-gce
2020/06/20 12:47 upstream 672f9255a727 c655ec77 .config console log report ci2-upstream-kcsan-gce
2020/06/19 21:54 upstream 672f9255a727 123cf502 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.