usb 3-1: Direct firmware load for ueagle-atm/eagleII.fw failed with error -2 usb 3-1: Falling back to sysfs fallback for: ueagle-atm/eagleII.fw ================================================================== BUG: KASAN: use-after-free in kernfs_root fs/kernfs/kernfs-internal.h:48 [inline] BUG: KASAN: use-after-free in kernfs_next_descendant_post+0x2cd/0x2f0 fs/kernfs/dir.c:1272 Read of size 8 at addr ffff88801e9e3030 by task kworker/1:0/20 CPU: 1 PID: 20 Comm: kworker/1:0 Not tainted 5.17.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events request_firmware_work_func Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x336 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 kernfs_root fs/kernfs/kernfs-internal.h:48 [inline] kernfs_next_descendant_post+0x2cd/0x2f0 fs/kernfs/dir.c:1272 kernfs_activate+0x97/0x240 fs/kernfs/dir.c:1312 kernfs_add_one+0x3c6/0x550 fs/kernfs/dir.c:767 kernfs_create_dir_ns+0x18b/0x220 fs/kernfs/dir.c:1004 sysfs_create_dir_ns+0x127/0x290 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x2d2/0xa60 lib/kobject.c:255 kobject_add_varg lib/kobject.c:390 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:442 class_dir_create_and_add drivers/base/core.c:2942 [inline] get_device_parent+0x3d7/0x590 drivers/base/core.c:2997 device_add+0x2a8/0x1ee0 drivers/base/core.c:3326 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:512 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:588 [inline] firmware_fallback_sysfs+0x402/0xe70 drivers/base/firmware_loader/fallback.c:664 _request_firmware+0xb97/0xfe0 drivers/base/firmware_loader/main.c:774 request_firmware_work_func+0xdd/0x230 drivers/base/firmware_loader/main.c:1020 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 20: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:469 kasan_slab_alloc include/linux/kasan.h:260 [inline] slab_post_alloc_hook mm/slab.h:732 [inline] slab_alloc_node mm/slub.c:3230 [inline] slab_alloc mm/slub.c:3238 [inline] kmem_cache_alloc+0x202/0x3a0 mm/slub.c:3243 kmem_cache_zalloc include/linux/slab.h:705 [inline] __kernfs_new_node+0xd4/0x8b0 fs/kernfs/dir.c:585 kernfs_new_node fs/kernfs/dir.c:647 [inline] kernfs_create_dir_ns+0x9c/0x220 fs/kernfs/dir.c:994 sysfs_create_dir_ns+0x127/0x290 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x2d2/0xa60 lib/kobject.c:255 kobject_add_varg lib/kobject.c:390 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:442 class_dir_create_and_add drivers/base/core.c:2942 [inline] get_device_parent+0x3d7/0x590 drivers/base/core.c:2997 device_add+0x2a8/0x1ee0 drivers/base/core.c:3326 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:512 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:588 [inline] firmware_fallback_sysfs+0x402/0xe70 drivers/base/firmware_loader/fallback.c:664 _request_firmware+0xb97/0xfe0 drivers/base/firmware_loader/main.c:774 request_firmware_work_func+0xdd/0x230 drivers/base/firmware_loader/main.c:1020 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 141: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track+0x21/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:366 [inline] ____kasan_slab_free+0x130/0x160 mm/kasan/common.c:328 kasan_slab_free include/linux/kasan.h:236 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1754 slab_free mm/slub.c:3509 [inline] kmem_cache_free+0xd8/0x340 mm/slub.c:3526 kernfs_put.part.0+0x2c4/0x540 fs/kernfs/dir.c:539 kernfs_put+0x42/0x50 fs/kernfs/dir.c:513 __kernfs_remove+0x7a3/0xb20 fs/kernfs/dir.c:1388 kernfs_remove+0x6d/0x90 fs/kernfs/dir.c:1403 sysfs_remove_dir+0xc1/0x100 fs/sysfs/dir.c:101 __kobject_del+0xe2/0x200 lib/kobject.c:620 kobject_del lib/kobject.c:643 [inline] kobject_del+0x3c/0x60 lib/kobject.c:635 device_del+0x82c/0xd50 drivers/base/core.c:3603 usb_disconnect.cold+0x4ba/0x78e drivers/usb/core/hub.c:2254 hub_port_connect drivers/usb/core/hub.c:5202 [inline] hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] port_event drivers/usb/core/hub.c:5660 [inline] hub_event+0x1e39/0x44d0 drivers/usb/core/hub.c:5742 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 process_scheduled_works kernel/workqueue.c:2370 [inline] worker_thread+0x833/0x1110 kernel/workqueue.c:2456 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88801e9e3000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 48 bytes inside of 168-byte region [ffff88801e9e3000, ffff88801e9e30a8) The buggy address belongs to the page: page:ffffea00007a78c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e9e3 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00007bf6c0 dead000000000006 ffff888010dd3a00 raw: 0000000000000000 0000000080110011 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 3654, ts 150861409868, free_ts 150861109901 prep_new_page mm/page_alloc.c:2434 [inline] get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4165 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5389 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2271 alloc_slab_page mm/slub.c:1799 [inline] allocate_slab mm/slub.c:1944 [inline] new_slab+0x28a/0x3b0 mm/slub.c:2004 ___slab_alloc+0x87c/0xe90 mm/slub.c:3018 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3105 slab_alloc_node mm/slub.c:3196 [inline] slab_alloc mm/slub.c:3238 [inline] kmem_cache_alloc+0x35c/0x3a0 mm/slub.c:3243 kmem_cache_zalloc include/linux/slab.h:705 [inline] __kernfs_new_node+0xd4/0x8b0 fs/kernfs/dir.c:585 kernfs_new_node+0x93/0x120 fs/kernfs/dir.c:647 __kernfs_create_file+0x51/0x350 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x20f/0x3f0 fs/sysfs/file.c:294 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x322/0xb10 fs/sysfs/group.c:148 netdev_queue_add_kobject net/core/net-sysfs.c:1659 [inline] netdev_queue_update_kobjects+0x3aa/0x4e0 net/core/net-sysfs.c:1705 register_queue_kobjects net/core/net-sysfs.c:1766 [inline] netdev_register_kobject+0x35a/0x430 net/core/net-sysfs.c:2012 register_netdevice+0xd31/0x1500 net/core/dev.c:9667 veth_newlink+0x59c/0xa90 drivers/net/veth.c:1722 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1352 [inline] free_pcp_prepare+0x374/0x870 mm/page_alloc.c:1404 free_unref_page_prepare mm/page_alloc.c:3325 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3404 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x6d/0x160 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:260 [inline] slab_post_alloc_hook mm/slab.h:732 [inline] slab_alloc_node mm/slub.c:3230 [inline] slab_alloc mm/slub.c:3238 [inline] kmem_cache_alloc_trace+0x1e9/0x2c0 mm/slub.c:3255 kmalloc include/linux/slab.h:581 [inline] kzalloc include/linux/slab.h:715 [inline] ref_tracker_alloc+0x10a/0x460 lib/ref_tracker.c:77 netdev_tracker_alloc include/linux/netdevice.h:3859 [inline] dev_hold_track include/linux/netdevice.h:3876 [inline] dev_hold_track include/linux/netdevice.h:3871 [inline] netdev_queue_add_kobject net/core/net-sysfs.c:1650 [inline] netdev_queue_update_kobjects+0x1a7/0x4e0 net/core/net-sysfs.c:1705 register_queue_kobjects net/core/net-sysfs.c:1766 [inline] netdev_register_kobject+0x35a/0x430 net/core/net-sysfs.c:2012 register_netdevice+0xd31/0x1500 net/core/dev.c:9667 veth_newlink+0x59c/0xa90 drivers/net/veth.c:1722 __rtnl_newlink+0x106e/0x1750 net/core/rtnetlink.c:3479 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5592 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343 Memory state around the buggy address: ffff88801e9e2f00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff88801e9e2f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801e9e3000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801e9e3080: fb fb fb fb fb fc fc fc fc fc fc fc fc fb fb fb ffff88801e9e3100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================