oe-lkp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>, <oliver.sang@intel.com>
Subject: [arm-integrator:test]  0d7231b629: BUG:unable_to_handle_page_fault_for_address
Date: Tue, 26 Mar 2024 14:14:17 +0800	[thread overview]
Message-ID: <202403251740.ee5bf6fc-lkp@intel.com> (raw)


hi, Linus Walleij,

we noticed this is a debug patch and lots of pr_info() are added, however,
we don't know below issue we captured in our tests is expected or if it could
supply any hint. so still report to you FYI.

if you don't want us to test this 'test' branch any longer, please let us know.
Thanks!



Hello,

kernel test robot noticed "BUG:unable_to_handle_page_fault_for_address" on:

commit: 0d7231b62906aa3562554714aa708ac0b452c0a5 ("CFI debug code")
https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-integrator.git test

in testcase: boot

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

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


+-------------------------------------------------------------+----------+------------+
|                                                             | v6.8-rc2 | 0d7231b629 |
+-------------------------------------------------------------+----------+------------+
| BUG:unable_to_handle_page_fault_for_address                 | 0        | 12         |
| Oops:#[##]                                                  | 0        | 12         |
| EIP:string                                                  | 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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202403251740.ee5bf6fc-lkp@intel.com


[  121.519073][    T1] BUG: unable to handle page fault for address: 00005554
[  121.520395][    T1] #PF: supervisor read access in kernel mode
[  121.521184][    T1] #PF: error_code(0x0000) - not-present page
[  121.521184][    T1] *pde = 00000000
[  121.521184][    T1] Oops: 0000 [#1]
[  121.521184][    T1] CPU: 0 PID: 1 Comm: swapper Tainted: G        W        N 6.8.0-rc2-00001-g0d7231b62906 #7
[ 121.521184][ T1] EIP: string (lib/vsprintf.c:646 lib/vsprintf.c:728) 
[ 121.521184][ T1] Code: aa 00 00 00 8d 96 00 f0 ff ff 81 fa 00 e0 ff ff 77 44 8d 3c 08 31 d2 85 c9 75 0f eb 15 90 39 d8 73 02 88 08 40 42 39 f8 74 08 <0f> b6 0c 16 84 c9 75 ec 8b 75 f0 89 d9 89 34 24 8b 75 ec 89 74 24
All code
========
   0:	aa                   	stos   %al,%es:(%rdi)
   1:	00 00                	add    %al,(%rax)
   3:	00 8d 96 00 f0 ff    	add    %cl,-0xfff6a(%rbp)
   9:	ff 81 fa 00 e0 ff    	incl   -0x1fff06(%rcx)
   f:	ff 77 44             	push   0x44(%rdi)
  12:	8d 3c 08             	lea    (%rax,%rcx,1),%edi
  15:	31 d2                	xor    %edx,%edx
  17:	85 c9                	test   %ecx,%ecx
  19:	75 0f                	jne    0x2a
  1b:	eb 15                	jmp    0x32
  1d:	90                   	nop
  1e:	39 d8                	cmp    %ebx,%eax
  20:	73 02                	jae    0x24
  22:	88 08                	mov    %cl,(%rax)
  24:	40                   	rex
  25:	42 39 f8             	rex.X cmp %edi,%eax
  28:	74 08                	je     0x32
  2a:*	0f b6 0c 16          	movzbl (%rsi,%rdx,1),%ecx		<-- trapping instruction
  2e:	84 c9                	test   %cl,%cl
  30:	75 ec                	jne    0x1e
  32:	8b 75 f0             	mov    -0x10(%rbp),%esi
  35:	89 d9                	mov    %ebx,%ecx
  37:	89 34 24             	mov    %esi,(%rsp)
  3a:	8b 75 ec             	mov    -0x14(%rbp),%esi
  3d:	89                   	.byte 0x89
  3e:	74 24                	je     0x64

Code starting with the faulting instruction
===========================================
   0:	0f b6 0c 16          	movzbl (%rsi,%rdx,1),%ecx
   4:	84 c9                	test   %cl,%cl
   6:	75 ec                	jne    0xfffffffffffffff4
   8:	8b 75 f0             	mov    -0x10(%rbp),%esi
   b:	89 d9                	mov    %ebx,%ecx
   d:	89 34 24             	mov    %esi,(%rsp)
  10:	8b 75 ec             	mov    -0x14(%rbp),%esi
  13:	89                   	.byte 0x89
  14:	74 24                	je     0x3a
[  121.521184][    T1] EAX: c025fcb6 EBX: c025fcbc ECX: ffffffff EDX: 00000000
[  121.521184][    T1] ESI: 00005554 EDI: c025fcb5 EBP: c025fc38 ESP: c025fc1c
[  121.521184][    T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010086
[  121.521184][    T1] CR0: 80050033 CR2: 00005554 CR3: 0a02f000 CR4: 00040690
[  121.521184][    T1] Call Trace:
[ 121.521184][ T1] ? show_regs (arch/x86/kernel/dumpstack.c:479) 
[ 121.521184][ T1] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434) 
[ 121.521184][ T1] ? debug_locks_off (lib/debug_locks.c:44) 
[ 121.521184][ T1] ? oops_enter (kernel/panic.c:571 kernel/panic.c:629) 
[ 121.521184][ T1] ? page_fault_oops (arch/x86/mm/fault.c:707) 
[ 121.521184][ T1] ? prb_read (kernel/printk/printk_ringbuffer.c:1817) 
[ 121.521184][ T1] ? kernelmode_fixup_or_oops+0x90/0xf0 
[ 121.521184][ T1] ? __bad_area_nosemaphore+0x131/0x1d8 
[ 121.521184][ T1] ? _prb_read_valid (kernel/printk/printk_ringbuffer.c:1852 kernel/printk/printk_ringbuffer.c:1892) 
[ 121.521184][ T1] ? bad_area_nosemaphore (arch/x86/mm/fault.c:867) 
[ 121.521184][ T1] ? do_user_addr_fault (arch/x86/mm/fault.c:1478) 
[ 121.521184][ T1] ? prb_read_valid (kernel/printk/printk_ringbuffer.c:1941) 
[ 121.521184][ T1] ? exc_page_fault (arch/x86/include/asm/irqflags.h:26 arch/x86/include/asm/irqflags.h:67 arch/x86/include/asm/irqflags.h:127 arch/x86/mm/fault.c:1515 arch/x86/mm/fault.c:1563) 
[ 121.521184][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1520) 
[ 121.521184][ T1] ? handle_exception (arch/x86/entry/entry_32.S:1056) 
[ 121.521184][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1520) 
[ 121.521184][ T1] ? string (lib/vsprintf.c:646 lib/vsprintf.c:728) 
[ 121.521184][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1520) 
[ 121.521184][ T1] ? string (lib/vsprintf.c:646 lib/vsprintf.c:728) 
[ 121.521184][ T1] vsnprintf (lib/vsprintf.c:2774) 
[ 121.521184][ T1] vprintk_store (kernel/printk/printk.c:2187) 
[ 121.521184][ T1] vprintk_emit (kernel/printk/printk.c:2284) 
[ 121.521184][ T1] vprintk_default (kernel/printk/printk.c:2319) 
[ 121.521184][ T1] vprintk (kernel/printk/printk_safe.c:46) 
[ 121.521184][ T1] _printk (kernel/printk/printk.c:2332) 
[ 121.521184][ T1] cfi_build_cmd_addr (drivers/mtd/chips/cfi_util.c:60) 
[ 121.521184][ T1] cfi_send_gen_cmd (drivers/mtd/chips/cfi_util.c:216) 
[ 121.521184][ T1] cfi_qry_mode_on (drivers/mtd/chips/cfi_util.c:281) 
[ 121.521184][ T1] cfi_probe_chip (drivers/mtd/chips/cfi_probe.c:117) 
[ 121.521184][ T1] ? vprintk (kernel/printk/printk_safe.c:46) 
[ 121.521184][ T1] genprobe_ident_chips (drivers/mtd/chips/gen_probe.c:188 drivers/mtd/chips/gen_probe.c:72) 
[ 121.521184][ T1] mtd_do_chip_probe (drivers/mtd/chips/gen_probe.c:29) 
[ 121.521184][ T1] ? _raw_spin_unlock (kernel/locking/spinlock.c:187) 
[ 121.521184][ T1] cfi_probe (drivers/mtd/chips/cfi_probe.c:441) 
[ 121.521184][ T1] do_map_probe (drivers/mtd/chips/chipreg.c:68) 
[ 121.521184][ T1] ? vprintk (kernel/printk/printk_safe.c:46) 
[ 121.521184][ T1] ? init_pcmciamtd (drivers/mtd/maps/sbc_gxx.c:182) 
[ 121.521184][ T1] init_sbc_gxx (drivers/mtd/maps/sbc_gxx.c:205) 
[ 121.521184][ T1] do_one_initcall (init/main.c:1236) 
[ 121.521184][ T1] ? parameq (kernel/params.c:90 kernel/params.c:99) 
[ 121.521184][ T1] do_initcalls (init/main.c:1297 init/main.c:1314) 
[ 121.521184][ T1] ? rdinit_setup (init/main.c:1284) 
[ 121.521184][ T1] ? rest_init (init/main.c:1433) 
[ 121.521184][ T1] kernel_init_freeable (init/main.c:1333) 
[ 121.521184][ T1] kernel_init (init/main.c:1443) 
[ 121.521184][ T1] ? schedule_tail (kernel/sched/core.c:5338) 
[ 121.521184][ T1] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 121.521184][ T1] ? rest_init (init/main.c:1433) 
[ 121.521184][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:741) 
[ 121.521184][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:947) 
[  121.521184][    T1] Modules linked in:
[  121.521184][    T1] CR2: 0000000000005554
[  121.521184][    T1] ---[ end trace 0000000000000000 ]---
[ 121.521184][ T1] EIP: string (lib/vsprintf.c:646 lib/vsprintf.c:728) 
[ 121.521184][ T1] Code: aa 00 00 00 8d 96 00 f0 ff ff 81 fa 00 e0 ff ff 77 44 8d 3c 08 31 d2 85 c9 75 0f eb 15 90 39 d8 73 02 88 08 40 42 39 f8 74 08 <0f> b6 0c 16 84 c9 75 ec 8b 75 f0 89 d9 89 34 24 8b 75 ec 89 74 24
All code
========
   0:	aa                   	stos   %al,%es:(%rdi)
   1:	00 00                	add    %al,(%rax)
   3:	00 8d 96 00 f0 ff    	add    %cl,-0xfff6a(%rbp)
   9:	ff 81 fa 00 e0 ff    	incl   -0x1fff06(%rcx)
   f:	ff 77 44             	push   0x44(%rdi)
  12:	8d 3c 08             	lea    (%rax,%rcx,1),%edi
  15:	31 d2                	xor    %edx,%edx
  17:	85 c9                	test   %ecx,%ecx
  19:	75 0f                	jne    0x2a
  1b:	eb 15                	jmp    0x32
  1d:	90                   	nop
  1e:	39 d8                	cmp    %ebx,%eax
  20:	73 02                	jae    0x24
  22:	88 08                	mov    %cl,(%rax)
  24:	40                   	rex
  25:	42 39 f8             	rex.X cmp %edi,%eax
  28:	74 08                	je     0x32
  2a:*	0f b6 0c 16          	movzbl (%rsi,%rdx,1),%ecx		<-- trapping instruction
  2e:	84 c9                	test   %cl,%cl
  30:	75 ec                	jne    0x1e
  32:	8b 75 f0             	mov    -0x10(%rbp),%esi
  35:	89 d9                	mov    %ebx,%ecx
  37:	89 34 24             	mov    %esi,(%rsp)
  3a:	8b 75 ec             	mov    -0x14(%rbp),%esi
  3d:	89                   	.byte 0x89
  3e:	74 24                	je     0x64

Code starting with the faulting instruction
===========================================
   0:	0f b6 0c 16          	movzbl (%rsi,%rdx,1),%ecx
   4:	84 c9                	test   %cl,%cl
   6:	75 ec                	jne    0xfffffffffffffff4
   8:	8b 75 f0             	mov    -0x10(%rbp),%esi
   b:	89 d9                	mov    %ebx,%ecx
   d:	89 34 24             	mov    %esi,(%rsp)
  10:	8b 75 ec             	mov    -0x14(%rbp),%esi
  13:	89                   	.byte 0x89
  14:	74 24                	je     0x3a


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



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


                 reply	other threads:[~2024-03-26  6:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202403251740.ee5bf6fc-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=linus.walleij@linaro.org \
    --cc=lkp@intel.com \
    --cc=oe-lkp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).