linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ritesh Harjani <riteshh@linux.ibm.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: BUG_ON() in pfn_swap_entry_to_page()
Date: Wed, 23 Mar 2022 00:23:11 +0530	[thread overview]
Message-ID: <20220322185311.uilvu4gppg6j7xnv@riteshh-domain> (raw)
In-Reply-To: <YjoGbhreg8lGCGIJ@linutronix.de>

On 22/03/22 06:25PM, Sebastian Andrzej Siewior wrote:
> Run into
>
> |kernel BUG at include/linux/swapops.h:258!
> |invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
> |CPU: 10 PID: 1741 Comm: malloc-mem Not tainted 5.17.0-next-20220322 #19
> |Hardware name: Intel Corporation S2600CP/S2600CP, BIOS SE5C600.86B.02.03.0003.041920141333 04/19/2014
> |RIP: 0010:migration_entry_wait_on_locked+0x233/0x2c0
> |Code: 66 90 e9 8a fe ff ff 66 90 e9 3d ff ff ff 48 8b 43 08 a8 01 0f 85 87 00 00 00 66 90 48 89 d8 48 8b 00 a8 01 0f 85 23 fe ff ff <0f> 0b 48 83 e8 01 48 89 c3 e9 29 fe ff ff  65 48 8b 04 25 00 c0 01
> |RSP: 0000:ffffc9000a44bd78 EFLAGS: 00010246
> |RAX: 002fffff80000000 RBX: ffffea0014a20000 RCX: ffffffff5aeffe00
> |RDX: ffff88811b42e200 RSI: 0000000000000000 RDI: 000000000000001f
> |RBP: ffff88811b42e200 R08: 0000000000000001 R09: 0000000000000000
> |R10: 0000000000000000 R11: 0000000000000000 R12: 00007f7131200000
> |R13: 0000000000000c48 R14: 0400000000000000 R15: fff000003fffffff
> |FS:  00007f7145570580(0000) GS:ffff888a2aa80000(0000) knlGS:0000000000000000
> |CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> |CR2: 00007f7131200000 CR3: 00000006f42c4006 CR4: 00000000000606e0
> |Call Trace:
> | <TASK>
> | __handle_mm_fault+0x2bf/0x1810
> | handle_mm_fault+0x136/0x3e0
> | exc_page_fault+0x1d2/0x850
> | asm_exc_page_fault+0x22/0x30

Based on call stack, this looks similar to the issue reported here [1].
I just happen to stumble upon it, but haven't checked any details of why this
can trigger though.

[1]: https://lore.kernel.org/all/20220317080504.GC735@xsang-OptiPlex-9020/


-ritesh

>
> This is the BUG_ON() in pfn_swap_entry_to_page(). The box itself has no
> swapspace configured. Is this something known?
>
> Sebastian
>


      parent reply	other threads:[~2022-03-22 18:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 17:25 Sebastian Andrzej Siewior
2022-03-22 17:41 ` Matthew Wilcox
2022-03-23  0:29   ` Alistair Popple
2022-03-24  3:24     ` Matthew Wilcox
2022-03-24  3:51       ` Alistair Popple
2024-04-24 19:45         ` Felix Kuehling
2024-04-25  9:32           ` David Hildenbrand
2024-04-25 14:33             ` Felix Kuehling
2024-04-26  8:49               ` David Hildenbrand
2024-04-26 14:56                 ` Felix Kuehling
2022-03-22 18:53 ` Ritesh Harjani [this message]

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=20220322185311.uilvu4gppg6j7xnv@riteshh-domain \
    --to=riteshh@linux.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=bigeasy@linutronix.de \
    --cc=linux-mm@kvack.org \
    --cc=tglx@linutronix.de \
    /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