All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: christophe.leroy@csgroup.eu, jgross@suse.com,
	mm-commits@vger.kernel.org, rppt@linux.ibm.com,
	Shahab.Vahedi@synopsys.com
Subject: [merged] xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch removed from -mm tree
Date: Wed, 10 Nov 2021 18:46:18 -0800	[thread overview]
Message-ID: <20211111024618.d-eQLo5mi%akpm@linux-foundation.org> (raw)


The patch titled
     Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer
has been removed from the -mm tree.  Its filename was
     xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Mike Rapoport <rppt@linux.ibm.com>
Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer

free_p2m_page() wrongly passes a virtual pointer to memblock_free() that
treats it as a physical address.

Call memblock_free_ptr() instead that gets a virtual address to free the
memory.

Link: https://lkml.kernel.org/r/20210930185031.18648-3-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Shahab Vahedi <Shahab.Vahedi@synopsys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/x86/xen/p2m.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/xen/p2m.c~xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer
+++ a/arch/x86/xen/p2m.c
@@ -197,7 +197,7 @@ static void * __ref alloc_p2m_page(void)
 static void __ref free_p2m_page(void *p)
 {
 	if (unlikely(!slab_is_available())) {
-		memblock_free((unsigned long)p, PAGE_SIZE);
+		memblock_free_ptr(p, PAGE_SIZE);
 		return;
 	}
 
_

Patches currently in -mm which might be from rppt@linux.ibm.com are



                 reply	other threads:[~2021-11-11  2:46 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=20211111024618.d-eQLo5mi%akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=Shahab.Vahedi@synopsys.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=rppt@linux.ibm.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.