program:
mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./dev\x00', 0x1ff)
mount(&(0x7f0000000040)=@filename='devtmpfs\x00', &(0x7f0000000080)='./dev\x00', &(0x7f00000000c0)='devtmpfs\x00', 0x0, 0x0)
syz_usb_connect(0x0, 0x39, &(0x7f0000000100)=ANY=[@ANYBLOB="12010002000000402a1101000001010203010902270001010080fa0904000003ffffff00070581024000000705820240000007050302400000"], 0x0)
nanosleep(&(0x7f0000000300)={0x1}, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000200)='./dev/lirc0\x00', 0x2, 0x0)
write(r0, &(0x7f0000000400)="0100000002000000", 0x8)
[ 76.225525][ T5280] Bluetooth: hci0: command tx timeout
[ 76.243693][ T1331] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.248829][ T1331] ieee802154 phy1 wpan1: encryption failed: -22
[ 76.526480][ T5304] usb 5-1: new high-speed USB device number 2 using dummy_hcd
[ 76.679622][ T5304] usb 5-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 76.683185][ T5304] usb 5-1: config 1 interface 0 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64
[ 76.687602][ T5304] usb 5-1: config 1 interface 0 altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64
[ 76.693892][ T5304] usb 5-1: New USB device found, idVendor=112a, idProduct=0001, bcdDevice= 1.00
[ 76.698216][ T5304] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 76.701526][ T5304] usb 5-1: Product: syz
[ 76.703338][ T5304] usb 5-1: Manufacturer: syz
[ 76.705291][ T5304] usb 5-1: SerialNumber: syz
[ 76.716936][ T5316] raw-gadget.0 gadget.0: fail, usb_ep_enable returned -22
[ 76.723607][ T5316] raw-gadget.0 gadget.0: fail, usb_ep_enable returned -22
[ 76.727577][ T5316] raw-gadget.0 gadget.0: fail, usb_ep_enable returned -22
[ 77.942184][ T5304] redrat3 5-1:1.0: Problem fetching firmware ID
[ 77.962423][ T5304] redrat3 5-1:1.0: Failed to read timeout from hardware
[ 78.026369][ T5304] rc_core: IR keymap rc-hauppauge not found
[ 78.028482][ T5304] Registered IR keymap rc-empty
[ 78.033561][ T5304] rc rc0: RedRat3 Infrared Remote Transceiver as /devices/platform/dummy_hcd.0/usb5/5-1/5-1:1.0/rc/rc0
[ 78.040670][ T5304] input: RedRat3 Infrared Remote Transceiver as /devices/platform/dummy_hcd.0/usb5/5-1/5-1:1.0/rc/rc0/input5
[ 78.052812][ T5304] redrat3 5-1:1.0: redrat3_send_cmd: Error sending rr3 cmd res -71, data 0
[ 78.060778][ T5304] redrat3 5-1:1.0: redrat3_send_cmd: Error sending rr3 cmd res -71, data 0
[ 78.064415][ T5304] redrat3 5-1:1.0: redrat3_enable_detector: detector status: -5, should be 1
[ 78.072293][ T5304] redrat3 5-1:1.0: probe with driver redrat3 failed with error -5
[ 78.083240][ T5304] usb 5-1: USB disconnect, device number 2
[ 78.091577][ T4698] ==================================================================
[ 78.094219][ T4698] BUG: KASAN: slab-use-after-free in string+0x216/0x2d0
[ 78.096871][ T4698] Read of size 1 at addr ffff88801f7c3758 by task udevd/4698
[ 78.099756][ T4698]
[ 78.100728][ T4698] CPU: 0 UID: 0 PID: 4698 Comm: udevd Not tainted syzkaller #0 PREEMPT(full)
[ 78.100742][ T4698] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 78.100748][ T4698] Call Trace:
[ 78.100753][ T4698]
[ 78.100756][ T4698] dump_stack_lvl+0xe8/0x150
[ 78.100773][ T4698] print_address_description+0x55/0x1e0
[ 78.100789][ T4698] ? string+0x216/0x2d0
[ 78.100802][ T4698] print_report+0x58/0x70
[ 78.100814][ T4698] kasan_report+0x117/0x150
[ 78.100830][ T4698] ? string+0x216/0x2d0
[ 78.100842][ T4698] string+0x216/0x2d0
[ 78.100851][ T4698] vsnprintf+0x74a/0xef0
[ 78.100865][ T4698] add_uevent_var+0x1ce/0x460
[ 78.100877][ T4698] ? __pfx___mutex_lock+0x10/0x10
[ 78.100892][ T4698] ? __pfx_add_uevent_var+0x10/0x10
[ 78.100906][ T4698] rc_dev_uevent+0x164/0x1a0
[ 78.100920][ T4698] dev_uevent+0x537/0x870
[ 78.100978][ T4698] ? __pfx_dev_uevent+0x10/0x10
[ 78.100992][ T4698] ? __kmalloc_cache_noprof+0x32d/0x660
[ 78.101004][ T4698] ? __kmalloc_cache_noprof+0x150/0x660
[ 78.101016][ T4698] ? uevent_show+0x15c/0x310
[ 78.101031][ T4698] uevent_show+0x1a0/0x310
[ 78.101046][ T4698] dev_attr_show+0x58/0xc0
[ 78.101060][ T4698] ? __pfx_dev_attr_show+0x10/0x10
[ 78.101073][ T4698] sysfs_kf_seq_show+0x331/0x490
[ 78.101087][ T4698] seq_read_iter+0x463/0xca0
[ 78.101099][ T4698] vfs_read+0x595/0xa80
[ 78.101114][ T4698] ? __pfx_vfs_read+0x10/0x10
[ 78.101127][ T4698] ? do_sys_openat2+0x14e/0x200
[ 78.101142][ T4698] ksys_read+0x150/0x270
[ 78.101155][ T4698] ? __pfx_ksys_read+0x10/0x10
[ 78.101170][ T4698] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.101188][ T4698] do_syscall_64+0x174/0x580
[ 78.101201][ T4698] ? trace_irq_disable+0x3b/0x140
[ 78.101214][ T4698] ? clear_bhb_loop+0x40/0x90
[ 78.101224][ T4698] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.101234][ T4698] RIP: 0033:0x7fca4b2a7407
[ 78.101244][ T4698] Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
[ 78.101253][ T4698] RSP: 002b:00007ffde29b61d0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
[ 78.101265][ T4698] RAX: ffffffffffffffda RBX: 00007fca4ba50880 RCX: 00007fca4b2a7407
[ 78.101274][ T4698] RDX: 0000000000001000 RSI: 0000563f7c940010 RDI: 000000000000000c
[ 78.101281][ T4698] RBP: 00007fca4b3efff0 R08: 0000000000000000 R09: 0000000000000000
[ 78.101287][ T4698] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a
[ 78.101293][ T4698] R13: 00007fca4b3efea0 R14: 0000000000000000 R15: 0000563f7c97ff40
[ 78.101304][ T4698]
[ 78.101308][ T4698]
[ 78.200458][ T4698] Allocated by task 5304:
[ 78.202074][ T4698] kasan_save_track+0x3e/0x80
[ 78.203916][ T4698] __kasan_kmalloc+0x93/0xb0
[ 78.205672][ T4698] __kmalloc_cache_noprof+0x32d/0x660
[ 78.207670][ T4698] redrat3_dev_probe+0x477/0x2570
[ 78.209590][ T4698] usb_probe_interface+0x653/0xc60
[ 78.211547][ T4698] really_probe+0x254/0xae0
[ 78.213245][ T4698] __driver_probe_device+0x1e8/0x360
[ 78.215216][ T4698] driver_probe_device+0x4f/0x240
[ 78.217111][ T4698] __device_attach_driver+0x270/0x410
[ 78.219175][ T4698] bus_for_each_drv+0x258/0x2f0
[ 78.221046][ T4698] __device_attach+0x2c4/0x450
[ 78.222874][ T4698] device_initial_probe+0xa1/0xd0
[ 78.224760][ T4698] bus_probe_device+0x12a/0x220
[ 78.226613][ T4698] device_add+0x7d7/0xb80
[ 78.228236][ T4698] usb_set_configuration+0x1ad8/0x2180
[ 78.230282][ T4698] usb_generic_driver_probe+0x8d/0x150
[ 78.232301][ T4698] usb_probe_device+0x1c3/0x3b0
[ 78.234189][ T4698] really_probe+0x254/0xae0
[ 78.235943][ T4698] __driver_probe_device+0x1e8/0x360
[ 78.238008][ T4698] driver_probe_device+0x4f/0x240
[ 78.239943][ T4698] __device_attach_driver+0x270/0x410
[ 78.241996][ T4698] bus_for_each_drv+0x258/0x2f0
[ 78.243903][ T4698] __device_attach+0x2c4/0x450
[ 78.245724][ T4698] device_initial_probe+0xa1/0xd0
[ 78.247592][ T4698] bus_probe_device+0x12a/0x220
[ 78.249402][ T4698] device_add+0x7d7/0xb80
[ 78.251046][ T4698] usb_new_device+0x99d/0x1620
[ 78.252862][ T4698] hub_event+0x28e8/0x4d30
[ 78.254513][ T4698] process_scheduled_works+0xa8e/0x14e0
[ 78.256519][ T4698] worker_thread+0xa47/0xfb0
[ 78.258208][ T4698] kthread+0x388/0x470
[ 78.259691][ T4698] ret_from_fork+0x514/0xb70
[ 78.261357][ T4698] ret_from_fork_asm+0x1a/0x30
[ 78.263116][ T4698]
[ 78.264026][ T4698] Freed by task 5304:
[ 78.265522][ T4698] kasan_save_track+0x3e/0x80
[ 78.267285][ T4698] kasan_save_free_info+0x40/0x50
[ 78.269151][ T4698] __kasan_slab_free+0x5c/0x80
[ 78.270953][ T4698] kfree+0x1c5/0x640
[ 78.272410][ T4698] redrat3_dev_probe+0x1bf4/0x2570
[ 78.274298][ T4698] usb_probe_interface+0x653/0xc60
[ 78.276172][ T4698] really_probe+0x254/0xae0
[ 78.277780][ T4698] __driver_probe_device+0x1e8/0x360
[ 78.279710][ T4698] driver_probe_device+0x4f/0x240
[ 78.281433][ T4698] __device_attach_driver+0x270/0x410
[ 78.283231][ T4698] bus_for_each_drv+0x258/0x2f0
[ 78.284822][ T4698] __device_attach+0x2c4/0x450
[ 78.286409][ T4698] device_initial_probe+0xa1/0xd0
[ 78.288038][ T4698] bus_probe_device+0x12a/0x220
[ 78.289700][ T4698] device_add+0x7d7/0xb80
[ 78.291403][ T4698] usb_set_configuration+0x1ad8/0x2180
[ 78.293432][ T4698] usb_generic_driver_probe+0x8d/0x150
[ 78.295366][ T4698] usb_probe_device+0x1c3/0x3b0
[ 78.296891][ T4698] really_probe+0x254/0xae0
[ 78.298611][ T4698] __driver_probe_device+0x1e8/0x360
[ 78.300426][ T4698] driver_probe_device+0x4f/0x240
[ 78.302063][ T4698] __device_attach_driver+0x270/0x410
[ 78.303791][ T4698] bus_for_each_drv+0x258/0x2f0
[ 78.305375][ T4698] __device_attach+0x2c4/0x450
[ 78.306946][ T4698] device_initial_probe+0xa1/0xd0
[ 78.308619][ T4698] bus_probe_device+0x12a/0x220
[ 78.310212][ T4698] device_add+0x7d7/0xb80
[ 78.311596][ T4698] usb_new_device+0x99d/0x1620
[ 78.313165][ T4698] hub_event+0x28e8/0x4d30
[ 78.314765][ T4698] process_scheduled_works+0xa8e/0x14e0
[ 78.316536][ T4698] worker_thread+0xa47/0xfb0
[ 78.318156][ T4698] kthread+0x388/0x470
[ 78.319645][ T4698] ret_from_fork+0x514/0xb70
[ 78.321329][ T4698] ret_from_fork_asm+0x1a/0x30
[ 78.323085][ T4698]
[ 78.323966][ T4698] The buggy address belongs to the object at ffff88801f7c3000
[ 78.323966][ T4698] which belongs to the cache kmalloc-2k of size 2048
[ 78.328926][ T4698] The buggy address is located 1880 bytes inside of
[ 78.328926][ T4698] freed 2048-byte region [ffff88801f7c3000, ffff88801f7c3800)
[ 78.333767][ T4698]
[ 78.334759][ T4698] The buggy address belongs to the physical page:
[ 78.337038][ T4698] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f7c0
[ 78.340035][ T4698] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 78.343329][ T4698] flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
[ 78.345968][ T4698] page_type: f5(slab)
[ 78.347427][ T4698] raw: 00fff00000000040 ffff88801b042000 dead000000000100 dead000000000122
[ 78.350369][ T4698] raw: 0000000000000000 0000000800080008 00000000f5000000 0000000000000000
[ 78.353383][ T4698] head: 00fff00000000040 ffff88801b042000 dead000000000100 dead000000000122
[ 78.356703][ T4698] head: 0000000000000000 0000000800080008 00000000f5000000 0000000000000000
[ 78.359483][ T4698] head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
[ 78.362289][ T4698] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[ 78.365183][ T4698] page dumped because: kasan: bad access detected
[ 78.367368][ T4698] page_owner tracks the page as allocated
[ 78.369460][ T4698] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5279, tgid 5279 (syz-executor), ts 73385657819, free_ts 29855872879
[ 78.376298][ T4698] post_alloc_hook+0x1f9/0x250
[ 78.378030][ T4698] get_page_from_freelist+0x21fa/0x2270
[ 78.379862][ T4698] __alloc_frozen_pages_noprof+0x18d/0x380
[ 78.381823][ T4698] allocate_slab+0x79/0x5e0
[ 78.383328][ T4698] refill_objects+0x2d5/0x350
[ 78.385119][ T4698] __pcs_replace_empty_main+0x2bf/0x6b0
[ 78.387199][ T4698] __kmalloc_node_track_caller_noprof+0x557/0x730
[ 78.389474][ T4698] pskb_expand_head+0x22c/0x13a0
[ 78.391334][ T4698] netlink_trim+0x1b3/0x2c0
[ 78.392973][ T4698] netlink_broadcast_filtered+0x6d/0xea0
[ 78.395034][ T4698] nlmsg_notify+0xe3/0x1a0
[ 78.396558][ T4698] __dev_notify_flags+0xf2/0x310
[ 78.398305][ T4698] rtnl_configure_link+0x222/0x350
[ 78.400090][ T4698] vxcan_newlink+0x3f4/0x5d0
[ 78.401739][ T4698] rtnl_newlink_create+0x310/0xb00
[ 78.403621][ T4698] rtnl_newlink+0x167f/0x1bd0
[ 78.405296][ T4698] page last free pid 4708 tgid 4708 stack trace:
[ 78.407391][ T4698] __free_frozen_pages+0xc1e/0xd10
[ 78.409237][ T4698] __slab_free+0x274/0x2c0
[ 78.410905][ T4698] qlist_free_all+0x99/0x100
[ 78.412437][ T4698] kasan_quarantine_reduce+0x148/0x160
[ 78.414217][ T4698] __kasan_slab_alloc+0x22/0x80
[ 78.416191][ T4698] kmem_cache_alloc_noprof+0x2a0/0x5f0
[ 78.418085][ T4698] do_getname+0x2e/0x250
[ 78.419450][ T4698] vfs_fstatat+0x45/0x170
[ 78.420884][ T4698] __x64_sys_newfstatat+0x151/0x200
[ 78.422788][ T4698] do_syscall_64+0x174/0x580
[ 78.424511][ T4698] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.426602][ T4698]
[ 78.427509][ T4698] Memory state around the buggy address:
[ 78.429525][ T4698] ffff88801f7c3600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 78.432122][ T4698] ffff88801f7c3680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 78.434785][ T4698] >ffff88801f7c3700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 78.437493][ T4698] ^
[ 78.439821][ T4698] ffff88801f7c3780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 78.442479][ T4698] ffff88801f7c3800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 78.445180][ T4698] ==================================================================
[ 78.452537][ T5280] Bluetooth: hci0: command tx timeout
[ 78.471447][ T4698] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 78.473802][ T4698] CPU: 0 UID: 0 PID: 4698 Comm: udevd Not tainted syzkaller #0 PREEMPT(full)
[ 78.476679][ T4698] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 78.480053][ T4698] Call Trace:
[ 78.481339][ T4698]
[ 78.482486][ T4698] vpanic+0x56c/0xa60
[ 78.484034][ T4698] ? __pfx_vpanic+0x10/0x10
[ 78.485784][ T4698] ? __pfx___schedule+0x10/0x10
[ 78.487420][ T4698] panic+0xc5/0xd0
[ 78.488747][ T4698] ? __pfx_panic+0x10/0x10
[ 78.490207][ T4698] ? preempt_schedule_thunk+0x16/0x40
[ 78.491903][ T4698] ? string+0x216/0x2d0
[ 78.493269][ T4698] check_panic_on_warn+0x89/0xb0
[ 78.494885][ T4698] ? string+0x216/0x2d0
[ 78.496225][ T4698] end_report+0x73/0x170
[ 78.497598][ T4698] ? string+0x216/0x2d0
[ 78.498969][ T4698] kasan_report+0x128/0x150
[ 78.500435][ T4698] ? string+0x216/0x2d0
[ 78.501773][ T4698] string+0x216/0x2d0
[ 78.503119][ T4698] vsnprintf+0x74a/0xef0
[ 78.504528][ T4698] add_uevent_var+0x1ce/0x460
[ 78.506045][ T4698] ? __pfx___mutex_lock+0x10/0x10
[ 78.507691][ T4698] ? __pfx_add_uevent_var+0x10/0x10
[ 78.509420][ T4698] rc_dev_uevent+0x164/0x1a0
[ 78.510937][ T4698] dev_uevent+0x537/0x870
[ 78.512337][ T4698] ? __pfx_dev_uevent+0x10/0x10
[ 78.513901][ T4698] ? __kmalloc_cache_noprof+0x32d/0x660
[ 78.515713][ T4698] ? __kmalloc_cache_noprof+0x150/0x660
[ 78.517471][ T4698] ? uevent_show+0x15c/0x310
[ 78.519008][ T4698] uevent_show+0x1a0/0x310
[ 78.520432][ T4698] dev_attr_show+0x58/0xc0
[ 78.521866][ T4698] ? __pfx_dev_attr_show+0x10/0x10
[ 78.523525][ T4698] sysfs_kf_seq_show+0x331/0x490
[ 78.525158][ T4698] seq_read_iter+0x463/0xca0
[ 78.526667][ T4698] vfs_read+0x595/0xa80
[ 78.528002][ T4698] ? __pfx_vfs_read+0x10/0x10
[ 78.529514][ T4698] ? do_sys_openat2+0x14e/0x200
[ 78.531211][ T4698] ksys_read+0x150/0x270
[ 78.532576][ T4698] ? __pfx_ksys_read+0x10/0x10
[ 78.534143][ T4698] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.536093][ T4698] do_syscall_64+0x174/0x580
[ 78.537622][ T4698] ? trace_irq_disable+0x3b/0x140
[ 78.539253][ T4698] ? clear_bhb_loop+0x40/0x90
[ 78.540906][ T4698] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.542805][ T4698] RIP: 0033:0x7fca4b2a7407
[ 78.544295][ T4698] Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
[ 78.550902][ T4698] RSP: 002b:00007ffde29b61d0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
[ 78.553625][ T4698] RAX: ffffffffffffffda RBX: 00007fca4ba50880 RCX: 00007fca4b2a7407
[ 78.556250][ T4698] RDX: 0000000000001000 RSI: 0000563f7c940010 RDI: 000000000000000c
[ 78.558878][ T4698] RBP: 00007fca4b3efff0 R08: 0000000000000000 R09: 0000000000000000
[ 78.561554][ T4698] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a
[ 78.564597][ T4698] R13: 00007fca4b3efea0 R14: 0000000000000000 R15: 0000563f7c97ff40
[ 78.567174][ T4698]
[ 78.568491][ T4698] Kernel Offset: disabled
[ 78.569943][ T4698] Rebooting in 86400 seconds..