Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3457248imw; Mon, 18 Jul 2022 08:24:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sPn0QUEa34nuNrFFQo4XBbnfdCVFmg4FqOZJ04v9DZYi7qAIswH5mmnuL/BoEzxVO48dXz X-Received: by 2002:a05:6402:40c2:b0:43a:b4c9:f7e9 with SMTP id z2-20020a05640240c200b0043ab4c9f7e9mr38013489edb.95.1658157870316; Mon, 18 Jul 2022 08:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658157870; cv=none; d=google.com; s=arc-20160816; b=ZBkI4WTuphHPrCAqEQeasjTjCgFaaPRK2KNh50X4hhjhFiiFexuHIYTPhDL9tRXSe7 dWSNiZVEliOdGSF+FO4yhgoSgfRqf1pPGH0r78GvBlLG2/xsMnYZRBL2DUDhZxWLgWE9 1L/2xG6wGfhl/QoEG824zbV3YS/kZ+NBQzb+z9D0FcP+Fb9UED1dYE6asMjtMRX7lRiH mnJzfA7eKyYJY9OSx/QUm43SUh1WiVJtlo8IOMv2XSnsXO+Brb3IsnU41B1d9H2G72TP eJId1d0EMNvIsUwInfK4x5oY3s3/J13yMHi25hgSuThzT32WbWKOc8/cq/wJ0Z7DcqI2 Z1Ug== 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=usrc0bnw08nLhPvD4aA6AKBz3HseO71WGw3rf5m2z/A=; b=cv1tQlCY9IC3HaDcOIZNb3y0uE5NpyJHXB9IUi8jSH5jr/4MItY96GiUdfNStkPCLh Q+6x5/QnxDu6QUD4ERP7KgEqCGRrHHSQabnUJmHoePPN/+9lYzdyZqtylSGuOQFWii4X wUmwlzH7WNtkANUhak74ebgXVJlavUKcRCXFGNh81zG5RmujmRZV58tg7+FdfYUZYRHd CuOK+BvI2MAjG0j32pl/88ywK3Zq7nXXTIRybKXnokAGCUsQ3mhWvgoUKNzdiZ84YTiZ /UELRqTCifl4uFj1ChaBdKmyHA9WArzUFrjv/VRdHJ8wtK8qU5OEKuhiBbfzHZ9QVcBg 5Ecg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a50d4d9000000b0043a3f82e5ecsi15636475edj.496.2022.07.18.08.24.05; Mon, 18 Jul 2022 08:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbiGRPE1 (ORCPT + 99 others); Mon, 18 Jul 2022 11:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233593AbiGRPEZ (ORCPT ); Mon, 18 Jul 2022 11:04:25 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63F5610AD; Mon, 18 Jul 2022 08:04:24 -0700 (PDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 26IEu3b6021466; Mon, 18 Jul 2022 09:56:03 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 26IEu2Km021465; Mon, 18 Jul 2022 09:56:02 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 18 Jul 2022 09:56:01 -0500 From: Segher Boessenkool To: Michael Ellerman Cc: Linus Torvalds , Sudip Mukherjee , Kees Cook , linux-kernel , Paul Mackerras , linux-hardening@vger.kernel.org, linuxppc-dev Subject: Re: mainline build failure of powerpc allmodconfig for prom_init_check Message-ID: <20220718145601.GE25951@gate.crashing.org> References: <20220717195448.GB25951@gate.crashing.org> <87k08bdqm1.fsf@mpe.ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k08bdqm1.fsf@mpe.ellerman.id.au> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 18, 2022 at 01:52:38PM +1000, Michael Ellerman wrote: > Segher Boessenkool writes: > > Can't we simply have a small simple implementation of these functions in > > arch/powerpc/boot/? This stuff is not performance-critical, and this is > > not the first time we hit these problems. > > prom_init.c isn't in arch/powerpc/boot :) Ah duh :-) > It's linked into the kernel proper, but we want it to behave like a > pre-boot environment (because not all boot paths run it) which is why we > restrict what symbols it can call. > > We could have a prom_memset() etc. but we'd need to do some tricks to > rewrite references to memset() to prom_memset() before linking. You can do it in its linker script? Segher