usb 2-1: Direct firmware load for ueagle-atm/eagleII.fw failed with error -2 usb 2-1: Falling back to sysfs fallback for: ueagle-atm/eagleII.fw ================================================================== BUG: KASAN: slab-use-after-free in kernfs_root fs/kernfs/kernfs-internal.h:68 [inline] BUG: KASAN: slab-use-after-free in kernfs_add_one+0x43a/0x8a0 fs/kernfs/dir.c:791 Read of size 8 at addr ffff8880880bb030 by task kworker/1:0/25227 CPU: 1 PID: 25227 Comm: kworker/1:0 Not tainted 6.4.0-rc6-syzkaller-00006-gfd37b884003c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: events request_firmware_work_func Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 kernfs_root fs/kernfs/kernfs-internal.h:68 [inline] kernfs_add_one+0x43a/0x8a0 fs/kernfs/dir.c:791 __kernfs_create_file+0x23a/0x2e0 fs/kernfs/file.c:1076 sysfs_add_file_mode_ns+0x24a/0x300 fs/sysfs/file.c:294 sysfs_merge_group+0x1fd/0x450 fs/sysfs/group.c:342 dpm_sysfs_add+0xd3/0x280 drivers/base/power/sysfs.c:707 device_add+0x777/0xf60 drivers/base/core.c:3585 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:82 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:158 [inline] firmware_fallback_sysfs+0x301/0x950 drivers/base/firmware_loader/fallback.c:234 _request_firmware+0xc97/0x1280 drivers/base/firmware_loader/main.c:909 request_firmware_work_func+0x12a/0x270 drivers/base/firmware_loader/main.c:1160 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Allocated by task 25227: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:711 slab_alloc_node mm/slub.c:3451 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc+0x11f/0x2e0 mm/slub.c:3475 kmem_cache_zalloc include/linux/slab.h:670 [inline] __kernfs_new_node+0xdf/0x740 fs/kernfs/dir.c:611 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:673 __kernfs_create_file+0x49/0x2e0 fs/kernfs/file.c:1047 sysfs_add_file_mode_ns+0x24a/0x300 fs/sysfs/file.c:294 sysfs_merge_group+0x1fd/0x450 fs/sysfs/group.c:342 dpm_sysfs_add+0xd3/0x280 drivers/base/power/sysfs.c:707 device_add+0x777/0xf60 drivers/base/core.c:3585 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:82 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:158 [inline] firmware_fallback_sysfs+0x301/0x950 drivers/base/firmware_loader/fallback.c:234 _request_firmware+0xc97/0x1280 drivers/base/firmware_loader/main.c:909 request_firmware_work_func+0x12a/0x270 drivers/base/firmware_loader/main.c:1160 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Freed by task 28272: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3786 [inline] kmem_cache_free+0x297/0x520 mm/slub.c:3808 kernfs_put+0x2a2/0x420 fs/kernfs/dir.c:565 __kernfs_remove+0x6eb/0x800 fs/kernfs/dir.c:1481 kernfs_remove+0x7a/0xa0 fs/kernfs/dir.c:1501 __kobject_del+0xe2/0x310 lib/kobject.c:598 kobject_del+0x45/0x60 lib/kobject.c:621 device_del+0x7e3/0x9c0 drivers/base/core.c:3823 usb_disconnect+0x593/0x8d0 drivers/usb/core/hub.c:2264 hub_port_connect drivers/usb/core/hub.c:5246 [inline] hub_port_connect_change drivers/usb/core/hub.c:5551 [inline] port_event drivers/usb/core/hub.c:5711 [inline] hub_event+0x1f36/0x5460 drivers/usb/core/hub.c:5793 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 process_scheduled_works kernel/workqueue.c:2468 [inline] worker_thread+0xd20/0x1210 kernel/workqueue.c:2554 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff8880880bb000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 48 bytes inside of freed 168-byte region [ffff8880880bb000, ffff8880880bb0a8) The buggy address belongs to the physical page: page:ffffea0002202ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880bb flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff88801565e000 dead000000000122 0000000000000000 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 25227, tgid 25227 (kworker/1:0), ts 1812236718845, free_ts 1812223030147 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x321c/0x33a0 mm/page_alloc.c:3502 __alloc_pages+0x255/0x670 mm/page_alloc.c:4768 alloc_slab_page+0x6a/0x160 mm/slub.c:1851 allocate_slab mm/slub.c:1998 [inline] new_slab+0x84/0x2f0 mm/slub.c:2051 ___slab_alloc+0xa85/0x10a0 mm/slub.c:3192 __slab_alloc mm/slub.c:3291 [inline] __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc+0x1b9/0x2e0 mm/slub.c:3475 kmem_cache_zalloc include/linux/slab.h:670 [inline] __kernfs_new_node+0xdf/0x740 fs/kernfs/dir.c:611 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:673 __kernfs_create_file+0x49/0x2e0 fs/kernfs/file.c:1047 sysfs_add_file_mode_ns+0x24a/0x300 fs/sysfs/file.c:294 sysfs_merge_group+0x1fd/0x450 fs/sysfs/group.c:342 dpm_sysfs_add+0xd3/0x280 drivers/base/power/sysfs.c:707 device_add+0x777/0xf60 drivers/base/core.c:3585 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:82 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:158 [inline] firmware_fallback_sysfs+0x301/0x950 drivers/base/firmware_loader/fallback.c:234 _request_firmware+0xc97/0x1280 drivers/base/firmware_loader/main.c:909 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2564 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2659 skb_free_frag include/linux/skbuff.h:3239 [inline] skb_free_head net/core/skbuff.c:916 [inline] skb_release_data+0x6a1/0x850 net/core/skbuff.c:948 skb_release_all net/core/skbuff.c:1014 [inline] __kfree_skb+0x57/0x70 net/core/skbuff.c:1028 tcp_data_queue+0x1e8/0x6fd0 tcp_rcv_established+0xab7/0x1f80 net/ipv4/tcp_input.c:6019 tcp_v4_do_rcv+0x6bd/0xb50 net/ipv4/tcp_ipv4.c:1722 tcp_v4_rcv+0x297e/0x3280 net/ipv4/tcp_ipv4.c:2144 ip_protocol_deliver_rcu+0x5a3/0xd20 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x28e/0x4c0 net/ipv4/ip_input.c:233 NF_HOOK+0x368/0x410 include/linux/netfilter.h:303 dst_input include/net/dst.h:468 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:630 [inline] ip_sublist_rcv+0xa95/0xde0 net/ipv4/ip_input.c:638 ip_list_rcv+0x426/0x470 net/ipv4/ip_input.c:673 __netif_receive_skb_list_ptype net/core/dev.c:5536 [inline] __netif_receive_skb_list_core+0x6b5/0x890 net/core/dev.c:5584 __netif_receive_skb_list net/core/dev.c:5636 [inline] netif_receive_skb_list_internal+0x9f9/0xe00 net/core/dev.c:5727 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x310/0x8e0 net/core/dev.c:6067 Memory state around the buggy address: ffff8880880baf00: 00 fc fc 00 00 00 00 00 fc fc fb fb fb fb fb fc ffff8880880baf80: fc fb fb fb fb fb fc fc 00 00 00 00 00 fc fc fc >ffff8880880bb000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880880bb080: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ffff8880880bb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================