Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2668866imw; Sun, 17 Jul 2022 14:13:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4zPeh7DgTP/FsOfhB4+QDEd9utG2/hm2P5GHsN1jzI1j6sBpZD1BdsNbxZ+vdQ2T6aTbe X-Received: by 2002:a17:902:eb44:b0:16c:f039:81 with SMTP id i4-20020a170902eb4400b0016cf0390081mr2552124pli.104.1658092430388; Sun, 17 Jul 2022 14:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658092430; cv=none; d=google.com; s=arc-20160816; b=yI5MdY9EjdQPPBnZFE8JkpdGYJef+KYkwVSoPe8CkPkKakQpueZx7dV5iBCONrl9Qc TxNdznKCrrmN0Dwv7mQwyupZvtWU9/7dJxIOv0426SSALh1UIDaC8H/gSsWuecHK8Ji9 34GmtyAbZM+bOxq8MQ7remhdZYFdgHsJiqFr2NJvlWxuC/uztIz4rmFZjuqT7DAlUl8V TQr5+so8ZdmpPhd/s7Tkpoe1PfH0+0H00HkA44pOm/2fVoYrckg46TKIs+DPZuYXRhjN B1hBJv/kKZQ7Jbeod3G6qF8MVSxrHgWFWV9SkLGqL9N23erASPHKfKUDU1KabzMhXNkF xNzw== 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=o2hnfFUpIbzFd53NduAFg2gHb2+kkfJEyDC8IGtdf7s=; b=jIBQEvDF9AdFyTvD/RHT/DXWccT32jEEY1do9MUdlj5HNwUSJ5smJXtPcf6ADHoILO Mr5paoG2Rc2wvtowl9W18A+3dRxBMr1IzaaTZj0hc1f+viA/bD/dMnDw5dIxr2IXkJvY 3G/AoCV7RLSmOUo1cxQ8bumCPDw9+WxvCzT0Rm9usJNGfnHKQEXUBOCUhEyIM44Sq92L DuLvX0qZKjNQ5Wo30zRSV6FVX+jlcVMarJHxN7itAj9sKfEjVsF9tgrz8OQtELyJrKTe cRBst93Caoq94uKRRfP0/zyftUHr4VWi1P6g9dD0BDYY9OtkTlXMZpSi+tdF1YZkZu/1 LSQg== 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 g12-20020a056a0023cc00b005170994dea1si16055083pfc.8.2022.07.17.14.13.35; Sun, 17 Jul 2022 14:13:50 -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 S231753AbiGQVEs (ORCPT + 99 others); Sun, 17 Jul 2022 17:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiGQVEr (ORCPT ); Sun, 17 Jul 2022 17:04:47 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9AE1B12742; Sun, 17 Jul 2022 14:04:46 -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 26HKuGbt017693; Sun, 17 Jul 2022 15:56:16 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 26HKuFnK017690; Sun, 17 Jul 2022 15:56:15 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sun, 17 Jul 2022 15:56:15 -0500 From: Segher Boessenkool To: Linus Torvalds Cc: Sudip Mukherjee , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Kees Cook , linuxppc-dev , linux-kernel , linux-hardening@vger.kernel.org Subject: Re: mainline build failure of powerpc allmodconfig for prom_init_check Message-ID: <20220717205615.GC25951@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sun, Jul 17, 2022 at 01:29:07PM -0700, Linus Torvalds wrote: > On Sun, Jul 17, 2022 at 1:25 PM Sudip Mukherjee > wrote: > > > > And the generated assembly still has the memset for "struct prom_args". > > Strange. That smells like a compiler bug to me. > > But I can't read powerpc assembly code - it's been too many years, and > even back when I did read it I hated how the register "names" worked. > > Maybe it was never the args array, and it was about the other fields. > Not that that makes any sense either, but it makes more sense than the > compiler turning a series of volatile accesses into a memset. Calling mem* on a volatile object (or a struct containing one) is not valid. I opened gcc.gnu.org/PR106335. Thanks for bringing this up! Segher