Skip to content

Do not try to access unaccepted memory

Adrian Hunter kexec linux-coco linux-efi linux-fsdevel linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] proc-kcore-do-not-try-to-access-unaccepted-memory.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied 2/2

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2efi/unaccepted: Do not let /proc/vmcore try to access unaccepted memorydrivers/firmware/efi/unaccepted_memory.c include/linux/mm.h+27 -04 repliesApplied
2/2proc/kcore: Do not try to access unaccepted memoryfs/proc/kcore.c+2 -11 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/2] Do not try to access unaccepted memory

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