IPVS: starting estimator thread 0... ================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_add_virtual_monitor+0xa94/0xb30 net/mac80211/iface.c:1255 Read of size 1 at addr ffff888034263d50 by task kworker/2:0/24 CPU: 2 UID: 0 PID: 24 Comm: kworker/2:0 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events rfkill_op_handler Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ieee80211_add_virtual_monitor+0xa94/0xb30 net/mac80211/iface.c:1255 ieee80211_do_stop+0x1de1/0x2520 net/mac80211/iface.c:746 ieee80211_stop+0x169/0x320 net/mac80211/iface.c:828 __dev_close_many+0x29b/0x700 net/core/dev.c:1756 netif_close_many+0x233/0x630 net/core/dev.c:1781 netif_close net/core/dev.c:1798 [inline] netif_close+0x17f/0x230 net/core/dev.c:1792 dev_close+0xaa/0x240 net/core/dev_api.c:220 cfg80211_shutdown_all_interfaces+0x9a/0x1f0 net/wireless/core.c:280 cfg80211_rfkill_set_block net/wireless/core.c:310 [inline] cfg80211_rfkill_set_block+0x35/0x50 net/wireless/core.c:302 rfkill_set_block+0x1fe/0x550 net/rfkill/core.c:346 rfkill_epo+0x8e/0x1d0 net/rfkill/core.c:466 __rfkill_handle_global_op net/rfkill/input.c:60 [inline] rfkill_op_handler+0x25c/0x270 net/rfkill/input.c:108 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888034263a80 pfn:0x34260 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f8(unknown) raw: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000 raw: ffff888034263a80 0000000000000000 00000000f8000000 0000000000000000 head: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000 head: ffff888034263a80 0000000000000000 00000000f8000000 0000000000000000 head: 00fff00000000002 ffffea0000d09801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP), pid 5948, tgid 5948 (syz-executor), ts 64880757051, free_ts 64870832654 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 ___kmalloc_large_node+0x10c/0x150 mm/slub.c:5598 __kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:5629 __do_kmalloc_node mm/slub.c:5645 [inline] __kvmalloc_node_noprof.cold+0xf/0x8e mm/slub.c:7136 alloc_netdev_mqs+0xd7/0x1550 net/core/dev.c:11997 ieee80211_if_add+0x18a/0x1a10 net/mac80211/iface.c:2227 ieee80211_register_hw+0x3964/0x4160 net/mac80211/main.c:1607 mac80211_hwsim_new_radio+0x3323/0x5150 drivers/net/wireless/virtual/mac80211_hwsim.c:5810 hwsim_new_radio_nl+0xba2/0x1330 drivers/net/wireless/virtual/mac80211_hwsim.c:6504 genl_family_rcv_msg_doit+0x209/0x2f0 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x55c/0x800 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x158/0x420 net/netlink/af_netlink.c:2550 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 page last free pid 5942 tgid 5942 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x130/0x170 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4c/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:349 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x25e/0x770 mm/slub.c:5270 getname_flags.part.0+0x4c/0x550 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:345 getname include/linux/fs.h:2498 [inline] do_sys_openat2+0xb9/0x290 fs/open.c:1426 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888034263c00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff888034263c80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff888034263d00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff888034263d80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff888034263e00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================