last executing test programs: 1m58.689533354s ago: executing program 1 (id=28): r0 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./file1\x00', 0x42, 0x1ff) write(r0, &(0x7f0000001040)="01010101", 0x4) close(r0) mkdirat(0xffffffffffffff9c, &(0x7f00000010c0)='./my_tracefs\x00', 0x1ff) mount(0x0, &(0x7f0000001100)='./my_tracefs\x00', &(0x7f0000001140)='tracefs\x00', 0x0, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f0000002240)='./my_tracefs/trace\x00', 0x0, 0x0) read(r1, &(0x7f0000002280)=""/4096, 0x1000) close(r1) 1m42.34688718s ago: executing program 1 (id=30): r0 = openat$uhid(0xffffffffffffff9c, &(0x7f0000000000), 0x802, 0x0) write$UHID_CREATE2(r0, &(0x7f0000001000)={0xb, {'syz0\x00', 'syz0\x00', 'syz0\x00', 0x1d, 0x5, 0x57e, 0x306, 0x0, 0x0, "05010905a10105091901290a150025017501950a8102950175068103c0"}}, 0x125) nanosleep(&(0x7f0000002000)={0x0, 0x5f5e100}, 0x0) write$UHID_INPUT(r0, &(0x7f0000000300)={0x8, {' \x00', 0x3}}, 0x1006) 1m28.874040448s ago: executing program 1 (id=32): r0 = openat(0xffffffffffffff9c, &(0x7f0000000000)='./file0\x00', 0x42, 0x1b6) ftruncate(r0, 0x200000) pwrite64(r0, &(0x7f0000000100)="00000100420001000100000000080000", 0x10, 0x1be) pwrite64(r0, &(0x7f0000000100)="55aa", 0x2, 0x1fe) pwrite64(r0, &(0x7f0000000100)='PRIVHEAD', 0x8, 0xc00) pwrite64(r0, &(0x7f0000000100)="0002000b", 0x4, 0xc0c) pwrite64(r0, &(0x7f0000000100)='12345678-1234-1234-1234-123456789612', 0x24, 0xc30) pwrite64(r0, &(0x7f0000000100)="0000000000000001", 0x8, 0xd1b) pwrite64(r0, &(0x7f0000000100)="00000000000007ff", 0x8, 0xd23) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xd2b) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xd33) pwrite64(r0, &(0x7f0000000100)='PRIVHEAD', 0x8, 0xe8000) pwrite64(r0, &(0x7f0000000100)="0002000b", 0x4, 0xe800c) pwrite64(r0, &(0x7f0000000100)='12345678-1234-1234-1234-123456789612', 0x24, 0xe8030) pwrite64(r0, &(0x7f0000000100)="0000000000000001", 0x8, 0xe811b) pwrite64(r0, &(0x7f0000000100)="00000000000007ff", 0x8, 0xe8123) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xe812b) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xe8133) pwrite64(r0, &(0x7f0000000100)='PRIVHEAD', 0x8, 0xffe00) pwrite64(r0, &(0x7f0000000100)="0002000b", 0x4, 0xffe0c) pwrite64(r0, &(0x7f0000000100)='12345678-1234-1234-1234-123456789612', 0x24, 0xffe30) pwrite64(r0, &(0x7f0000000100)="0000000000000001", 0x8, 0xfff1b) pwrite64(r0, &(0x7f0000000100)="00000000000007ff", 0x8, 0xfff23) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xfff2b) pwrite64(r0, &(0x7f0000000100)='\x00\x00\x00\x00\x00\x00\b\x00', 0x8, 0xfff33) pwrite64(r0, &(0x7f0000000100)='TOCBLOCK', 0x8, 0x100200) pwrite64(r0, &(0x7f0000000100)='config\x00\x00\x00\x00', 0xa, 0x100224) pwrite64(r0, &(0x7f0000000100)="0000000000001000", 0x8, 0x10022e) pwrite64(r0, &(0x7f0000000100)="0000000000000010", 0x8, 0x100236) pwrite64(r0, &(0x7f0000000100)='log\x00\x00\x00\x00\x00\x00\x00', 0xa, 0x100246) pwrite64(r0, &(0x7f0000000100)="0000000000000010", 0x8, 0x100250) pwrite64(r0, &(0x7f0000000100)="0000000000000010", 0x8, 0x100258) r1 = syz_open_dev$loop(&(0x7f0000000040), 0x0, 0x2) ioctl$LOOP_SET_FD(r1, 0x4c00, r0) ioctl$LOOP_SET_STATUS64(r1, 0x4c04, &(0x7f0000000200)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8}) ioctl$BLKRRPART(r1, 0x125f, 0x0) 1m24.475472963s ago: executing program 0 (id=33): r0 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./file1\x00', 0x42, 0x1ff) write(r0, &(0x7f0000001040)="01010101", 0x4) read(r0, &(0x7f0000001080)=""/4, 0x4) close(r0) mkdirat(0xffffffffffffff9c, &(0x7f00000010c0)='./my_tracefs\x00', 0x1ff) r1 = openat(0xffffffffffffff9c, &(0x7f0000001180)='./my_tracefs/trace_marker\x00', 0x1, 0x0) write(r1, &(0x7f00000011c0)='\x00'/4090, 0xffa) close(r1) openat(0xffffffffffffff9c, &(0x7f0000002240)='./my_tracefs/trace\x00', 0x0, 0x0) 1m7.470847398s ago: executing program 0 (id=34): r0 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./file1\x00', 0x42, 0x1ff) write(r0, &(0x7f0000001040)="01010101", 0x4) close(r0) mkdirat(0xffffffffffffff9c, &(0x7f00000010c0)='./my_tracefs\x00', 0x1ff) mount(0x0, &(0x7f0000001100)='./my_tracefs\x00', &(0x7f0000001140)='tracefs\x00', 0x0, 0x0) r1 = openat(0xffffffffffffff9c, &(0x7f0000002240)='./my_tracefs/trace\x00', 0x0, 0x0) read(r1, &(0x7f0000002280)=""/4096, 0x1000) close(r1) 58.973911576s ago: executing program 1 (id=35): r0 = syz_usb_connect(0x3, 0x4e, &(0x7f0000000080)=ANY=[@ANYBLOB="12010002000000401107500500000102030109023c0001010080320904000006ff00000007058e0200020007050e02000200070501020002000705030200020007058d0200020007050d02000200"], 0x0) nanosleep(&(0x7f0000000000)={0x0, 0x2faf080}, 0x0) mknodat(0xffffffffffffff9c, &(0x7f0000000100)='sisusb_dev\x00', 0x81b6, 0xb485) syz_usb_ep_write(r0, 0x8d, 0x4, &(0x7f0000000140)="00000001") syz_usb_ep_write(r0, 0x8d, 0x4, &(0x7f0000000180)="00000002") r1 = openat(0xffffffffffffff9c, &(0x7f00000001c0)='sisusb_dev\x00', 0x2, 0x0) pwrite64(r1, &(0x7f0000000200)='\x00\x00\x00\x00\x00\x00\x00\x00', 0x8, 0x30000000) 47.152389921s ago: executing program 0 (id=36): mkdirat(0xffffffffffffff9c, &(0x7f0000000400)='./sys\x00', 0x1ff) mount(&(0x7f0000000440)=@filename='sysfs\x00', &(0x7f0000000480)='./sys\x00', &(0x7f00000004c0)='sysfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000500)='./sys/bus/pci/devices\x00', 0x0, 0x0) getdents64(r0, &(0x7f0000000540)=""/1000, 0x3e8) 38.622868937s ago: executing program 1 (id=37): 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) 27.171882807s ago: executing program 0 (id=38): r0 = openat(0xffffffffffffff9c, &(0x7f0000001000)='./file1\x00', 0x42, 0x1ff) write(r0, &(0x7f0000001040)="01010101", 0x4) read(r0, &(0x7f0000001080)=""/4, 0x4) close(r0) mkdirat(0xffffffffffffff9c, &(0x7f00000010c0)='./my_tracefs\x00', 0x1ff) r1 = openat(0xffffffffffffff9c, &(0x7f0000001180)='./my_tracefs/trace_marker\x00', 0x1, 0x0) write(r1, &(0x7f00000011c0)='\x00'/4090, 0xffa) close(r1) openat(0xffffffffffffff9c, &(0x7f0000002240)='./my_tracefs/trace\x00', 0x0, 0x0) 22.545922671s ago: executing program 1 (id=39): 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) 13.10939826s ago: executing program 0 (id=40): fsetxattr(0xffffffffffffffff, &(0x7f0000000100)=@known='security.selinux\x00', &(0x7f0000000200)='AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', 0x1ffd, 0x0) 0s ago: executing program 0 (id=41): r0 = openat$uhid(0xffffffffffffff9c, &(0x7f0000000000), 0x2, 0x0) write$UHID_CREATE2(r0, &(0x7f0000000100)={0xb, {'syz0\x00', 'syz0\x00', 'syz0\x00', 0x21, 0x3, 0x46d, 0xc222, 0x0, 0x0, "0600ffa1018502150026ff007508190029ff95088102951391029504b102c0"}}, 0x139) read(r0, &(0x7f0000000200), 0x1000) write(r0, 0x0, 0x0) write$UHID_INPUT2(r0, &(0x7f0000000400), 0x6) kernel console output (not intermixed with test programs): Warning: Permanently added '[localhost]:41519' (ED25519) to the list of known hosts. syzkaller login: [ 626.115321][ T3216] cgroup: Unknown subsys name 'net' [ 627.467806][ T3216] cgroup: Unknown subsys name 'cpuset' [ 627.745330][ T3216] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 723.064807][ T3216] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 915.727677][ T3224] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 915.998666][ T3224] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 918.807834][ T3227] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 918.996820][ T3227] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 941.065124][ T3224] hsr_slave_0: entered promiscuous mode [ 941.158306][ T3224] hsr_slave_1: entered promiscuous mode [ 945.547037][ T3227] hsr_slave_0: entered promiscuous mode [ 945.645011][ T3227] hsr_slave_1: entered promiscuous mode [ 945.755782][ T3227] debugfs: 'hsr0' already exists in 'hsr' [ 945.774089][ T3227] Cannot create hsr debugfs directory [ 962.494475][ T3224] netdevsim netdevsim1 netdevsim0: renamed from eth0 [ 962.702267][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 962.801196][ T3224] netdevsim netdevsim1 netdevsim1: renamed from eth1 [ 962.994639][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 963.054687][ T3224] netdevsim netdevsim1 netdevsim2: renamed from eth2 [ 963.184913][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 963.494868][ T3224] netdevsim netdevsim1 netdevsim3: renamed from eth3 [ 964.107535][ T3224] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 967.392082][ T3227] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 967.747140][ T3227] 8021q: adding VLAN 0 to HW filter on device netdevsim0 [ 967.894341][ T3227] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 968.476848][ T3227] 8021q: adding VLAN 0 to HW filter on device netdevsim1 [ 968.717545][ T3227] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 969.902868][ T3227] 8021q: adding VLAN 0 to HW filter on device netdevsim2 [ 970.586893][ T3227] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 971.188073][ T3227] 8021q: adding VLAN 0 to HW filter on device netdevsim3 [ 1012.098393][ T3224] 8021q: adding VLAN 0 to HW filter on device bond0 [ 1015.766920][ T3227] 8021q: adding VLAN 0 to HW filter on device bond0 [ 1099.364848][ T3224] veth0_vlan: entered promiscuous mode [ 1101.334831][ T3224] veth1_vlan: entered promiscuous mode [ 1105.623603][ T3224] veth0_macvtap: entered promiscuous mode [ 1106.847561][ T3224] veth1_macvtap: entered promiscuous mode [ 1112.687182][ T13] netdevsim netdevsim1 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1113.656761][ T12] netdevsim netdevsim1 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1116.602685][ T48] netdevsim netdevsim1 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1116.617094][ T48] netdevsim netdevsim1 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1117.897084][ T3227] veth0_vlan: entered promiscuous mode [ 1119.876718][ T3227] veth1_vlan: entered promiscuous mode [ 1124.095886][ 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. [ 1124.802031][ T3227] veth0_macvtap: entered promiscuous mode [ 1125.893466][ T3227] veth1_macvtap: entered promiscuous mode [ 1134.283766][ T3796] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 1134.623798][ T3836] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 1134.648073][ T3836] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 1134.664993][ T3836] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 1155.117957][ T24] usb 2-1: new high-speed USB device number 2 using dummy_hcd [ 1209.853985][ T30] usb 2-1: new high-speed USB device number 3 using dummy_hcd [ 1212.232298][ T30] usb 2-1: New USB device found, idVendor=7d25, idProduct=a415, bcdDevice= 1.00 [ 1212.260098][ T30] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1212.282187][ T30] usb 2-1: Product: syz [ 1212.296109][ T30] usb 2-1: Manufacturer: syz [ 1212.310407][ T30] usb 2-1: SerialNumber: syz [ 1219.948391][ T30] usb 2-1: can't set config #1, error -110 [ 1224.121604][ T30] usb 2-1: USB disconnect, device number 3 [ 1251.967234][ T10] usb 2-1: new high-speed USB device number 4 using dummy_hcd [ 1253.016733][ T10] usb 2-1: Using ep0 maxpacket: 8 [ 1253.612939][ T10] usb 2-1: config 0 has an invalid interface number: 143 but max is 0 [ 1253.665088][ T10] usb 2-1: config 0 has no interface number 0 [ 1253.683509][ T10] usb 2-1: New USB device found, idVendor=2058, idProduct=1005, bcdDevice=c1.9b [ 1253.704204][ T10] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1253.961751][ T10] usb 2-1: config 0 descriptor?? [ 1254.737781][ T10] viperboard 2-1:0.143: version 0.00 found at bus 002 address 004 [ 1258.085022][ T10] viperboard-i2c viperboard-i2c.1.auto: error -EIO: failure setting i2c_bus_freq to 100 [ 1258.088282][ T10] viperboard-i2c viperboard-i2c.1.auto: probe with driver viperboard-i2c failed with error -5 [ 1266.510752][ T30] usb 2-1: USB disconnect, device number 4 [ 1278.227331][ T30] usb 2-1: new high-speed USB device number 5 using dummy_hcd [ 1278.885642][ T30] usb 2-1: Using ep0 maxpacket: 16 [ 1279.457867][ T30] usb 2-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 [ 1279.462004][ T30] usb 2-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9 [ 1279.465240][ T30] usb 2-1: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice= 0.00 [ 1279.467511][ T30] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1281.927334][ T30] apple-mfi-fastcharge 2-1: config 0 descriptor?? [ 1288.153759][ T30] usbhid 2-1:0.0: can't add hid device: -32 [ 1288.214770][ T30] usbhid 2-1:0.0: probe with driver usbhid failed with error -32 [ 1295.785262][ T3842] apple-mfi-fastcharge 2-1: USB disconnect, device number 5 [ 1363.625930][ T815] usb 2-1: new high-speed USB device number 6 using dummy_hcd [ 1367.097085][ T815] usb 2-1: New USB device found, idVendor=1c40, idProduct=0534, bcdDevice= 1.00 [ 1367.099366][ T815] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1367.137008][ T815] usb 2-1: Product: syz [ 1367.140297][ T815] usb 2-1: Manufacturer: syz [ 1367.141891][ T815] usb 2-1: SerialNumber: syz [ 1368.576355][ T815] i2c-tiny-usb 2-1:1.0: version 1.00 found at bus 002 address 006 [ 1370.678242][ T815] (null): error -EIO: failure setting delay to 10us [ 1370.685885][ T815] i2c-tiny-usb 2-1:1.0: probe with driver i2c-tiny-usb failed with error -5 [ 1374.345025][ T30] usb 2-1: USB disconnect, device number 6 [ 1385.422230][ T3866] usb 2-1: new full-speed USB device number 7 using dummy_hcd [ 1385.428486][ C0] raw-gadget.0 gadget.1: ignoring, device is not running [ 1385.690956][ T3866] usb 2-1: device descriptor read/64, error -32 [ 1386.146608][ T3866] usb 2-1: new full-speed USB device number 8 using dummy_hcd [ 1389.363633][ T3866] usb 2-1: not running at top speed; connect to a high speed hub [ 1390.091400][ T3866] usb 2-1: config 1 interface 0 altsetting 0 endpoint 0x84 has invalid maxpacket 1024, setting to 1023 [ 1390.541351][ T3866] usb 2-1: New USB device found, idVendor=0471, idProduct=0302, bcdDevice= 1.00 [ 1390.546382][ T3866] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1390.575398][ T3866] usb 2-1: Product: syz [ 1390.585586][ T3866] usb 2-1: Manufacturer: syz [ 1390.590819][ T3866] usb 2-1: SerialNumber: syz [ 1396.214401][ T3866] usb 2-1: can't set config #1, error -110 [ 1398.021097][ T3851] usb 2-1: USB disconnect, device number 8 [ 1439.635729][ T4024] loop0: detected capacity change from 0 to 4096 [ 1441.036328][ T4027] loop0: p1 [ 1448.133115][ T4024] loop0: p1 [ 1463.328460][ T815] usb 2-1: new high-speed USB device number 9 using dummy_hcd [ 1465.265981][ T815] usb 2-1: New USB device found, idVendor=0711, idProduct=0550, bcdDevice= 0.00 [ 1465.269801][ T815] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1465.288032][ T815] usb 2-1: Product: syz [ 1465.303945][ T815] usb 2-1: Manufacturer: syz [ 1465.314752][ T815] usb 2-1: SerialNumber: syz [ 1467.826723][ T815] usb 2-1: USB2VGA dongle found at address 9 [ 1468.851524][ T815] usb 2-1: Allocated 8 output buffers [ 1477.235322][ T815] usb 2-1: Failed to early initialize device [ 1478.006236][ T815] usb 2-1: USB disconnect, device number 9 [ 1514.681200][ T4066] configfs-gadget.g1 gadget.0: HOST MAC 16:88:9d:6e:8a:79 [ 1514.728075][ T4066] configfs-gadget.g1 gadget.0: MAC 56:2e:0b:6d:ac:75 [ 1529.917741][ T4066] ================================================================== [ 1529.919735][ T4066] BUG: KASAN: stack-out-of-bounds in append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1529.925569][ T4066] Write of size 1 at addr ffff8f800aa87518 by task syz.1.39/4066 [ 1529.927580][ T4066] [ 1529.929547][ T4066] CPU: 0 UID: 0 PID: 4066 Comm: syz.1.39 Not tainted syzkaller #0 PREEMPT [ 1529.930304][ T4066] Hardware name: riscv-virtio,qemu (DT) [ 1529.930921][ T4066] Call Trace: [ 1529.931503][ T4066] [] dump_backtrace+0x2e/0x3c [ 1529.932329][ T4066] [] show_stack+0x30/0x3c [ 1529.932871][ T4066] [] dump_stack_lvl+0x114/0x1aa [ 1529.933632][ T4066] [] print_report+0x27a/0x592 [ 1529.934286][ T4066] [] kasan_report+0xf0/0x26c [ 1529.934804][ T4066] [] __asan_report_store1_noabort+0x12/0x1a [ 1529.935418][ T4066] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1529.936156][ T4066] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1529.936899][ T4066] [] f_midi2_bind+0x18f0/0x2302 [ 1529.937571][ T4066] [] usb_add_function+0x1ce/0x7ca [ 1529.938161][ T4066] [] configfs_composite_bind+0x906/0x149a [ 1529.938879][ T4066] [] gadget_bind_driver+0x228/0xafa [ 1529.939604][ T4066] [] really_probe+0x222/0xa8e [ 1529.940142][ T4066] [] __driver_probe_device+0x1d6/0x43e [ 1529.940665][ T4066] [] driver_probe_device+0x5e/0x162 [ 1529.941202][ T4066] [] __driver_attach+0x1fc/0x57e [ 1529.941772][ T4066] [] bus_for_each_dev+0x126/0x1bc [ 1529.942528][ T4066] [] driver_attach+0x3e/0x52 [ 1529.943337][ T4066] [] bus_add_driver+0x2c8/0x612 [ 1529.944116][ T4066] [] driver_register+0x1a4/0x3b4 [ 1529.944661][ T4066] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1529.945466][ T4066] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1529.946201][ T4066] [] configfs_write_iter+0x284/0x406 [ 1529.946792][ T4066] [] vfs_write+0x81a/0x1020 [ 1529.947551][ T4066] [] ksys_write+0x126/0x244 [ 1529.948295][ T4066] [] __riscv_sys_write+0x6e/0xa0 [ 1529.949080][ T4066] [] syscall_handler+0x92/0x114 [ 1529.949823][ T4066] [] do_trap_ecall_u+0x3e4/0x636 [ 1529.950448][ T4066] [] handle_exception+0x168/0x174 [ 1529.951442][ T4066] [ 1529.975224][ T4066] The buggy address belongs to stack of task syz.1.39/4066 [ 1529.976609][ T4066] and is located at offset 440 in frame: [ 1529.977575][ T4066] f_midi2_bind+0x0/0x2302 [ 1529.979188][ T4066] [ 1529.979913][ T4066] This frame has 6 objects: [ 1529.980958][ T4066] [32, 36) 'sw' [ 1529.981333][ T4066] [48, 56) 'card' [ 1529.982238][ T4066] [80, 88) 'ump' [ 1529.983116][ T4066] [112, 128) 'string_fn' [ 1529.983980][ T4066] [144, 160) 'strings' [ 1529.985026][ T4066] [176, 440) 'config' [ 1529.986059][ T4066] [ 1529.987338][ T4066] The buggy address belongs to a 8-page vmalloc region starting at 0xffff8f800aa80000 allocated at kernel_clone+0x198/0xf7c [ 1529.990191][ T4066] The buggy address belongs to the physical page: [ 1529.992100][ T4066] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb43f7 [ 1529.993644][ T4066] memcg:ffffaf801fdefe02 [ 1529.994669][ T4066] flags: 0x0(node=0|zone=0) [ 1529.997457][ T4066] raw: 0000000000000000 0000000000000000 ffff8d8002d0fdc8 0000000000000000 [ 1529.999011][ T4066] raw: 0000000000000000 0000000000000000 00000001ffffffff ffffaf801fdefe02 [ 1530.000550][ T4066] page dumped because: kasan: bad access detected [ 1530.002040][ T4066] page_owner tracks the page as allocated [ 1530.003100][ T4066] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 3796, tgid 3796 (kworker/u8:6), ts 1480216617700, free_ts 1480193979700 [ 1530.005915][ T4066] __set_page_owner+0x92/0x4b0 [ 1530.007326][ T4066] post_alloc_hook+0xe4/0x1a0 [ 1530.008491][ T4066] get_page_from_freelist+0x914/0x395c [ 1530.009932][ T4066] __alloc_frozen_pages_noprof+0x224/0x2e40 [ 1530.011232][ T4066] alloc_pages_mpol+0x1f0/0x59c [ 1530.012504][ T4066] alloc_frozen_pages_noprof+0x156/0x2ce [ 1530.013804][ T4066] alloc_pages_noprof+0x20/0x140 [ 1530.015068][ T4066] __vmalloc_node_range_noprof+0x103e/0x1b34 [ 1530.016432][ T4066] __vmalloc_node_noprof+0xfc/0x132 [ 1530.017701][ T4066] copy_process+0x764/0x7e8a [ 1530.018842][ T4066] kernel_clone+0x198/0xf7c [ 1530.019980][ T4066] user_mode_thread+0xd2/0x10e [ 1530.021052][ T4066] call_usermodehelper_exec_work+0xca/0x196 [ 1530.022430][ T4066] process_one_work+0x90a/0x20a0 [ 1530.023802][ T4066] worker_thread+0x532/0xcaa [ 1530.025154][ T4066] kthread+0x312/0x438 [ 1530.026635][ T4066] page last free pid 4053 tgid 4053 stack trace: [ 1530.027653][ T4066] __reset_page_owner+0x76/0x1bc [ 1530.029122][ T4066] __free_frozen_pages+0x6b0/0x136c [ 1530.030325][ T4066] free_frozen_pages+0xe/0x16 [ 1530.031573][ T4066] __free_slab+0xda/0x250 [ 1530.032706][ T4066] free_slab+0x28/0x16c [ 1530.033911][ T4066] __slab_free+0x23c/0x2f8 [ 1530.035074][ T4066] ___cache_free+0x94/0xac [ 1530.036292][ T4066] qlist_free_all+0x64/0x134 [ 1530.037430][ T4066] kasan_quarantine_reduce+0x152/0x1b4 [ 1530.038766][ T4066] __kasan_slab_alloc+0x5c/0x82 [ 1530.040164][ T4066] kmem_cache_alloc_noprof+0x202/0x67a [ 1530.041501][ T4066] do_fault+0x8e8/0x14d6 [ 1530.042621][ T4066] __handle_mm_fault+0xff8/0x14fa [ 1530.043779][ T4066] handle_mm_fault+0x25a/0x8bc [ 1530.044983][ T4066] handle_page_fault+0x71e/0x1f30 [ 1530.046436][ T4066] do_page_fault+0x20/0x56 [ 1530.047858][ T4066] [ 1530.048561][ T4066] Memory state around the buggy address: [ 1530.050094][ T4066] ffff8f800aa87400: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1530.051473][ T4066] ffff8f800aa87480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1530.052716][ T4066] >ffff8f800aa87500: 00 00 00 f3 f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 [ 1530.053937][ T4066] ^ [ 1530.055088][ T4066] ffff8f800aa87580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1530.056461][ T4066] ffff8f800aa87600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1530.057690][ T4066] ================================================================== [ 1530.486197][ T4066] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 1530.488594][ T4066] CPU: 0 UID: 0 PID: 4066 Comm: syz.1.39 Not tainted syzkaller #0 PREEMPT [ 1530.490186][ T4066] Hardware name: riscv-virtio,qemu (DT) [ 1530.491108][ T4066] Call Trace: [ 1530.491906][ T4066] [] dump_backtrace+0x2e/0x3c [ 1530.493530][ T4066] [] show_stack+0x30/0x3c [ 1530.494836][ T4066] [] dump_stack_lvl+0x114/0x1aa [ 1530.496386][ T4066] [] dump_stack+0x1c/0x24 [ 1530.497992][ T4066] [] vpanic+0x32e/0x75a [ 1530.499253][ T4066] [] panic+0xa0/0xa2 [ 1530.500489][ T4066] [] check_panic_on_warn+0xc0/0xe4 [ 1530.501969][ T4066] [] end_report.part.0+0x4e/0xae [ 1530.503347][ T4066] [] kasan_report+0x164/0x26c [ 1530.504583][ T4066] [] __asan_report_store1_noabort+0x12/0x1a [ 1530.506069][ T4066] [] append_midi1_out_jack.isra.0+0x346/0x3e4 [ 1530.507498][ T4066] [] f_midi2_create_usb_configs+0x5be/0xcae [ 1530.509097][ T4066] [] f_midi2_bind+0x18f0/0x2302 [ 1530.510535][ T4066] [] usb_add_function+0x1ce/0x7ca [ 1530.511894][ T4066] [] configfs_composite_bind+0x906/0x149a [ 1530.513451][ T4066] [] gadget_bind_driver+0x228/0xafa [ 1530.515027][ T4066] [] really_probe+0x222/0xa8e [ 1530.516362][ T4066] [] __driver_probe_device+0x1d6/0x43e [ 1530.517781][ T4066] [] driver_probe_device+0x5e/0x162 [ 1530.519362][ T4066] [] __driver_attach+0x1fc/0x57e [ 1530.520844][ T4066] [] bus_for_each_dev+0x126/0x1bc [ 1530.522474][ T4066] [] driver_attach+0x3e/0x52 [ 1530.524096][ T4066] [] bus_add_driver+0x2c8/0x612 [ 1530.525842][ T4066] [] driver_register+0x1a4/0x3b4 [ 1530.527238][ T4066] [] usb_gadget_register_driver_owner+0x10c/0x2d2 [ 1530.529111][ T4066] [] gadget_dev_desc_UDC_store+0x1b6/0x2a0 [ 1530.530725][ T4066] [] configfs_write_iter+0x284/0x406 [ 1530.532185][ T4066] [] vfs_write+0x81a/0x1020 [ 1530.533780][ T4066] [] ksys_write+0x126/0x244 [ 1530.535442][ T4066] [] __riscv_sys_write+0x6e/0xa0 [ 1530.537022][ T4066] [] syscall_handler+0x92/0x114 [ 1530.538470][ T4066] [] do_trap_ecall_u+0x3e4/0x636 [ 1530.539890][ T4066] [] handle_exception+0x168/0x174 [ 1530.541743][ T4066] SMP: stopping secondary CPUs [ 1530.545607][ T4066] Rebooting in 86400 seconds.. VM DIAGNOSIS: 13:50:01 Registers: info registers vcpu 0 CPU#0 V = 0 pc ffffffff8032a66e 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 ffffffff8052d78a sepc ffffffff86547c4e vsepc 0000000000000000 mcause 8000000000000003 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080049000 sscratch 0000000000000000 satp 901e20000009efc2 x0/zero 0000000000000000 x1/ra ffffffff8032a66a x2/sp ffff8f800aa86b50 x3/gp ffffffff8a4a7c60 x4/tp ffffaf8012af1ac0 x5/t0 0000312e7a797320 x6/t1 fffff1ef01550d70 x7/t2 332e312e7a797320 x8/s0 ffff8f800aa86c30 x9/s1 ffff8f800aa86d20 x10/a0 0000000000000007 x11/a1 0000000000000000 x12/a2 0000000000080000 x13/a3 ffffffff8032a66a x14/a4 ffff8f8004329000 x15/a5 0000000000080000 x16/a6 0000000000000003 x17/a7 ffff8f800aa86b87 x18/s2 ffff8f800aa86d28 x19/s3 1ffff1f001550d6c x20/s4 0000000200000020 x21/s5 1ffff1f001550da5 x22/s6 3fffffffffffe36a x23/s7 000000000000000d x24/s8 ffff8f800aa86d30 x25/s9 1ffff1f001550da6 x26/s10 ffffffff888fe0c0 x27/s11 1ffff1f001550d94 x28/t3 ffffffff91689f3e x29/t4 fffff1ef01550d70 x30/t5 fffff1ef01550d71 x31/t6 ffffffff91689f38 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 ffffffff8052dcb0 mhartid 0000000000000001 mstatus 0000000a000000a0 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 ffffffff8021a914 vsepc 0000000000000000 mcause 0000000000000009 scause 8000000000000005 vscause 0000000000000000 mtval 0000000000000000 stval 0000000000000000 htval 0000000000000000 mtval2 0000000000000000 mscratch 0000000080047000 sscratch 0000000000000000 satp 901e6000000a2d5f x0/zero 0000000000000000 x1/ra ffffffff8007bea0 x2/sp ffff8f800ab17510 x3/gp ffffffff8a4a7c60 x4/tp ffffaf8019c19ac0 x5/t0 0000000000000000 x6/t1 ffffffff8007bc8e x7/t2 ffffaf8072c407a8 x8/s0 ffff8f800ab17510 x9/s1 0000000000000001 x10/a0 0000000000000006 x11/a1 ffff8f800ab18000 x12/a2 0000000000000000 x13/a3 ffffffff8007be64 x14/a4 0000000000000000 x15/a5 ffffaf8019c1aac0 x16/a6 0000000000000003 x17/a7 0000000041b58ab3 x18/s2 ffff8f800ab17810 x19/s3 ffffffff80b2649a x20/s4 ffff8f800ab175a0 x21/s5 0000000000000004 x22/s6 ffffaf801dbb8dc0 x23/s7 ffff8f800ab17778 x24/s8 ffff8f800ab17788 x25/s9 1ffff1f001562ea8 x26/s10 ffff8f800ab17510 x27/s11 ffffaf8012ab0cc0 x28/t3 ffffffff8809bec8 x29/t4 fffff5ef024ea730 x30/t5 fffff5ef024ea731 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