================================================================== BUG: KASAN: out-of-bounds in csd_lock_record+0xcb/0xe0 kernel/smp.c:118 Read of size 8 at addr ffffc900035e7ad0 by task syz-executor.1/31618 CPU: 1 PID: 31618 Comm: syz-executor.1 Not tainted 5.8.0-rc3-next-20200703-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 csd_lock_record+0xcb/0xe0 kernel/smp.c:118 flush_smp_call_function_queue+0x285/0x730 kernel/smp.c:391 __sysvec_call_function_single+0x98/0x490 arch/x86/kernel/smp.c:248 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] sysvec_call_function_single+0xe0/0x120 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:604 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline] RIP: 0010:seqcount_lockdep_reader_access include/linux/seqlock.h:99 [inline] RIP: 0010:read_seqcount_begin include/linux/seqlock.h:182 [inline] RIP: 0010:read_seqbegin include/linux/seqlock.h:466 [inline] RIP: 0010:zone_span_seqbegin include/linux/memory_hotplug.h:80 [inline] RIP: 0010:page_outside_zone_boundaries+0x105/0x310 mm/page_alloc.c:563 Code: cf ff 48 c7 c0 00 ff b4 89 48 c1 e8 03 80 3c 28 00 0f 85 fe 01 00 00 48 83 3d 36 87 0a 08 00 0f 84 51 01 00 00 4c 89 ff 57 9d <0f> 1f 44 00 00 4c 8d 8b 98 00 00 00 4c 89 c8 48 c1 e8 03 0f b6 04 RSP: 0018:ffffc900036a7410 EFLAGS: 00000282 RAX: 1ffffffff1369fe0 RBX: ffff88812fffb700 RCX: 0000000000000006 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000282 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: fffffbfff1369fdf R14: 1ffffffff1369fe1 R15: 0000000000000282 bad_range mm/page_alloc.c:592 [inline] rmqueue mm/page_alloc.c:3409 [inline] get_page_from_freelist+0x85c/0x3770 mm/page_alloc.c:3814 __alloc_pages_nodemask+0x291/0x700 mm/page_alloc.c:4867 alloc_pages_current+0x187/0x280 mm/mempolicy.c:2275 alloc_pages include/linux/gfp.h:545 [inline] __get_free_pages+0x8/0x40 mm/page_alloc.c:4910 tlb_next_batch mm/mmu_gather.c:29 [inline] __tlb_remove_page_size+0x253/0x420 mm/mmu_gather.c:83 __tlb_remove_page include/asm-generic/tlb.h:439 [inline] zap_pte_range mm/memory.c:1092 [inline] zap_pmd_range mm/memory.c:1193 [inline] zap_pud_range mm/memory.c:1222 [inline] zap_p4d_range mm/memory.c:1243 [inline] unmap_page_range+0xfb3/0x2b20 mm/memory.c:1264 unmap_single_vma+0x198/0x300 mm/memory.c:1309 unmap_vmas+0x16f/0x2f0 mm/memory.c:1341 exit_mmap+0x2b1/0x530 mm/mmap.c:3165 __mmput+0x122/0x470 kernel/fork.c:1075 mmput+0x53/0x60 kernel/fork.c:1096 exit_mm kernel/exit.c:483 [inline] do_exit+0xa8f/0x2a40 kernel/exit.c:793 do_group_exit+0x125/0x310 kernel/exit.c:904 get_signal+0x40b/0x1ee0 kernel/signal.c:2743 do_signal+0x82/0x2520 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:218 [inline] __prepare_exit_to_usermode+0x156/0x1f0 arch/x86/entry/common.c:252 do_syscall_64+0x6c/0xe0 arch/x86/entry/common.c:376 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cb29 Code: Bad RIP value. RSP: 002b:00007f097ec93cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000078bfa8 RCX: 000000000045cb29 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000078bfa8 RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bfac R13: 00007fff995908df R14: 00007f097ec949c0 R15: 000000000078bfac Memory state around the buggy address: ffffc900035e7980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900035e7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900035e7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 ^ ffffc900035e7b00: f1 f1 f1 f1 f1 01 f2 00 00 f2 f2 05 f3 f3 f3 00 ffffc900035e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================