warning: `syz-executor.2' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211 ================================================================== BUG: KASAN: slab-out-of-bounds in cfg80211_wext_freq+0x1f9/0x240 net/wireless/wext-compat.c:238 Read of size 2 at addr ffff88802b3d5940 by task syz-executor.2/5379 CPU: 0 PID: 5379 Comm: syz-executor.2 Not tainted 6.10.0-rc3-next-20240611-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:91 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:117 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 cfg80211_wext_freq+0x1f9/0x240 net/wireless/wext-compat.c:238 cfg80211_wext_siwscan+0x4fd/0x10d0 net/wireless/scan.c:3463 ioctl_standard_iw_point+0x788/0xcb0 net/wireless/wext-core.c:867 ioctl_standard_call+0xc7/0x290 net/wireless/wext-core.c:1052 wext_ioctl_dispatch+0x58e/0x640 net/wireless/wext-core.c:1016 wext_handle_ioctl+0x15f/0x270 net/wireless/wext-core.c:1077 sock_ioctl+0x17f/0x8e0 net/socket.c:1275 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff2c067cea9 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:00007ff2c14680c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff2c07b3f80 RCX: 00007ff2c067cea9 RDX: 0000000020000000 RSI: 0000000000008b18 RDI: 0000000000000003 RBP: 00007ff2c06ebff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff2c07b3f80 R15: 00007ffe85b22008 Allocated by task 5379: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4140 [inline] __kmalloc_noprof+0x1f9/0x400 mm/slub.c:4153 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ioctl_standard_iw_point+0x4ae/0xcb0 net/wireless/wext-core.c:828 ioctl_standard_call+0xc7/0x290 net/wireless/wext-core.c:1052 wext_ioctl_dispatch+0x58e/0x640 net/wireless/wext-core.c:1016 wext_handle_ioctl+0x15f/0x270 net/wireless/wext-core.c:1077 sock_ioctl+0x17f/0x8e0 net/socket.c:1275 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802b3d5800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 4 bytes to the right of allocated 316-byte region [ffff88802b3d5800, ffff88802b3d593c) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2b3d4 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015041c80 ffffea0000bba400 0000000000000003 raw: 0000000000000000 0000000080100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015041c80 ffffea0000bba400 0000000000000003 head: 0000000000000000 0000000080100010 00000001fdffffff 0000000000000000 head: 00fff00000000002 ffffea0000acf501 ffffffffffffffff 0000000000000000 head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5112, tgid 5112 (syz-executor.0), ts 79512269244, free_ts 79380673068 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1470 prep_new_page mm/page_alloc.c:1478 [inline] get_page_from_freelist+0x2cbd/0x2d70 mm/page_alloc.c:3457 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4715 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2283 allocate_slab+0x5a/0x2f0 mm/slub.c:2446 new_slab mm/slub.c:2499 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3685 __slab_alloc+0x58/0xa0 mm/slub.c:3775 __slab_alloc_node mm/slub.c:3828 [inline] slab_alloc_node mm/slub.c:4007 [inline] __kmalloc_cache_noprof+0x1d5/0x2c0 mm/slub.c:4166 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] mca_alloc net/ipv6/mcast.c:880 [inline] __ipv6_dev_mc_inc+0x426/0xa90 net/ipv6/mcast.c:936 ipv6_add_dev+0xe12/0x1220 net/ipv6/addrconf.c:471 addrconf_notify+0x6a7/0x1020 net/ipv6/addrconf.c:3652 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] register_netdevice+0x1570/0x19e0 net/core/dev.c:10408 veth_newlink+0x628/0xcd0 drivers/net/veth.c:1829 rtnl_newlink_create net/core/rtnetlink.c:3596 [inline] __rtnl_newlink net/core/rtnetlink.c:3816 [inline] rtnl_newlink+0x16c7/0x22b0 net/core/rtnetlink.c:3829 rtnetlink_rcv_msg+0x892/0x1170 net/core/rtnetlink.c:6727 page last free pid 5123 tgid 5123 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1089 [inline] free_unref_page+0xd22/0xea0 mm/page_alloc.c:2621 __slab_free+0x31b/0x3d0 mm/slub.c:4366 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3959 [inline] slab_alloc_node mm/slub.c:4019 [inline] kmem_cache_alloc_node_noprof+0x16b/0x320 mm/slub.c:4062 kmalloc_reserve+0xa8/0x2a0 net/core/skbuff.c:575 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:666 alloc_skb include/linux/skbuff.h:1314 [inline] alloc_uevent_skb+0x74/0x230 lib/kobject_uevent.c:289 uevent_net_broadcast_tagged lib/kobject_uevent.c:352 [inline] kobject_uevent_net_broadcast+0x182/0x580 lib/kobject_uevent.c:413 kobject_uevent_env+0x57d/0x8e0 lib/kobject_uevent.c:593 __kobject_del+0xd3/0x310 lib/kobject.c:601 kobject_cleanup lib/kobject.c:680 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x245/0x480 lib/kobject.c:737 netdev_queue_update_kobjects+0x556/0x5f0 net/core/net-sysfs.c:1854 netif_set_real_num_tx_queues+0x18a/0x900 net/core/dev.c:2940 veth_init_queues drivers/net/veth.c:1755 [inline] veth_newlink+0x915/0xcd0 drivers/net/veth.c:1872 Memory state around the buggy address: ffff88802b3d5800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802b3d5880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802b3d5900: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88802b3d5980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802b3d5a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================