raw-gadget gadget: fail, usb_ep_enable returned -22 raw-gadget gadget: fail, usb_ep_enable returned -22 ================================================================== BUG: KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb write to 0xffff8880a1b17818 of 4 bytes by task 12 on cpu 0: recursively_mark_NOTATTACHED+0x1ba/0x1e0 drivers/usb/core/hub.c:2012 usb_set_device_state drivers/usb/core/hub.c:2070 [inline] usb_disconnect+0x5d/0x4a0 drivers/usb/core/hub.c:2198 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+0x3cb/0x990 kernel/workqueue.c:2269 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415 kthread+0x210/0x220 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 read to 0xffff8880a1b17818 of 4 bytes by task 13200 on cpu 1: usb_submit_urb+0x1fe/0xb80 drivers/usb/core/urb.c:407 snd_usbmidi_submit_urb sound/usb/midi.c:194 [inline] snd_usbmidi_input_start_ep sound/usb/midi.c:2313 [inline] snd_usbmidi_input_start+0x14b/0x550 sound/usb/midi.c:2329 substream_open+0x1c2/0x410 sound/usb/midi.c:1119 snd_usbmidi_input_open+0x1b/0x20 sound/usb/midi.c:1218 open_substream+0x1e6/0x380 sound/core/rawmidi.c:299 rawmidi_open_priv+0x94/0x5d0 sound/core/rawmidi.c:342 snd_rawmidi_kernel_open+0x13e/0x1c0 sound/core/rawmidi.c:382 midisynth_subscribe+0x5d/0x180 sound/core/seq/seq_midi.c:170 subscribe_port sound/core/seq/seq_ports.c:412 [inline] check_and_subscribe_port+0x356/0x5a0 sound/core/seq/seq_ports.c:495 snd_seq_port_connect+0x12b/0x220 sound/core/seq/seq_ports.c:564 snd_seq_ioctl_subscribe_port+0x25c/0x330 sound/core/seq/seq_clientmgr.c:1484 snd_seq_kernel_client_ctl+0x451/0x470 sound/core/seq/seq_clientmgr.c:2353 snd_seq_oss_midi_open+0x308/0x3c0 sound/core/seq/oss/seq_oss_midi.c:364 snd_seq_oss_synth_setup_midi+0xa7/0x240 sound/core/seq/oss/seq_oss_synth.c:269 snd_seq_oss_open+0x6e2/0x8e0 sound/core/seq/oss/seq_oss_init.c:261 odev_open+0x4a/0x60 sound/core/seq/oss/seq_oss.c:125 soundcore_open+0x2ef/0x380 sound/sound_core.c:593 chrdev_open+0x35f/0x3d0 fs/char_dev.c:414 do_dentry_open+0x580/0x8e0 fs/open.c:828 vfs_open+0x43/0x50 fs/open.c:942 do_open fs/namei.c:3243 [inline] path_openat+0x185f/0x20e0 fs/namei.c:3360 do_filp_open+0xbd/0x1d0 fs/namei.c:3387 do_sys_openat2+0x33c/0x4a0 fs/open.c:1179 do_sys_open fs/open.c:1195 [inline] __do_sys_openat fs/open.c:1209 [inline] __se_sys_openat fs/open.c:1204 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1204 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: 1 PID: 13200 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 ==================================================================