All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Orzel, Michal" <michal.orzel@amd.com>
To: Hirokazu Takahashi <taka@valinux.co.jp>,
	<xen-devel@lists.xenproject.org>
Cc: <jbeulich@suse.com>, Stefano Stabellini <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>,
	Bertrand Marquis <bertrand.marquis@arm.com>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH] xen/arm/acpi: Crash when unmapping from the ACPI fixmap area
Date: Thu, 3 Dec 2026 12:29:43 +0100	[thread overview]
Message-ID: <f677b7bd-bcc9-4e1b-9cb3-e5986b1e824a@amd.com> (raw)
In-Reply-To: <20261202100559.164564-1-taka@valinux.co.jp>

Title should say what the patch does, so for example:
"xen/arm: acpi: Fix off-by-one in __acpi_unmap_table() ASSERT"

On 02-Dec-26 11:05, Hirokazu Takahashi wrote:
> Mapping a very large ACPI table may trigger an ASSERT crash in
what's a very large table? Please specify the exact condition that ASSERT describes.

> __acpi_unmap_table().
> This happens because the boundary condition used to validate the
> region to be unmapped from the ACPI fixmap area is off by one byte.
> 
> Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp>
> ---
>  xen/arch/arm/acpi/lib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/xen/arch/arm/acpi/lib.c b/xen/arch/arm/acpi/lib.c
> index 736cf09eca..026bce9b73 100644
> --- a/xen/arch/arm/acpi/lib.c
> +++ b/xen/arch/arm/acpi/lib.c
> @@ -84,7 +84,7 @@ bool __acpi_unmap_table(const void *ptr, unsigned long size)
>      ASSERT((vaddr & PAGE_MASK) == FIXMAP_ADDR(FIX_ACPI_BEGIN));
>  
>      /* The region allocated fit in the ACPI fixmap region. */
> -    ASSERT(size < (FIXMAP_ADDR(FIX_ACPI_END) + PAGE_SIZE - vaddr));
> +    ASSERT(size <= (FIXMAP_ADDR(FIX_ACPI_END) + PAGE_SIZE - vaddr));
>      ASSERT(fixmap_inuse);
>  
>      fixmap_inuse = false;


Please also add:
Fixes: 4d625ff3c3a9 ("xen/arm: acpi: The fixmap area should always be cleared
during failure/unmap")

With that addressed:
Reviewed-by: Michal Orzel <michal.orzel@amd.com>

~Michal



  reply	other threads:[~2026-12-03 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 10:05 [PATCH] xen/arm/acpi: Crash when unmapping from the ACPI fixmap area Hirokazu Takahashi
2026-12-03 11:29 ` Orzel, Michal [this message]
2026-12-04  3:48   ` Hirokazu Takahashi

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=f677b7bd-bcc9-4e1b-9cb3-e5986b1e824a@amd.com \
    --to=michal.orzel@amd.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=taka@valinux.co.jp \
    --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 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.