Message ID | 20191019032005.sgsUejgDW%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Badx=YM=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AC4D112C for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 19 Oct 2019 03:20:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DBAA122468 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 19 Oct 2019 03:20:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="wV2bVCa4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBAA122468 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A96E48E0013; Fri, 18 Oct 2019 23:20:07 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A46CA8E0003; Fri, 18 Oct 2019 23:20:07 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95CB08E0013; Fri, 18 Oct 2019 23:20:07 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0229.hostedemail.com [216.40.44.229]) by kanga.kvack.org (Postfix) with ESMTP id 740298E0003 for <linux-mm@kvack.org>; Fri, 18 Oct 2019 23:20:07 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 26FA11803006C for <linux-mm@kvack.org>; Sat, 19 Oct 2019 03:20:07 +0000 (UTC) X-FDA: 76059080454.03.store08_1e18e1502a23c X-Spam-Summary: 2,0,0,1f1790734a0a4b64,d41d8cd98f00b204,akpm@linux-foundation.org,:akpm@linux-foundation.org:anshuman.khandual@arm.com:david@redhat.com::mhocko@kernel.org:mhocko@suse.com:mike.kravetz@oracle.com:mm-commits@vger.kernel.org:stable@vger.kernel.org:torvalds@linux-foundation.org,RULES_HIT:41:355:379:800:960:967:973:988:989:1260:1263:1345:1381:1431:1437:1534:1541:1711:1730:1747:1777:1792:1963:2194:2199:2393:2525:2559:2564:2682:2685:2693:2741:2859:2901:2902:2915:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:6261:6653:7576:7903:8599:8660:8957:9025:9545:9592:10004:10913:11026:11473:11658:11914:12043:12048:12114:12297:12438:12517:12519:12555:12679:12783:12986:13069:13148:13161:13180:13221:13229:13230:13255:13311:13357:13846:14181:14384:14721:14849:21080:21094:21323:21451:21627:21939:30054:30064:30069,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0 .5,Netch X-HE-Tag: store08_1e18e1502a23c X-Filterd-Recvd-Size: 3348 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Sat, 19 Oct 2019 03:20:06 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 778D32245A; Sat, 19 Oct 2019 03:20:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571455205; bh=QGcY+R8WdQTLLhix30lDEMJ+sG1VSyhWy0K+M9oeQxI=; h=Date:From:To:Subject:From; b=wV2bVCa4k0DTS2V/5tlCoGVcggRtDghN5Wqv9pTVIkqWDhmfUtpDYVka+rJGOUDW1 54uoaH9p5ywdKdt3nVwZNgapPu9tK7i3lIPoxGAcpqWXK21ASDnvYvUi14aIpugpxQ j0DCCgxpk7776o8o6zqzTZxEKLgmVI0XvfUnyzIQ= Date: Fri, 18 Oct 2019 20:20:05 -0700 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, anshuman.khandual@arm.com, david@redhat.com, linux-mm@kvack.org, mhocko@kernel.org, mhocko@suse.com, mike.kravetz@oracle.com, mm-commits@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 14/26] hugetlbfs: don't access uninitialized memmaps in pfn_range_valid_gigantic() Message-ID: <20191019032005.sgsUejgDW%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/26] drivers/base/memory.c: don't access uninitialized memmaps in soft_offline_page_store()
|
expand
|
--- a/mm/hugetlb.c~hugetlbfs-dont-access-uninitialized-memmaps-in-pfn_range_valid_gigantic +++ a/mm/hugetlb.c @@ -1084,11 +1084,10 @@ static bool pfn_range_valid_gigantic(str struct page *page; for (i = start_pfn; i < end_pfn; i++) { - if (!pfn_valid(i)) + page = pfn_to_online_page(i); + if (!page) return false; - page = pfn_to_page(i); - if (page_zone(page) != z) return false;