Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp92498pxj; Wed, 26 May 2021 17:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWy8YLfzgoDbBpQepDeuYlCEwoyCmbsSWsrl49Go1h5Ly5aaRb8YP+LAYutCFstF1nbGJg X-Received: by 2002:a05:6402:696:: with SMTP id f22mr868890edy.131.1622074212852; Wed, 26 May 2021 17:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622074212; cv=none; d=google.com; s=arc-20160816; b=j87llWKsVQWDKF0gIrJRktg5sYaAam9ar2253XeVzHHiJaysTySwQTohlXGj/EAD/7 fauRx1fkb1Ye1kmfNdC15HSefziGdkAQOAUVnW1iz6dX/GwhUtsTGxqJ2KFgWjKACsmu qzKoHJ0zpgvvY8YJgo/MhpUzOeQxob8KKUJnvxGLMHikeBsYkkSqcX4zztN7+00FlObI X4bKFImQgLfDPbkbYa0G9gLevvjwen6HElAXVJc4EuPQsFcTvWhTZTWyglJEQZvrx+zp 3bG69a4FN5s6swgGF26ogXFZTVAPHmQLCiYJSq6bZL44/jLDK+Mar38Hs7DctZCNK0wt I8ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=id6F4lgfjQNsJ+3S/VgOIlQEjaPpg+ReNaNL6KgFZYE=; b=bjLdyM4n4+D+2NjBvnQvyHI9OCAJIfmVsscoYb9yB6YFKL+VQV5w7e9p6BTkqr5K3C pGSvbYPlM3R402KNixIHhS6zC2TKT6WKQPr74xDoNzAobQHH0r1bHWLUQOjhSSm+FkmQ EZi58BRvofDebsIpZHkwuzRGj+BK8SUnzfeiQd4alEQlJ8TdrFlicFclDGi5Ncm3lTTd V+jM8+V7n40d5WJdfMPvSRsow5urnicWRvY6Uqzfz3yXeAvtVzLapr51EIOm5PQ9keji t5LGwvdn+iEBXsCya2A2zUfGK0JFazztYjdy2Cnoz+MfaIqpRhXlHTTk+oNeVo8UNusb 8c0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G9uWbmyG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si428657edc.430.2021.05.26.17.09.48; Wed, 26 May 2021 17:10:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G9uWbmyG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235579AbhEZSn1 (ORCPT + 99 others); Wed, 26 May 2021 14:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235564AbhEZSn0 (ORCPT ); Wed, 26 May 2021 14:43:26 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 940E8C061574; Wed, 26 May 2021 11:41:53 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id w1so3479939ybt.1; Wed, 26 May 2021 11:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=id6F4lgfjQNsJ+3S/VgOIlQEjaPpg+ReNaNL6KgFZYE=; b=G9uWbmyGB9td6lW4+3dQWDxA8jE3yVCUGPZVKZ3BNl/ItZ9wkOEFuPvKCUDOkfZybL pqcRcytG65avmCD6ISAc/snTplX8rQuy66SQntPnr2Q9xkSFIxZByus6UlojrPmt3HJ9 BVPGJlUu09DHIhxgiUvztft51RHE1wV5oGdlPQ0PIVMEpOmZ8r6oAh/oS076fGKS916c 1CynmiLCVu+TsfQbqSB2H0IlPRKNMXjYb1FMrxr0pFeajfHDGStgifmpcA7fxGx13q5J h2hwNvlI4stoN+RCC49jEZ1X79Ux0OcmI4RNAC5NagNZtGwQlpDC/WmTP98oz9YvGark IvyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=id6F4lgfjQNsJ+3S/VgOIlQEjaPpg+ReNaNL6KgFZYE=; b=B230yREWRT8tz2VL6YeZoI9kEg2sMjG/yfFzVlF4LPysYtkBuygXEXG2TPenArs27V hv4j8GkE8Q3l9UxVUP9Si2vziaPcubBc1EDllP8oziKmX1gmchqKpDkMLF6XkIZKhlzI 9p5kozA2atpWDYbQvNpLV8WgXGubiKRIPCEJjZYhon+qD3waFq3lSgJfRzQKJ9uxS+Bj uveIvUu0aU/nnkxCNv/q1FLLKkFjDbcEd74vnee4z1FT3kFV0/J0/f0DOBQwC3P0ORDR idEu2qMHetlAmKPWZtuIBDFRF1FkfyVWTo5Q7xoolLrs3adqIaFfVnB0x0wU2NHaVqcI Dm/Q== X-Gm-Message-State: AOAM532Q/efuDyId/TYJ/0Kaip5LjBgnnXn+hNUSSvLM+6Yq3gynj5Sl V102HDytkHttmyiN4YBA6V7m6k/xK7Pz2I5LEZM= X-Received: by 2002:a25:1455:: with SMTP id 82mr51691332ybu.403.1622054512897; Wed, 26 May 2021 11:41:52 -0700 (PDT) MIME-Version: 1.0 References: <20210526080741.GW30378@techsingularity.net> <20210526181306.GZ30378@techsingularity.net> In-Reply-To: <20210526181306.GZ30378@techsingularity.net> From: Andrii Nakryiko Date: Wed, 26 May 2021 11:41:41 -0700 Message-ID: Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets To: Mel Gorman 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 11:13 AM Mel Gorman wrote: > > 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 Oh, I didn't know about this instability. > 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. Yep, makes sense. > > > Either way: > > > > Acked-by: Andrii Nakryiko > > Tested-by: Andrii Nakryiko > > > > Thanks! > > -- > Mel Gorman > SUSE Labs