Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3677887imw; Mon, 18 Jul 2022 12:29:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukXHFmhi89qix7q6PwxGI3l5Z42SoV6ilEO8RwQuixL6uU+BitWhFXuM3RJmimebjimB6E X-Received: by 2002:a63:1f21:0:b0:415:ed46:3f82 with SMTP id f33-20020a631f21000000b00415ed463f82mr25203733pgf.586.1658172583429; Mon, 18 Jul 2022 12:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658172583; cv=none; d=google.com; s=arc-20160816; b=su5GXzs4cUe5p2kvS/CpCBeaoNTcxEXjNEx06NFvXj5TOrLw46kgWFDSpkmC+okO1o 79pSlbgueBNvbBzbBPFrCVUqRX3V9ry6IXEtYQoFiYyeypVlA8MB5kcOt/pfcJ6enoa1 7XYBQJxH3RoZfJnW8E6RsQ9qXmdoIq/P0K7c6GbSRxYOI//bCbhYS4RikuL6v9BKTKCH Ud1Op7aoJUytmVzgcym/4INAGVxDkM4aneQSKimb8rf3YL9wzYlNzPYCzIyq3p52+XGP 7REdq5x+7821igBMW5zOLuC0iNBNynpl4CnB4txqpQJI8zDR9TxG7vBKWWokMKMjw4UL W0iA== 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=dgjsZTbvQJX6D56jQTPEYTM5n0l6iiehUHolgd4Ce9Q=; b=H4dn5zW0miHU6v6HxOYaMOPdQcdmWdiJj+ND9JSBz/w1dRl0WGE8b6qCumCdI4LpSP 8UVJ/X54mpSZJduW9xMvr9ujYU3GH3zPr/cnBM3i4JmtIG/PWzPUK56LKe+s85tivsoa 7LJCHgB0bpCdoFyMwWQPtChf00as6bmB5Jp7w7sJazw5q9BN3V5nRaa+DEum2+09AJNt qrdjb/T30ExanFn2p8wjTzNMvmhklx9pcqUcdnlmkyJFli7SICqiHOZsGDU5EMTjxcpM tVOC9OQewMBHSr+IYzSNgrvG6k6y0K4IL7+Csc4AC0LyjYCgMa0Mwq2s2MtNy8teLNQj X3cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hssRgYLn; 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 i17-20020a635851000000b0040d436b47e1si1147817pgm.800.2022.07.18.12.29.28; Mon, 18 Jul 2022 12:29:43 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hssRgYLn; 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 S234960AbiGRTHQ (ORCPT + 99 others); Mon, 18 Jul 2022 15:07:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiGRTHN (ORCPT ); Mon, 18 Jul 2022 15:07:13 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5827BE08 for ; Mon, 18 Jul 2022 12:07:11 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bp15so23070029ejb.6 for ; Mon, 18 Jul 2022 12:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dgjsZTbvQJX6D56jQTPEYTM5n0l6iiehUHolgd4Ce9Q=; b=hssRgYLn24Lw3qXe2EwOeLU2rpbVpcrr0gq1fZzk2oT4ZWnhDO4XXWRwks7LbqwMZd i+6c82W3/dvuvhnSYGYsFgmVoj+Cjp0nbYF4M92SjvCJ4Ce5vOdmpXyYQ5OpL8MDtgiw CWUZZi0MogKUpG4gNIMMisxiea+a5zCK8RaBg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dgjsZTbvQJX6D56jQTPEYTM5n0l6iiehUHolgd4Ce9Q=; b=oU/McLuKPosVp9GpIiWSoTMDdniRAFgyXrDOM0uSzZ8rXy8kdIsqRSRFVH04asMCyQ PVARCdMvm87HqXSopfEiICYWfHHgxGUWd9JGrp9Nkx3G3FK77Yz7BBBfy1Sos8KDZXpB 53iTSHZmsnkxwfkB4cO6HPGFVMrN/BcOtjq+7Owv1HvfCJSp5xM2gNko59udjLaBlvhB 6F2c7gX++k3kCCx3jhKOYftonJA4OPSu9uDZ85oNlY/a9KHtT6k7AeG43tWqeNMgzZrc 6Z1GNj4Fxe63KiAlttJu5JCaMwTba9R/z2Vyjn6eZUByD6qR7kOXzw0J6rYeWmJnIKPQ 1qnQ== X-Gm-Message-State: AJIora+pvC9aWkqOOoOwpIg5DjbS3RTBeX2125yAKBElILIBL8d1teP1 46AlphW4w/gyQVcTM51SlKZaWhHbILHYhIK66rA= X-Received: by 2002:a17:906:7951:b0:72f:4733:5885 with SMTP id l17-20020a170906795100b0072f47335885mr2490662ejo.172.1658171230250; Mon, 18 Jul 2022 12:07:10 -0700 (PDT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id s12-20020a1709064d8c00b006feec47dae9sm5816965eju.157.2022.07.18.12.07.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 12:07:09 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id ay11-20020a05600c1e0b00b003a3013da120so8519132wmb.5 for ; Mon, 18 Jul 2022 12:07:08 -0700 (PDT) X-Received: by 2002:a05:600c:2211:b0:3a3:2149:88e1 with SMTP id z17-20020a05600c221100b003a3214988e1mr1387069wml.8.1658171228317; Mon, 18 Jul 2022 12:07:08 -0700 (PDT) MIME-Version: 1.0 References: <87cze3docs.fsf@mpe.ellerman.id.au> In-Reply-To: <87cze3docs.fsf@mpe.ellerman.id.au> From: Linus Torvalds Date: Mon, 18 Jul 2022 12:06:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mainline build failure of powerpc allmodconfig for prom_init_check To: Michael Ellerman Cc: Sudip Mukherjee , Benjamin Herrenschmidt , Paul Mackerras , Kees Cook , linuxppc-dev , linux-kernel , linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Sun, Jul 17, 2022 at 9:41 PM Michael Ellerman wrote: > > > li 4,254 #, > > Here we load 254 into r4, which is the 2nd parameter to memset (c). I love how even powerpc people know that "4" is bogus, and have to make it clear that it means "r4". I don't understand why the powerpc assembler is so messed up, and uses random integer constants for register "names". And it gets even worse, when you start mixing FP, vector and integer "names". I've seen many bad assemblers (in fact, I have *written* a couple of bad assemblers myself), but I have never seen anything quite that broken on any other architecture. Oddities, yes ("$" as a prefix for register? Alpha asm is also very odd), but nothing *quite* as broken as "simple constants have entirely different meanings depending on the exact instruction and argument position". It's not even an IBM thing. S390 uses perfectly sane register syntax, and calls things '%r4" etc. The human-written asm files have those #define's in headers just to make things slightly more legible, because apparently the assembler doesn't even *accept* the sane names. So it's not even a "the compiler generates this abbreviated illegible mess". It's literally that the assembler is so horrid. Why do people put up with that? Linus