From: Juergen Gross <jgross@suse.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org,
linux-pm@vger.kernel.org, "Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
"Len Brown" <len.brown@intel.com>, "Pavel Machek" <pavel@ucw.cz>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Oleksandr Tyshchenko" <oleksandr_tyshchenko@epam.com>,
xen-devel@lists.xenproject.org,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Subject: Re: [PATCH] x86/acpi: fix suspend with Xen
Date: Mon, 16 Jan 2023 07:45:26 +0100 [thread overview]
Message-ID: <e5cc2f96-82bc-a0dc-21fa-2f605bc867d1@suse.com> (raw)
In-Reply-To: <CAJZ5v0gP_NUeQimn21tJuUjpMAOW_wFrRe4jstN13So_4_T4QQ@mail.gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1923 bytes --]
On 13.01.23 20:40, Rafael J. Wysocki wrote:
> On Fri, Jan 13, 2023 at 3:06 PM Juergen Gross <jgross@suse.com> wrote:
>>
>> Commit f1e525009493 ("x86/boot: Skip realmode init code when running as
>> Xen PV guest") missed one code path accessing real_mode_header, leading
>> to dereferencing NULL when suspending the system under Xen:
>>
>> [ 348.284004] PM: suspend entry (deep)
>> [ 348.289532] Filesystems sync: 0.005 seconds
>> [ 348.291545] Freezing user space processes ... (elapsed 0.000 seconds) done.
>> [ 348.292457] OOM killer disabled.
>> [ 348.292462] Freezing remaining freezable tasks ... (elapsed 0.104 seconds) done.
>> [ 348.396612] printk: Suspending console(s) (use no_console_suspend to debug)
>> [ 348.749228] PM: suspend devices took 0.352 seconds
>> [ 348.769713] ACPI: EC: interrupt blocked
>> [ 348.816077] BUG: kernel NULL pointer dereference, address: 000000000000001c
>> [ 348.816080] #PF: supervisor read access in kernel mode
>> [ 348.816081] #PF: error_code(0x0000) - not-present page
>> [ 348.816083] PGD 0 P4D 0
>> [ 348.816086] Oops: 0000 [#1] PREEMPT SMP NOPTI
>> [ 348.816089] CPU: 0 PID: 6764 Comm: systemd-sleep Not tainted 6.1.3-1.fc32.qubes.x86_64 #1
>> [ 348.816092] Hardware name: Star Labs StarBook/StarBook, BIOS 8.01 07/03/2022
>> [ 348.816093] RIP: e030:acpi_get_wakeup_address+0xc/0x20
>>
>> Fix that by adding an indirection for acpi_get_wakeup_address() which
>> Xen PV dom0 can use to return a dummy non-zero wakeup address (this
>> address won't ever be used, as the real suspend handling is done by the
>> hypervisor).
>
> How exactly does this help?
I believed the first sentence of the commit message would make this
clear enough.
I can expand the commit message to go more into detail if you think
this is really needed.
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
next prev parent reply other threads:[~2023-01-16 6:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 14:06 Juergen Gross
2023-01-13 19:40 ` Rafael J. Wysocki
2023-01-13 22:52 ` Marek Marczykowski-Górecki
2023-01-16 6:45 ` Juergen Gross [this message]
2023-01-17 14:09 ` Rafael J. Wysocki
2023-01-17 15:32 ` Juergen Gross
2023-01-17 15:36 ` Rafael J. Wysocki
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=e5cc2f96-82bc-a0dc-21fa-2f605bc867d1@suse.com \
--to=jgross@suse.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marmarek@invisiblethingslab.com \
--cc=mingo@redhat.com \
--cc=oleksandr_tyshchenko@epam.com \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=sstabellini@kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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
all inboxes | Powered by JetHome®