From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5502BC4708C for ; Fri, 28 May 2021 07:30:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CD55E611C9 for ; Fri, 28 May 2021 07:30:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD55E611C9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 79D7E6B006C; Fri, 28 May 2021 03:30:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 745806B006E; Fri, 28 May 2021 03:30:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B90D6B0070; Fri, 28 May 2021 03:30:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0085.hostedemail.com [216.40.44.85]) by kanga.kvack.org (Postfix) with ESMTP id DE7A76B006C for ; Fri, 28 May 2021 03:30:34 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 5995D1802E8DD for ; Fri, 28 May 2021 07:30:34 +0000 (UTC) X-FDA: 78189817188.23.983FE77 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf19.hostedemail.com (Postfix) with ESMTP id A76C69001456 for ; Fri, 28 May 2021 07:30:23 +0000 (UTC) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 861F7218AA; Fri, 28 May 2021 07:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622187032; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QzwpghMPSyXPE8aVb0KihyUhKxp1rY1kHmNhoCq/Ne0=; b=qnuIf3S9mGXbwUlt2flNzfWSd1iyT4jFy/FgZGPmInZaGz/h00o2VgQyHKco2ulKCMgi5r Up9ecSds+85MjqQO3bpT2p0P4R2W2NulbYh7ma3vXStuMYitso0G5ke6mm30j7wMWcWTJ7 BQYPyACsqxZVyxcgmH4p7wYaG3UgwtY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622187032; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QzwpghMPSyXPE8aVb0KihyUhKxp1rY1kHmNhoCq/Ne0=; b=5gMuCTtDBGoH7Cw/z7hMQVISIF/HE9Sp1bTh7n9r3OhKwnOm7Yg5EiH43hYe+Aivi2DBdd BFC39Mvcx/Pp6FAw== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id 04F1011A98; Fri, 28 May 2021 07:30:31 +0000 (UTC) Date: Fri, 28 May 2021 09:30:30 +0200 From: Oscar Salvador To: Mike Kravetz Cc: Linux-MM , lkml , Muchun Song , Michal Hocko , David Hildenbrand , Naoya Horiguchi , Andrew Morton Subject: Re: [PATCH] mm: hugetlb: fix dissolve_free_huge_page use of tail/head page Message-ID: <20210528073024.GA32375@linux> References: <20210527231225.226987-1-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210527231225.226987-1-mike.kravetz@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: A76C69001456 Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=qnuIf3S9; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=5gMuCTtD; spf=pass (imf19.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=none X-Rspamd-Server: rspam04 X-Stat-Signature: 7xh3m54kaogkf9ngjr8ja7ufc74wukzr X-HE-Tag: 1622187023-489107 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: On Thu, May 27, 2021 at 04:12:25PM -0700, Mike Kravetz wrote: > The routine dissolve_free_huge_page can be passed the tail page of a > hugetlb page. The tail page is incorrectly passed on to the routines > alloc_huge_page_vmemmap and add_hugetlb_page which expect a hugetlb > head page. > > Operating on a tail page instead of head page could result in addressing > exceptions or vmemmap corruption. > > Signed-off-by: Mike Kravetz I guess Andrew will squash the changes, but fwiw: Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3