linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Do not try to access unaccepted memory
@ 2023-09-11 11:21 Adrian Hunter
  2023-09-11 11:21 ` [PATCH V2 1/2] efi/unaccepted: Do not let /proc/vmcore " Adrian Hunter
  2023-09-11 11:21 ` [PATCH V2 2/2] proc/kcore: Do not " Adrian Hunter
  0 siblings, 2 replies; 8+ messages in thread
From: Adrian Hunter @ 2023-09-11 11:21 UTC (permalink / raw)
  To: Kirill A. Shutemov, Borislav Petkov, Andrew Morton,
	Ard Biesheuvel
  Cc: Dave Hansen, Vlastimil Babka, Mike Rapoport, Lorenzo Stoakes,
	Tom Lendacky, Baoquan He, Vivek Goyal, Dave Young, linux-kernel,
	linux-fsdevel, linux-mm, linux-coco, linux-efi, kexec

Hi

Support for unaccepted memory was added recently, refer commit
dcdfdd40fa82 ("mm: Add support for unaccepted memory"), whereby
a virtual machine may need to accept memory before it can be used.

Plug a few gaps where RAM is exposed without checking if it is
unaccepted memory.


Changes in V2:

      efi/unaccepted: Do not let /proc/vmcore try to access unaccepted memory
          Change patch subject and commit message
          Use vmcore_cb->.pfn_is_ram() instead of changing vmcore.c

      proc/kcore: Do not try to access unaccepted memory
          Change patch subject and commit message
          Do not open code pfn_is_unaccepted_memory()

      /dev/mem: Do not map unaccepted memory
          Patch dropped because it is not required


Adrian Hunter (2):
      efi/unaccepted: Do not let /proc/vmcore try to access unaccepted memory
      proc/kcore: Do not try to access unaccepted memory

 drivers/firmware/efi/unaccepted_memory.c | 20 ++++++++++++++++++++
 fs/proc/kcore.c                          |  3 ++-
 include/linux/mm.h                       |  7 +++++++
 3 files changed, 29 insertions(+), 1 deletion(-)


Regards
Adrian

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-12  7:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11 11:21 [PATCH V2 0/2] Do not try to access unaccepted memory Adrian Hunter
2023-09-11 11:21 ` [PATCH V2 1/2] efi/unaccepted: Do not let /proc/vmcore " Adrian Hunter
2023-09-12  7:18   ` David Hildenbrand
2023-09-12  7:19   ` David Hildenbrand
2023-09-12  7:47     ` Adrian Hunter
2023-09-12  7:50       ` David Hildenbrand
2023-09-11 11:21 ` [PATCH V2 2/2] proc/kcore: Do not " Adrian Hunter
2023-09-12  7:13   ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).