================================================================== BUG: KASAN: slab-use-after-free in irq_can_move_pcntxt kernel/irq/internals.h:328 [inline] BUG: KASAN: slab-use-after-free in migrate_one_irq kernel/irq/cpuhotplug.c:57 [inline] BUG: KASAN: slab-use-after-free in irq_migrate_all_off_this_cpu+0xaaf/0xc30 kernel/irq/cpuhotplug.c:181 Read of size 8 at addr ffff88804c9791a8 by task migration/1/27 CPU: 1 UID: 0 PID: 27 Comm: migration/1 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 04/01/2014 Stopper: multi_cpu_stop+0x0/0x4b0 kernel/stop_machine.c:199 <- __stop_cpus.constprop.0+0xb1/0x140 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 irq_can_move_pcntxt kernel/irq/internals.h:328 [inline] migrate_one_irq kernel/irq/cpuhotplug.c:57 [inline] irq_migrate_all_off_this_cpu+0xaaf/0xc30 kernel/irq/cpuhotplug.c:181 fixup_irqs+0x2b/0x280 arch/x86/kernel/irq.c:474 cpu_disable_common arch/x86/kernel/smpboot.c:1371 [inline] native_cpu_disable+0x59/0x80 arch/x86/kernel/smpboot.c:1383 __cpu_disable arch/x86/include/asm/smp.h:73 [inline] take_cpu_down+0xb6/0x190 kernel/cpu.c:1282 multi_cpu_stop+0x16a/0x4b0 kernel/stop_machine.c:239 cpu_stopper_thread+0x21e/0x450 kernel/stop_machine.c:510 smpboot_thread_fn+0x3d3/0xab0 kernel/smpboot.c:160 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 23: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x32f/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ieee802_11_parse_elems_full+0x17c/0x3c90 net/mac80211/parse.c:1071 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2548 [inline] ieee80211_inform_bss+0x159/0x1170 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x898/0x1dc0 net/wireless/scan.c:2410 cfg80211_inform_bss_data+0x230/0x3c20 net/wireless/scan.c:3266 cfg80211_inform_bss_frame_data+0x245/0x7c0 net/wireless/scan.c:3358 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:230 ieee80211_scan_rx+0x4e6/0xb60 net/mac80211/scan.c:364 __ieee80211_rx_handle_packet+0xbab/0xfc0 net/mac80211/rx.c:5427 ieee80211_rx_list+0xf19/0x2160 net/mac80211/rx.c:5720 ieee80211_rx_napi+0xdc/0x400 net/mac80211/rx.c:5743 ieee80211_rx include/net/mac80211.h:5449 [inline] ieee80211_handle_queued_frames+0xc8/0x120 net/mac80211/main.c:452 tasklet_action_common+0x2de/0x3d0 kernel/softirq.c:970 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 run_ksoftirqd kernel/softirq.c:1108 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1100 smpboot_thread_fn+0x3d3/0xab0 kernel/smpboot.c:160 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 23: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x22b/0x6d0 mm/slub.c:6792 ieee80211_inform_bss+0x8f5/0x1170 net/mac80211/scan.c:164 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x898/0x1dc0 net/wireless/scan.c:2410 cfg80211_inform_bss_data+0x230/0x3c20 net/wireless/scan.c:3266 cfg80211_inform_bss_frame_data+0x245/0x7c0 net/wireless/scan.c:3358 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:230 ieee80211_scan_rx+0x4e6/0xb60 net/mac80211/scan.c:364 __ieee80211_rx_handle_packet+0xbab/0xfc0 net/mac80211/rx.c:5427 ieee80211_rx_list+0xf19/0x2160 net/mac80211/rx.c:5720 ieee80211_rx_napi+0xdc/0x400 net/mac80211/rx.c:5743 ieee80211_rx include/net/mac80211.h:5449 [inline] ieee80211_handle_queued_frames+0xc8/0x120 net/mac80211/main.c:452 tasklet_action_common+0x2de/0x3d0 kernel/softirq.c:970 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 run_ksoftirqd kernel/softirq.c:1108 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1100 smpboot_thread_fn+0x3d3/0xab0 kernel/smpboot.c:160 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88804c979000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 424 bytes inside of freed 1024-byte region [ffff88804c979000, ffff88804c979400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88804c97a800 pfn:0x4c978 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4fff00000000240(workingset|head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000240 ffff88801c042dc0 ffffea000180aa10 ffffea000182e610 raw: ffff88804c97a800 000000000010000b 00000000f5000000 0000000000000000 head: 04fff00000000240 ffff88801c042dc0 ffffea000180aa10 ffffea000182e610 head: ffff88804c97a800 000000000010000b 00000000f5000000 0000000000000000 head: 04fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1154, tgid 1154 (kworker/u33:7), ts 50486501311 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35b0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x67c/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ieee802_11_parse_elems_full+0x17c/0x3c90 net/mac80211/parse.c:1071 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2548 [inline] ieee80211_inform_bss+0x159/0x1170 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x898/0x1dc0 net/wireless/scan.c:2410 cfg80211_inform_bss_data+0x230/0x3c20 net/wireless/scan.c:3266 cfg80211_inform_bss_frame_data+0x245/0x7c0 net/wireless/scan.c:3358 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:230 ieee80211_rx_bss_info net/mac80211/ibss.c:1065 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1546 [inline] ieee80211_ibss_rx_queued_mgmt+0xe04/0x1c70 net/mac80211/ibss.c:1573 ieee80211_iface_process_skb net/mac80211/iface.c:1769 [inline] ieee80211_iface_work+0xa9a/0x1070 net/mac80211/iface.c:1823 cfg80211_wiphy_work+0x2b7/0x550 net/wireless/core.c:541 page last free pid 1342 tgid 1342 ts 50453867244 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1463 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7060 __free_contig_range mm/page_alloc.c:7105 [inline] free_pages_bulk+0x12a/0x200 mm/page_alloc.c:5322 vm_area_free_pages+0xad/0x2b0 mm/vmalloc.c:3462 vfree mm/vmalloc.c:3511 [inline] vfree+0x108/0x730 mm/vmalloc.c:3485 delayed_vfree_work+0x56/0x80 mm/vmalloc.c:3415 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3387 process_scheduled_works kernel/workqueue.c:3470 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3551 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88804c979080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804c979100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88804c979180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88804c979200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804c979280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================