All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Yunsheng Lin <linyunsheng@huawei.com>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>, <oliver.sang@intel.com>
Subject: [linyunsheng:page_frag_cache_v5_0518]  e6543161a8: kernel_BUG_at_arch/x86/mm/physaddr.c
Date: Mon, 20 May 2024 13:15:00 +0800	[thread overview]
Message-ID: <202405201213.ef74ef6c-lkp@intel.com> (raw)



Hello,

kernel test robot noticed "kernel_BUG_at_arch/x86/mm/physaddr.c" on:

commit: e6543161a8d13e28e244803a755a007021b9dea7 ("add alloc_pg api and refactor alloc_va api")
https://github.com/gestionlin/linux.git page_frag_cache_v5_0518

in testcase: boot

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

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


+--------------------------------------------+------------+------------+
|                                            | cfd73c13f7 | e6543161a8 |
+--------------------------------------------+------------+------------+
| kernel_BUG_at_arch/x86/mm/physaddr.c       | 0          | 11         |
| Oops:invalid_opcode:#[##]PREEMPT_KASAN_PTI | 0          | 11         |
| RIP:__phys_addr                            | 0          | 11         |
| Kernel_panic-not_syncing:Fatal_exception   | 0          | 11         |
+--------------------------------------------+------------+------------+


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/202405201213.ef74ef6c-lkp@intel.com


[   68.422007][    T1] ------------[ cut here ]------------
[   68.422772][    T1] kernel BUG at arch/x86/mm/physaddr.c:28!
[   68.423486][    T1] Oops: invalid opcode: 0000 [#1] PREEMPT KASAN PTI
[   68.424304][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.9.0-08558-ge6543161a8d1 #6
[   68.425342][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 68.426634][ T1] RIP: 0010:__phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.427271][ T1] Code: 80 e1 07 38 c1 7c 95 48 c7 c7 b9 98 d0 86 e8 15 aa 4e 00 eb 87 48 c7 c7 50 6a d1 85 48 89 de 4c 89 f2 e8 b1 53 c7 00 eb 81 90 <0f> 0b 90 0f 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90
All code
========
   0:	80 e1 07             	and    $0x7,%cl
   3:	38 c1                	cmp    %al,%cl
   5:	7c 95                	jl     0xffffffffffffff9c
   7:	48 c7 c7 b9 98 d0 86 	mov    $0xffffffff86d098b9,%rdi
   e:	e8 15 aa 4e 00       	call   0x4eaa28
  13:	eb 87                	jmp    0xffffffffffffff9c
  15:	48 c7 c7 50 6a d1 85 	mov    $0xffffffff85d16a50,%rdi
  1c:	48 89 de             	mov    %rbx,%rsi
  1f:	4c 89 f2             	mov    %r14,%rdx
  22:	e8 b1 53 c7 00       	call   0xc753d8
  27:	eb 81                	jmp    0xffffffffffffffaa
  29:	90                   	nop
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	90                   	nop
  2d:	0f 0b                	ud2
  2f:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
  36:	00 00 
  38:	90                   	nop
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	90                   	nop
   3:	0f 0b                	ud2
   5:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
   c:	00 00 
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
[   68.429752][    T1] RSP: 0000:ffff8881036777d8 EFLAGS: 00010206
[   68.430533][    T1] RAX: 1ffffffff0b4f449 RBX: 0000778000001040 RCX: dffffc0000000000
[   68.431472][    T1] RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000001040
[   68.432465][    T1] RBP: 1ffff92000216c00 R08: ffffffff880ffeaf R09: 1ffffffff101ffd5
[   68.433443][    T1] R10: dffffc0000000000 R11: fffffbfff101ffd6 R12: 0000000000001040
[   68.434425][    T1] R13: ffffc900010b6000 R14: 0000000080001040 R15: dffffc0000000000
[   68.435390][    T1] FS:  0000000000000000(0000) GS:ffffffff85ced000(0000) knlGS:0000000000000000
[   68.436530][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   68.437360][    T1] CR2: ffff88843ffff000 CR3: 0000000005cd2000 CR4: 00000000000406f0
[   68.438384][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   68.439369][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   68.440345][    T1] Call Trace:
[   68.440763][    T1]  <TASK>
[ 68.441135][ T1] ? __die_body (arch/x86/kernel/dumpstack.c:421) 
[ 68.441676][ T1] ? die (arch/x86/kernel/dumpstack.c:? arch/x86/kernel/dumpstack.c:447) 
[ 68.442147][ T1] ? do_trap (arch/x86/kernel/traps.c:129) 
[ 68.442651][ T1] ? do_error_trap (arch/x86/include/asm/traps.h:? arch/x86/kernel/traps.c:174) 
[ 68.443226][ T1] ? __phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.443784][ T1] ? do_error_trap (arch/x86/kernel/traps.c:175) 
[ 68.444371][ T1] ? __phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.444932][ T1] ? handle_invalid_op (arch/x86/kernel/traps.c:212) 
[ 68.445539][ T1] ? __phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.446095][ T1] ? exc_invalid_op (arch/x86/kernel/traps.c:266) 
[ 68.446681][ T1] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:621) 
[ 68.447309][ T1] ? __phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.447888][ T1] e1000_alloc_rx_buffers (include/linux/dma-mapping.h:341) 
[ 68.448614][ T1] e1000_configure (drivers/net/ethernet/intel/e1000/e1000_main.c:?) 
[ 68.449232][ T1] e1000_open (drivers/net/ethernet/intel/e1000/e1000_main.c:?) 
[ 68.449786][ T1] ? notifier_call_chain (kernel/notifier.c:93) 
[ 68.450464][ T1] __dev_open (net/core/dev.c:1472) 
[ 68.450977][ T1] __dev_change_flags (net/core/dev.c:?) 
[ 68.451606][ T1] dev_change_flags (net/core/dev.c:8853) 
[ 68.452200][ T1] ic_open_devs (net/ipv4/ipconfig.c:242) 
[ 68.452795][ T1] ip_auto_config (net/ipv4/ipconfig.c:1515) 
[ 68.453384][ T1] do_one_initcall (init/main.c:1248) 
[ 68.453989][ T1] ? __pfx_ip_auto_config (net/ipv4/ipconfig.c:1477) 
[ 68.454627][ T1] ? kasan_save_track (arch/x86/include/asm/current.h:49 mm/kasan/common.c:60 mm/kasan/common.c:69) 
[ 68.455221][ T1] ? kasan_save_track (mm/kasan/common.c:48 mm/kasan/common.c:68) 
[ 68.455829][ T1] ? __kasan_kmalloc (mm/kasan/common.c:391) 
[ 68.456459][ T1] ? __kmalloc (include/linux/kasan.h:211 mm/slub.c:4039 mm/slub.c:4052) 
[ 68.457011][ T1] ? do_initcalls (init/main.c:1320) 
[ 68.457583][ T1] ? kernel_init_freeable (init/main.c:1563) 
[ 68.458261][ T1] ? kernel_init (init/main.c:1450) 
[ 68.458801][ T1] ? ret_from_fork (arch/x86/kernel/process.c:153) 
[ 68.459370][ T1] ? ret_from_fork_asm (arch/x86/entry/entry_64.S:257) 
[ 68.459985][ T1] ? irqentry_exit (kernel/entry/common.c:358) 
[ 68.460560][ T1] ? __pfx_ignore_unknown_bootoption (init/main.c:1294) 
[ 68.461314][ T1] ? strlen (lib/string.c:402) 
[ 68.461809][ T1] ? parameq (kernel/params.c:99) 
[ 68.462351][ T1] ? __pfx_ignore_unknown_bootoption (init/main.c:1294) 
[ 68.463122][ T1] ? parse_args (kernel/params.c:153) 
[ 68.463710][ T1] do_initcall_level (init/main.c:1309) 
[ 68.464363][ T1] do_initcalls (init/main.c:1323) 
[ 68.464906][ T1] kernel_init_freeable (init/main.c:1563) 
[ 68.465531][ T1] ? __pfx_kernel_init (init/main.c:1440) 
[ 68.466144][ T1] kernel_init (init/main.c:1450) 
[ 68.466669][ T1] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 68.467207][ T1] ? __pfx_kernel_init (init/main.c:1440) 
[ 68.467817][ T1] ret_from_fork_asm (arch/x86/entry/entry_64.S:257) 
[   68.468435][    T1]  </TASK>
[   68.468812][    T1] Modules linked in:
[   68.469534][    T1] ---[ end trace 0000000000000000 ]---
[ 68.470223][ T1] RIP: 0010:__phys_addr (arch/x86/mm/physaddr.c:28) 
[ 68.470834][ T1] Code: 80 e1 07 38 c1 7c 95 48 c7 c7 b9 98 d0 86 e8 15 aa 4e 00 eb 87 48 c7 c7 50 6a d1 85 48 89 de 4c 89 f2 e8 b1 53 c7 00 eb 81 90 <0f> 0b 90 0f 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90
All code
========
   0:	80 e1 07             	and    $0x7,%cl
   3:	38 c1                	cmp    %al,%cl
   5:	7c 95                	jl     0xffffffffffffff9c
   7:	48 c7 c7 b9 98 d0 86 	mov    $0xffffffff86d098b9,%rdi
   e:	e8 15 aa 4e 00       	call   0x4eaa28
  13:	eb 87                	jmp    0xffffffffffffff9c
  15:	48 c7 c7 50 6a d1 85 	mov    $0xffffffff85d16a50,%rdi
  1c:	48 89 de             	mov    %rbx,%rsi
  1f:	4c 89 f2             	mov    %r14,%rdx
  22:	e8 b1 53 c7 00       	call   0xc753d8
  27:	eb 81                	jmp    0xffffffffffffffaa
  29:	90                   	nop
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	90                   	nop
  2d:	0f 0b                	ud2
  2f:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
  36:	00 00 
  38:	90                   	nop
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	90                   	nop
   3:	0f 0b                	ud2
   5:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
   c:	00 00 
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop


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



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


                 reply	other threads:[~2024-05-20  5:15 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=202405201213.ef74ef6c-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=linyunsheng@huawei.com \
    --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 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.