================================================================== BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 Read of size 8 at addr ffff8881f6e09b40 by task syz.3.109/640 CPU: 0 PID: 640 Comm: syz.3.109 Not tainted 5.4.276-syzkaller-00020-g4275fce9fe94 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 profile_tick+0xb9/0x100 kernel/profile.c:416 tick_sched_handle kernel/time/tick-sched.c:206 [inline] tick_sched_timer+0x237/0x3c0 kernel/time/tick-sched.c:1342 __run_hrtimer kernel/time/hrtimer.c:1581 [inline] __hrtimer_run_queues+0x3e9/0xb90 kernel/time/hrtimer.c:1643 hrtimer_interrupt+0x38a/0x890 kernel/time/hrtimer.c:1705 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1122 [inline] smp_apic_timer_interrupt+0x110/0x460 arch/x86/kernel/apic/apic.c:1147 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:_raw_spin_trylock+0x10a/0x1a0 kernel/locking/spinlock.c:135 Code: 00 00 00 f0 41 0f b1 4d 00 74 17 bf 01 00 00 00 e8 9b cd f3 fc 65 8b 05 00 7b b1 7b 31 c9 85 c0 74 31 48 c7 04 24 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 65 48 8b 04 25 28 00 00 00 48 3b 44 24 40 RSP: 0018:ffff8881f6e09b40 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 1ffff1103edc136c RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff8881f6e09b60 RBP: ffff8881f6e09bd0 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103edc1368 R13: ffff8881eeca68c0 R14: ffff8881f6e09b60 R15: dffffc0000000000 spin_trylock include/linux/spinlock.h:348 [inline] __netif_tx_trylock include/linux/netdevice.h:4023 [inline] virtnet_poll_cleantx drivers/net/virtio_net.c:1492 [inline] virtnet_poll+0x2d2/0x1250 drivers/net/virtio_net.c:1510 napi_poll net/core/dev.c:6367 [inline] net_rx_action+0x53f/0x1160 net/core/dev.c:6435 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:539 [inline] do_IRQ+0xd3/0x1e0 arch/x86/kernel/irq.c:263 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:609 RIP: 0010:alloc_set_pte+0x121/0x1170 mm/memory.c:3469 Code: 10 48 89 6c 24 28 0f 84 2e 01 00 00 e8 78 e6 d8 ff 4c 8b 6c 24 30 42 80 7c 35 00 00 74 08 4c 89 e7 e8 83 cb 08 00 49 8b 1c 24 <48> 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 69 cb 08 00 RSP: 0018:ffff8881e6ebf728 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffda RAX: ffffffff818b5288 RBX: ffff8881e6c902a8 RCX: 0000000000040000 RDX: ffffc90001749000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 1ffff1103cdd7f4e R08: ffffffff818b5240 R09: fffff94000ebfe81 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881e6ebfa70 R13: ffffea00075ff400 R14: dffffc0000000000 R15: ffff8881e77caa68 filemap_map_pages+0x9d8/0xdd0 mm/filemap.c:2812 do_fault_around mm/memory.c:3627 [inline] do_read_fault mm/memory.c:3662 [inline] do_fault mm/memory.c:3797 [inline] handle_pte_fault mm/memory.c:4028 [inline] __handle_mm_fault mm/memory.c:4152 [inline] handle_mm_fault+0x25cd/0x4990 mm/memory.c:4189 faultin_page mm/gup.c:654 [inline] __get_user_pages+0xc0b/0x13b0 mm/gup.c:874 populate_vma_page_range mm/gup.c:1279 [inline] __mm_populate+0x369/0x510 mm/gup.c:1327 mm_populate include/linux/mm.h:2489 [inline] vm_mmap_pgoff+0x20d/0x260 mm/util.c:533 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f011c60eb99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f011b890048 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f011c79cfa0 RCX: 00007f011c60eb99 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f011c68f77e R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f011c79cfa0 R15: 00007ffcfb975438 The buggy address belongs to the page: page:ffffea0007db8240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000001000(reserved) raw: 8000000000001000 ffffea0007db8248 ffffea0007db8248 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff8881f6e09a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881f6e09a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881f6e09b00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 ^ ffff8881f6e09b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881f6e09c00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ================================================================== ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 f0 add %dh,%al 4: 41 0f b1 4d 00 cmpxchg %ecx,0x0(%r13) 9: 74 17 je 0x22 b: bf 01 00 00 00 mov $0x1,%edi 10: e8 9b cd f3 fc call 0xfcf3cdb0 15: 65 8b 05 00 7b b1 7b mov %gs:0x7bb17b00(%rip),%eax # 0x7bb17b1c 1c: 31 c9 xor %ecx,%ecx 1e: 85 c0 test %eax,%eax 20: 74 31 je 0x53 22: 48 c7 04 24 0e 36 e0 movq $0x45e0360e,(%rsp) 29: 45 * 2a: 4b c7 04 27 00 00 00 movq $0x0,(%r15,%r12,1) <-- trapping instruction 31: 00 32: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 39: 00 00 3b: 48 3b 44 24 40 cmp 0x40(%rsp),%rax