ci2 starts bisection 2023-04-26 02:32:11.778793154 +0000 UTC m=+49430.076068046 bisecting fixing commit since 8020ae3c051d1c9ec7b7a872e226f9720547649b building syzkaller on 7939252e4ddf50bbb9912069a40d32f6c83c4f8e ensuring issue is reproducible on original commit 8020ae3c051d1c9ec7b7a872e226f9720547649b testing commit 8020ae3c051d1c9ec7b7a872e226f9720547649b gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4191e3d3e9f94ff1fd364fd4063d58bd5463a0c2beb6a1dd239874382cb1ee53 all runs: crashed: KASAN: stack-out-of-bounds Read in profile_pc testing current HEAD 3299fb36854fdc288bddc2c4d265f8a2e5105944 testing commit 3299fb36854fdc288bddc2c4d265f8a2e5105944 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b13ec3aa25af6038aad3189ccbb9b2ab8fb22539ea1b141deddffbfebbedbb77 all runs: crashed: KASAN: stack-out-of-bounds Read in profile_pc revisions tested: 2, total time: 1h7m44.163700813s (build: 1h0m10.029497756s, test: 6m46.487446925s) the crash still happens on HEAD commit msg: Linux 5.15.108 crash: KASAN: stack-out-of-bounds Read in profile_pc ================================================================== BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 Read of size 8 at addr ffffc90002a6f660 by task sed/3964 CPU: 1 PID: 3964 Comm: sed Not tainted 5.15.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x163/0x213 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42 profile_tick+0x7e/0xb0 kernel/profile.c:416 tick_sched_handle kernel/time/tick-sched.c:227 [inline] tick_sched_timer+0x181/0x300 kernel/time/tick-sched.c:1420 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x49a/0xa60 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x367/0x8c0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 92 e6 83 f8 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 87 7e 21 f8 65 8b 05 48 01 d7 76 85 c0 74 3f 48 c7 04 24 0e 36 RSP: 0018:ffffc90002a6f660 EFLAGS: 00000206 RAX: eb508d4d63462700 RBX: 1ffff9200054ded0 RCX: ffffffff9014af03 RDX: dffffc0000000000 RSI: ffffffff898aae40 RDI: 0000000000000001 RBP: ffffc90002a6f700 R08: dffffc0000000000 R09: fffffbfff2065b06 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff9200054decc R14: ffffc90002a6f680 R15: 0000000000000246 __debug_check_no_obj_freed lib/debugobjects.c:1009 [inline] debug_check_no_obj_freed+0x58d/0x610 lib/debugobjects.c:1030 free_pages_prepare mm/page_alloc.c:1345 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x281/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x156f/0x17c0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x146/0x2b0 mm/mmu_gather.c:338 exit_mmap+0x363/0x5b0 mm/mmap.c:3188 __mmput+0xc8/0x2f0 kernel/fork.c:1118 exit_mm+0x5cf/0x710 kernel/exit.c:548 do_exit+0x54a/0x1f70 kernel/exit.c:859 do_group_exit+0x201/0x2d0 kernel/exit.c:994 __do_sys_exit_group kernel/exit.c:1005 [inline] __se_sys_exit_group kernel/exit.c:1003 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f00bdb46a90 Code: Unable to access opcode bytes at RIP 0x7f00bdb46a66. RSP: 002b:00007fff23b4d208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f00bdc37860 RCX: 00007f00bdb46a90 RDX: 00000000000000e7 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00007f00bdc37860 R08: 00007fff23b4d080 R09: 00007fff23b4d160 R10: 00007fff23b4d0c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f00bdc3b658 R15: 0000000000000001 addr ffffc90002a6f660 is located in stack of task sed/3964 at offset 0 in frame: _raw_spin_unlock_irqrestore+0x0/0x130 kernel/locking/spinlock.c:187 this frame has 1 object: [32, 40) 'flags.i.i.i.i' Memory state around the buggy address: ffffc90002a6f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002a6f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90002a6f600: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ^ ffffc90002a6f680: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002a6f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 9c pushfq 1: 8f 44 24 20 popq 0x20(%rsp) 5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) a: 74 08 je 0x14 c: 4c 89 f7 mov %r14,%rdi f: e8 92 e6 83 f8 callq 0xf883e6a6 14: f6 44 24 21 02 testb $0x2,0x21(%rsp) 19: 75 4e jne 0x69 1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 87 7e 21 f8 callq 0xf8217eb6 <-- trapping instruction 2f: 65 8b 05 48 01 d7 76 mov %gs:0x76d70148(%rip),%eax # 0x76d7017e 36: 85 c0 test %eax,%eax 38: 74 3f je 0x79 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 04 24 add $0x24,%al 3e: 0e (bad) 3f: 36 ss