numa_remove_cpu cpu 1 node 0: mask now 0,2-3 numa_remove_cpu cpu 1 node 1: mask now 0,2-3 ================================================================== 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 ffff88806cfa99a8 by task migration/1/28 CPU: 1 UID: 0 PID: 28 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 12: 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_node_track_caller_noprof+0x33d/0x870 mm/slub.c:5545 kmalloc_reserve+0xe8/0x350 net/core/skbuff.c:637 pskb_expand_head+0x249/0x10e0 net/core/skbuff.c:2315 __skb_cow include/linux/skbuff.h:3904 [inline] skb_cow_head include/linux/skbuff.h:3938 [inline] batadv_skb_head_push+0xec/0x280 net/batman-adv/mesh-interface.c:78 batadv_send_skb_packet+0xe9/0x6e0 net/batman-adv/send.c:81 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:466 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:491 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x6a2/0x7d0 net/batman-adv/bat_iv_ogm.c:1912 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 Freed by task 12: 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 skb_kfree_head net/core/skbuff.c:1083 [inline] skb_free_head+0xb9/0x160 net/core/skbuff.c:1095 skb_release_data+0x6c5/0x8e0 net/core/skbuff.c:1122 skb_release_all net/core/skbuff.c:1197 [inline] __kfree_skb net/core/skbuff.c:1211 [inline] sk_skb_reason_drop+0x102/0x1b0 net/core/skbuff.c:1250 kfree_skb_reason include/linux/skbuff.h:1323 [inline] __netif_receive_skb_core.constprop.0+0x571/0x3530 net/core/dev.c:6238 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6262 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6377 process_backlog+0x487/0x1600 net/core/dev.c:6728 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:8007 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 do_softirq kernel/softirq.c:546 [inline] do_softirq+0xaf/0xf0 kernel/softirq.c:533 __local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:923 [inline] __dev_queue_xmit+0xa27/0x4970 net/core/dev.c:4961 dev_queue_xmit include/linux/netdevice.h:3461 [inline] batadv_send_skb_packet+0x53a/0x6e0 net/batman-adv/send.c:100 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:466 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:491 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x6a2/0x7d0 net/batman-adv/bat_iv_ogm.c:1912 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 The buggy address belongs to the object at ffff88806cfa9800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 424 bytes inside of freed 1024-byte region [ffff88806cfa9800, ffff88806cfa9c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806cfab800 pfn:0x6cfa8 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 ffffea00013bf810 ffffea000131a610 raw: ffff88806cfab800 0000000000100009 00000000f5000000 0000000000000000 head: 04fff00000000240 ffff88801c042dc0 ffffea00013bf810 ffffea000131a610 head: ffff88806cfab800 0000000000100009 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 1076, tgid 1076 (kworker/u33:8), ts 41486551917 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_rx_mgmt_probe_beacon net/mac80211/ibss.c:1542 [inline] ieee80211_ibss_rx_queued_mgmt+0xc96/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 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 page last free pid 5746 tgid 5746 ts 41477966168 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] tomoyo_realpath_from_path+0xb6/0x690 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x2af/0x3c0 security/tomoyo/file.c:776 tomoyo_file_open+0x6b/0x90 security/tomoyo/tomoyo.c:334 security_file_open+0xb5/0x1e0 security/security.c:2739 do_dentry_open+0x588/0x14d0 fs/open.c:973 vfs_open+0x82/0x3f0 fs/open.c:1101 do_open fs/namei.c:4837 [inline] path_openat+0x19fa/0x2440 fs/namei.c:5000 do_file_open+0x20e/0x430 fs/namei.c:5029 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x121/0x770 arch/x86/entry/syscall_64.c:84 Memory state around the buggy address: ffff88806cfa9880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806cfa9900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806cfa9980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806cfa9a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806cfa9a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================