last executing test programs: 2m42.991389374s ago: executing program 1 (id=80): mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='config\x00', 0x1ff) mount(0x0, &(0x7f00000000c0)='config\x00', 0x0, 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f00000000c0)='config\x00', 0x0, 0x0) r1 = openat(r0, &(0x7f0000000180)='usb_gadget/g1\x00', 0x0, 0x0) r2 = openat(r1, &(0x7f0000000250)='bcdUSB\x00', 0x2, 0x0) write(r2, &(0x7f0000000290)='0x0210\x00', 0x6) 2m40.240177521s ago: executing program 0 (id=81): mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000040)='./sys\x00', &(0x7f0000000080)='sysfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f00000000c0)='./sys/module/usbcore/parameters/quirks\x00', 0x2, 0x0) write(r0, &(0x7f0000000140)='0fc5:1227:b\n', 0xc) close(r0) r1 = openat(0xffffffffffffff9c, &(0x7f0000000340)='./sys/bus/usb/devices/5-1/power/autosuspend_delay_ms\x00', 0x2, 0x0) write(r1, &(0x7f0000000380)='0\n', 0x2) close(r1) r2 = openat(0xffffffffffffff9c, &(0x7f00000003c0)='./sys/bus/usb/devices/5-1/power/control\x00', 0x2, 0x0) write(r2, &(0x7f0000000400)='auto\n', 0x5) close(r2) nanosleep(&(0x7f0000000300)={0x0, 0x1dcd6500}, 0x0) r3 = openat(0xffffffffffffff9c, &(0x7f0000000440)='./sys/bus/usb/devices/5-1/power/control\x00', 0x2, 0x0) write(r3, &(0x7f0000000480)='on\n', 0x3) close(r3) nanosleep(&(0x7f0000000300)={0x0, 0x1dcd6500}, 0x0) 2m18.862452549s ago: executing program 1 (id=82): syz_usb_connect(0x0, 0x35, &(0x7f0000000000)=ANY=[@ANYBLOB="12010002ff000040f00a11670000010203010902230001010080fa0904000002ff0000000330000705810200020007050202000200"], 0x0) nanosleep(&(0x7f0000000300)={0x1}, 0x0) r0 = socket(0x11, 0x3, 0x300) ioctl(r0, 0x8914, &(0x7f0000000100)="68736f300000000000000000000000000100"/32) sendto$packet(r0, &(0x7f0000000200)="00112233445566778899aabb08004500001c00000000401176c301010101010101020001000100080000", 0x2a, 0x0, &(0x7f0000000300)={0x11, 0x300, 0x0, 0x1, 0x0, 0x6, @local}, 0x14) nanosleep(&(0x7f0000000300)={0x1}, 0x0) 2m11.547314423s ago: executing program 0 (id=83): syz_usb_connect(0x0, 0x24, &(0x7f0000000000)={{0x12, 0x1, 0x0, 0x97, 0xff, 0x82, 0x8, 0x2058, 0x1005, 0xc19b, 0x0, 0x0, 0x0, 0x1, [{{0x9, 0x2, 0x12, 0x1, 0x0, 0x0, 0x0, 0x0, "", [{{0x9, 0x4, 0x8f, 0x0, 0x0, 0xbf, 0x57, 0x5a}}]}}]}}, 0x0) r0 = syz_usb_connect(0x3, 0x3f, &(0x7f0000000000)={{0x12, 0x1, 0x110, 0xff, 0xff, 0x0, 0x40, 0x9710, 0x7810, 0x0, 0x1, 0x2, 0x3, 0x1, [{{0x9, 0x2, 0x2d, 0x1, 0x1, 0x5, 0x80, 0x0, "", [{{0x9, 0x4, 0x0, 0x7f, 0x3, 0xff, 0x11, 0x1, 0x5, [], [{{0x9, 0x5, 0x81, 0x2, 0x40, 0x6, 0x9, 0x4}}, {{0x9, 0x5, 0x2, 0x2, 0x20, 0x2, 0x57, 0x6e}}, {{0x9, 0x5, 0x83, 0x3, 0x240, 0x3, 0x82, 0x8}}]}}]}}]}}, 0x0) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) syz_usb_control_io(r0, 0x0, &(0x7f0000000800)={0x0, &(0x7f0000000900)={0x40, 0xd, 0x1, '\x00'}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) 1m49.142664296s ago: executing program 1 (id=84): bpf$BPF_BTF_LOAD(0x12, &(0x7f0000000200)={&(0x7f0000000000)={{0xeb9f, 0x1, 0x0, 0x18, 0x0, 0x28, 0x28, 0x4, [@datasec={0x1, 0x1, 0x0, 0xf, 0x1, [{0x2, 0x0, 0x1}], 'a'}]}, {0x0, [0x61, 0x0]}}, &(0x7f0000000300)=""/65536, 0x44, 0x10000, 0x1}, 0x20) 1m39.312106822s ago: executing program 0 (id=85): mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./sys\x00', &(0x7f00000000c0)='sysfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000100)='./sys/module/apparmor/parameters/debug\x00', 0x1, 0x0) write(r0, &(0x7f0000000140)='1\n', 0x2) 1m14.202017522s ago: executing program 1 (id=86): mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='config\x00', 0x1ff) mount(0x0, &(0x7f00000000c0)='config\x00', &(0x7f00000000e0)='configfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, 0x0, 0x0, 0x0) r1 = openat(r0, &(0x7f0000000180)='usb_gadget/g1\x00', 0x0, 0x0) r2 = openat(r1, &(0x7f0000000250)='bcdUSB\x00', 0x2, 0x0) write(r2, &(0x7f0000000290)='0x0210\x00', 0x6) 1m10.314974199s ago: executing program 0 (id=87): mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./dev\x00', 0x1ff) openat(0xffffffffffffff9c, &(0x7f0000001000)='./dev/ttyUSB0\x00', 0x0, 0x0) 38.739435254s ago: executing program 1 (id=88): syz_usb_connect(0x0, 0x24, &(0x7f0000000000)={{0x12, 0x1, 0x0, 0x97, 0xff, 0x82, 0x8, 0x2058, 0x1005, 0xc19b, 0x0, 0x0, 0x0, 0x1, [{{0x9, 0x2, 0x12, 0x1, 0x0, 0x0, 0x0, 0x0, "", [{{0x9, 0x4, 0x8f, 0x0, 0x0, 0xbf, 0x57, 0x5a}}]}}]}}, 0x0) syz_usb_disconnect(0x3) syz_usb_connect(0x0, 0x24, &(0x7f0000000000)=ANY=[@ANYBLOB="1201000200000040b72040150000000000010902120001010080320904000000ff000000"], 0x0) 37.43465602s ago: executing program 0 (id=89): syz_usb_connect(0x0, 0x36, &(0x7f0000000040)=ANY=[@ANYBLOB="1201000200000040ac05a8120000000000010902240001010000000904000001fff00000090581024000000000090502024000000000"], 0x0) nanosleep(&(0x7f0000000300)={0x1}, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000100)='./sys\x00', &(0x7f0000000200)='sysfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000100)='./sys/bus/usb/devices/1-1:1.0/driver\x00', 0x0, 0x0) 2.666277407s ago: executing program 1 (id=90): mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000100)='./sys\x00', &(0x7f0000000140)='sysfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./config\x00', 0x1ff) mount(0x0, &(0x7f00000001c0)='./config\x00', &(0x7f0000000200)='configfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000240)='./sys/bus/platform/drivers/dummy_udc/unbind\x00', 0x1, 0x0) write(r0, &(0x7f0000000000)='dummy_udc.0\n', 0xc) mkdirat(0xffffffffffffff9c, &(0x7f0000000280)='./config/usb_gadget/g1\x00', 0x1ff) r1 = openat(0xffffffffffffff9c, &(0x7f00000002c0)='./config/usb_gadget/g1/idVendor\x00', 0x1, 0x0) write(r1, &(0x7f0000000040)='0x1d6b', 0x6) r2 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/idProduct\x00', 0x1, 0x0) write(r2, &(0x7f0000000080)='0x0104', 0x6) mkdirat(0xffffffffffffff9c, &(0x7f0000000340)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000380)='./config/usb_gadget/g1/functions/uac2.usb0\x00', 0x1ff) 0s ago: executing program 0 (id=91): mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='dev\x00', 0x1ff) mount(&(0x7f0000000000)=@filename='devtmpfs\x00', &(0x7f0000000100)='dev\x00', &(0x7f0000000200)='devtmpfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000300)='file0\x00', 0x42, 0x1ff) ftruncate(r0, 0x200000) r1 = syz_open_dev$loop(&(0x7f0000000400), 0x0, 0x2) ioctl$LOOP_SET_FD(r1, 0x4c00, r0) r2 = openat(0xffffffffffffff9c, &(0x7f0000000500)='dev/mapper/control\x00', 0x2, 0x0) ioctl(r2, 0xc013fd03, &(0x7f0000000600)="040000000000000000000000380100003801000000000000000000000000000000000000000000000000000000000000746573745f646d00") ioctl(r2, 0xc013fd09, &(0x7f0000000700)="040000000000000000000000700100003801000001000000000000000000000000000000000000000000000000000000746573745f646d00000000000000000000080000000000000000000038000000696e7465677269747900000000000000373a3020302038204a203000") ioctl(r2, 0xc013fd06, &(0x7f0000000800)="040000000000000000000000380100003801000000000000000000000000000000000000000000000000000000000000746573745f646d00") ioctl(r2, 0xc013fd06, &(0x7f0000000900)="040000000000000000000000380100003801000000000000000002000000000000000000000000000000000000000000746573745f646d00") kernel console output (not intermixed with test programs): Warning: Permanently added '[localhost]:62193' (ED25519) to the list of known hosts. syzkaller login: [ 585.068184][ T3216] cgroup: Unknown subsys name 'net' [ 586.070482][ T3216] cgroup: Unknown subsys name 'cpuset' [ 586.204955][ T3216] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 675.182329][ T3216] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 877.355617][ T3224] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 877.677952][ T3224] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 882.955729][ T3223] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 883.316421][ T3223] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 895.826228][ T3224] hsr_slave_0: entered promiscuous mode [ 895.875149][ T3224] hsr_slave_1: entered promiscuous mode [ 902.306925][ T3223] hsr_slave_0: entered promiscuous mode [ 902.346768][ T3223] hsr_slave_1: entered promiscuous mode [ 902.372547][ T3223] debugfs: 'hsr0' already exists in 'hsr' [ 902.375925][ T3223] Cannot create hsr debugfs directory [ 913.357217][ T3224] netdevsim netdevsim1 netdevsim0: renamed from eth0 [ 913.782319][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 913.882964][ T3224] netdevsim netdevsim1 netdevsim1: renamed from eth1 [ 914.064794][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 914.235068][ T3224] netdevsim netdevsim1 netdevsim2: renamed from eth2 [ 914.446128][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 915.027703][ T3224] netdevsim netdevsim1 netdevsim3: renamed from eth3 [ 915.184360][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 917.286407][ T3223] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 917.475883][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 917.707082][ T3223] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 917.885778][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 918.036942][ T3223] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 918.391527][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 918.525777][ T3223] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 918.853683][ T3223] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 953.477770][ T3223] 8021q: adding VLAN 0 to HW filter on device bond0 [ 954.846899][ T3224] 8021q: adding VLAN 0 to HW filter on device bond0 [ 1032.769575][ T3224] veth0_vlan: entered promiscuous mode [ 1033.791363][ T3224] veth1_vlan: entered promiscuous mode [ 1034.324719][ T3223] veth0_vlan: entered promiscuous mode [ 1036.963147][ T3223] veth1_vlan: entered promiscuous mode [ 1040.983754][ T3224] veth0_macvtap: entered promiscuous mode [ 1042.635745][ T3224] veth1_macvtap: entered promiscuous mode [ 1048.298402][ T3223] veth0_macvtap: entered promiscuous mode [ 1051.195862][ T3223] veth1_macvtap: entered promiscuous mode [ 1056.494659][ T3399] netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1056.624480][ T47] netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1058.892775][ T3237] netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1059.012164][ T47] netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1066.731510][ T3399] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1067.252019][ T3237] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1067.567206][ T30] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1067.622120][ T3237] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1075.151179][ T3224] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 1096.618202][ T3843] atkbd serio0: keyboard reset failed on [ 1101.456932][ T3219] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 1107.812915][ T3219] usb 1-1: device descriptor read/all, error -71 [ 1120.356666][ T3690] usb 2-1: new high-speed USB device number 2 using dummy_hcd [ 1120.984701][ T3690] usb 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64 [ 1121.012169][ T3690] usb 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64 [ 1122.027158][ T3690] usb 2-1: New USB device found, idVendor=9022, idProduct=d630, bcdDevice= 1.00 [ 1122.042138][ T3690] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1122.045425][ T3690] usb 2-1: Product: syz [ 1122.047939][ T3690] usb 2-1: Manufacturer: syz [ 1122.083808][ T3690] usb 2-1: SerialNumber: syz [ 1123.295631][ T3866] raw-gadget.0 gadget.1: fail, usb_ep_enable returned -22 [ 1123.435787][ T3866] raw-gadget.0 gadget.1: fail, usb_ep_enable returned -22 [ 1130.790151][ T3282] wiimote 0005:057E:0306.0001: hidraw0: BLUETOOTH HID v0.00 Gamepad [syz0] on syz0 [ 1130.914295][ T3282] wiimote 0005:057E:0306.0001: New device registered [ 1132.899964][ T3843] wiimote 0005:057E:0306.0001: detected device: Nintendo Wii Remote (Gen 1) [ 1135.238213][ T3872] wiimote 0005:057E:0306.0001: Device removed [ 1136.177394][ T3843] input: Nintendo Wii Remote Accelerometer as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input3 [ 1137.120487][ T3843] input: Nintendo Wii Remote IR as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input4 [ 1137.715966][ T3844] usb 2-1: USB disconnect, device number 2 [ 1140.164578][ T3843] input: Nintendo Wii Remote as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input2 [ 1147.028270][ T3844] usb 2-1: new high-speed USB device number 3 using dummy_hcd [ 1147.065364][ C0] raw-gadget.0 gadget.1: ignoring, device is not running [ 1147.422701][ T3844] usb 2-1: device descriptor read/64, error -32 [ 1147.916272][ T3844] usb 2-1: new high-speed USB device number 4 using dummy_hcd [ 1151.554934][ T3844] usb 2-1: New USB device found, idVendor=0424, idProduct=7850, bcdDevice= 0.00 [ 1151.570854][ T3844] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1151.592260][ T3844] usb 2-1: Product: syz [ 1151.681326][ T3844] usb 2-1: Manufacturer: syz [ 1151.697745][ T3844] usb 2-1: SerialNumber: syz [ 1160.453713][ T3844] lan78xx 2-1:1.0 (unnamed net_device) (uninitialized): Failed to read register index 0x00000098. ret = -ETIMEDOUT [ 1160.456456][ T3844] lan78xx 2-1:1.0 (unnamed net_device) (uninitialized): lan78xx_setup_irq_domain() failed : -110 [ 1160.457639][ T3844] lan78xx 2-1:1.0 (unnamed net_device) (uninitialized): Bind routine FAILED [ 1160.798048][ T3844] lan78xx 2-1:1.0: probe with driver lan78xx failed with error -110 [ 1162.071493][ T3845] usb 2-1: USB disconnect, device number 4 [ 1204.192047][ T3856] usb 2-1: new low-speed USB device number 5 using dummy_hcd [ 1205.492225][ T3856] usb 2-1: Invalid ep0 maxpacket: 64 [ 1205.867237][ T3856] usb 2-1: new low-speed USB device number 6 using dummy_hcd [ 1206.371845][ T3856] usb 2-1: Invalid ep0 maxpacket: 64 [ 1206.439958][ T3856] usb usb2-port1: attempt power cycle [ 1207.071925][ T3856] usb 2-1: new low-speed USB device number 7 using dummy_hcd [ 1207.182278][ T3856] usb 2-1: Invalid ep0 maxpacket: 64 [ 1207.457627][ T3856] usb 2-1: new low-speed USB device number 8 using dummy_hcd [ 1210.602900][ T3856] usb 2-1: Invalid ep0 maxpacket: 64 [ 1210.656652][ T3856] usb usb2-port1: unable to enumerate USB device [ 1217.702268][ T3856] usb 1-1: new high-speed USB device number 4 using dummy_hcd [ 1218.770265][ T3856] usb 1-1: New USB device found, idVendor=9710, idProduct=7810, bcdDevice= 0.00 [ 1218.773531][ T3856] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1218.776307][ T3856] usb 1-1: Product: syz [ 1218.778310][ T3856] usb 1-1: Manufacturer: syz [ 1218.780531][ T3856] usb 1-1: SerialNumber: syz [ 1220.386603][ T3856] mos7840 1-1:1.0: Moschip 7840/7820 USB Serial Driver converter detected [ 1225.581807][ T3856] mos7840 1-1:1.0: probe with driver mos7840 failed with error -110 [ 1236.396941][ T3844] usb 1-1: USB disconnect, device number 4 [ 1278.401160][ T3845] usb 2-1: new high-speed USB device number 9 using dummy_hcd [ 1279.491411][ T3845] usb 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64 [ 1279.504181][ T3845] usb 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x2 has invalid maxpacket 64 [ 1279.520682][ T3845] usb 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64 [ 1280.385787][ T3845] usb 2-1: New USB device found, idVendor=15a4, idProduct=9020, bcdDevice= 1.00 [ 1280.393717][ T3845] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1280.395755][ T3845] usb 2-1: Product: syz [ 1280.397281][ T3845] usb 2-1: Manufacturer: syz [ 1280.437699][ T3845] usb 2-1: SerialNumber: syz [ 1282.505860][ T3994] raw-gadget.0 gadget.1: fail, usb_ep_enable returned -22 [ 1282.672794][ T3994] raw-gadget.0 gadget.1: fail, usb_ep_enable returned -22 [ 1282.843115][ T3994] raw-gadget.0 gadget.1: fail, usb_ep_enable returned -22 [ 1286.857961][ T3844] usb 1-1: new high-speed USB device number 5 using dummy_hcd [ 1288.659883][ T3842] usb 2-1: USB disconnect, device number 9 [ 1288.852942][ T3844] usb 1-1: config 2 has an invalid interface number: 1 but max is 0 [ 1288.885526][ T3844] usb 1-1: config 2 has 2 interfaces, different from the descriptor's value: 1 [ 1288.934226][ T3844] usb 1-1: config 2 interface 1 altsetting 1 bulk endpoint 0x82 has invalid maxpacket 64 [ 1288.965108][ T3844] usb 1-1: config 2 interface 1 altsetting 1 has 1 endpoint descriptor, different from the interface descriptor's value: 2 [ 1288.996077][ T3844] usb 1-1: config 2 interface 1 has no altsetting 0 [ 1290.001748][ T3844] usb 1-1: New USB device found, idVendor=06b9, idProduct=4061, bcdDevice= 0.00 [ 1290.015436][ T3844] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1290.028969][ T3844] usb 1-1: Product: syz [ 1290.040525][ T3844] usb 1-1: Manufacturer: syz [ 1290.055924][ T3844] usb 1-1: SerialNumber: syz [ 1297.233654][ T3845] usb 1-1: USB disconnect, device number 5 [ 1324.131588][ T3219] usb 2-1: new high-speed USB device number 10 using dummy_hcd [ 1325.506772][ T3219] usb 2-1: New USB device found, idVendor=046d, idProduct=0821, bcdDevice= 1.00 [ 1325.508164][ T3219] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1325.510844][ T3219] usb 2-1: Product: syz [ 1325.511834][ T3219] usb 2-1: Manufacturer: syz [ 1333.087646][ T3282] usb 2-1: USB disconnect, device number 10 [ 1342.444911][ T3844] usb 2-1: new high-speed USB device number 11 using dummy_hcd [ 1343.263389][ T3844] usb 2-1: Using ep0 maxpacket: 8 [ 1344.122842][ T3844] usb 2-1: config 0 has an invalid interface number: 143 but max is 0 [ 1344.137411][ T3844] usb 2-1: config 0 has no interface number 0 [ 1344.205432][ T3844] usb 2-1: New USB device found, idVendor=2058, idProduct=1005, bcdDevice=c1.9b [ 1344.210158][ T3844] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1345.182711][ T3844] usb 2-1: config 0 descriptor?? [ 1345.664016][ T3844] viperboard 2-1:0.143: version 0.00 found at bus 002 address 011 [ 1348.361349][ T3844] viperboard-i2c viperboard-i2c.1.auto: error -EIO: failure setting i2c_bus_freq to 100 [ 1348.382654][ T3844] viperboard-i2c viperboard-i2c.1.auto: probe with driver viperboard-i2c failed with error -5 [ 1351.674595][ T10] usb 2-1: USB disconnect, device number 11 [ 1360.476509][ T4090] gadgetfs: bound to dummy_udc driver [ 1361.107778][ T3856] usb 1-1: new full-speed USB device number 6 using dummy_hcd [ 1361.121311][ C0] gadgetfs: connected [ 1361.186589][ T3856] gadgetfs: disconnected [ 1361.446145][ C0] gadgetfs: connected [ 1361.550958][ T3856] usb 1-1: config 1 has 0 interfaces, different from the descriptor's value: 1 [ 1361.554820][ T3856] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a0, bcdDevice= 1.00 [ 1361.594831][ T3856] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1362.133986][ C0] gadgetfs: configuration #1 [ 1367.241916][ T3856] usb 1-1: can't set config #1, error -110 [ 1367.646850][ T4086] gadgetfs: suspended from state 4 [ 1367.691743][ T4086] gadgetfs: disconnected [ 1367.802223][ T3856] usb 1-1: USB disconnect, device number 6 [ 1376.371825][ T3842] usb 2-1: new full-speed USB device number 12 using dummy_hcd [ 1376.734468][ T3842] usb 2-1: device descriptor read/64, error -71 [ 1377.216305][ T3842] usb 2-1: new full-speed USB device number 13 using dummy_hcd [ 1377.543093][ T3842] usb 2-1: device descriptor read/64, error -71 [ 1377.701476][ T3842] usb usb2-port1: attempt power cycle [ 1378.369883][ T3842] usb 2-1: new full-speed USB device number 14 using dummy_hcd [ 1378.429806][ T3842] usb 2-1: device descriptor read/8, error -71 [ 1378.755960][ T3842] usb 2-1: new full-speed USB device number 15 using dummy_hcd [ 1379.172226][ T3842] usb 2-1: device descriptor read/8, error -71 [ 1379.390085][ T3842] usb usb2-port1: unable to enumerate USB device [ 1398.937695][ T3856] usb 1-1: new high-speed USB device number 7 using dummy_hcd [ 1399.446986][ T3856] usb 1-1: Dual-Role OTG device on HNP port [ 1399.452814][ T3856] usb 1-1: New USB device found, idVendor=1234, idProduct=5678, bcdDevice= 7.02 [ 1399.454224][ T3856] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1458.141947][ T4162] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1458.723943][ T4162] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1479.242734][ T4169] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1479.633596][ T4169] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1486.449834][ T817] usb 2-1: new high-speed USB device number 16 using dummy_hcd [ 1492.358231][ T817] usb 2-1: device descriptor read/64, error -110 [ 1492.834528][ T817] usb 2-1: new high-speed USB device number 17 using dummy_hcd [ 1493.144799][ T817] usb 2-1: device descriptor read/64, error -32 [ 1493.323276][ T817] usb usb2-port1: attempt power cycle [ 1494.135602][ T817] usb 2-1: new high-speed USB device number 18 using dummy_hcd [ 1494.753075][ T817] usb 2-1: device descriptor read/8, error -32 [ 1495.233120][ T817] usb 2-1: new high-speed USB device number 19 using dummy_hcd [ 1495.327740][ T817] usb 2-1: device descriptor read/8, error -32 [ 1495.453067][ T817] raw-gadget.1 gadget.1: failed to queue suspend event [ 1495.472102][ T817] usb usb2-port1: unable to enumerate USB device [ 1496.817997][ T4166] raw-gadget.1 gadget.1: failed to queue disconnect event [ 1529.855758][ T3856] usb 2-1: new full-speed USB device number 20 using dummy_hcd [ 1533.613165][ T3856] usb 2-1: New USB device found, idVendor=041e, idProduct=401a, bcdDevice= 1.00 [ 1533.639857][ T3856] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1539.036893][ T4195] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1539.245386][ T4195] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1539.783911][ T3856] usb 2-1: can't set config #1, error -110 [ 1543.064336][ T3843] usb 2-1: USB disconnect, device number 20 [ 1629.717197][ T4223] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1630.001241][ T4223] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1711.731576][ T4248] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1712.487799][ T4248] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1738.054516][ T3845] usb 2-1: new high-speed USB device number 21 using dummy_hcd [ 1738.983888][ T3845] usb 2-1: Using ep0 maxpacket: 16 [ 1739.992842][ T3845] usb 2-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 [ 1740.020797][ T3845] usb 2-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9 [ 1740.051304][ T3845] usb 2-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00 [ 1740.076628][ T3845] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1741.143314][ T3845] usb 2-1: config 0 descriptor?? [ 1742.641456][ T4260] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1743.029871][ T4260] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1748.381986][ T3845] usbhid 2-1:0.0: can't add hid device: -32 [ 1748.431129][ T3845] usbhid 2-1:0.0: probe with driver usbhid failed with error -32 [ 1753.234159][ T3845] usb 2-1: USB disconnect, device number 21 [ 1769.342002][ T4276] process 'syz.1.58' launched './myexe' with NULL argv: empty string added [ 1811.870933][ T4285] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1812.076019][ T4285] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1820.712647][ T4265] usb 2-1: new high-speed USB device number 22 using dummy_hcd [ 1835.002659][ T4265] usb 2-1: New USB device found, idVendor=0424, idProduct=7850, bcdDevice= 0.00 [ 1835.013470][ T4265] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1835.033755][ T4265] usb 2-1: Product: syz [ 1835.049663][ T4265] usb 2-1: Manufacturer: syz [ 1836.113119][ T4265] usb 2-1: can't set config #1, error -32 [ 1839.055814][ T817] usb 2-1: USB disconnect, device number 22 [ 1848.334088][ T4304] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 1848.675855][ T4304] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 1921.342923][ T817] usb 2-1: new high-speed USB device number 23 using dummy_hcd [ 1926.685631][ T817] usb 2-1: device descriptor read/64, error -110 [ 1927.187629][ T817] usb 2-1: new high-speed USB device number 24 using dummy_hcd [ 1927.480369][ T817] usb 2-1: device descriptor read/64, error -32 [ 1927.645449][ T817] usb usb2-port1: attempt power cycle [ 1928.656818][ T817] usb 2-1: new high-speed USB device number 25 using dummy_hcd [ 1928.797088][ T817] usb 2-1: device descriptor read/8, error -32 [ 1928.956800][ T817] raw-gadget.0 gadget.1: failed to queue suspend event [ 1929.124444][ T817] raw-gadget.0 gadget.1: failed to queue reset event [ 1929.283368][ T817] raw-gadget.0 gadget.1: failed to queue resume event [ 1929.425488][ T817] usb 2-1: new high-speed USB device number 26 using dummy_hcd [ 1929.514069][ C1] raw-gadget.0 gadget.1: ignoring, device is not running [ 1929.553049][ T817] usb 2-1: device descriptor read/8, error -32 [ 1929.688291][ T817] raw-gadget.0 gadget.1: failed to queue suspend event [ 1929.770660][ T817] usb usb2-port1: unable to enumerate USB device [ 1930.416905][ T4320] raw-gadget.0 gadget.1: failed to queue disconnect event [ 1977.303201][ T4265] usb 2-1: new full-speed USB device number 27 using dummy_hcd [ 1983.086510][ T4265] usb 2-1: unable to read config index 0 descriptor/start: -110 [ 1983.098164][ T4265] usb 2-1: can't read configurations, error -110 [ 1983.443294][ T4265] usb 2-1: new full-speed USB device number 28 using dummy_hcd [ 1983.765836][ T4265] usb 2-1: device descriptor read/64, error -32 [ 1983.980917][ T4265] usb usb2-port1: attempt power cycle [ 1984.684372][ T4265] usb 2-1: new full-speed USB device number 29 using dummy_hcd [ 1984.781647][ T4265] usb 2-1: device descriptor read/8, error -32 [ 1985.215838][ T4265] usb 2-1: new full-speed USB device number 30 using dummy_hcd [ 1985.329995][ T4265] usb 2-1: device descriptor read/8, error -32 [ 1985.569628][ T4265] usb usb2-port1: unable to enumerate USB device [ 2035.996426][ T4362] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 2036.474156][ T4362] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 2060.096111][ T4176] usb 2-1: new full-speed USB device number 31 using dummy_hcd [ 2062.453960][ T4176] usb 2-1: config 1 has an invalid descriptor of length 0, skipping remainder of the config [ 2062.475889][ T4176] usb 2-1: New USB device found, idVendor=0506, idProduct=4601, bcdDevice= 1.00 [ 2062.488138][ T4176] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2065.243028][ T4176] pegasus 2-1:1.0: Missing or invalid endpoints [ 2073.096454][ T3778] usb 2-1: USB disconnect, device number 31 [ 2107.576898][ T817] usb 2-1: new high-speed USB device number 32 using dummy_hcd [ 2111.523757][ T817] usb 2-1: New USB device found, idVendor=0af0, idProduct=6711, bcdDevice= 0.00 [ 2111.526060][ T817] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2111.527893][ T817] usb 2-1: Product: syz [ 2111.551083][ T817] usb 2-1: Manufacturer: syz [ 2111.555873][ T817] usb 2-1: SerialNumber: syz [ 2117.899923][ T817] hso 2-1:1.0: Can't find INT IN endpoint [ 2124.045331][ T4408] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 2124.745740][ T4408] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 2128.380071][ T817] usb 2-1: USB disconnect, device number 32 [ 2161.824772][ T4429] profile_transition: unconfined exec no attachment [ 2161.826948][ T4429] apparmor_bprm_creds_for_exec: label build failed [ 2175.174427][ T4431] profile_transition: unconfined exec no attachment [ 2175.197144][ T4431] apparmor_bprm_creds_for_exec: label build failed [ 2185.700874][ T4436] profile_transition: unconfined exec no attachment [ 2185.701513][ T4436] apparmor_bprm_creds_for_exec: label build failed [ 2202.642405][ T4437] profile_transition: unconfined exec no attachment [ 2202.643491][ T4437] apparmor_bprm_creds_for_exec: label build failed [ 2216.067497][ T4441] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 2216.798129][ T4441] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 2219.170407][ T4445] profile_transition: unconfined exec no attachment [ 2219.177728][ T4445] apparmor_bprm_creds_for_exec: label build failed [ 2222.304288][ T817] usb 2-1: new high-speed USB device number 33 using dummy_hcd [ 2228.356455][ T817] usb 2-1: device descriptor read/64, error -110 [ 2229.602110][ T817] usb 2-1: new high-speed USB device number 34 using dummy_hcd [ 2230.040929][ T817] usb 2-1: device descriptor read/64, error -32 [ 2230.305123][ T817] usb usb2-port1: attempt power cycle [ 2231.168089][ T817] usb 2-1: new high-speed USB device number 35 using dummy_hcd [ 2231.299921][ T817] usb 2-1: device descriptor read/8, error -32 [ 2231.432771][ T4450] profile_transition: unconfined exec no attachment [ 2231.454737][ T817] raw-gadget.1 gadget.1: failed to queue suspend event [ 2231.470324][ T4450] apparmor_bprm_creds_for_exec: label build failed [ 2231.583283][ T817] raw-gadget.1 gadget.1: failed to queue reset event [ 2231.766498][ T817] raw-gadget.1 gadget.1: failed to queue resume event [ 2231.947616][ T817] usb 2-1: new high-speed USB device number 36 using dummy_hcd [ 2232.100356][ C1] raw-gadget.1 gadget.1: ignoring, device is not running [ 2232.134209][ T817] usb 2-1: device descriptor read/8, error -32 [ 2232.293448][ T817] raw-gadget.1 gadget.1: failed to queue suspend event [ 2232.350249][ T817] usb usb2-port1: unable to enumerate USB device [ 2233.184030][ T4439] raw-gadget.1 gadget.1: failed to queue disconnect event [ 2241.485444][ T4454] profile_transition: unconfined exec no attachment [ 2241.486508][ T4454] apparmor_bprm_creds_for_exec: label build failed [ 2262.462591][ T3844] usb 1-1: USB disconnect, device number 7 [ 2270.553240][ T3844] ================================================================== [ 2270.556238][ T3844] BUG: KASAN: slab-use-after-free in snd_usb_midi_v2_free+0x524/0x6ec [ 2270.560449][ T3844] Write of size 8 at addr ffffaf8032268350 by task kworker/0:4/3844 [ 2270.562348][ T3844] [ 2270.565139][ T3844] CPU: 0 UID: 0 PID: 3844 Comm: kworker/0:4 Not tainted syzkaller #0 PREEMPT [ 2270.565926][ T3844] Hardware name: riscv-virtio,qemu (DT) [ 2270.566651][ T3844] Workqueue: usb_hub_wq hub_event [ 2270.567799][ T3844] Call Trace: [ 2270.568346][ T3844] [] dump_backtrace+0x2e/0x3c [ 2270.569087][ T3844] [] show_stack+0x30/0x3c [ 2270.569623][ T3844] [] dump_stack_lvl+0x114/0x1aa [ 2270.570422][ T3844] [] print_report+0x27a/0x592 [ 2270.571023][ T3844] [] kasan_report+0xf0/0x26c [ 2270.571562][ T3844] [] __asan_report_store8_noabort+0x12/0x1a [ 2270.572154][ T3844] [] snd_usb_midi_v2_free+0x524/0x6ec [ 2270.572788][ T3844] [] snd_usb_midi_v2_free_all+0x70/0xd0 [ 2270.573452][ T3844] [] snd_usb_audio_free+0x3e/0x10a [ 2270.574018][ T3844] [] release_card_device+0x98/0x1be [ 2270.574697][ T3844] [] device_release+0xb4/0x24a [ 2270.575371][ T3844] [] kobject_put+0x20a/0x5de [ 2270.576027][ T3844] [] put_device+0x28/0x3a [ 2270.576596][ T3844] [] snd_card_free_when_closed+0x30/0x42 [ 2270.577268][ T3844] [] usb_audio_disconnect+0x1d8/0x5cc [ 2270.577827][ T3844] [] usb_unbind_interface+0x18a/0x812 [ 2270.578630][ T3844] [] device_remove+0x11a/0x15c [ 2270.579440][ T3844] [] device_release_driver_internal+0x3ca/0x554 [ 2270.580055][ T3844] [] device_release_driver+0x1e/0x28 [ 2270.580561][ T3844] [] bus_remove_device+0x284/0x518 [ 2270.581279][ T3844] [] device_del+0x312/0x870 [ 2270.581908][ T3844] [] usb_disable_device+0x2d2/0x718 [ 2270.582626][ T3844] [] usb_disconnect+0x27c/0x89e [ 2270.583251][ T3844] [] hub_event+0x1b82/0x4a62 [ 2270.583874][ T3844] [] process_one_work+0x90a/0x20a0 [ 2270.584686][ T3844] [] worker_thread+0x532/0xcaa [ 2270.585482][ T3844] [] kthread+0x312/0x438 [ 2270.586166][ T3844] [] ret_from_fork_kernel+0x94/0xef6 [ 2270.586789][ T3844] [] ret_from_fork_kernel_asm+0x16/0x18 [ 2270.587721][ T3844] [ 2270.609903][ T3844] Allocated by task 3856: [ 2270.611051][ T3844] stack_trace_save+0xa0/0xd2 [ 2270.612514][ T3844] kasan_save_stack+0x3e/0x66 [ 2270.614611][ T3844] kasan_save_track+0x16/0x28 [ 2270.616247][ T3844] kasan_save_alloc_info+0x30/0x3e [ 2270.617638][ T3844] __kasan_kmalloc+0xa0/0xa6 [ 2270.619031][ T3844] __kmalloc_cache_noprof+0x258/0x676 [ 2270.620265][ T3844] snd_ump_endpoint_new+0x98/0x3fe [ 2270.621360][ T3844] create_midi2_ump+0x286/0x7f8 [ 2270.622595][ T3844] snd_usb_midi_v2_create+0x10be/0x3fce [ 2270.624462][ T3844] snd_usb_create_stream.isra.0+0x334/0x4ee [ 2270.625765][ T3844] usb_audio_probe+0xf86/0x330e [ 2270.626952][ T3844] usb_probe_interface+0x2bc/0x916 [ 2270.628169][ T3844] really_probe+0x222/0xa8e [ 2270.629315][ T3844] __driver_probe_device+0x1d6/0x43e [ 2270.630440][ T3844] driver_probe_device+0x5e/0x162 [ 2270.631505][ T3844] __device_attach_driver+0x1c2/0x30a [ 2270.632613][ T3844] bus_for_each_drv+0x142/0x1dc [ 2270.633965][ T3844] __device_attach+0x1c4/0x490 [ 2270.635082][ T3844] device_initial_probe+0xb2/0xc8 [ 2270.636255][ T3844] bus_probe_device+0x50/0x146 [ 2270.637603][ T3844] device_add+0x1150/0x1880 [ 2270.638894][ T3844] usb_set_configuration+0xe92/0x196e [ 2270.640292][ T3844] usb_generic_driver_probe+0x9e/0x11a [ 2270.641569][ T3844] usb_probe_device+0xd4/0x378 [ 2270.642859][ T3844] really_probe+0x222/0xa8e [ 2270.643954][ T3844] __driver_probe_device+0x1d6/0x43e [ 2270.645131][ T3844] driver_probe_device+0x5e/0x162 [ 2270.646251][ T3844] __device_attach_driver+0x1c2/0x30a [ 2270.647466][ T3844] bus_for_each_drv+0x142/0x1dc [ 2270.648921][ T3844] __device_attach+0x1c4/0x490 [ 2270.650016][ T3844] device_initial_probe+0xb2/0xc8 [ 2270.651061][ T3844] bus_probe_device+0x50/0x146 [ 2270.652432][ T3844] device_add+0x1150/0x1880 [ 2270.653642][ T3844] usb_new_device+0x8e6/0x169a [ 2270.654916][ T3844] hub_event+0x2c1a/0x4a62 [ 2270.656125][ T3844] process_one_work+0x90a/0x20a0 [ 2270.657498][ T3844] worker_thread+0x532/0xcaa [ 2270.658881][ T3844] kthread+0x312/0x438 [ 2270.660112][ T3844] ret_from_fork_kernel+0x94/0xef6 [ 2270.661315][ T3844] ret_from_fork_kernel_asm+0x16/0x18 [ 2270.662677][ T3844] [ 2270.663387][ T3844] Freed by task 3844: [ 2270.664382][ T3844] stack_trace_save+0xa0/0xd2 [ 2270.665629][ T3844] kasan_save_stack+0x3e/0x66 [ 2270.667005][ T3844] kasan_save_track+0x16/0x28 [ 2270.668392][ T3844] kasan_save_free_info+0x40/0x5a [ 2270.669695][ T3844] __kasan_slab_free+0x5e/0x7e [ 2270.671043][ T3844] kfree+0x298/0x76c [ 2270.672100][ T3844] snd_rawmidi_free.part.0+0x328/0x456 [ 2270.673510][ T3844] snd_rawmidi_dev_free+0x3e/0x5c [ 2270.674919][ T3844] __snd_device_free+0x182/0x3b8 [ 2270.676574][ T3844] snd_device_free_all+0xe0/0x1ec [ 2270.677960][ T3844] release_card_device+0x6c/0x1be [ 2270.679313][ T3844] device_release+0xb4/0x24a [ 2270.680444][ T3844] kobject_put+0x20a/0x5de [ 2270.681609][ T3844] put_device+0x28/0x3a [ 2270.682691][ T3844] snd_card_free_when_closed+0x30/0x42 [ 2270.684014][ T3844] usb_audio_disconnect+0x1d8/0x5cc [ 2270.685181][ T3844] usb_unbind_interface+0x18a/0x812 [ 2270.686542][ T3844] device_remove+0x11a/0x15c [ 2270.687901][ T3844] device_release_driver_internal+0x3ca/0x554 [ 2270.689147][ T3844] device_release_driver+0x1e/0x28 [ 2270.690363][ T3844] bus_remove_device+0x284/0x518 [ 2270.691746][ T3844] device_del+0x312/0x870 [ 2270.692900][ T3844] usb_disable_device+0x2d2/0x718 [ 2270.694237][ T3844] usb_disconnect+0x27c/0x89e [ 2270.695528][ T3844] hub_event+0x1b82/0x4a62 [ 2270.696670][ T3844] process_one_work+0x90a/0x20a0 [ 2270.697976][ T3844] worker_thread+0x532/0xcaa [ 2270.699348][ T3844] kthread+0x312/0x438 [ 2270.700528][ T3844] ret_from_fork_kernel+0x94/0xef6 [ 2270.701731][ T3844] ret_from_fork_kernel_asm+0x16/0x18 [ 2270.703075][ T3844] [ 2270.703886][ T3844] The buggy address belongs to the object at ffffaf8032268000 [ 2270.703886][ T3844] which belongs to the cache kmalloc-4k of size 4096 [ 2270.705731][ T3844] The buggy address is located 848 bytes inside of [ 2270.705731][ T3844] freed 4096-byte region [ffffaf8032268000, ffffaf8032269000) [ 2270.707433][ T3844] [ 2270.708207][ T3844] The buggy address belongs to the physical page: [ 2270.710533][ T3844] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb2268 [ 2270.712405][ T3844] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 2270.713904][ T3844] flags: 0x40(head|node=0|zone=0) [ 2270.715834][ T3844] page_type: f5(slab) [ 2270.717803][ T3844] raw: 0000000000000040 ffffaf8012002140 dead000000000100 dead000000000122 [ 2270.719266][ T3844] raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000 [ 2270.720759][ T3844] head: 0000000000000040 ffffaf8012002140 dead000000000100 dead000000000122 [ 2270.722158][ T3844] head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000 [ 2270.723523][ T3844] head: 0000000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff [ 2270.724857][ T3844] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 2270.726134][ T3844] page dumped because: kasan: bad access detected [ 2270.727553][ T3844] page_owner tracks the page as allocated [ 2270.728638][ T3844] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3399, tgid 3399 (kworker/u8:3), ts 1106630473500, free_ts 1087041329300 [ 2270.731285][ T3844] __set_page_owner+0x92/0x4b0 [ 2270.732707][ T3844] post_alloc_hook+0xe4/0x1a0 [ 2270.733857][ T3844] get_page_from_freelist+0x914/0x395c [ 2270.735182][ T3844] __alloc_frozen_pages_noprof+0x224/0x2e40 [ 2270.736469][ T3844] new_slab+0x94/0x6be [ 2270.737540][ T3844] refill_objects+0x20a/0x3ba [ 2270.738765][ T3844] __pcs_replace_empty_main+0x27e/0x5fa [ 2270.740041][ T3844] __kmalloc_node_track_caller_noprof+0x5f0/0x8c0 [ 2270.741319][ T3844] kmalloc_reserve+0xea/0x344 [ 2270.742427][ T3844] __alloc_skb+0x1ba/0x768 [ 2270.743596][ T3844] nsim_dev_trap_report_work+0x232/0xbe8 [ 2270.744876][ T3844] process_one_work+0x90a/0x20a0 [ 2270.746240][ T3844] worker_thread+0x532/0xcaa [ 2270.747610][ T3844] kthread+0x312/0x438 [ 2270.748847][ T3844] ret_from_fork_kernel+0x94/0xef6 [ 2270.750026][ T3844] ret_from_fork_kernel_asm+0x16/0x18 [ 2270.751370][ T3844] page last free pid 3216 tgid 3216 stack trace: [ 2270.752525][ T3844] __reset_page_owner+0x76/0x1bc [ 2270.753894][ T3844] __free_frozen_pages+0x6b0/0x136c [ 2270.755059][ T3844] free_frozen_pages+0xe/0x16 [ 2270.756219][ T3844] __free_slab+0xda/0x250 [ 2270.757281][ T3844] free_slab+0x28/0x16c [ 2270.758350][ T3844] __slab_free+0x23c/0x2f8 [ 2270.759451][ T3844] ___cache_free+0x94/0xac [ 2270.760575][ T3844] qlist_free_all+0x64/0x134 [ 2270.761659][ T3844] kasan_quarantine_reduce+0x152/0x1b4 [ 2270.762867][ T3844] __kasan_slab_alloc+0x5c/0x82 [ 2270.764198][ T3844] __kmalloc_noprof+0x25e/0x8cc [ 2270.765355][ T3844] ext4_find_extent+0x1e2/0x900 [ 2270.766615][ T3844] ext4_ext_map_blocks+0x270/0x6282 [ 2270.768124][ T3844] ext4_map_query_blocks+0x108/0x7cc [ 2270.770196][ T3844] ext4_map_blocks+0x360/0xc6c [ 2270.771360][ T3844] ext4_mpage_readpages.isra.0+0xfd6/0x1a4c [ 2270.772883][ T3844] [ 2270.773627][ T3844] Memory state around the buggy address: [ 2270.775304][ T3844] ffffaf8032268200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 2270.776612][ T3844] ffffaf8032268280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 2270.777835][ T3844] >ffffaf8032268300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 2270.779164][ T3844] ^ [ 2270.780391][ T3844] ffffaf8032268380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 2270.782160][ T3844] ffffaf8032268400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 2270.784415][ T3844] ================================================================== [ 2271.075430][ T3844] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 2271.078256][ T3844] CPU: 0 UID: 0 PID: 3844 Comm: kworker/0:4 Not tainted syzkaller #0 PREEMPT [ 2271.080122][ T3844] Hardware name: riscv-virtio,qemu (DT) [ 2271.081134][ T3844] Workqueue: usb_hub_wq hub_event [ 2271.082670][ T3844] Call Trace: [ 2271.083525][ T3844] [] dump_backtrace+0x2e/0x3c [ 2271.085105][ T3844] [] show_stack+0x30/0x3c [ 2271.086463][ T3844] [] dump_stack_lvl+0x114/0x1aa [ 2271.088137][ T3844] [] dump_stack+0x1c/0x24 [ 2271.089654][ T3844] [] vpanic+0x32e/0x75a [ 2271.091315][ T3844] [] panic+0xa0/0xa2 [ 2271.092582][ T3844] [] check_panic_on_warn+0xc0/0xe4 [ 2271.094043][ T3844] [] end_report.part.0+0x4e/0xae [ 2271.095653][ T3844] [] kasan_report+0x164/0x26c [ 2271.096979][ T3844] [] __asan_report_store8_noabort+0x12/0x1a [ 2271.098574][ T3844] [] snd_usb_midi_v2_free+0x524/0x6ec [ 2271.100167][ T3844] [] snd_usb_midi_v2_free_all+0x70/0xd0 [ 2271.101657][ T3844] [] snd_usb_audio_free+0x3e/0x10a [ 2271.103019][ T3844] [] release_card_device+0x98/0x1be [ 2271.104597][ T3844] [] device_release+0xb4/0x24a [ 2271.106135][ T3844] [] kobject_put+0x20a/0x5de [ 2271.108332][ T3844] [] put_device+0x28/0x3a [ 2271.110700][ T3844] [] snd_card_free_when_closed+0x30/0x42 [ 2271.112252][ T3844] [] usb_audio_disconnect+0x1d8/0x5cc [ 2271.113716][ T3844] [] usb_unbind_interface+0x18a/0x812 [ 2271.115465][ T3844] [] device_remove+0x11a/0x15c [ 2271.117113][ T3844] [] device_release_driver_internal+0x3ca/0x554 [ 2271.118686][ T3844] [] device_release_driver+0x1e/0x28 [ 2271.120173][ T3844] [] bus_remove_device+0x284/0x518 [ 2271.121711][ T3844] [] device_del+0x312/0x870 [ 2271.123090][ T3844] [] usb_disable_device+0x2d2/0x718 [ 2271.124813][ T3844] [] usb_disconnect+0x27c/0x89e [ 2271.126369][ T3844] [] hub_event+0x1b82/0x4a62 [ 2271.127748][ T3844] [] process_one_work+0x90a/0x20a0 [ 2271.129309][ T3844] [] worker_thread+0x532/0xcaa [ 2271.131155][ T3844] [] kthread+0x312/0x438 [ 2271.132564][ T3844] [] ret_from_fork_kernel+0x94/0xef6 [ 2271.134018][ T3844] [] ret_from_fork_kernel_asm+0x16/0x18 [ 2271.136221][ T3844] SMP: stopping secondary CPUs [ 2271.140315][ T3844] Rebooting in 86400 seconds.. VM DIAGNOSIS: 03:14:11 Registers: info registers vcpu 0 CPU#0 V = 0 pc ffffffff8031cc02 mhartid 0000000000000000 mstatus 0000000a000000a0 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000220 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8654bd48 vstvec 0000000000000000 mepc ffffffff803a16ac sepc ffffffff80bdbc50 vsepc 0000000000000000 mcause 8000000000000003 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080049000 sscratch 0000000000000000 satp 902440000009c6f5 x0/zero 0000000000000000 x1/ra ffffffff8031cbda x2/sp ffff8f800a176ad0 x3/gp ffffffff8a4a7c60 x4/tp ffffaf801d0c5040 x5/t0 ffffffff880ae5d0 x6/t1 fffffffff204f204 x7/t2 20666f2065746972 x8/s0 ffff8f800a176ca0 x9/s1 ffff8f800a176c20 x10/a0 0000000000000000 x11/a1 ffffffffffffffff x12/a2 0000000000100000 x13/a3 ffffffff8031cbda x14/a4 ffff8f800ac79000 x15/a5 0000000000100000 x16/a6 fffffffff2f2f2f2 x17/a7 fffffffff3f3f300 x18/s2 0000000200000020 x19/s3 ffffffffffffffff x20/s4 0000000000000000 x21/s5 0000000000000000 x22/s6 ffff8f800a176ba0 x23/s7 ffffffff880da3f0 x24/s8 0000000000000000 x25/s9 ffff8f800a176b60 x26/s10 0000000000000001 x27/s11 1ffff1f00142ed64 x28/t3 fffffffff1f1f1f1 x29/t4 fffffffff2000000 x30/t5 0000000041b58ab3 x31/t6 ffffffff8031cb18 fcsr 0000000000000000 f0/ft0 0000000000000000 f1/ft1 0000000000000000 f2/ft2 0000000000000000 f3/ft3 0000000000000000 f4/ft4 0000000000000000 f5/ft5 0000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000 info registers vcpu 1 CPU#1 V = 0 pc ffffffff80a725cc mhartid 0000000000000001 mstatus 0000000a000000a2 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000000 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8654bd48 vstvec 0000000000000000 mepc ffffffff80092d8e sepc ffffffff8052dd20 vsepc 0000000000000000 mcause 0000000000000009 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080047000 sscratch 0000000000000000 satp 90132000000afd40 x0/zero 0000000000000000 x1/ra ffffffff80a7252c x2/sp ffff8f800bbf70b0 x3/gp ffffffff8a4a7c60 x4/tp ffffaf801a899ac0 x5/t0 ffff8f800bbf7370 x6/t1 fffffffff3f30000 x7/t2 ffffffff9187f628 x8/s0 ffff8f800bbf7110 x9/s1 000000000000015d x10/a0 0000000000000007 x11/a1 00000000000001db x12/a2 0000000000000002 x13/a3 ffffffff80a7252c x14/a4 0000000000000000 x15/a5 ffffaf801a89aac0 x16/a6 0000000000000003 x17/a7 0000000052464e43 x18/s2 ffff8d8002b1e1c0 x19/s3 dfffffff00000000 x20/s4 ffffaf80322fe000 x21/s5 fffff5ef0645fc01 x22/s6 ffffaf80322fe010 x23/s7 ffffaf8018ef4280 x24/s8 ffffaf80322fe008 x25/s9 0000000000000000 x26/s10 ffff8f800bbf7760 x27/s11 ffff8f800bbf73a0 x28/t3 0000000041b58ab3 x29/t4 ffffffff80090502 x30/t5 ffffffff8809cac8 x31/t6 0000000000000002 fcsr 0000000000000000 f0/ft0 0000000000000000 f1/ft1 0000000000000000 f2/ft2 0000000000000000 f3/ft3 0000000000000000 f4/ft4 0000000000000000 f5/ft5 0000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000