================================================================== BUG: KCSAN: data-race in port_delete / snd_seq_deliver_single_event write to 0xffff88809d597930 of 1 bytes by task 27209 on cpu 0: port_delete+0x31/0x110 sound/core/seq/seq_ports.c:249 snd_seq_delete_port+0x197/0x1c0 sound/core/seq/seq_ports.c:286 snd_seq_ioctl_delete_port+0x5a/0xc0 sound/core/seq/seq_clientmgr.c:1350 snd_seq_kernel_client_ctl+0x451/0x470 sound/core/seq/seq_clientmgr.c:2353 snd_seq_event_port_detach+0x58/0x80 sound/core/seq/seq_ports.c:690 snd_seq_midisynth_delete sound/core/seq/seq_midi.c:250 [inline] snd_seq_midisynth_remove+0x12f/0x250 sound/core/seq/seq_midi.c:432 __device_release_driver drivers/base/dd.c:1108 [inline] device_release_driver_internal+0x32e/0x4b0 drivers/base/dd.c:1139 device_release_driver+0x15/0x20 drivers/base/dd.c:1162 bus_remove_device+0x1c6/0x210 drivers/base/bus.c:533 device_del+0x502/0xa80 drivers/base/core.c:2877 snd_seq_device_dev_disconnect+0x20/0x30 sound/core/seq_device.c:171 __snd_device_disconnect sound/core/device.c:63 [inline] snd_device_disconnect_all+0x84/0x130 sound/core/device.c:215 snd_card_disconnect+0x24a/0x320 sound/core/init.c:416 usb_audio_disconnect+0x13f/0x3d0 sound/usb/card.c:758 usb_unbind_interface+0x175/0x530 drivers/usb/core/driver.c:436 __device_release_driver drivers/base/dd.c:1108 [inline] device_release_driver_internal+0x32e/0x4b0 drivers/base/dd.c:1139 device_release_driver+0x15/0x20 drivers/base/dd.c:1162 bus_remove_device+0x1c6/0x210 drivers/base/bus.c:533 device_del+0x502/0xa80 drivers/base/core.c:2877 usb_disable_device+0x24a/0x7a0 drivers/usb/core/message.c:1245 usb_disconnect+0x206/0x4a0 drivers/usb/core/hub.c:2217 hub_port_connect drivers/usb/core/hub.c:5059 [inline] hub_port_connect_change drivers/usb/core/hub.c:5348 [inline] port_event drivers/usb/core/hub.c:5494 [inline] hub_event+0x13c9/0x2bd0 drivers/usb/core/hub.c:5576 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 read to 0xffff88809d597930 of 1 bytes by task 16688 on cpu 1: snd_seq_deliver_single_event+0x181/0x4f0 sound/core/seq/seq_clientmgr.c:625 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+0x20a/0x2d0 sound/core/seq/oss/seq_oss_midi.c:470 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: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 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16688 Comm: syz-executor.5 Not tainted 5.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================