lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202409031007.2c7c62aa-oliver.sang@intel.com>
Date: Tue, 3 Sep 2024 10:52:15 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Dmitry Vyukov <dvyukov@...gle.com>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
	<x86@...nel.org>, Thomas Gleixner <tglx@...utronix.de>, Alexander Potapenko
	<glider@...gle.com>, Marco Elver <elver@...gle.com>, Andrey Konovalov
	<andreyknvl@...il.com>, <kasan-dev@...glegroups.com>, <oliver.sang@...el.com>
Subject: [tip:x86/build] [kcov]  6cd0dd934b:
 BUG:TASK_stack_guard_page_was_hit_at#(stack_is#..#)



Hello,

kernel test robot noticed "BUG:TASK_stack_guard_page_was_hit_at#(stack_is#..#)" on:

commit: 6cd0dd934b03d4ee4094ac474108723e2f2ed7d6 ("kcov: Add interrupt handling self test")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/build

[test failed on linux-next/master 985bf40edf4343dcb04c33f58b40b4a85c1776d4]

in testcase: boot

compiler: gcc-12
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)


+-------------------------------------------------------+------------+------------+
|                                                       | 477d81a1c4 | 6cd0dd934b |
+-------------------------------------------------------+------------+------------+
| boot_successes                                        | 18         | 0          |
| BUG:TASK_stack_guard_page_was_hit_at#(stack_is#..#)   | 0          | 18         |
| Oops:stack_guard_page:#[##]SMP_KASAN                  | 0          | 18         |
| RIP:error_entry                                       | 0          | 18         |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0          | 18         |
+-------------------------------------------------------+------------+------------+


If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202409031007.2c7c62aa-oliver.sang@intel.com


[   27.611227][    C1] BUG: TASK stack guard page was hit at ffffc90000017ff8 (stack is ffffc90000018000..ffffc90000020000)
[   27.611227][    C1] Oops: stack guard page: 0000 [#1] SMP KASAN
[   27.611227][    C1] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.11.0-rc2-00002-g6cd0dd934b03 #1
[ 27.611227][ C1] RIP: 0010:error_entry (arch/x86/entry/entry_64.S:1007) 
[ 27.611227][ C1] Code: 0a f3 48 0f ae db e9 f7 fd ff ff 85 db 0f 85 ef fd ff ff 0f 01 f8 e9 e7 fd ff ff 0f 1f 40 00 56 48 8b 74 24 08 48 89 7c 24 08 <52> 51 50 41 50 41 51 41 52 41 53 53 55 41 54 41 55 41 56 41 57 56
All code
========
   0:	0a f3                	or     %bl,%dh
   2:	48 0f ae             	rex.W (bad) 
   5:	db e9                	fucomi %st(1),%st
   7:	f7 fd                	idiv   %ebp
   9:	ff                   	(bad)  
   a:	ff 85 db 0f 85 ef    	incl   -0x107af025(%rbp)
  10:	fd                   	std    
  11:	ff                   	(bad)  
  12:	ff 0f                	decl   (%rdi)
  14:	01 f8                	add    %edi,%eax
  16:	e9 e7 fd ff ff       	jmpq   0xfffffffffffffe02
  1b:	0f 1f 40 00          	nopl   0x0(%rax)
  1f:	56                   	push   %rsi
  20:	48 8b 74 24 08       	mov    0x8(%rsp),%rsi
  25:	48 89 7c 24 08       	mov    %rdi,0x8(%rsp)
  2a:*	52                   	push   %rdx		<-- trapping instruction
  2b:	51                   	push   %rcx
  2c:	50                   	push   %rax
  2d:	41 50                	push   %r8
  2f:	41 51                	push   %r9
  31:	41 52                	push   %r10
  33:	41 53                	push   %r11
  35:	53                   	push   %rbx
  36:	55                   	push   %rbp
  37:	41 54                	push   %r12
  39:	41 55                	push   %r13
  3b:	41 56                	push   %r14
  3d:	41 57                	push   %r15
  3f:	56                   	push   %rsi

Code starting with the faulting instruction
===========================================
   0:	52                   	push   %rdx
   1:	51                   	push   %rcx
   2:	50                   	push   %rax
   3:	41 50                	push   %r8
   5:	41 51                	push   %r9
   7:	41 52                	push   %r10
   9:	41 53                	push   %r11
   b:	53                   	push   %rbx
   c:	55                   	push   %rbp
   d:	41 54                	push   %r12
   f:	41 55                	push   %r13
  11:	41 56                	push   %r14
  13:	41 57                	push   %r15
  15:	56                   	push   %rsi
[   27.611227][    C1] RSP: 0000:ffffc90000018000 EFLAGS: 00010046
[   27.611227][    C1] RAX: 0000000000000002 RBX: ffffc90000018078 RCX: ffffffffb818de45
[   27.611227][    C1] RDX: 0000000000000000 RSI: ffffffffbaa011ad RDI: 0000000000000000
[   27.611227][    C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   27.611227][    C1] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[   27.611227][    C1] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   27.611227][    C1] FS:  0000000000000000(0000) GS:ffff8883a8200000(0000) knlGS:0000000000000000
[   27.611227][    C1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   27.611227][    C1] CR2: ffffc90000017ff8 CR3: 00000003f3ecf000 CR4: 00000000000406f0
[   27.611227][    C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   27.611227][    C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   27.611227][    C1] Call Trace:
[   27.611227][    C1]  <#DF>
[ 27.611227][ C1] ? show_regs (arch/x86/kernel/dumpstack.c:478) 
[ 27.611227][ C1] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) 
[ 27.611227][ C1] ? handle_stack_overflow (arch/x86/kernel/traps.c:329) 
[ 27.611227][ C1] ? get_stack_info_noinstr (arch/x86/kernel/dumpstack_64.c:173) 
[ 27.611227][ C1] ? exc_double_fault (arch/x86/kernel/traps.c:380) 
[ 27.611227][ C1] ? asm_exc_double_fault (arch/x86/include/asm/idtentry.h:668) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? error_entry (arch/x86/entry/entry_64.S:1007) 
[   27.611227][    C1]  </#DF>
[   27.611227][    C1]  <TASK>
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? __sanitizer_cov_trace_pc (kernel/kcov.c:213) 
[ 27.611227][ C1] ? is_kmmio_active (include/linux/mmiotrace.h:41) 
[ 27.611227][ C1] ? exc_page_fault (arch/x86/mm/fault.c:51 arch/x86/mm/fault.c:1474 arch/x86/mm/fault.c:1539) 
[ 27.611227][ C1] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) 


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20240903/202409031007.2c7c62aa-oliver.sang@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ