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=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 50A43C47088 for ; Wed, 26 May 2021 18:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F20D613D8 for ; Wed, 26 May 2021 18:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234925AbhEZSOn (ORCPT ); Wed, 26 May 2021 14:14:43 -0400 Received: from outbound-smtp24.blacknight.com ([81.17.249.192]:43313 "EHLO outbound-smtp24.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234855AbhEZSOl (ORCPT ); Wed, 26 May 2021 14:14:41 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp24.blacknight.com (Postfix) with ESMTPS id E0AC382016 for ; Wed, 26 May 2021 19:13:08 +0100 (IST) Received: (qmail 4224 invoked from network); 26 May 2021 18:13:08 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 May 2021 18:13:08 -0000 Date: Wed, 26 May 2021 19:13:07 +0100 From: Mel Gorman To: Andrii Nakryiko Cc: Andrew Morton , Michal Suchanek , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , open list , Arnaldo Carvalho de Melo , Jiri Olsa , Hritik Vijay , bpf , Linux-Net , Linux-MM Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets Message-ID: <20210526181306.GZ30378@techsingularity.net> References: <20210526080741.GW30378@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 Wed, May 26, 2021 at 09:57:31AM -0700, Andrii Nakryiko wrote: > > This patch checks for older versions of pahole and forces struct pagesets > > to be non-zero sized as a workaround when CONFIG_DEBUG_INFO_BTF is set. A > > warning is omitted so that distributions can update pahole when 1.22 > > s/omitted/emitted/ ? > Yes. > > is released. > > > > Reported-by: Michal Suchanek > > Reported-by: Hritik Vijay > > Debugged-by: Andrii Nakryiko > > Signed-off-by: Mel Gorman > > --- > > Looks good! I verified that this does fix the issue on the latest > linux-next tree, thanks! > Excellent > One question, should > > Fixes: 5716a627517d ("mm/page_alloc: convert per-cpu list protection > to local_lock") > > be added to facilitate backporting? > The git commit is not stable because the patch "mm/page_alloc: convert per-cpu list protection to local_lock" is in Andrew's mmotm tree which is quilt based. I decided not to treat the patch as a fix because the patch is not wrong as such, it's a limitation of an external tool. However, I would expect both the problematic patch and the BTF workaround to go in during the same merge window so backports to -stable should not be required. > Either way: > > Acked-by: Andrii Nakryiko > Tested-by: Andrii Nakryiko > Thanks! -- Mel Gorman SUSE Labs