IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready ================================================================== BUG: KASAN: slab-out-of-bounds in cfg80211_wext_freq+0x102/0x120 net/wireless/wext-compat.c:233 Read of size 2 at addr ffff8801eefdf040 by task syz-executor.3/4887 CPU: 1 PID: 4887 Comm: syz-executor.3 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 cfg80211_wext_freq+0x102/0x120 net/wireless/wext-compat.c:233 cfg80211_wext_siwscan+0x5ef/0xe80 net/wireless/scan.c:1452 ioctl_standard_iw_point+0x77d/0xbb0 net/wireless/wext-core.c:838 ioctl_standard_call+0x10c/0x150 net/wireless/wext-core.c:1022 wireless_process_ioctl.constprop.4+0x183/0x270 net/wireless/wext-core.c:953 wext_ioctl_dispatch net/wireless/wext-core.c:986 [inline] wext_ioctl_dispatch net/wireless/wext-core.c:974 [inline] wext_handle_ioctl+0xe9/0x170 net/wireless/wext-core.c:1047 sock_ioctl+0x28e/0x4f0 net/socket.c:1015 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x199/0xfd0 fs/ioctl.c:685 ksys_ioctl+0x62/0x90 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:707 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f0eafa2bee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0eaf5ae0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0eafb62f80 RCX: 00007f0eafa2bee9 RDX: 0000000020000000 RSI: 0000000000008b18 RDI: 0000000000000003 RBP: 00007f0eafa896fe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0eafb62f80 R15: 00007ffe7229c858 Allocated by task 4887: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 __kmalloc+0x139/0x260 mm/slub.c:3751 kmalloc include/linux/slab.h:518 [inline] kzalloc include/linux/slab.h:707 [inline] ioctl_standard_iw_point+0x604/0xbb0 net/wireless/wext-core.c:799 ioctl_standard_call+0x10c/0x150 net/wireless/wext-core.c:1022 wireless_process_ioctl.constprop.4+0x183/0x270 net/wireless/wext-core.c:953 wext_ioctl_dispatch net/wireless/wext-core.c:986 [inline] wext_ioctl_dispatch net/wireless/wext-core.c:974 [inline] wext_handle_ioctl+0xe9/0x170 net/wireless/wext-core.c:1047 sock_ioctl+0x28e/0x4f0 net/socket.c:1015 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x199/0xfd0 fs/ioctl.c:685 ksys_ioctl+0x62/0x90 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:707 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 3027: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x167/0x240 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 slab_free_hook mm/slub.c:1371 [inline] slab_free_freelist_hook mm/slub.c:1398 [inline] slab_free mm/slub.c:2953 [inline] kfree+0x10c/0x280 mm/slub.c:3906 skb_free_head+0x74/0x90 net/core/skbuff.c:550 skb_release_data+0x456/0x5d0 net/core/skbuff.c:570 skb_release_all+0x3d/0x50 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] consume_skb+0xaf/0x1d0 net/core/skbuff.c:701 skb_free_datagram+0x12/0xc0 net/core/datagram.c:329 netlink_recvmsg+0x5e6/0xe70 net/netlink/af_netlink.c:1987 sock_recvmsg_nosec net/socket.c:794 [inline] sock_recvmsg net/socket.c:801 [inline] sock_recvmsg+0xb9/0xf0 net/socket.c:797 ___sys_recvmsg+0x21c/0x530 net/socket.c:2278 __sys_recvmsg+0xd6/0x180 net/socket.c:2327 __do_sys_recvmsg net/socket.c:2337 [inline] __se_sys_recvmsg net/socket.c:2334 [inline] __x64_sys_recvmsg+0x73/0xb0 net/socket.c:2334 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8801eefdef00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 320 bytes inside of 512-byte region [ffff8801eefdef00, ffff8801eefdf100) The buggy address belongs to the page: page:ffffea0007bbf780 count:1 mapcount:0 mapping:ffff8801f6802c00 index:0x0 compound_mapcount: 0 flags: 0x200000000008100(slab|head) raw: 0200000000008100 0000000000000000 0000000b00000001 ffff8801f6802c00 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page allocated via order 1, migratetype Unmovable, gfp_mask 0x152c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:1906 [inline] prep_new_page mm/page_alloc.c:1914 [inline] get_page_from_freelist+0x2c01/0x4060 mm/page_alloc.c:3345 __alloc_pages_nodemask+0x390/0x2300 mm/page_alloc.c:4370 alloc_pages_current+0xfd/0x290 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:509 [inline] alloc_slab_page mm/slub.c:1438 [inline] allocate_slab mm/slub.c:1583 [inline] new_slab+0x458/0x7d0 mm/slub.c:1654 new_slab_objects mm/slub.c:2417 [inline] ___slab_alloc+0x600/0x890 mm/slub.c:2569 __slab_alloc+0x2f/0x60 mm/slub.c:2609 slab_alloc_node mm/slub.c:2672 [inline] __kmalloc_node_track_caller+0xd7/0x2f0 mm/slub.c:4320 __kmalloc_reserve.isra.8+0x2c/0xc0 net/core/skbuff.c:137 __alloc_skb+0xd7/0x580 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] alloc_uevent_skb+0x84/0x220 lib/kobject_uevent.c:288 uevent_net_broadcast_untagged lib/kobject_uevent.c:324 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:406 [inline] kobject_uevent_env+0x7b6/0x1080 lib/kobject_uevent.c:587 kobject_uevent+0xb/0x10 lib/kobject_uevent.c:636 driver_bound+0x18b/0x2e0 drivers/base/dd.c:348 device_bind_driver+0x8d/0xb0 drivers/base/dd.c:426 mac80211_hwsim_new_radio+0x396/0x3410 drivers/net/wireless/mac80211_hwsim.c:2687 hwsim_new_radio_nl+0x514/0x8e0 drivers/net/wireless/mac80211_hwsim.c:3374 Memory state around the buggy address: ffff8801eefdef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801eefdef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801eefdf000: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff8801eefdf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801eefdf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================