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: slab-out-of-bounds in __list_add_valid+0x36/0xc0 lib/list_debug.c:23 Read of size 8 at addr ffff88817d009588 by task syz-executor.4/22666 CPU: 1 PID: 22666 Comm: syz-executor.4 Not tainted 5.4.57-syzkaller-00030-g99256a8c206b #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+0x14a/0x1ce lib/dump_stack.c:118 print_address_description+0x93/0x620 mm/kasan/report.c:374 __kasan_report+0x16d/0x1e0 mm/kasan/report.c:506 kasan_report+0x36/0x60 mm/kasan/common.c:634 __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+0x48d/0xb30 drivers/base/firmware_loader/fallback.c:654 _request_firmware+0xe82/0x1360 drivers/base/firmware_loader/main.c:783 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:826 reg_reload_regdb+0xa6/0x220 net/wireless/reg.c:1083 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0xeef/0x13c0 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+0x8ad/0xa50 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] ____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298 ___sys_sendmsg net/socket.c:2352 [inline] __sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ce69 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f065ec08c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029e80 RCX: 000000000045ce69 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000007 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007fff0154a7af R14: 00007f065ec099c0 R15: 000000000118bf2c Allocated by task 2312: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x12c/0x1c0 mm/kasan/common.c:510 kmem_cache_alloc_trace+0xc3/0x280 mm/slub.c:2820 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:690 [inline] alloc_pipe_info+0xa1/0x3a0 fs/pipe.c:659 get_pipe_inode fs/pipe.c:738 [inline] create_pipe_files+0x85/0x620 fs/pipe.c:770 __do_pipe_flags+0x46/0x200 fs/pipe.c:807 do_pipe2+0xee/0x350 fs/pipe.c:855 __do_sys_pipe fs/pipe.c:878 [inline] __se_sys_pipe fs/pipe.c:876 [inline] __x64_sys_pipe+0x36/0x40 fs/pipe.c:876 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 508: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x181/0x230 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kfree+0x12b/0x600 mm/slub.c:4002 __free_fw_priv drivers/base/firmware_loader/main.c:259 [inline] kref_put include/linux/kref.h:65 [inline] free_fw_priv drivers/base/firmware_loader/main.c:266 [inline] firmware_free_data drivers/base/firmware_loader/main.c:541 [inline] release_firmware+0x45f/0x4a0 drivers/base/firmware_loader/main.c:949 _request_firmware+0x181/0x1360 drivers/base/firmware_loader/main.c:790 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:826 reg_reload_regdb+0xa6/0x220 net/wireless/reg.c:1083 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0xeef/0x13c0 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+0x8ad/0xa50 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] ____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298 ___sys_sendmsg net/socket.c:2352 [inline] __sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88817d009500 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 136 bytes inside of 192-byte region [ffff88817d009500, ffff88817d0095c0) The buggy address belongs to the page: page:ffffea0005f40240 refcount:1 mapcount:0 mapping:ffff8881da802a00 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881da802a00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88817d009480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88817d009500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88817d009580: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88817d009600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88817d009680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ================================================================== list_add corruption. next->prev should be prev (ffffffff84cb6c40), but was 0000000000000000. (next=ffff88817d009580). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 22666 Comm: syz-executor.4 Tainted: G B 5.4.57-syzkaller-00030-g99256a8c206b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: 7e ce 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 82 b6 2e ff 0f 0b 48 c7 c7 c9 cd 98 84 4c 89 e6 4c 89 f1 31 c0 e8 6c b6 2e ff <0f> 0b 48 c7 c7 2c ce 98 84 4c 89 f6 4c 89 e1 31 c0 e8 56 b6 2e ff RSP: 0018:ffff88818537f2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88817d009588 RCX: 4ac0f55653dd4500 RDX: ffffc90003357000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88817d009580 R08: ffffffff812bed0e R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6c40 R13: dffffc0000000000 R14: ffff88817d009580 R15: ffff88819bf6d880 FS: 00007f065ec09700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31e21000 CR3: 0000000187944002 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __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+0x48d/0xb30 drivers/base/firmware_loader/fallback.c:654 _request_firmware+0xe82/0x1360 drivers/base/firmware_loader/main.c:783 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:826 reg_reload_regdb+0xa6/0x220 net/wireless/reg.c:1083 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0xeef/0x13c0 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+0x8ad/0xa50 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] ____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298 ___sys_sendmsg net/socket.c:2352 [inline] __sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ce69 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f065ec08c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029e80 RCX: 000000000045ce69 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000007 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007fff0154a7af R14: 00007f065ec099c0 R15: 000000000118bf2c Modules linked in: ---[ end trace bd75343ab78f623c ]--- RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: 7e ce 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 82 b6 2e ff 0f 0b 48 c7 c7 c9 cd 98 84 4c 89 e6 4c 89 f1 31 c0 e8 6c b6 2e ff <0f> 0b 48 c7 c7 2c ce 98 84 4c 89 f6 4c 89 e1 31 c0 e8 56 b6 2e ff RSP: 0018:ffff88818537f2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88817d009588 RCX: 4ac0f55653dd4500 RDX: ffffc90003357000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88817d009580 R08: ffffffff812bed0e R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6c40 R13: dffffc0000000000 R14: ffff88817d009580 R15: ffff88819bf6d880 FS: 00007f065ec09700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc26252f1b0 CR3: 0000000187944002 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600