Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp537940pxv; Thu, 15 Jul 2021 09:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZw3Rdl9iY04o8u6szUw0jWLX6eeXrjpw3VUo/koieqTPWTXg/T+GOHuAZH+CLvyiILSI1 X-Received: by 2002:a17:906:5fc1:: with SMTP id k1mr6461815ejv.360.1626367525009; Thu, 15 Jul 2021 09:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626367525; cv=none; d=google.com; s=arc-20160816; b=iaL7/8pHczEg7nIOuJI2Pb1KouYTb2d9cpr6VL6HDcLuN1GKAv7YoTv72rVnUkOV4b xya+motms2MK9+hMTvuk0P/9o9BqKYAbml+6b++C6JltHDYizDz7D6pbQl3YSCqaVnkK eSYqUyQUHZFWOnMU4HjZjjh/hJUq/J7vYytdV4LiPYrLm+oH2d4MwpupNSmD3gPeKsfd mgHxrh3gjBvQN2tdgaH4iL4VYayhrrE6/ImS/OkNhdpCDF3iSFqoGPcY/wAgkiD1xIcV PPiP74UxZ0/ebdBT9fTNvvJO16RZxFRbW3q9SXgPClqOFGfwJO5fOqQfK3mAYgWKPE5X N3TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jLpNl5Q1gSw4274BPtLkCaqU5cXCFpeflOj9YwbhzFo=; b=Pxv9uMlCtKPduL8dJlFfYa8Bk/wAbfEeY0vq3eUfvvccATLz1xd/Fnq19q3PYJAlvr LbTiK2NWep+rgAsCbkJve+SDPPpvofLF4OodNr71mnYEQUr57sOPiOMk2k2UiaTY6mx+ q6EhQyM3lFKrZEfPTgTaBUj/Vhb7OfUDbS3llN9kBkqjqMgke197kYuIp3qzPq3R6chU /qGK/xI7SEl1jTr/jRNXc9pT4399q8La2JImeMe701+ZfEJZZnTRasNu43DRCGoUO/B6 h0+raxuGNnoYdKTFAW4v38B1FpMxXjON/6GygGWGZeAqfZhEeB7SLzvjqeJk7e7YNy7d ibgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si316974ejz.352.2021.07.15.09.44.59; Thu, 15 Jul 2021 09:45:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238369AbhGOOIh (ORCPT + 99 others); Thu, 15 Jul 2021 10:08:37 -0400 Received: from outbound-smtp14.blacknight.com ([46.22.139.231]:43115 "EHLO outbound-smtp14.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbhGOOIh (ORCPT ); Thu, 15 Jul 2021 10:08:37 -0400 Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp14.blacknight.com (Postfix) with ESMTPS id 1BE141C3DF4 for ; Thu, 15 Jul 2021 15:05:43 +0100 (IST) Received: (qmail 4167 invoked from network); 15 Jul 2021 14:05:42 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 15 Jul 2021 14:05:42 -0000 Date: Thu, 15 Jul 2021 15:05:41 +0100 From: Mel Gorman To: ?????? Cc: Andrew Morton , Alexander Lobakin , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel@vivo.com, syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com, Wang Qing Subject: Re: Re: [PATCH v2] mm/page_alloc: fix alloc_pages_bulk/set_page_owner panic on irq disabled Message-ID: <20210715140541.GT3809@techsingularity.net> References: <20210715115731.GS3809@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 09:02:14PM +0800, ?????? wrote: > >> Fixes: 0f87d9d30f21 ("mm/page_alloc: add an array-based interface to the bulk page allocator") > >> Reported-by: syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com > >> Suggested-by: Wang Qing > >> Signed-off-by: Yang Huan > > > >https://lore.kernel.org/lkml/20210713152100.10381-2-mgorman@techsingularity.net/ > >is now part of a series that has being sent to Linus. Hence, the Fixes > >part is no longer applicable and the patch will no longer be addresing > >an atomic sleep bug. This patch should be treated as an enhancement > > Hi Mel Gorman, thanks for your reply. > I see the fix patch, it fix this bug by abandon alloc bulk feature when page_owner is set. > But in my opinion, it can't really fix this bug, it's a circumvention plan. Yes, it's a circumvention plan for reasons as laid out in the changelog. > >to allow bulk allocations when PAGE_OWNER is set. For that, it should > >include a note on the performance if PAGE_OWNER is used with either NFS > >or high-speed networking to justify the additional complexity. > > My patch just split the prep_new_page page_gfp into alloc_gfp(for alloc bulk is GFP_ATOMIC, > for other's no change) and trace page gfp. So, we will not use the error way to get memory. > So, I think this will not affect alloc bulk performance when page_owner is on(compare with origin patch) but > can really fix this bug rather than evade. > And this patch can let alloc bulk feature and page_owner feature work togher > So, I will send patch again based on the fix patch. Your fix should revert the workaround. Also your changelog should note that in some cases that PAGE_OWNER information will be lost if the GFP_ATOMIC allocation from bulk allocation context fails. -- Mel Gorman SUSE Labs