last executing test programs: 1m7.393329123s ago: executing program 0 (id=1): r0 = socket$inet_tcp(0x2, 0x1, 0x0) bind$inet(r0, &(0x7f0000000400)={0x2, 0x1bd, @loopback}, 0x10) listen(r0, 0x5) mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./mnt\x00', 0x1ff) r1 = fsopen(&(0x7f0000000040)='cifs\x00', 0x0) fsconfig$FSCONFIG_SET_STRING(r1, 0x1, &(0x7f0000000080)='source\x00', &(0x7f00000000c0)='//127.0.0.1/share\x00', 0x0) fsconfig$FSCONFIG_SET_STRING(r1, 0x1, &(0x7f0000000100)='ip\x00', &(0x7f0000000140)='127.0.0.1\x00', 0x0) fsconfig$FSCONFIG_SET_STRING(r1, 0x1, &(0x7f0000000180)='username\x00', &(0x7f00000001c0)='guest\x00', 0x0) fsconfig$FSCONFIG_SET_STRING(r1, 0x1, &(0x7f0000000200)='password\x00', &(0x7f0000000240)='guest\x00', 0x0) fsconfig$FSCONFIG_CMD_CREATE(r1, 0x6, 0x0, 0x0, 0x0) r2 = fsmount(r1, 0x0, 0x0) move_mount(r2, &(0x7f0000000280)='\x00', 0xffffffffffffff9c, &(0x7f00000002c0)='./mnt\x00', 0x4) mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./mnt/dir0\x00', 0x1ff) 59.044975371s ago: executing program 1 (id=2): r0 = openat$uhid(0xffffffffffffff9c, &(0x7f0000000000), 0x2, 0x0) write$UHID_CREATE2(r0, &(0x7f0000000040)={0xb, {'syz0\x00', 'syz0\x00', 'syz0\x00', 0x2, 0x5, 0x57e, 0x306, 0x0, 0x0, "0501"}}, 0x11a) nanosleep(&(0x7f0000000100)={0x0, 0x2faf080}, 0x0) write$UHID_INPUT2(r0, &(0x7f0000000200)={0xc, {0x7, "2000000200006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c"}}, 0x4ed) nanosleep(&(0x7f0000000300)={0x0, 0x2faf080}, 0x0) 42.462210027s ago: executing program 0 (id=3): mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./sys\x00', 0x1ff) mount(&(0x7f00000000c0)=@filename='none\x00', &(0x7f0000000100)='./sys\x00', &(0x7f0000000140)='sysfs\x00', 0x0, 0x0) syz_usb_connect_ath9k(0x3, 0x5a, &(0x7f0000000180), 0x0) nanosleep(&(0x7f0000000300)={0x1, 0x1dcd6500}, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000200)='./sys/class/firmware/ath9k_htc!ath9k_htc-1.4.0.fw/loading\x00', 0x2, 0x0) 25.610192399s ago: executing program 0 (id=4): mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000080)='./sys\x00', &(0x7f00000000c0)='sysfs\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000100)='./sys/bus/pci/drivers/e1000e/0000:00:02.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000140)='./sys/bus/pci/drivers/e1000e/0000:00:03.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000180)='./sys/bus/pci/drivers/e1000e/0000:00:04.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f00000001c0)='./sys/bus/pci/drivers/e1000e/0000:00:05.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000200)='./sys/bus/pci/drivers/e1000e/0000:00:06.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000240)='./sys/bus/pci/drivers/e1000e/0000:00:07.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000280)='./sys/bus/pci/drivers/e1000e/0000:00:08.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f00000002c0)='./sys/bus/pci/drivers/e1000e/0000:00:09.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000300)='./sys/bus/pci/drivers/e1000e/0000:00:0a.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000340)='./sys/bus/pci/drivers/e1000e/0000:00:0b.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000380)='./sys/bus/pci/drivers/e1000e/0000:00:0c.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f00000003c0)='./sys/bus/pci/drivers/e1000e/0000:00:0d.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000400)='./sys/bus/pci/drivers/e1000e/0000:00:0e.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000440)='./sys/bus/pci/drivers/e1000e/0000:00:0f.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000480)='./sys/bus/pci/drivers/e1000e/0000:00:10.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f00000004c0)='./sys/bus/pci/drivers/e1000e/0000:00:11.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000500)='./sys/bus/pci/drivers/e1000e/0000:00:12.0\x00', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000540)='./sys/bus/pci/drivers/e1000e/0000:00:1f.0\x00', 0x0, 0x0) 16.977765773s ago: executing program 1 (id=5): r0 = syz_open_dev$dri(&(0x7f0000000000), 0x1, 0x0) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r0, 0xc04064a0, &(0x7f0000000100)={0x0, &(0x7f0000000200)=[0x0], &(0x7f0000000280)=[0x0], 0x0, 0x0, 0x1, 0x1}) ioctl$DRM_IOCTL_MODE_GETCRTC(r0, 0xc06864a1, &(0x7f0000000300)={0x0, 0x0, r1, 0x0}) ioctl$DRM_IOCTL_MODE_CREATE_DUMB(r0, 0xc02064b2, &(0x7f0000000400)={0x200, 0x200, 0x20, 0x0, 0x0}) ioctl$DRM_IOCTL_MODE_ADDFB2(r0, 0xc04464b8, &(0x7f0000000500)={r2, 0x200, 0x200, 0x34325258, 0x0, [r3], [0x800]}) ioctl$DRM_IOCTL_MODE_SETCRTC(r0, 0xc06864a2, &(0x7f0000000600)={&(0x7f0000000280), 0x1, r1, r2, 0x0, 0x0, 0x1, 0x1}) ioctl$DRM_IOCTL_MODE_DIRTYFB(r0, 0xc01864b1, &(0x7f0000000700)={r2, 0x0, 0x0, 0x1, &(0x7f0000000800)=[{0x0, 0x0, 0x100, 0x100}]}) 13.434166598s ago: executing program 0 (id=6): r0 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./file1\x00', 0x42, 0x1ff) write(r0, &(0x7f0000001040)="01010101", 0x4) read(r0, &(0x7f0000001080)=""/4, 0x4) close(r0) mount(0x0, &(0x7f0000001100)='./my_tracefs\x00', &(0x7f0000001140)='tracefs\x00', 0x0, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f0000001180)='./my_tracefs/trace_marker\x00', 0x1, 0x0) write(r1, &(0x7f00000011c0)='\x00'/4090, 0xffa) close(r1) r2 = openat(0xffffffffffffff9c, &(0x7f00000021c0)='./my_tracefs/events/cdns3/cdns3_ep0_queue/inject\x00', 0x1, 0x0) write(r2, &(0x7f0000002200)='dir=1 length=100\x00', 0x11) close(r2) r3 = openat(0xffffffffffffff9c, &(0x7f0000002240)='./my_tracefs/trace\x00', 0x0, 0x0) read(r3, &(0x7f0000002280)=""/4096, 0x1000) close(r3) 4.87277154s ago: executing program 1 (id=7): mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./my_configfs\x00', 0x1ff) mount(&(0x7f00000000c0)=@filename='none\x00', &(0x7f0000000100)='./my_configfs\x00', &(0x7f0000000140)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/configs/c.1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000200)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0x1ff) r0 = openat(0xffffffffffffff9c, &(0x7f0000000240)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/num_groups\x00', 0x1, 0x0) write(r0, &(0x7f00000002c0)='16\x00', 0x2) r1 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/midi1_num_groups\x00', 0x1, 0x0) write(r1, &(0x7f0000000380)='16\x00', 0x2) symlinkat(&(0x7f00000003c0)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0xffffffffffffff9c, &(0x7f0000000400)='./my_configfs/usb_gadget/g1/configs/c.1/midi2.usb0\x00') r2 = openat(0xffffffffffffff9c, &(0x7f0000000440)='./my_configfs/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r2, &(0x7f0000000480)='dummy_udc.0\x00', 0xb) 0s ago: executing program 0 (id=8): r0 = syz_usb_connect(0x3, 0x40, &(0x7f0000000000)=ANY=[@ANYBLOB="12010002000000407205feca00010000000109022e0001010080fa0904000004ff00000007050102000200070581020002000705020200020007058202000200"], 0x0) syz_usb_ep_write(r0, 0x81, 0x40, &(0x7f0000000100)="90000a00"/64) syz_usb_ep_read(r0, 0x1, 0x40, &(0x7f0000000200)) syz_usb_ep_write(r0, 0x81, 0x40, &(0x7f0000000300)="9101000000112233445500"/64) syz_usb_ep_read(r0, 0x1, 0x40, &(0x7f0000000400)) syz_usb_ep_write(r0, 0x81, 0x40, &(0x7f0000000500)="840100"/64) syz_usb_ep_read(r0, 0x1, 0x40, &(0x7f0000000600)) (async) nanosleep(&(0x7f0000000c00)={0x2}, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000040)='./sys\x00', 0x1ff) mount(&(0x7f0000000d00)=@filename='none\x00', &(0x7f0000000e00)='./sys\x00', &(0x7f0000000f00)='sysfs\x00', 0x0, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./sys/bus/usb/devices/5-1:1.0/adsl_state\x00', 0x0, 0x0) read(r1, &(0x7f0000001100)=""/64, 0x40) kernel console output (not intermixed with test programs): Warning: Permanently added '[localhost]:53812' (ED25519) to the list of known hosts. syzkaller login: [ 614.143929][ T3215] cgroup: Unknown subsys name 'net' [ 614.933300][ T3215] cgroup: Unknown subsys name 'cpuset' [ 615.092391][ T3215] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 708.642142][ T3215] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 893.413852][ T3228] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 893.576836][ T3228] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 902.792268][ T3226] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 903.033809][ T3226] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 917.172626][ T3228] hsr_slave_0: entered promiscuous mode [ 917.195358][ T3228] hsr_slave_1: entered promiscuous mode [ 923.736100][ T3226] hsr_slave_0: entered promiscuous mode [ 923.812273][ T3226] hsr_slave_1: entered promiscuous mode [ 923.862027][ T3226] debugfs: 'hsr0' already exists in 'hsr' [ 923.873269][ T3226] Cannot create hsr debugfs directory [ 939.044874][ T3228] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 939.304735][ T3228] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 939.844448][ T3228] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 940.174946][ T3228] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 940.331675][ T3228] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 940.517040][ T3228] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 940.937296][ T3228] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 941.216761][ T3228] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 945.550786][ T3226] netdevsim netdevsim1 netdevsim0: renamed from eth0 [ 945.754303][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 945.852185][ T3226] netdevsim netdevsim1 netdevsim1: renamed from eth1 [ 946.070195][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 946.153249][ T3226] netdevsim netdevsim1 netdevsim2: renamed from eth2 [ 946.412811][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 946.574474][ T3226] netdevsim netdevsim1 netdevsim3: renamed from eth3 [ 946.889265][ T3226] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 976.021516][ T3228] 8021q: adding VLAN 0 to HW filter on device bond0 [ 981.709425][ T3226] 8021q: adding VLAN 0 to HW filter on device bond0 [ 1069.854083][ T3228] veth0_vlan: entered promiscuous mode [ 1070.877392][ T3228] veth1_vlan: entered promiscuous mode [ 1076.266397][ T3228] veth0_macvtap: entered promiscuous mode [ 1076.972887][ T3226] veth0_vlan: entered promiscuous mode [ 1077.147540][ T3228] veth1_macvtap: entered promiscuous mode [ 1078.426147][ T3226] veth1_vlan: entered promiscuous mode [ 1081.623821][ T750] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1081.723470][ T54] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1082.061021][ T46] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1082.364468][ T54] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1085.286311][ T3226] veth0_macvtap: entered promiscuous mode [ 1087.013518][ T3226] veth1_macvtap: entered promiscuous mode [ 1091.463648][ T3228] 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. [ 1091.925024][ T750] netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1092.584570][ T3339] netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1092.923391][ T750] netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1093.850974][ T3371] netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1126.492567][ T3688] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 1127.495206][ T3749] wiimote 0005:057E:0306.0001: hidraw0: BLUETOOTH HID v0.00 Device [syz0] on syz0 [ 1127.682333][ T3749] wiimote 0005:057E:0306.0001: New device registered [ 1127.820657][ T3688] usb 1-1: no configurations [ 1127.841729][ T3688] usb 1-1: can't read configurations, error -22 [ 1128.176646][ T3845] wiimote 0005:057E:0306.0001: Device removed [ 1128.669445][ T3688] usb 1-1: new high-speed USB device number 3 using dummy_hcd [ 1129.226921][ T3748] wiimote 0005:057E:0306.0001: detected device: Nintendo Wii Remote (Gen 1) [ 1129.502433][ T3688] usb 1-1: no configurations [ 1129.511029][ T3688] usb 1-1: can't read configurations, error -22 [ 1129.574268][ T3688] usb usb1-port1: attempt power cycle [ 1130.362703][ T3688] usb 1-1: new high-speed USB device number 4 using dummy_hcd [ 1131.722200][ T3688] usb 1-1: no configurations [ 1131.724630][ T3688] usb 1-1: can't read configurations, error -22 [ 1132.035677][ T3688] usb 1-1: new high-speed USB device number 5 using dummy_hcd [ 1132.076027][ T3748] input: Nintendo Wii Remote Accelerometer as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input1 [ 1132.782111][ T3748] input: Nintendo Wii Remote IR as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input2 [ 1132.805814][ T3688] usb 1-1: no configurations [ 1132.806981][ T3688] usb 1-1: can't read configurations, error -22 [ 1132.865223][ T3688] usb usb1-port1: unable to enumerate USB device [ 1133.175037][ T3748] input: Nintendo Wii Remote as /devices/virtual/misc/uhid/0005:057E:0306.0001/input/input0 [ 1175.797904][ T3901] ================================================================== [ 1175.799434][ T3901] BUG: KASAN: stack-out-of-bounds in append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1175.801787][ T3901] Write of size 1 at addr ffff8f800a937518 by task syz.1.7/3901 [ 1175.803446][ T3901] [ 1175.805050][ T3901] CPU: 0 UID: 0 PID: 3901 Comm: syz.1.7 Not tainted syzkaller #0 PREEMPT [ 1175.805563][ T3901] Hardware name: riscv-virtio,qemu (DT) [ 1175.806172][ T3901] Call Trace: [ 1175.806602][ T3901] [] dump_backtrace+0x2e/0x3c [ 1175.807171][ T3901] [] show_stack+0x30/0x3c [ 1175.807510][ T3901] [] dump_stack_lvl+0x114/0x1aa [ 1175.807969][ T3901] [] print_report+0x27a/0x592 [ 1175.808389][ T3901] [] kasan_report+0xf0/0x26c [ 1175.808775][ T3901] [] __asan_report_store1_noabort+0x12/0x1a [ 1175.809231][ T3901] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1175.809761][ T3901] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1175.810243][ T3901] [] f_midi2_bind+0x18f0/0x2302 [ 1175.810596][ T3901] [] usb_add_function+0x1ce/0x7ca [ 1175.810947][ T3901] [] configfs_composite_bind+0x906/0x149a [ 1175.811377][ T3901] [] gadget_bind_driver+0x228/0xafa [ 1175.811774][ T3901] [] really_probe+0x222/0xa8e [ 1175.812054][ T3901] [] __driver_probe_device+0x1d6/0x43e [ 1175.812431][ T3901] [] driver_probe_device+0x5e/0x162 [ 1175.812776][ T3901] [] __driver_attach+0x1fc/0x57e [ 1175.813129][ T3901] [] bus_for_each_dev+0x126/0x1bc [ 1175.813538][ T3901] [] driver_attach+0x3e/0x52 [ 1175.813950][ T3901] [] bus_add_driver+0x2c8/0x612 [ 1175.814443][ T3901] [] driver_register+0x1a4/0x3b4 [ 1175.814744][ T3901] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1175.815141][ T3901] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1175.815552][ T3901] [] configfs_write_iter+0x284/0x406 [ 1175.816014][ T3901] [] vfs_write+0x81a/0x1020 [ 1175.816567][ T3901] [] ksys_write+0x126/0x244 [ 1175.817207][ T3901] [] __riscv_sys_write+0x6e/0xa0 [ 1175.817823][ T3901] [] syscall_handler+0x92/0x114 [ 1175.818278][ T3901] [] do_trap_ecall_u+0x3e4/0x636 [ 1175.818713][ T3901] [] handle_exception+0x168/0x174 [ 1175.819278][ T3901] [ 1175.833036][ T3901] The buggy address belongs to stack of task syz.1.7/3901 [ 1175.833838][ T3901] and is located at offset 440 in frame: [ 1175.834453][ T3901] f_midi2_bind+0x0/0x2302 [ 1175.835391][ T3901] [ 1175.835832][ T3901] This frame has 6 objects: [ 1175.836687][ T3901] [32, 36) 'sw' [ 1175.836979][ T3901] [48, 56) 'card' [ 1175.837616][ T3901] [80, 88) 'ump' [ 1175.838273][ T3901] [112, 128) 'string_fn' [ 1175.838984][ T3901] [144, 160) 'strings' [ 1175.839839][ T3901] [176, 440) 'config' [ 1175.840624][ T3901] [ 1175.841758][ T3901] The buggy address belongs to a 8-page vmalloc region starting at 0xffff8f800a930000 allocated at kernel_clone+0x198/0xf7c [ 1175.843793][ T3901] The buggy address belongs to the physical page: [ 1175.845056][ T3901] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb1f07 [ 1175.846191][ T3901] memcg:ffffaf801b724f82 [ 1175.846995][ T3901] flags: 0x0(node=0|zone=0) [ 1175.848982][ T3901] raw: 0000000000000000 0000000000000000 ffff8d8002c7c1c8 0000000000000000 [ 1175.850279][ T3901] raw: 0000000000000000 0000000000000000 00000001ffffffff ffffaf801b724f82 [ 1175.851738][ T3901] page dumped because: kasan: bad access detected [ 1175.852994][ T3901] page_owner tracks the page as allocated [ 1175.853884][ T3901] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 3900, tgid 3900 (syz.1.7), ts 1160887011100, free_ts 1160654041100 [ 1175.856323][ T3901] __set_page_owner+0x92/0x4b0 [ 1175.857927][ T3901] post_alloc_hook+0xe4/0x1a0 [ 1175.858896][ T3901] get_page_from_freelist+0x914/0x395c [ 1175.860088][ T3901] __alloc_frozen_pages_noprof+0x224/0x2e40 [ 1175.861364][ T3901] alloc_pages_mpol+0x1f0/0x59c [ 1175.862393][ T3901] alloc_frozen_pages_noprof+0x156/0x2ce [ 1175.863082][ T3901] alloc_pages_noprof+0x20/0x140 [ 1175.863693][ T3901] __vmalloc_node_range_noprof+0x103e/0x1b34 [ 1175.864432][ T3901] __vmalloc_node_noprof+0xfc/0x132 [ 1175.865175][ T3901] copy_process+0x764/0x7e8a [ 1175.865799][ T3901] kernel_clone+0x198/0xf7c [ 1175.866508][ T3901] __do_sys_clone3+0x238/0x48c [ 1175.867573][ T3901] __riscv_sys_clone3+0x52/0x72 [ 1175.868705][ T3901] syscall_handler+0x92/0x114 [ 1175.869986][ T3901] do_trap_ecall_u+0x3e4/0x636 [ 1175.871181][ T3901] handle_exception+0x168/0x174 [ 1175.872115][ T3901] page last free pid 3900 tgid 3900 stack trace: [ 1175.872870][ T3901] __reset_page_owner+0x76/0x1bc [ 1175.873756][ T3901] __free_frozen_pages+0x6b0/0x136c [ 1175.874539][ T3901] free_frozen_pages+0xe/0x16 [ 1175.875468][ T3901] __free_slab+0xda/0x250 [ 1175.876228][ T3901] free_slab+0x28/0x16c [ 1175.877246][ T3901] __slab_free+0x23c/0x2f8 [ 1175.878295][ T3901] ___cache_free+0x94/0xac [ 1175.878972][ T3901] qlist_free_all+0x64/0x134 [ 1175.879630][ T3901] kasan_quarantine_reduce+0x152/0x1b4 [ 1175.880332][ T3901] __kasan_slab_alloc+0x5c/0x82 [ 1175.881179][ T3901] kmem_cache_alloc_noprof+0x202/0x67a [ 1175.881889][ T3901] __anon_vma_prepare+0x302/0x534 [ 1175.882541][ T3901] __vmf_anon_prepare+0x124/0x23a [ 1175.883181][ T3901] do_anonymous_page+0x366/0x2982 [ 1175.883807][ T3901] __handle_mm_fault+0x1216/0x14fa [ 1175.884545][ T3901] handle_mm_fault+0x25a/0x8bc [ 1175.885556][ T3901] [ 1175.886049][ T3901] Memory state around the buggy address: [ 1175.887194][ T3901] ffff8f800a937400: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1175.888399][ T3901] ffff8f800a937480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1175.889543][ T3901] >ffff8f800a937500: 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 [ 1175.890343][ T3901] ^ [ 1175.891089][ T3901] ffff8f800a937580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1175.891894][ T3901] ffff8f800a937600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1175.892854][ T3901] ================================================================== [ 1175.921574][ T3901] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 1175.923060][ T3901] CPU: 0 UID: 0 PID: 3901 Comm: syz.1.7 Not tainted syzkaller #0 PREEMPT [ 1175.923947][ T3901] Hardware name: riscv-virtio,qemu (DT) [ 1175.924523][ T3901] Call Trace: [ 1175.925043][ T3901] [] dump_backtrace+0x2e/0x3c [ 1175.926606][ T3901] [] show_stack+0x30/0x3c [ 1175.927501][ T3901] [] dump_stack_lvl+0x114/0x1aa [ 1175.928559][ T3901] [] dump_stack+0x1c/0x24 [ 1175.929611][ T3901] [] vpanic+0x32e/0x75a [ 1175.930481][ T3901] [] panic+0xa0/0xa2 [ 1175.931356][ T3901] [] check_panic_on_warn+0xc0/0xe4 [ 1175.932308][ T3901] [] end_report.part.0+0x4e/0xae [ 1175.933278][ T3901] [] kasan_report+0x164/0x26c [ 1175.934487][ T3901] [] __asan_report_store1_noabort+0x12/0x1a [ 1175.936084][ T3901] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1175.936944][ T3901] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1175.938204][ T3901] [] f_midi2_bind+0x18f0/0x2302 [ 1175.939393][ T3901] [] usb_add_function+0x1ce/0x7ca [ 1175.940286][ T3901] [] configfs_composite_bind+0x906/0x149a [ 1175.941350][ T3901] [] gadget_bind_driver+0x228/0xafa [ 1175.942651][ T3901] [] really_probe+0x222/0xa8e [ 1175.943627][ T3901] [] __driver_probe_device+0x1d6/0x43e [ 1175.944894][ T3901] [] driver_probe_device+0x5e/0x162 [ 1175.946325][ T3901] [] __driver_attach+0x1fc/0x57e [ 1175.947640][ T3901] [] bus_for_each_dev+0x126/0x1bc [ 1175.948867][ T3901] [] driver_attach+0x3e/0x52 [ 1175.950391][ T3901] [] bus_add_driver+0x2c8/0x612 [ 1175.951902][ T3901] [] driver_register+0x1a4/0x3b4 [ 1175.952719][ T3901] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1175.953873][ T3901] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1175.954755][ T3901] [] configfs_write_iter+0x284/0x406 [ 1175.955538][ T3901] [] vfs_write+0x81a/0x1020 [ 1175.956704][ T3901] [] ksys_write+0x126/0x244 [ 1175.958325][ T3901] [] __riscv_sys_write+0x6e/0xa0 [ 1175.959903][ T3901] [] syscall_handler+0x92/0x114 [ 1175.960908][ T3901] [] do_trap_ecall_u+0x3e4/0x636 [ 1175.961792][ T3901] [] handle_exception+0x168/0x174 [ 1175.962923][ T3901] SMP: stopping secondary CPUs [ 1175.965335][ T3901] Rebooting in 86400 seconds.. VM DIAGNOSIS: 13:52:03 Registers: info registers vcpu 0 CPU#0 V = 0 pc ffffffff81fd9b00 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 ffffffff80092d8e sepc ffffffff80bd8b00 vsepc 0000000000000000 mcause 0000000000000009 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080049000 sscratch 0000000000000000 satp 901ba0000009eac6 x0/zero 0000000000000000 x1/ra ffffffff81fd9ad0 x2/sp ffff8f800a936950 x3/gp ffffffff8a4a7c60 x4/tp ffffaf801b821ac0 x5/t0 666f206574697257 x6/t1 fffff1ef01526d0c x7/t2 20666f2065746972 x8/s0 ffff8f800a936990 x9/s1 0000000000000000 x10/a0 ffffffff9186d308 x11/a1 000000000000001f x12/a2 0000000000080000 x13/a3 ffffffff81fd9ad0 x14/a4 1ffffffff230da61 x15/a5 ffff8f800006b000 x16/a6 0000000000000003 x17/a7 0000000000000003 x18/s2 ffffffff9186d2c0 x19/s3 0000000000000033 x20/s4 0000000000000000 x21/s5 0000000000000000 x22/s6 0000000000000000 x23/s7 000000000000000a x24/s8 0000000000000001 x25/s9 1ffff1f001526d3c x26/s10 ffffffff9186d318 x27/s11 0000000000000033 x28/t3 ffffffff880ad0b0 x29/t4 fffff1ef01526d0c x30/t5 fffff1ef01526d0d x31/t6 ffffffff9167b1f7 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 ffffffff802e6e68 mhartid 0000000000000001 mstatus 0000000a000000a0 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000020 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8654bd48 vstvec 0000000000000000 mepc ffffffff8052dd20 sepc ffffffff86547c4e vsepc 0000000000000000 mcause 8000000000000003 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080047000 sscratch 0000000000000000 satp 90139000000af0b9 x0/zero 0000000000000000 x1/ra ffffffff802e6e44 x2/sp ffff8f8009e47560 x3/gp ffffffff8a4a7c60 x4/tp ffffaf801c54d040 x5/t0 1ffffffff230fec5 x6/t1 ffffffff9187f628 x7/t2 ffffffff9187f628 x8/s0 ffff8f8009e475b0 x9/s1 ffffffff9187f628 x10/a0 0000000000000001 x11/a1 ffffffff880aaf78 x12/a2 1ffff5f0038a9a0c x13/a3 0000000000000004 x14/a4 0000000000000002 x15/a5 0000000200000020 x16/a6 0000000000000000 x17/a7 0000000000000000 x18/s2 ffffaf8072c3c888 x19/s3 ffffaf8072c52b60 x20/s4 0000000000001285 x21/s5 ffffffff86869888 x22/s6 ffffffff9187f620 x23/s7 ffff8f8009e476e0 x24/s8 0000000200000020 x25/s9 ffffaf801adb663c x26/s10 0000000000000000 x27/s11 ffffaf801adb5040 x28/t3 0000000000000000 x29/t4 0000000000000000 x30/t5 ffffaf7ffffa3e90 x31/t6 ffffffff8687fb00 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