All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:rseq/slice-v2] [x86/uaccess]  ca5d17f701: BUG:unable_to_handle_page_fault_for_address
@ 2025-10-20  8:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-20  8:33 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-lkp, lkp, oliver.sang



Hello,

kernel test robot noticed "BUG:unable_to_handle_page_fault_for_address" on:

commit: ca5d17f701a68fca8bf2f0cce176d88fbc3ac18e ("x86/uaccess: Use unsafe wrappers for ASM GOTO")
https://git.kernel.org/cgit/linux/kernel/git/tglx/devel.git rseq/slice-v2

in testcase: boot

config: i386-randconfig-141-20251018
compiler: gcc-14
test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

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


+---------------------------------------------+------------+------------+
|                                             | 8a11b88211 | ca5d17f701 |
+---------------------------------------------+------------+------------+
| boot_successes                              | 12         | 0          |
| boot_failures                               | 0          | 12         |
| BUG:unable_to_handle_page_fault_for_address | 0          | 12         |
| Oops:Oops:#[##]                             | 0          | 12         |
| EIP:copy_to_kernel_nofault                  | 0          | 12         |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 12         |
+---------------------------------------------+------------+------------+


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@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202510201601.c47d1c7c-lkp@intel.com


[    0.117637][    T0] BUG: unable to handle page fault for address: ffdab000
[    0.119989][    T0] #PF: supervisor write access in kernel mode
[    0.120741][    T0] #PF: error_code(0x0003) - permissions violation
[    0.121536][    T0] *pde = 0741f067 *pte = 0741d121
[    0.122171][    T0] Oops: Oops: 0003 [#1]
[    0.122685][    T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Tainted: G                T   6.18.0-rc1-00003-gca5d17f701a6 #1 PREEMPT(undef)
[    0.124227][    T0] Tainted: [T]=RANDSTRUCT
[    0.124758][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[    0.126055][    T0] EIP: copy_to_kernel_nofault (mm/maccess.c:78 (discriminator 7))
[    0.126746][    T0] Code: 83 f9 03 76 12 8b 36 89 30 83 e9 04 eb ea 66 8b 36 66 89 30 83 e9 02 89 d8 89 d6 29 c8 29 ce 83 f9 01 77 ea 85 c9 74 04 8a 16 <88> 10 e8 d1 fd ff ff 31 c0 eb 11 89 30 eb 03 66 89 30 e8 c1 fd ff
All code
========
   0:	83 f9 03             	cmp    $0x3,%ecx
   3:	76 12                	jbe    0x17
   5:	8b 36                	mov    (%rsi),%esi
   7:	89 30                	mov    %esi,(%rax)
   9:	83 e9 04             	sub    $0x4,%ecx
   c:	eb ea                	jmp    0xfffffffffffffff8
   e:	66 8b 36             	mov    (%rsi),%si
  11:	66 89 30             	mov    %si,(%rax)
  14:	83 e9 02             	sub    $0x2,%ecx
  17:	89 d8                	mov    %ebx,%eax
  19:	89 d6                	mov    %edx,%esi
  1b:	29 c8                	sub    %ecx,%eax
  1d:	29 ce                	sub    %ecx,%esi
  1f:	83 f9 01             	cmp    $0x1,%ecx
  22:	77 ea                	ja     0xe
  24:	85 c9                	test   %ecx,%ecx
  26:	74 04                	je     0x2c
  28:	8a 16                	mov    (%rsi),%dl
  2a:*	88 10                	mov    %dl,(%rax)		<-- trapping instruction
  2c:	e8 d1 fd ff ff       	call   0xfffffffffffffe02
  31:	31 c0                	xor    %eax,%eax
  33:	eb 11                	jmp    0x46
  35:	89 30                	mov    %esi,(%rax)
  37:	eb 03                	jmp    0x3c
  39:	66 89 30             	mov    %si,(%rax)
  3c:	e8                   	.byte 0xe8
  3d:	c1 fd ff             	sar    $0xff,%ebp

Code starting with the faulting instruction
===========================================
   0:	88 10                	mov    %dl,(%rax)
   2:	e8 d1 fd ff ff       	call   0xfffffffffffffdd8
   7:	31 c0                	xor    %eax,%eax
   9:	eb 11                	jmp    0x1c
   b:	89 30                	mov    %esi,(%rax)
   d:	eb 03                	jmp    0x12
   f:	66 89 30             	mov    %si,(%rax)
  12:	e8                   	.byte 0xe8
  13:	c1 fd ff             	sar    $0xff,%ebp
[    0.129208][    T0] EAX: ffdab000 EBX: ffdab001 ECX: 00000001 EDX: 46d95f00
[    0.129871][    T0] ESI: 46d95f77 EDI: 073bf9e0 EBP: 46d95f68 ESP: 46d95f60
[    0.130457][    T0] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00210002
[    0.131138][    T0] CR0: 80050033 CR2: ffdab000 CR3: 0741c000 CR4: 00000090
[    0.136052][    T0] Call Trace:
[    0.136467][    T0]  ? mem_init (arch/x86/mm/init_32.c:675 (discriminator 2) arch/x86/mm/init_32.c:720 (discriminator 2))
[    0.137012][    T0]  ? mm_core_init (mm/mm_init.c:2708)
[    0.137612][    T0]  ? start_kernel (init/main.c:972)
[    0.138215][    T0]  ? i386_start_kernel (arch/x86/kernel/head32.c:129)
[    0.138833][    T0]  ? startup_32_smp (arch/x86/kernel/head_32.S:293)
[    0.139459][    T0] Modules linked in:
[    0.139843][    T0] CR2: 00000000ffdab000
[    0.140232][    T0] ---[ end trace 0000000000000000 ]---
[    0.140753][    T0] EIP: copy_to_kernel_nofault (mm/maccess.c:78 (discriminator 7))
[    0.141311][    T0] Code: 83 f9 03 76 12 8b 36 89 30 83 e9 04 eb ea 66 8b 36 66 89 30 83 e9 02 89 d8 89 d6 29 c8 29 ce 83 f9 01 77 ea 85 c9 74 04 8a 16 <88> 10 e8 d1 fd ff ff 31 c0 eb 11 89 30 eb 03 66 89 30 e8 c1 fd ff
All code
========
   0:	83 f9 03             	cmp    $0x3,%ecx
   3:	76 12                	jbe    0x17
   5:	8b 36                	mov    (%rsi),%esi
   7:	89 30                	mov    %esi,(%rax)
   9:	83 e9 04             	sub    $0x4,%ecx
   c:	eb ea                	jmp    0xfffffffffffffff8
   e:	66 8b 36             	mov    (%rsi),%si
  11:	66 89 30             	mov    %si,(%rax)
  14:	83 e9 02             	sub    $0x2,%ecx
  17:	89 d8                	mov    %ebx,%eax
  19:	89 d6                	mov    %edx,%esi
  1b:	29 c8                	sub    %ecx,%eax
  1d:	29 ce                	sub    %ecx,%esi
  1f:	83 f9 01             	cmp    $0x1,%ecx
  22:	77 ea                	ja     0xe
  24:	85 c9                	test   %ecx,%ecx
  26:	74 04                	je     0x2c
  28:	8a 16                	mov    (%rsi),%dl
  2a:*	88 10                	mov    %dl,(%rax)		<-- trapping instruction
  2c:	e8 d1 fd ff ff       	call   0xfffffffffffffe02
  31:	31 c0                	xor    %eax,%eax
  33:	eb 11                	jmp    0x46
  35:	89 30                	mov    %esi,(%rax)
  37:	eb 03                	jmp    0x3c
  39:	66 89 30             	mov    %si,(%rax)
  3c:	e8                   	.byte 0xe8
  3d:	c1 fd ff             	sar    $0xff,%ebp

Code starting with the faulting instruction
===========================================
   0:	88 10                	mov    %dl,(%rax)
   2:	e8 d1 fd ff ff       	call   0xfffffffffffffdd8
   7:	31 c0                	xor    %eax,%eax
   9:	eb 11                	jmp    0x1c
   b:	89 30                	mov    %esi,(%rax)
   d:	eb 03                	jmp    0x12
   f:	66 89 30             	mov    %si,(%rax)
  12:	e8                   	.byte 0xe8
  13:	c1 fd ff             	sar    $0xff,%ebp


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251020/202510201601.c47d1c7c-lkp@intel.com



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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-20  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20  8:33 [tglx-devel:rseq/slice-v2] [x86/uaccess] ca5d17f701: BUG:unable_to_handle_page_fault_for_address kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.