platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
==================================================================
BUG: KASAN: use-after-free in __list_add_valid+0x36/0xc0 lib/list_debug.c:23
Read of size 8 at addr ffff8881ef6e2088 by task syz-executor.3/2947

CPU: 1 PID: 2947 Comm: syz-executor.3 Tainted: G        W         5.4.125-syzkaller-00028-g73e6d86c30ee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d8/0x24e lib/dump_stack.c:118
 print_address_description+0x9b/0x650 mm/kasan/report.c:384
 __kasan_report+0x182/0x260 mm/kasan/report.c:516
 kasan_report+0x30/0x60 mm/kasan/common.c:653
 __list_add_valid+0x36/0xc0 lib/list_debug.c:23
 __list_add include/linux/list.h:60 [inline]
 list_add include/linux/list.h:79 [inline]
 fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:515 [inline]
 fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:580 [inline]
 firmware_fallback_sysfs+0x480/0xb20 drivers/base/firmware_loader/fallback.c:654
 _request_firmware+0x1287/0x1770 drivers/base/firmware_loader/main.c:788
 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:831
 reg_reload_regdb+0xa0/0x220 net/wireless/reg.c:1083
 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
 genl_rcv_msg+0xed8/0x13b0 net/netlink/genetlink.c:654
 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x865/0x9f0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x9ab/0xd40 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x583/0x8c0 net/socket.c:2298
 ___sys_sendmsg net/socket.c:2352 [inline]
 __sys_sendmsg+0x2c4/0x3b0 net/socket.c:2398
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f3dfe08ca39
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3dfbe03188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3dfe18ff60 RCX: 00007f3dfe08ca39
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 00007f3dfe0e6c5f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff80a5186f R14: 00007f3dfbe03300 R15: 0000000000022000

Allocated by task 2905:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 __kasan_kmalloc+0x137/0x1e0 mm/kasan/common.c:529
 kmem_cache_alloc_trace+0x139/0x2b0 mm/slub.c:2848
 kmalloc include/linux/slab.h:556 [inline]
 kzalloc include/linux/slab.h:690 [inline]
 __allocate_fw_priv drivers/base/firmware_loader/main.c:174 [inline]
 alloc_lookup_fw_priv drivers/base/firmware_loader/main.c:229 [inline]
 _request_firmware_prepare drivers/base/firmware_loader/main.c:710 [inline]
 _request_firmware+0x524/0x1770 drivers/base/firmware_loader/main.c:771
 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:831
 reg_reload_regdb+0xa0/0x220 net/wireless/reg.c:1083
 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
 genl_rcv_msg+0xed8/0x13b0 net/netlink/genetlink.c:654
 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x865/0x9f0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x9ab/0xd40 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x583/0x8c0 net/socket.c:2298
 ___sys_sendmsg net/socket.c:2352 [inline]
 __sys_sendmsg+0x2c4/0x3b0 net/socket.c:2398
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Freed by task 2905:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 kasan_set_free_info mm/kasan/common.c:345 [inline]
 __kasan_slab_free+0x18a/0x240 mm/kasan/common.c:487
 slab_free_hook mm/slub.c:1454 [inline]
 slab_free_freelist_hook+0x7b/0x150 mm/slub.c:1492
 slab_free mm/slub.c:3072 [inline]
 kfree+0xe0/0x660 mm/slub.c:4061
 __free_fw_priv drivers/base/firmware_loader/main.c:261 [inline]
 kref_put include/linux/kref.h:65 [inline]
 free_fw_priv drivers/base/firmware_loader/main.c:268 [inline]
 firmware_free_data drivers/base/firmware_loader/main.c:546 [inline]
 release_firmware+0x47f/0x4d0 drivers/base/firmware_loader/main.c:954
 _request_firmware+0x145a/0x1770 drivers/base/firmware_loader/main.c:795
 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:831
 reg_reload_regdb+0xa0/0x220 net/wireless/reg.c:1083
 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline]
 genl_rcv_msg+0xed8/0x13b0 net/netlink/genetlink.c:654
 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x865/0x9f0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x9ab/0xd40 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 ____sys_sendmsg+0x583/0x8c0 net/socket.c:2298
 ___sys_sendmsg net/socket.c:2352 [inline]
 __sys_sendmsg+0x2c4/0x3b0 net/socket.c:2398
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

The buggy address belongs to the object at ffff8881ef6e2000
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 136 bytes inside of
 192-byte region [ffff8881ef6e2000, ffff8881ef6e20c0)
The buggy address belongs to the page:
page:ffffea0007bdb880 refcount:1 mapcount:0 mapping:ffff8881f5c02a00 index:0x0
flags: 0x8000000000000200(slab)
raw: 8000000000000200 ffffea0007973280 0000000300000003 ffff8881f5c02a00
raw: 0000000000000000 0000000000100010 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)
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook mm/page_alloc.c:2165 [inline]
 prep_new_page+0x19a/0x380 mm/page_alloc.c:2171
 get_page_from_freelist+0x550/0x8b0 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x3a2/0x880 mm/page_alloc.c:4855
 alloc_slab_page+0x39/0x3e0 mm/slub.c:342
 allocate_slab mm/slub.c:1675 [inline]
 new_slab+0x97/0x460 mm/slub.c:1741
 new_slab_objects mm/slub.c:2498 [inline]
 ___slab_alloc+0x330/0x4c0 mm/slub.c:2659
 __slab_alloc mm/slub.c:2699 [inline]
 slab_alloc_node mm/slub.c:2784 [inline]
 slab_alloc mm/slub.c:2829 [inline]
 kmem_cache_alloc_trace+0x199/0x2b0 mm/slub.c:2846
 kmalloc include/linux/slab.h:556 [inline]
 kzalloc include/linux/slab.h:690 [inline]
 kernfs_fop_open+0x321/0xad0 fs/kernfs/file.c:647
 do_dentry_open+0x949/0x1100 fs/open.c:796
 do_last fs/namei.c:3495 [inline]
 path_openat+0x1127/0x3da0 fs/namei.c:3612
 do_filp_open+0x208/0x450 fs/namei.c:3642
 do_sys_open+0x383/0x7c0 fs/open.c:1113
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1176 [inline]
 free_pcp_prepare+0x1a9/0x270 mm/page_alloc.c:1233
 free_unref_page_prepare mm/page_alloc.c:3085 [inline]
 free_unref_page mm/page_alloc.c:3134 [inline]
 free_the_page mm/page_alloc.c:4915 [inline]
 __free_pages+0x9c/0x250 mm/page_alloc.c:4923
 __free_slab+0x237/0x2f0 mm/slub.c:1766
 free_slab mm/slub.c:1781 [inline]
 discard_slab mm/slub.c:1787 [inline]
 unfreeze_partials+0x14f/0x180 mm/slub.c:2279
 put_cpu_partial+0xb5/0x150 mm/slub.c:2315
 __slab_free mm/slub.c:2963 [inline]
 do_slab_free mm/slub.c:3060 [inline]
 ___cache_free+0x352/0x4e0 mm/slub.c:3079
 qlist_free_all mm/kasan/quarantine.c:167 [inline]
 quarantine_reduce+0x17a/0x1e0 mm/kasan/quarantine.c:260
 __kasan_kmalloc+0x43/0x1e0 mm/kasan/common.c:507
 slab_post_alloc_hook mm/slab.h:584 [inline]
 slab_alloc_node mm/slub.c:2821 [inline]
 slab_alloc mm/slub.c:2829 [inline]
 kmem_cache_alloc+0x115/0x290 mm/slub.c:2834
 getname_flags+0xba/0x640 fs/namei.c:141
 user_path_at_empty+0x28/0x50 fs/namei.c:2683
 user_path_at include/linux/namei.h:49 [inline]
 vfs_statx+0x11e/0x210 fs/stat.c:187
 vfs_fstatat include/linux/fs.h:3367 [inline]
 __do_sys_newfstatat fs/stat.c:368 [inline]
 __se_sys_newfstatat+0xce/0x770 fs/stat.c:362
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Memory state around the buggy address:
 ffff8881ef6e1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881ef6e2000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881ef6e2080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                      ^
 ffff8881ef6e2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881ef6e2180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================