Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5525643pxj; Wed, 26 May 2021 12:38:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRq0GpPWTqDye3wNquRsOS4pNz4nmUmMPpGpqbstgJMX2GakYnmwCR0lrtv81x9HXl9QCZ X-Received: by 2002:a17:906:9812:: with SMTP id lm18mr34930740ejb.428.1622057927820; Wed, 26 May 2021 12:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622057927; cv=none; d=google.com; s=arc-20160816; b=MmbEekASkNJEeFO9kVB6qZz4TNcmfUpWz6w1T+WYqGQQ/+s7zSDnwqns3LBsBtg87N donsW6ikcXJ1Y+9YXNX53IUfQmaH6Hpqey4g6tU38j/SzVF2U/BDV3xACj6DvwZ8kGcY eoHTEPhyF5G4EdA2/e54hccH7S8z5BQcLwS3JljdGBP515pURuKWU+D9x3MhhO+YD1sc I+OenXMeuhRdEMtq8zG55+DJBRK6g4bY3kAkZN8GcNScoITtLygREhKhSLSYvYkRknYN snbwx68fJ/fdfkWIxn/6uPk8Qpodv3husdyt8kRTj8Ku3R6zI6xZr1LBSeTI2EAqgj2W qqPA== 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=iYM8+s+/l05MOibrMuVYdqIe7ZjnTLKH01Ug9eua1FU=; b=d+RlGOp2Bow7KAeXWwnIFDq+B8Nks+Lb10DQtio6nkrp63duCM26C/HDZ7HVy+2YFN VsIPnR8GRWOaVA3Ae3stK/ESeHplL/ixbN46PhCOz7R1hfL4NHxXh4ESx67Y2+9v0M7t bqRGr60LBUtTSOUhDjn2h6mS4jxseKiy8FsoxyEfuyGGeOi542qCbiW7I6DHdPEiTDvQ DN6XGnXbVJppvlJXYK9fT4kUKReexIlTiIUt6KP2lFfqdp5QdrGoLSuBfoEWPkn6o2es 3b7UD1M3snd7D+bdotvRM8fyZoZ7poS1la+KOk3UAXap31PKsu9UYROpYpV2nYVlmEvS xCtw== 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 i2si37396ejp.181.2021.05.26.12.38.24; Wed, 26 May 2021 12:38:47 -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 S234871AbhEZSOm (ORCPT + 99 others); Wed, 26 May 2021 14:14:42 -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