================================================================== BUG: KASAN: slab-out-of-bounds in irq_can_move_pcntxt kernel/irq/internals.h:328 [inline] BUG: KASAN: slab-out-of-bounds in migrate_one_irq kernel/irq/cpuhotplug.c:57 [inline] BUG: KASAN: slab-out-of-bounds in irq_migrate_all_off_this_cpu+0xaaf/0xc30 kernel/irq/cpuhotplug.c:181 Read of size 8 at addr ffff88806bd8e9a8 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 10826: 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:5337 [inline] __kmalloc_noprof+0x324/0x820 mm/slub.c:5362 _kmalloc_noprof include/linux/slab.h:992 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] hash_netiface4_add+0x276f/0x2f70 net/netfilter/ipset/ip_set_hash_gen.h:1036 hash_netiface4_uadt+0x72e/0xbf0 net/netfilter/ipset/ip_set_hash_netiface.c:270 call_ad.isra.0+0x171/0x950 net/netfilter/ipset/ip_set_core.c:1771 ip_set_ad.isra.0+0x3f1/0x8b0 net/netfilter/ipset/ip_set_core.c:1861 nfnetlink_rcv_msg+0x9d5/0x11e0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556 nfnetlink_rcv+0x1b3/0x440 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2713 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2767 __sys_sendmsg+0x160/0x210 net/socket.c:2799 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x13a/0x8b0 arch/x86/entry/syscall_32.c:291 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:316 entry_SYSENTER_compat_after_hwframe+0x84/0x8e The buggy address belongs to the object at ffff88806bd8e900 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 24 bytes to the right of allocated 144-byte region [ffff88806bd8e900, ffff88806bd8e990) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6bd8e flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88801c0423c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 10826, tgid 10824 (syz.4.1110), ts 293523077180 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:3267 [inline] allocate_slab mm/slub.c:3382 [inline] new_slab+0xa5/0x640 mm/slub.c:3428 refill_objects+0xe3/0x410 mm/slub.c:7305 refill_sheaf mm/slub.c:2805 [inline] __pcs_replace_empty_main+0x372/0x680 mm/slub.c:4677 alloc_from_pcs mm/slub.c:4775 [inline] slab_alloc_node mm/slub.c:4907 [inline] __do_kmalloc_node mm/slub.c:5336 [inline] __kmalloc_noprof+0x66b/0x820 mm/slub.c:5362 _kmalloc_noprof include/linux/slab.h:992 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] hash_netiface4_add+0x276f/0x2f70 net/netfilter/ipset/ip_set_hash_gen.h:1036 hash_netiface4_uadt+0x72e/0xbf0 net/netfilter/ipset/ip_set_hash_netiface.c:270 call_ad.isra.0+0x171/0x950 net/netfilter/ipset/ip_set_core.c:1771 ip_set_ad.isra.0+0x3f1/0x8b0 net/netfilter/ipset/ip_set_core.c:1861 nfnetlink_rcv_msg+0x9d5/0x11e0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556 nfnetlink_rcv+0x1b3/0x440 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1900 page last free pid 10622 tgid 10621 ts 287022666680 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_unref_folios+0xa4a/0x1790 mm/page_alloc.c:3022 folios_put_refs+0x585/0xaa0 mm/folio.c:1055 folio_batch_release include/linux/folio_batch.h:101 [inline] shmem_undo_range+0x5e5/0x1570 mm/shmem.c:1160 shmem_truncate_range mm/shmem.c:1288 [inline] shmem_evict_inode+0x3b1/0xca0 mm/shmem.c:1419 evict+0x3c2/0xad0 fs/inode.c:822 iput_final fs/inode.c:2015 [inline] iput.part.0+0x989/0x1050 fs/inode.c:2064 iput+0x35/0x40 fs/inode.c:2030 dentry_unlink_inode+0x284/0x470 fs/dcache.c:479 dentry_kill+0x25d/0xc20 fs/dcache.c:826 finish_dput fs/dcache.c:1001 [inline] dput.part.0+0xd7/0x240 fs/dcache.c:1042 dput+0x1f/0x30 fs/dcache.c:1037 __fput+0x519/0xb50 fs/file_table.c:520 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] __do_fast_syscall_32+0x59f/0x8b0 arch/x86/entry/syscall_32.c:294 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:316 Memory state around the buggy address: ffff88806bd8e880: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806bd8e900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806bd8e980: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806bd8ea00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806bd8ea80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================