Stable Archive on
 help / color / Atom feed
* + mm-sparse-fix-kernel-crash-with-pfn_section_valid-check-v2.patch added to -mm tree
@ 2020-03-26 19:41 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-03-26 19:41 UTC (permalink / raw)
  To: aneesh.kumar, bhe, dan.j.williams, david, mhocko, mm-commits,
	mpe, osalvador, pankaj.gupta.linux, richardw.yang, rppt, sachinp,

The patch titled
     Subject: mm-sparse-fix-kernel-crash-with-pfn_section_valid-check-v2
has been added to the -mm tree.  Its filename is

This patch should soon appear at
and later at

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

From: "Aneesh Kumar K.V" <>
Subject: mm-sparse-fix-kernel-crash-with-pfn_section_valid-check-v2

add comment

Fixes: d41e2f3bd546 ("mm/hotplug: fix hot remove failure in SPARSEMEM|!VMEMMAP case")
Signed-off-by: Aneesh Kumar K.V <>
Reported-by: Sachin Sant <>
Tested-by: Sachin Sant <>
Reviewed-by: Baoquan He <>
Acked-by: Michal Hocko <>
Acked-by: Pankaj Gupta <>
Cc: Michael Ellerman <>
Cc: Dan Williams <>
Cc: David Hildenbrand <>
Cc: Wei Yang <>
Cc: Oscar Salvador <>
Cc: Mike Rapoport <>
Cc: <>
Signed-off-by: Andrew Morton <>

 mm/sparse.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/mm/sparse.c~mm-sparse-fix-kernel-crash-with-pfn_section_valid-check-v2
+++ a/mm/sparse.c
@@ -781,7 +781,11 @@ static void section_deactivate(unsigned
 			ms->usage = NULL;
 		memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr);
-		/* Mark the section invalid */
+		/*
+		 * Mark the section invalid so that valid_section()
+		 * return false. This prevents code from dereferencing
+		 * ms->usage array.
+		 */
 		ms->section_mem_map &= ~SECTION_HAS_MEM_MAP;

Patches currently in -mm which might be from are


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 19:41 + mm-sparse-fix-kernel-crash-with-pfn_section_valid-check-v2.patch added to -mm tree akpm

Stable Archive on

Archives are clonable:
	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone