syzbot


KCSAN: data-race in snd_seq_oss_midi_input / snd_seq_oss_timer_stop

Status: auto-closed as invalid on 2020/09/06 12:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 786d, last: 786d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_seq_oss_midi_input / snd_seq_oss_timer_stop (2) 1 539d 539d 0/24 auto-closed as invalid on 2021/05/17 08:41

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

write to 0xffff88809a462750 of 4 bytes by task 16326 on cpu 1:
 snd_seq_oss_timer_stop+0xbc/0xf0 sound/core/seq/oss/seq_oss_timer.c:177
 snd_seq_oss_reset+0x14d/0x160 sound/core/seq/oss/seq_oss_init.c:450
 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:135
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:239 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88809a462750 of 4 bytes by task 3232 on cpu 0:
 send_midi_event sound/core/seq/oss/seq_oss_midi.c:601 [inline]
 snd_seq_oss_midi_input+0x2bb/0x500 sound/core/seq/oss/seq_oss_midi.c:524
 snd_seq_oss_event_input+0xbc/0x100 sound/core/seq/oss/seq_oss_event.c:429
 snd_seq_deliver_single_event+0x31b/0x4f0 sound/core/seq/seq_clientmgr.c:638
 deliver_to_subscribers sound/core/seq/seq_clientmgr.c:693 [inline]
 snd_seq_deliver_event+0x392/0x4a0 sound/core/seq/seq_clientmgr.c:828
 snd_seq_kernel_client_dispatch+0x16f/0x190 sound/core/seq/seq_clientmgr.c:2323
 snd_vmidi_output_work+0x16d/0x200 sound/core/seq/seq_virmidi.c:150
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3232 Comm: kworker/0:1H Not tainted 5.8.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_highpri snd_vmidi_output_work
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/08/02 12:01 upstream ac3a0c847296 96dd3623 .config log report
* Struck through repros no longer work on HEAD.