All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Srikanth Aithal <sraithal@amd.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	 linux-next@vger.kernel.org, KVM <kvm@vger.kernel.org>
Subject: Re: next-20250121: kvm selftests: RIP: 0010:__kmalloc_node_noprof+0xff/0x490
Date: Thu, 23 Jan 2025 06:14:36 -0800	[thread overview]
Message-ID: <Z5JOzFv_Us-3jLr4@google.com> (raw)
In-Reply-To: <b8973c88-ca7d-4f23-bf54-aee0a8bb4c5e@amd.com>

On Wed, Jan 22, 2025, Srikanth Aithal wrote:
> Hello all,
> 
> While running kvm selftests on AMD EPYC platform with 6.13.0-next-20250121
> below general protection fault is being hit.
> 
> /Jan 22 00:45:35 kernel: Oops: general protection fault, probably for
> non-canonical address 0xe659260b3c31e5e0: 0000 [#1] PREEMPT SMP NOPTI
> Jan 22 00:45:35 kernel: CPU: 113 UID: 0 PID: 143333 Comm: memslot_perf_te
> Not tainted 6.13.0-next-20250121-f066b5a6c7-98baed10f3f #1
> Jan 22 00:45:35 kernel: Hardware name: Dell Inc. PowerEdge R6515/07PXPY,
> BIOS 2.14.1 12/17/2023
> Jan 22 00:45:35 kernel: RIP: 0010:__kmalloc_node_noprof+0xff/0x490
> Jan 22 00:45:35 kernel: Code: 0f 84 0b 01 00 00 84 c9 0f 85 03 01 00 00 41
> 83 fb ff 0f 85 e9 00 00 00 41 bb ff ff ff ff 41 8b 44 24 28 49 8b 34 24 48
> 01 f8 <48> 8b 18 48 89 c1 49 33 9c 24 b8 00 00 00 48 89 f8 48 0f c9 48 31
> Jan 22 00:45:35 kernel: RSP: 0018:ffffa77176403ab0 EFLAGS: 00010282
> Jan 22 00:45:35 kernel: RAX: e659260b3c31e5e0 RBX: ffffed7142251180 RCX:
> 0000000000000000
> Jan 22 00:45:35 kernel: RDX: 0000000003106071 RSI: 000000000003b080 RDI:
> e659260b3c31e5e0
> Jan 22 00:45:35 kernel: RBP: ffffa77176403b10 R08: 0000000000000000 R09:
> ffffa771c9605000
> Jan 22 00:45:35 kernel: R10: ffffa77176403b28 R11: 00000000ffffffff R12:
> ffff92a240044400
> Jan 22 00:45:35 kernel: R13: 0000000000000008 R14: 00000000ffffffff R15:
> 0000000000000dc0
> Jan 22 00:45:35 kernel: FS:  00007f91abd0d740(0000)
> GS:ffff92e13e880000(0000) knlGS:0000000000000000
> Jan 22 00:45:35 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> Jan 22 00:45:35 kernel: CR2: 000000002346c3c8 CR3: 000000223fbb6004 CR4:
> 0000000000770ef0
> Jan 22 00:45:35 kernel: PKRU: 55555554
> Jan 22 00:45:35 kernel: Call Trace:
> Jan 22 00:45:35 kernel: <TASK>
> Jan 22 00:45:35 kernel: ? show_regs+0x6d/0x80
> Jan 22 00:45:35 kernel: ? die_addr+0x3c/0xa0
> Jan 22 00:45:35 kernel: ? exc_general_protection+0x248/0x470
> Jan 22 00:45:35 kernel: ? asm_exc_general_protection+0x2b/0x30
> Jan 22 00:45:35 kernel: ? __kmalloc_node_noprof+0xff/0x490
> Jan 22 00:45:35 kernel: ? srso_alias_return_thunk+0x5/0xfbef5
> Jan 22 00:45:35 kernel: ? __get_vm_area_node+0xd2/0x140
> Jan 22 00:45:35 kernel: ? __vmalloc_node_range_noprof+0x2ec/0x7f0
> Jan 22 00:45:35 kernel: __vmalloc_node_range_noprof+0x2ec/0x7f0
> Jan 22 00:45:35 kernel: ? __vmalloc_node_range_noprof+0x2ec/0x7f0
> Jan 22 00:45:35 kernel: ? __vcalloc_noprof+0x26/0x40
> Jan 22 00:45:35 kernel: __vmalloc_noprof+0x4d/0x60
> Jan 22 00:45:35 kernel: ? __vcalloc_noprof+0x26/0x40
> Jan 22 00:45:35 kernel: __vcalloc_noprof+0x26/0x40
> Jan 22 00:45:35 kernel: kvm_arch_prepare_memory_region+0x13f/0x300 [kvm]

..

> _Recreate steps:_
> 
> 1. Build and Install next-20250121 kernel with attached kernel_config.
> 
> 2. Build and run selftests/kvm component from linux next-20250121 tree
> 
> Issue currently seem to be hit intermittently, I am trying to find more
> reliable recreations steps, meantime wanted to post the issue here for
> awareness/getting any pointers.

I would be surprised if this has anything to do with KVM, KVM is simply doing a
vcalloc(), and it's not even a particularly large allocation for this test.

What code does "__kmalloc_node_noprof+0xff/0x490" correspond to?  Without that
info, you're unlikely to get any help/ideas.

  reply	other threads:[~2025-01-23 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-22  4:48 next-20250121: kvm selftests: RIP: 0010:__kmalloc_node_noprof+0xff/0x490 Aithal, Srikanth
2025-01-23 14:14 ` Sean Christopherson [this message]
2025-01-24 16:13 ` Vlastimil Babka

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=Z5JOzFv_Us-3jLr4@google.com \
    --to=seanjc@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sraithal@amd.com \
    /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.