lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1d34eaa5-a506-8b7a-6471-490c345deef8@gmail.com>
Date:   Wed, 21 Dec 2016 10:49:08 -0500
From:   Yasuaki Ishimatsu <yasu.isimatu@...il.com>
To:     linux-mm@...ck.org, linux-kernel@...r.kernel.org, x86@...nel.org
Cc:     akpm@...ux-foundation.org, tglx@...utronix.de, mingo@...hat.com,
        hpa@...or.com, dave.hansen@...ux.intel.com, vbabka@...e.cz,
        mgorman@...hsingularity.net, qiuxishi@...wei.com
Subject: [Resend PATCH 1/2] mm/sparse: use page_private() to get page->private
 value

free_map_bootmem() uses page->private directly to set
removing_section_nr argument. But to get page->private
value, page_private() has been prepared.

So free_map_bootmem() should use page_private() instead of
page->private.

Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@...fujitsu.com>
---
  mm/sparse.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/sparse.c b/mm/sparse.c
index 1e168bf..dc30a70 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -667,7 +667,7 @@ static void free_map_bootmem(struct page *memmap)
  		BUG_ON(magic == NODE_INFO);

  		maps_section_nr = pfn_to_section_nr(page_to_pfn(page));
-		removing_section_nr = page->private;
+		removing_section_nr = page_private(page);

  		/*
  		 * When this function is called, the removing section is
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ