+ mm-gup-check-page-posion-status-for-coredump-v4.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-gup-check-page-posion-status-for-coredump-v4
has been added to the -mm tree.  Its filename is
     mm-gup-check-page-posion-status-for-coredump-v4.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-gup-check-page-posion-status-for-coredump-v4.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-gup-check-page-posion-status-for-coredump-v4.patch

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: Aili Yao <yaoaili@xxxxxxxxxxxx>
Subject: mm-gup-check-page-posion-status-for-coredump-v4

is_page_poisoned() arg cannot be null, per Matthew

Link: https://lkml.kernel.org/r/20210319104437.6f30e80d@alex-virtual-machine
Link: https://lkml.kernel.org/r/20210322115233.05e4e82a@alex-virtual-machine
Signed-off-by: Aili Yao <yaoaili@xxxxxxxxxxxx>
Cc: David Hildenbrand <david@xxxxxxxxxx>
Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
Cc: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>
Cc: Oscar Salvador <osalvador@xxxxxxx>
Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
Cc: Aili Yao <yaoaili@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/internal.h |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

--- a/mm/internal.h~mm-gup-check-page-posion-status-for-coredump-v4
+++ a/mm/internal.h
@@ -109,12 +109,11 @@ static inline void set_page_refcounted(s
  */
 static inline bool is_page_poisoned(struct page *page)
 {
-	if (page != NULL) {
-		if (PageHWPoison(page))
-			return true;
-		else if (PageHuge(page) && PageHWPoison(compound_head(page)))
-			return true;
-	}
+	if (PageHWPoison(page))
+		return true;
+	else if (PageHuge(page) && PageHWPoison(compound_head(page)))
+		return true;
+
 	return false;
 }
 
_

Patches currently in -mm which might be from yaoaili@xxxxxxxxxxxx are

mm-gup-check-page-posion-status-for-coredump.patch
mm-gup-check-page-posion-status-for-coredump-v4.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux