Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3749147pxv; Mon, 5 Jul 2021 04:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3zNldlnz5YyrKB7ub84rqhlpuvRSI0vctdiFZq9dKEXh8jJSww4X/dBwTFuRpoCZHZg5s X-Received: by 2002:aa7:cd85:: with SMTP id x5mr15790376edv.115.1625486241775; Mon, 05 Jul 2021 04:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625486241; cv=none; d=google.com; s=arc-20160816; b=RYl0s4vOPa/pe9RikdFQPpe046eVN5yLMSLTFvPMFay019orWymbWUVYrgyGRYRoap n3TJ815qOHQvK7GlaOWfuNervK/PSd9c5jYJVBZ8X+C4e6MW6tyNtbtPBSSZjfNU/ukR ydTlzp7QthQmiJO2OZqBdkDoL+zimB9Su5dUSLLuDjUAEIp6Kja7Hu4idW2enPYZ4qAb dLu1cXRdFTG7FK9FGQ9/D+5BWsN6Hgwxp/AncZD+n3uRUeBCB/K3aryk72kE5pFx2S70 LdkFHM6OSFMR/s2sxVYiT6jvmfEtjeIRsGACGDEdMp3X3Xfs8lGMvKJuzYUuYd3cGwbx 3arw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pq7bP+MTawU/za6/1KcKOrsotUVcyEKhovbCd0LbYxs=; b=y1XGU91nIG6fnkP8Q+ytXXc1u1gPgTLvD6WwwxLIh6cRTupHOmhxFMjNPucynHw4AN 0+4iiXEjO1nJDk0C15ZEQJyMXBB7gl/LtctmKFAbc3v1BgdTxgf9KJHngUaEnV6T69FL 7XoWORp2GuOtUSBteygRKZ4DVHa2dxTJlaKZdiHNNl+JB9fUJ8DHIRMgzXN3ez1ypOjR O0pTaRqFglAzP64FHAGuXoMinrBRJ6sOe+5iLrluA3KPMJluRKP9Up04MQ1cQ30+/J9o o+aoTI0psgeosgKvTY26G90YkIPaTpDxA5o/XijwIwwwY/5tDYA9ye0MVZQ3NSvCL/aw lKag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=a+qDzygS; 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 4si10524105ejr.388.2021.07.05.04.56.57; Mon, 05 Jul 2021 04:57:21 -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=@infradead.org header.s=casper.20170209 header.b=a+qDzygS; 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 S231324AbhGEL6G (ORCPT + 99 others); Mon, 5 Jul 2021 07:58:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbhGEL6F (ORCPT ); Mon, 5 Jul 2021 07:58:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33F8DC061574; Mon, 5 Jul 2021 04:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Pq7bP+MTawU/za6/1KcKOrsotUVcyEKhovbCd0LbYxs=; b=a+qDzygSNKqUonGPkaGwhrnB5T Nm56mhN/nkb4qEMQf8wo67ZcRNY40zF/g8Gq5vbUJaVK6mdWQghoQ3ItzYisV3ahD7M1pZPf0+pBq sMzo8GAzPGX7lfnm0nAj6EskGk523UnvjSQpgad6kBB0C5v77Q6AGNxYZr02WitwcdudQVcBcMInY 6oJbrQKYUcJSntqCQhanhsjE6+0gv0E97fMm8JyML0mfWCAHZ27WkdgxeMsVwmZy3KG1q+3WYKGWK shmZK3c9fzIarX5AleY8Gzgbx+FgK67mHhpgrYKQN1XMfP4QzQkghUyF0KQ16pFGsHG6PfrECEfNe xihRRcrA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0NBl-00ADQL-7P; Mon, 05 Jul 2021 11:55:09 +0000 Date: Mon, 5 Jul 2021 12:55:01 +0100 From: Christoph Hellwig To: Marco Elver Cc: akpm@linux-foundation.org, glider@google.com, dvyukov@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Andrii Nakryiko , Daniel Borkmann , Vlastimil Babka , Yang Shi , bpf@vger.kernel.org, Mel Gorman , Alexei Starovoitov Subject: Re: [PATCH] Revert "mm/page_alloc: make should_fail_alloc_page() static" Message-ID: References: <20210705103806.2339467-1-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210705103806.2339467-1-elver@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 05, 2021 at 12:38:06PM +0200, Marco Elver wrote: > This reverts commit f7173090033c70886d925995e9dfdfb76dbb2441. > > Commit 76cd61739fd1 ("mm/error_inject: Fix allow_error_inject function > signatures") explicitly made should_fail_alloc_page() non-static, due to > worries of remaining compiler optimizations in the absence of function > side-effects while being noinline. > > Furthermore, kernel/bpf/verifier.c pushes should_fail_alloc_page onto > the btf_non_sleepable_error_inject BTF IDs set, which when enabling > CONFIG_DEBUG_INFO_BTF results in an error at the BTFIDS stage: > > FAILED unresolved symbol should_fail_alloc_page > > To avoid the W=1 warning, add a function declaration right above the > function itself, with a comment it is required in a BTF IDs set. NAK. We're not going to make symbols pointlessly global for broken instrumentation coe. Someone needs to fixthis eBPF mess as we had the same kind of issue before already.