last executing test programs: 1m35.451209141s ago: executing program 0 (id=1): r0 = syz_usb_connect(0x0, 0x39, &(0x7f0000000000)=ANY=[@ANYBLOB="1201000200000040341278560001010203010902270001010080320904000003fe030200070581020002000705020200020007058303400001"], 0x0) syz_usb_control_io(r0, &(0x7f0000000100)={0x14, 0x0, &(0x7f0000000200)={0x0, 0x3, 0x4, @lang_id={0x4, 0x3, 0x409}}, 0x0, 0x0, 0x0}, &(0x7f0000000300)={0x44, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) nanosleep(&(0x7f0000000400)={0x0, 0x1dcd6500}, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f0000000500)='./sys/bus/usb/drivers/usbtmc/1-1:1.0/usb488_device_capabilities\x00', 0x0, 0x0) read(r1, &(0x7f0000000600), 0x100) 1m27.966286195s ago: executing program 1 (id=2): 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_connect(0x3, 0x40, &(0x7f0000000000)=ANY=[@ANYBLOB="12010002ff000040cd06210100010102030109022e0001010080320904000004ff00000007058102400000070501024000000705020240000007058203400001"], 0x0) nanosleep(&(0x7f0000000300)={0x1}, 0x0) 1m7.749145927s ago: executing program 0 (id=3): r0 = syz_open_dev$usbfs(&(0x7f0000000000), 0x13, 0x2) ioctl$USBDEVFS_IOCTL(r0, 0xc0105512, &(0x7f0000000020)) ioctl$USBDEVFS_SETCONFIGURATION(r0, 0x80045505, &(0x7f0000000040)=0x1) r1 = syz_open_dev$usbfs(&(0x7f0000000100), 0xa, 0x2) ioctl$USBDEVFS_IOCTL(r1, 0xc0105512, &(0x7f0000000120)) ioctl$USBDEVFS_SETCONFIGURATION(r1, 0x80045505, &(0x7f0000000140)=0x1) r2 = syz_open_dev$usbfs(&(0x7f0000000180), 0xb, 0x2) ioctl$USBDEVFS_IOCTL(r2, 0xc0105512, &(0x7f00000001a0)) ioctl$USBDEVFS_SETCONFIGURATION(r2, 0x80045505, &(0x7f00000001c0)=0x1) r3 = syz_open_dev$usbfs(&(0x7f0000000200), 0xc, 0x2) ioctl$USBDEVFS_IOCTL(r3, 0xc0105512, &(0x7f0000000220)) ioctl$USBDEVFS_SETCONFIGURATION(r3, 0x80045505, &(0x7f0000000240)=0x1) r4 = syz_open_dev$usbfs(&(0x7f0000000280), 0xd, 0x2) ioctl$USBDEVFS_IOCTL(r4, 0xc0105512, &(0x7f00000002a0)) ioctl$USBDEVFS_SETCONFIGURATION(r4, 0x80045505, &(0x7f00000002c0)=0x1) r5 = syz_open_dev$usbfs(&(0x7f0000000300), 0xe, 0x2) ioctl$USBDEVFS_IOCTL(r5, 0xc0105512, &(0x7f0000000320)) ioctl$USBDEVFS_SETCONFIGURATION(r5, 0x80045505, &(0x7f0000000340)=0x1) r6 = syz_open_dev$usbfs(&(0x7f0000000380), 0xf, 0x2) ioctl$USBDEVFS_IOCTL(r6, 0xc0105512, &(0x7f00000003a0)) ioctl$USBDEVFS_SETCONFIGURATION(r6, 0x80045505, &(0x7f00000003c0)=0x1) 58.553149905s ago: executing program 1 (id=4): r0 = socket$nl_audit(0x10, 0x3, 0x9) sendmsg$AUDIT_SET(r0, &(0x7f0000000440)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000004c0)={0x3c, 0x3e9, 0x1, 0x0, 0x0, {0x1, 0x1}}, 0x3c}}, 0x0) sendmsg$AUDIT_ADD_RULE(r0, &(0x7f0000000500), 0x0) r1 = syz_clone(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) ptrace(0x10, r1) 32.923499436s ago: executing program 0 (id=5): r0 = syz_usb_connect(0x2, 0x6a, &(0x7f0000000000)=ANY=[@ANYBLOB="12011001000000401007018000000102030109025800010100c000090400000a0000000007050102000200070581020002000705020200020007058202000200070503020002000705830200020007050402000200070584020002000705050200020007058502000200"], 0x0) syz_usb_ep_write(r0, 0x85, 0x14, &(0x7f0000000200)="0b00010000100701800000000001020304000000") nanosleep(&(0x7f0000000300)={0x3}, 0x0) r1 = syz_open_dev$char_usb(0xc, 0xb4, 0x0) ioctl$TIOCMSET(r1, 0x5418, &(0x7f0000000100)=0x6) 30.151970875s ago: executing program 1 (id=6): syz_usb_connect(0x0, 0x24, &(0x7f0000000040)=ANY=[@ANYBLOB="1201000200000040030431c60000010200010902120001010080320904000000000000000000"], 0x0) nanosleep(&(0x7f0000000080)={0x1}, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='./sys\x00', 0x1ff) mount(0x0, &(0x7f0000000100)='./sys\x00', &(0x7f0000000140)='sysfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000180)='./sys/bus/i2c/devices/i2c-2/new_device\x00', 0x1, 0x0) write(r0, &(0x7f00000001c0)='stm32g0-typec 0x35\n', 0x13) close(r0) r1 = openat(0xffffffffffffff9c, &(0x7f0000000200)='./sys/bus/i2c/devices/i2c-3/new_device\x00', 0x1, 0x0) write(r1, &(0x7f0000000240)='stm32g0-typec 0x35\n', 0x13) close(r1) r2 = openat(0xffffffffffffff9c, &(0x7f0000000280)='./sys/bus/i2c/devices/i2c-4/new_device\x00', 0x1, 0x0) write(r2, &(0x7f00000002c0)='stm32g0-typec 0x35\n', 0x13) close(r2) r3 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./sys/power/state\x00', 0x1, 0x0) write(r3, &(0x7f0000000340)='freeze\n ', 0x7) close(r3) 16.528692586s ago: executing program 0 (id=7): mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./sys\x00', 0x1ff) mount(&(0x7f0000000000)=@filename='sysfs\x00', &(0x7f0000000100)='./sys\x00', &(0x7f0000000200)='sysfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./file0\x00', 0x42, 0x1ff) ftruncate(r0, 0x1000000) r1 = syz_open_dev$loop(&(0x7f0000000400), 0x0, 0x2) ioctl$LOOP_SET_FD(r1, 0x4c00, r0) r2 = openat(0xffffffffffffff9c, &(0x7f0000000500)='./sys/fs/bcache/register\x00', 0x1, 0x0) write(r2, &(0x7f0000000600)='/dev/loop0\x00', 0xb) 13.991024894s ago: executing program 1 (id=8): mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f00000000c0)='./my_configfs\x00', &(0x7f0000000100)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./my_configfs/usb_gadget/g1/configs/c.1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0x1ff) r0 = openat(0xffffffffffffff9c, &(0x7f0000000200)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/num_groups\x00', 0x1, 0x0) write(r0, &(0x7f0000000280)='16\x00', 0x2) r1 = openat(0xffffffffffffff9c, &(0x7f00000002c0)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/midi1_num_groups\x00', 0x1, 0x0) write(r1, &(0x7f0000000340)='16\x00', 0x2) symlinkat(&(0x7f0000000380)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0xffffffffffffff9c, &(0x7f00000003c0)='./my_configfs/usb_gadget/g1/configs/c.1/midi2.usb0\x00') r2 = openat(0xffffffffffffff9c, &(0x7f0000000400)='./my_configfs/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r2, &(0x7f0000000440)='dummy_udc.0\x00', 0xb) 0s ago: executing program 0 (id=9): mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./sys\x00', 0x1ff) mount(0x0, &(0x7f00000000c0)='./sys\x00', &(0x7f0000000100)='sysfs\x00', 0x0, 0x0) syz_usb_connect(0x0, 0x47, &(0x7f0000000000)=ANY=[@ANYBLOB="1201000200000040109720770001010203010902470001010080320904000005000000000705810340000107058202000200070502020002000705830200020007050302000200"], 0x0) nanosleep(&(0x7f0000000300)={0x0, 0x1dcd6500}, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='./sys/bus/usb/drivers/mos7720/new_id\x00', 0x1, 0x0) write(r0, &(0x7f0000000180)='9710 7720\n\x00', 0xa) nanosleep(&(0x7f0000000300)={0x0, 0x2faf080}, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f00000001c0)='./sys/bus/usb/drivers/mos7720/unbind\x00', 0x1, 0x0) write(r1, &(0x7f0000000200)='1-1:1.0\n\x00', 0x8) write(r1, &(0x7f0000000240)='2-1:1.0\n\x00', 0x8) write(r1, &(0x7f0000000280)='3-1:1.0\n\x00', 0x8) write(r1, &(0x7f00000002c0)='4-1:1.0\n\x00', 0x8) write(r1, &(0x7f0000000340)='5-1:1.0\n\x00', 0x8) write(r1, &(0x7f0000000380)='6-1:1.0\n\x00', 0x8) kernel console output (not intermixed with test programs): Warning: Permanently added '[localhost]:49409' (ED25519) to the list of known hosts. syzkaller login: [ 578.443059][ T3237] cgroup: Unknown subsys name 'net' [ 579.418616][ T3237] cgroup: Unknown subsys name 'cpuset' [ 579.607827][ T3237] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 660.177691][ T3237] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 806.882489][ T3245] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 808.100840][ T3245] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 808.252607][ T3246] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 809.471256][ T3246] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 833.863053][ T3245] hsr_slave_0: entered promiscuous mode [ 833.939687][ T3245] hsr_slave_1: entered promiscuous mode [ 837.043204][ T3246] hsr_slave_0: entered promiscuous mode [ 837.141496][ T3246] hsr_slave_1: entered promiscuous mode [ 837.202838][ T3246] debugfs: 'hsr0' already exists in 'hsr' [ 837.218971][ T3246] Cannot create hsr debugfs directory [ 849.971387][ T3245] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 850.217591][ T3245] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 850.362347][ T3245] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 850.502543][ T3245] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 850.609969][ T3245] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 850.762124][ T3245] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 851.371673][ T3245] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 851.541339][ T3245] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 854.422195][ T3246] netdevsim netdevsim1 netdevsim0: renamed from eth0 [ 855.448327][ T3246] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 855.607575][ T3246] netdevsim netdevsim1 netdevsim1: renamed from eth1 [ 856.177985][ T3246] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 856.266888][ T3246] netdevsim netdevsim1 netdevsim2: renamed from eth2 [ 856.734410][ T3246] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 856.858258][ T3246] netdevsim netdevsim1 netdevsim3: renamed from eth3 [ 857.321281][ T3246] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 887.816696][ T3245] 8021q: adding VLAN 0 to HW filter on device bond0 [ 890.922971][ T3246] 8021q: adding VLAN 0 to HW filter on device bond0 [ 988.239296][ T3245] veth0_vlan: entered promiscuous mode [ 990.510023][ T3245] veth1_vlan: entered promiscuous mode [ 996.070383][ T3245] veth0_macvtap: entered promiscuous mode [ 997.461100][ T3245] veth1_macvtap: entered promiscuous mode [ 1001.569796][ T3246] veth0_vlan: entered promiscuous mode [ 1004.079200][ T3246] veth1_vlan: entered promiscuous mode [ 1004.490384][ T63] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1004.493394][ T63] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1004.549964][ T63] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1004.748289][ T63] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1013.088125][ T3246] veth0_macvtap: entered promiscuous mode [ 1014.353199][ T3246] veth1_macvtap: entered promiscuous mode [ 1017.520586][ T3245] 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. [ 1020.143735][ T3509] netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1020.681770][ T59] netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1021.007663][ T63] netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1021.044395][ T63] netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1040.687084][ T3208] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 1046.076541][ T3208] usb 1-1: device descriptor read/64, error -110 [ 1046.552037][ T3208] usb 1-1: new high-speed USB device number 3 using dummy_hcd [ 1046.899683][ T3208] usb 1-1: device descriptor read/64, error -32 [ 1047.071877][ T3208] usb usb1-port1: attempt power cycle [ 1047.867167][ T817] usb 2-1: new high-speed USB device number 2 using dummy_hcd [ 1047.927309][ T3208] usb 1-1: new high-speed USB device number 4 using dummy_hcd [ 1048.113612][ T3208] usb 1-1: device descriptor read/8, error -32 [ 1048.341514][ T817] usb 2-1: Using ep0 maxpacket: 8 [ 1048.459128][ T3208] raw-gadget.0 gadget.0: failed to queue resume event [ 1048.643462][ T3208] usb 1-1: new high-speed USB device number 5 using dummy_hcd [ 1048.760389][ C1] raw-gadget.0 gadget.0: ignoring, device is not running [ 1048.813037][ T3208] usb 1-1: device descriptor read/8, error -32 [ 1048.891658][ T3867] raw-gadget.0 gadget.0: failed to queue suspend event [ 1049.030186][ T3867] raw-gadget.0 gadget.0: failed to queue disconnect event [ 1049.206953][ T3208] usb usb1-port1: unable to enumerate USB device [ 1051.493757][ T817] usb 2-1: config 0 has an invalid interface number: 143 but max is 0 [ 1051.510041][ T817] usb 2-1: config 0 has no interface number 0 [ 1051.569657][ T817] usb 2-1: New USB device found, idVendor=2058, idProduct=1005, bcdDevice=c1.9b [ 1051.583682][ T817] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1052.719777][ T817] usb 2-1: config 0 descriptor?? [ 1057.909729][ T817] usb 2-1: can't set config #0, error -110 [ 1059.367718][ T3871] usb 2-1: USB disconnect, device number 2 [ 1067.041289][ T3890] Zero length message leads to an empty skb [ 1107.452243][ T3914] loop0: detected capacity change from 0 to 32768 [ 1110.588626][ T3914] bcache: register_bcache() error : Not a bcache superblock (bad offset) [ 1126.533444][ T3916] ================================================================== [ 1126.535398][ T3916] BUG: KASAN: stack-out-of-bounds in append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1126.538930][ T3916] Write of size 1 at addr ffff8f800aea7518 by task syz.1.8/3916 [ 1126.540305][ T3916] [ 1126.543229][ T3916] CPU: 1 UID: 0 PID: 3916 Comm: syz.1.8 Not tainted syzkaller #0 PREEMPT [ 1126.544332][ T3916] Hardware name: riscv-virtio,qemu (DT) [ 1126.544981][ T3916] Call Trace: [ 1126.545548][ T3916] [] dump_backtrace+0x2e/0x3c [ 1126.546419][ T3916] [] show_stack+0x30/0x3c [ 1126.546955][ T3916] [] dump_stack_lvl+0x114/0x1aa [ 1126.547795][ T3916] [] print_report+0x27a/0x592 [ 1126.548446][ T3916] [] kasan_report+0xf0/0x26c [ 1126.548927][ T3916] [] __asan_report_store1_noabort+0x12/0x1a [ 1126.549535][ T3916] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1126.550233][ T3916] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1126.550945][ T3916] [] f_midi2_bind+0x18f0/0x2302 [ 1126.551602][ T3916] [] usb_add_function+0x1ce/0x7ca [ 1126.552152][ T3916] [] configfs_composite_bind+0x906/0x149a [ 1126.552819][ T3916] [] gadget_bind_driver+0x228/0xafa [ 1126.553254][ T3916] [] really_probe+0x222/0xa8e [ 1126.553613][ T3916] [] __driver_probe_device+0x1d6/0x43e [ 1126.554060][ T3916] [] driver_probe_device+0x5e/0x162 [ 1126.554400][ T3916] [] __driver_attach+0x1fc/0x57e [ 1126.554770][ T3916] [] bus_for_each_dev+0x126/0x1bc [ 1126.555194][ T3916] [] driver_attach+0x3e/0x52 [ 1126.555662][ T3916] [] bus_add_driver+0x2c8/0x612 [ 1126.556157][ T3916] [] driver_register+0x1a4/0x3b4 [ 1126.556445][ T3916] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1126.556910][ T3916] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1126.557258][ T3916] [] configfs_write_iter+0x284/0x406 [ 1126.557600][ T3916] [] vfs_write+0x81a/0x1020 [ 1126.558057][ T3916] [] ksys_write+0x126/0x244 [ 1126.558599][ T3916] [] __riscv_sys_write+0x6e/0xa0 [ 1126.559366][ T3916] [] syscall_handler+0x92/0x114 [ 1126.559916][ T3916] [] do_trap_ecall_u+0x3e4/0x636 [ 1126.560333][ T3916] [] handle_exception+0x168/0x174 [ 1126.560971][ T3916] [ 1126.579441][ T3916] The buggy address belongs to stack of task syz.1.8/3916 [ 1126.580423][ T3916] and is located at offset 440 in frame: [ 1126.581170][ T3916] f_midi2_bind+0x0/0x2302 [ 1126.582403][ T3916] [ 1126.582905][ T3916] This frame has 6 objects: [ 1126.583646][ T3916] [32, 36) 'sw' [ 1126.583941][ T3916] [48, 56) 'card' [ 1126.584463][ T3916] [80, 88) 'ump' [ 1126.585108][ T3916] [112, 128) 'string_fn' [ 1126.585718][ T3916] [144, 160) 'strings' [ 1126.586382][ T3916] [176, 440) 'config' [ 1126.587070][ T3916] [ 1126.588020][ T3916] The buggy address belongs to a 8-page vmalloc region starting at 0xffff8f800aea0000 allocated at kernel_clone+0x198/0xf7c [ 1126.589983][ T3916] The buggy address belongs to the physical page: [ 1126.591233][ T3916] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb1e7f [ 1126.592346][ T3916] memcg:ffffaf801cd7dd02 [ 1126.593058][ T3916] flags: 0x0(node=0|zone=0) [ 1126.595163][ T3916] raw: 0000000000000000 0000000000000000 ffff8d8002c79fc8 0000000000000000 [ 1126.596398][ T3916] raw: 0000000000000000 0000000000000000 00000001ffffffff ffffaf801cd7dd02 [ 1126.597426][ T3916] page dumped because: kasan: bad access detected [ 1126.598645][ T3916] page_owner tracks the page as allocated [ 1126.599507][ T3916] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 3915, tgid 3915 (syz.1.8), ts 1107370760800, free_ts 1105082385300 [ 1126.601315][ T3916] __set_page_owner+0x92/0x4b0 [ 1126.602326][ T3916] post_alloc_hook+0xe4/0x1a0 [ 1126.603117][ T3916] get_page_from_freelist+0x914/0x395c [ 1126.603956][ T3916] __alloc_frozen_pages_noprof+0x224/0x2e40 [ 1126.604846][ T3916] alloc_pages_mpol+0x1f0/0x59c [ 1126.605610][ T3916] alloc_frozen_pages_noprof+0x156/0x2ce [ 1126.606503][ T3916] alloc_pages_noprof+0x20/0x140 [ 1126.607319][ T3916] __vmalloc_node_range_noprof+0x103e/0x1b34 [ 1126.608233][ T3916] __vmalloc_node_noprof+0xfc/0x132 [ 1126.609075][ T3916] copy_process+0x764/0x7e8a [ 1126.610047][ T3916] kernel_clone+0x198/0xf7c [ 1126.610771][ T3916] __do_sys_clone3+0x238/0x48c [ 1126.611512][ T3916] __riscv_sys_clone3+0x52/0x72 [ 1126.612267][ T3916] syscall_handler+0x92/0x114 [ 1126.613096][ T3916] do_trap_ecall_u+0x3e4/0x636 [ 1126.613909][ T3916] handle_exception+0x168/0x174 [ 1126.614996][ T3916] page last free pid 3913 tgid 3913 stack trace: [ 1126.615721][ T3916] __reset_page_owner+0x76/0x1bc [ 1126.616590][ T3916] __free_frozen_pages+0x6b0/0x136c [ 1126.617396][ T3916] free_frozen_pages+0xe/0x16 [ 1126.618175][ T3916] __free_slab+0xda/0x250 [ 1126.618931][ T3916] free_slab+0x28/0x16c [ 1126.619891][ T3916] __slab_free+0x23c/0x2f8 [ 1126.620601][ T3916] ___cache_free+0x94/0xac [ 1126.621359][ T3916] qlist_free_all+0x64/0x134 [ 1126.622155][ T3916] kasan_quarantine_reduce+0x152/0x1b4 [ 1126.622957][ T3916] __kasan_slab_alloc+0x5c/0x82 [ 1126.623829][ T3916] __kmalloc_noprof+0x25e/0x8cc [ 1126.624613][ T3916] security_inode_init_security+0x11e/0x382 [ 1126.625598][ T3916] shmem_symlink+0x11c/0x820 [ 1126.626411][ T3916] vfs_symlink+0x162/0x45e [ 1126.627165][ T3916] filename_symlinkat+0x264/0x4ca [ 1126.627965][ T3916] __riscv_sys_symlinkat+0x90/0xce [ 1126.628906][ T3916] [ 1126.629346][ T3916] Memory state around the buggy address: [ 1126.630304][ T3916] ffff8f800aea7400: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1126.631176][ T3916] ffff8f800aea7480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1126.632008][ T3916] >ffff8f800aea7500: 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 [ 1126.632828][ T3916] ^ [ 1126.633528][ T3916] ffff8f800aea7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1126.634495][ T3916] ffff8f800aea7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1126.635457][ T3916] ================================================================== [ 1126.723236][ T3916] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 1126.725046][ T3916] CPU: 1 UID: 0 PID: 3916 Comm: syz.1.8 Not tainted syzkaller #0 PREEMPT [ 1126.726341][ T3916] Hardware name: riscv-virtio,qemu (DT) [ 1126.727066][ T3916] Call Trace: [ 1126.727630][ T3916] [] dump_backtrace+0x2e/0x3c [ 1126.728654][ T3916] [] show_stack+0x30/0x3c [ 1126.729459][ T3916] [] dump_stack_lvl+0x114/0x1aa [ 1126.730586][ T3916] [] dump_stack+0x1c/0x24 [ 1126.731599][ T3916] [] vpanic+0x32e/0x75a [ 1126.732454][ T3916] [] panic+0xa0/0xa2 [ 1126.733558][ T3916] [] check_panic_on_warn+0xc0/0xe4 [ 1126.734615][ T3916] [] end_report.part.0+0x4e/0xae [ 1126.735654][ T3916] [] kasan_report+0x164/0x26c [ 1126.736613][ T3916] [] __asan_report_store1_noabort+0x12/0x1a [ 1126.737863][ T3916] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1126.739022][ T3916] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1126.740117][ T3916] [] f_midi2_bind+0x18f0/0x2302 [ 1126.741129][ T3916] [] usb_add_function+0x1ce/0x7ca [ 1126.742159][ T3916] [] configfs_composite_bind+0x906/0x149a [ 1126.743276][ T3916] [] gadget_bind_driver+0x228/0xafa [ 1126.744286][ T3916] [] really_probe+0x222/0xa8e [ 1126.745217][ T3916] [] __driver_probe_device+0x1d6/0x43e [ 1126.746207][ T3916] [] driver_probe_device+0x5e/0x162 [ 1126.747143][ T3916] [] __driver_attach+0x1fc/0x57e [ 1126.747991][ T3916] [] bus_for_each_dev+0x126/0x1bc [ 1126.748990][ T3916] [] driver_attach+0x3e/0x52 [ 1126.749977][ T3916] [] bus_add_driver+0x2c8/0x612 [ 1126.751010][ T3916] [] driver_register+0x1a4/0x3b4 [ 1126.751962][ T3916] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1126.753023][ T3916] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1126.754088][ T3916] [] configfs_write_iter+0x284/0x406 [ 1126.755026][ T3916] [] vfs_write+0x81a/0x1020 [ 1126.755868][ T3916] [] ksys_write+0x126/0x244 [ 1126.756747][ T3916] [] __riscv_sys_write+0x6e/0xa0 [ 1126.757795][ T3916] [] syscall_handler+0x92/0x114 [ 1126.758715][ T3916] [] do_trap_ecall_u+0x3e4/0x636 [ 1126.759491][ T3916] [] handle_exception+0x168/0x174 [ 1126.760616][ T3916] SMP: stopping secondary CPUs [ 1126.763098][ T3916] Rebooting in 86400 seconds.. VM DIAGNOSIS: 20:04:24 Registers: info registers vcpu 0 CPU#0 V = 0 pc ffffffff802eed30 mhartid 0000000000000000 mstatus 0000000a000001a0 hstatus 0000000200000000 vsstatus 0000000a00000000 mip 0000000000000200 mie 000000000000022a mideleg 0000000000001666 hideleg 0000000000000000 medeleg 0000000000f4b509 hedeleg 0000000000000000 mtvec 00000000800004f8 stvec ffffffff8654bd48 vstvec 0000000000000000 mepc ffffffff80092d8e sepc ffffffff802ee708 vsepc 0000000000000000 mcause 0000000000000009 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080049000 sscratch 0000000000000000 satp 901500000009fd3f x0/zero 0000000000000000 x1/ra ffffffff802eed0a x2/sp ffff8f80000079d0 x3/gp ffffffff8a4a7c60 x4/tp ffffaf80132dd040 x5/t0 ffffaf8072c1d3d0 x6/t1 fffffffef230c18f x7/t2 ffffaf8072c1d7a8 x8/s0 ffff8f8000007a30 x9/s1 ffffffff9187f620 x10/a0 0000000000000000 x11/a1 ffffffff880aaf78 x12/a2 0000000000000004 x13/a3 00000000000c404d x14/a4 0000000000010002 x15/a5 0000000200000120 x16/a6 0000000000ff0100 x17/a7 ffffffff91860c7b x18/s2 ffffaf8072c19888 x19/s3 ffffffff80410e1e x20/s4 0000000200000120 x21/s5 ffffffff86869888 x22/s6 ffffffff9187f620 x23/s7 0000000000000005 x24/s8 ffffaf80132dd040 x25/s9 ffffffff8a5bba40 x26/s10 ffffffff88a38400 x27/s11 ffffaf8072c305a8 x28/t3 ffffffff880ad0b0 x29/t4 fffffffef230c18f x30/t5 fffffffef230c190 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 info registers vcpu 1 CPU#1 V = 0 pc ffffffff80318d3a 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 ffffffff805a0a04 sepc ffffffff83e4b1e0 vsepc 0000000000000000 mcause 8000000000000003 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080047000 sscratch 0000000000000000 satp 901da0000009fc99 x0/zero 0000000000000000 x1/ra ffffffff80318d3a x2/sp ffff8f800aea6d40 x3/gp ffffffff8a4a7c60 x4/tp ffffaf8018f55040 x5/t0 ffff8f800aea6da4 x6/t1 fffffffef14963b4 x7/t2 20666f2065746972 x8/s0 ffff8f800aea6d60 x9/s1 0000000000000001 x10/a0 0000000000000001 x11/a1 0000000000000000 x12/a2 0000000000080000 x13/a3 ffffffff80318d3a x14/a4 ffff8f800476a000 x15/a5 0000000000080000 x16/a6 0000000000000003 x17/a7 0000000000000003 x18/s2 ffff8f800aea6da0 x19/s3 ffffffffffffffff x20/s4 0000000000000000 x21/s5 0000000000000000 x22/s6 1ffff1f0015d4db0 x23/s7 ffffffff87b424a0 x24/s8 ffff8f800aea6f38 x25/s9 ffffffff80321b78 x26/s10 0000000000000000 x27/s11 fffff5ef0351982c x28/t3 ffffffff80321458 x29/t4 fffffffef14963b4 x30/t5 fffffffef14963b5 x31/t6 ffffffff800074a8 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