syzbot


KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp (3)

Status: auto-closed as invalid on 2021/05/17 09:01
Subsystems: sound
[Documentation on labels]
First crash: 1196d, last: 1108d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp sound 1 1462d 1462d 0/26 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp (2) sound 5 1304d 1361d 0/26 auto-closed as invalid on 2020/10/27 20:18

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

write to 0xffff88812314fd20 of 8 bytes by task 2012 on cpu 1:
 snd_seq_oss_readq_put_timestamp+0x2a0/0x2c0 sound/core/seq/oss/seq_oss_readq.c:233
 send_midi_event sound/core/seq/oss/seq_oss_midi.c:600 [inline]
 snd_seq_oss_midi_input+0x29f/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+0x31e/0x4f0 sound/core/seq/seq_clientmgr.c:637
 deliver_to_subscribers sound/core/seq/seq_clientmgr.c:692 [inline]
 snd_seq_deliver_event+0x38d/0x4a0 sound/core/seq/seq_clientmgr.c:827
 snd_seq_kernel_client_dispatch+0x16f/0x190 sound/core/seq/seq_clientmgr.c:2322
 snd_vmidi_output_work+0x16d/0x200 sound/core/seq/seq_virmidi.c:150
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88812314fd20 of 8 bytes by task 2918 on cpu 0:
 snd_seq_oss_readq_put_timestamp+0x28/0x2c0 sound/core/seq/oss/seq_oss_readq.c:218
 send_midi_event sound/core/seq/oss/seq_oss_midi.c:600 [inline]
 snd_seq_oss_midi_input+0x29f/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+0x31e/0x4f0 sound/core/seq/seq_clientmgr.c:637
 deliver_to_subscribers sound/core/seq/seq_clientmgr.c:692 [inline]
 snd_seq_deliver_event+0x38d/0x4a0 sound/core/seq/seq_clientmgr.c:827
 snd_seq_kernel_client_dispatch+0x16f/0x190 sound/core/seq/seq_clientmgr.c:2322
 snd_vmidi_output_work+0x16d/0x200 sound/core/seq/seq_virmidi.c:150
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2918 Comm: kworker/0:1H Tainted: G        W         5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_highpri snd_vmidi_output_work
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/07 01:10 upstream 2d743660786e 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/03/26 02:01 upstream 002322402daf 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/02/19 21:10 upstream f40ddce88593 f689d40a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/02/12 06:12 upstream 291009f656e8 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/02/08 15:26 upstream 92bf22614b21 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/02/06 16:26 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in snd_seq_oss_readq_put_timestamp / snd_seq_oss_readq_put_timestamp
2021/01/09 03:32 upstream 6279d812eab6 c104d4a3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.