raw-gadget.0 gadget.4: fail, usb_ep_enable returned -22 ===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in _inline_copy_to_user include/linux/uaccess.h:187 [inline] BUG: KMSAN: kernel-infoleak in _copy_to_user+0xbc/0x110 lib/usercopy.c:26 instrument_copy_to_user include/linux/instrumented.h:114 [inline] _inline_copy_to_user include/linux/uaccess.h:187 [inline] _copy_to_user+0xbc/0x110 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:216 [inline] raw_ioctl_ep0_read drivers/usb/gadget/legacy/raw_gadget.c:786 [inline] raw_ioctl+0x3d28/0x5440 drivers/usb/gadget/legacy/raw_gadget.c:1315 __do_compat_sys_ioctl fs/ioctl.c:1007 [inline] __se_compat_sys_ioctl+0x785/0x1080 fs/ioctl.c:950 __ia32_compat_sys_ioctl+0x93/0xe0 fs/ioctl.c:950 ia32_sys_call+0x32a2/0x40d0 arch/x86/include/generated/asm/syscalls_32.h:55 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb0/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Uninit was created at: slab_post_alloc_hook mm/slub.c:4092 [inline] slab_alloc_node mm/slub.c:4135 [inline] __do_kmalloc_node mm/slub.c:4264 [inline] __kmalloc_noprof+0x661/0xf30 mm/slub.c:4277 kmalloc_noprof include/linux/slab.h:882 [inline] raw_alloc_io_data drivers/usb/gadget/legacy/raw_gadget.c:675 [inline] raw_ioctl_ep0_read drivers/usb/gadget/legacy/raw_gadget.c:778 [inline] raw_ioctl+0x3bc5/0x5440 drivers/usb/gadget/legacy/raw_gadget.c:1315 __do_compat_sys_ioctl fs/ioctl.c:1007 [inline] __se_compat_sys_ioctl+0x785/0x1080 fs/ioctl.c:950 __ia32_compat_sys_ioctl+0x93/0xe0 fs/ioctl.c:950 ia32_sys_call+0x32a2/0x40d0 arch/x86/include/generated/asm/syscalls_32.h:55 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb0/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Bytes 0-2 of 3 are uninitialized Memory access of size 3 starts at ffff88804feea180 Data copied to user address 00000000f5764550 CPU: 1 UID: 0 PID: 11462 Comm: syz.4.1194 Not tainted 6.11.0-syzkaller-10729-g13882369ceb9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 =====================================================