Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1269111pxm; Wed, 23 Feb 2022 22:59:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9K4GEGpt9S0r/XDXf/O3G3vOz6Zmt1BvtZMXq8y6zN/6l1DCnYb22aoOqnbIZ21Kb6J3/ X-Received: by 2002:a17:906:4987:b0:6ce:88fc:3c88 with SMTP id p7-20020a170906498700b006ce88fc3c88mr1067127eju.608.1645685945248; Wed, 23 Feb 2022 22:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645685945; cv=none; d=google.com; s=arc-20160816; b=AkCTswZOxVMc9j7C1I4wa++7mhQygtXeDrncALHnePjQG65S0JO9OXR4yzLdK0ZiZI ER188Mb2fhsST1gR9WbNMiMqUkqkm6SsW91YMqH+IeFH5NYJuRx85ImfQAJ/asfauVLZ Z9zmv1B+CU5oouwj0cKhiQPIbYMpC2Arvy8x1P6UL902ScojT7k7N/XWyJBdI63/nzYD LfcXyAJHDENB9nAztmmmRLrMverA/LcQ7tMKIz1Etqfd6FY7o3K09f82llKuO5A1CqY1 UNZU92BO8ShQjyyDmIEAMQRQvL0Xrisa1oL9Iiz/6BewZv9qO6VgNj4K6+rO/D3s1Fox nIcQ== 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=srYPL04OWay1dcY8e70dNGhHS9ZwVWkaxq0mw17kle0=; b=JfwQJQyF0e+fKdphEiyeCN88badpwRqvsAPWxvVwiyWywr600679HNW5yE2s9Fwml+ wjqTuwAASRd8s3W4Z5e5yrdGeX4s90Lm3ikIYPJe+ixYADtEZqh31NzYAaeG42jh93B+ 2WO6PnnmSjbjs0msstPbwE63K92OwX6NXjOJeRSaXoD0Vm1kUUTCLX+LNR+qKABwY0vM EiPEeG5kr/hyDGG3XnN7b3q0ifj3RkqTQsUwQb2XkomK3C6aSEQY6kWysTMl/dsUaQRK aTmN+ArP5+WRjtPaK7INPtlmgTtGl5lAYUJ5I9EC48b0BR9uY3pY+KYYy642JjZsfCy6 1xrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E+AaIZP0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg35si1104548ejc.898.2022.02.23.22.58.42; Wed, 23 Feb 2022 22:59:05 -0800 (PST) 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=@chromium.org header.s=google header.b=E+AaIZP0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbiBXFQi (ORCPT + 99 others); Thu, 24 Feb 2022 00:16:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiBXFQh (ORCPT ); Thu, 24 Feb 2022 00:16:37 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 825891662EE for ; Wed, 23 Feb 2022 21:16:07 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id o23so796191pgk.13 for ; Wed, 23 Feb 2022 21:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=srYPL04OWay1dcY8e70dNGhHS9ZwVWkaxq0mw17kle0=; b=E+AaIZP0v7bVUhbtnlfQdm0GewhlDSLyFsa4Gc9ttCYc4Wugq3ehabUEmagg6S/HG5 ZIBO/6RSxYufDXorILKqvIXx/WRBvOtOllmU7CIO+HDmGlm+E2pJTWQQR9ntIuP4IqTi SE2nH8yGt6EOujARktNsaPIbSukKsuSizLpvc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=srYPL04OWay1dcY8e70dNGhHS9ZwVWkaxq0mw17kle0=; b=gyqmBS+LxVLEm1U+ZIG6nDUAhX/8sip1hvzHO5rIwYxB3MFZDxKxEqWPAq2vujjqr+ eOViXl5n7ZmPX1fs74vktyXPcjRx0k2C1Jk4O3gY5P3jkybl0KarkW9Ne0YAg5D+VQO2 ukI7OjqY6ZDAWJiaTD7nEdflHlk5glPiCLRAHyM3wgHx8ygGLysHR/Z6KNs9yjulu3Q7 xn8UvHM4ndGa+5dl0S59/AmphMk478nrIDbE8l7MjWUwksrk6dC61WwJnUOCHzIRH9zp tzSBZ1jTxfLEhR6QmxhlFlpG/0Op/BrQVgcHzf5+9swLQZvxSiAGzErHyLIpYmGpkd0h E7qA== X-Gm-Message-State: AOAM533YpOOU/Qe7B2oWN+6QxJRKlNOm+vaWDgFx4U/EQOR+ggN50u92 //42RdNOuwWy80BoxoL/xkEK8w== X-Received: by 2002:a05:6a00:23c6:b0:4cf:1e1e:ff4f with SMTP id g6-20020a056a0023c600b004cf1e1eff4fmr1200901pfc.80.1645679767050; Wed, 23 Feb 2022 21:16:07 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m11-20020a17090a3f8b00b001bc299e0aefsm4595800pjc.56.2022.02.23.21.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 21:16:06 -0800 (PST) Date: Wed, 23 Feb 2022 21:16:05 -0800 From: Kees Cook To: John Paul Adrian Glaubitz Cc: Thorsten Leemhuis , Anthony Yznaga , matoro_bugzilla_kernel@matoro.tk, Andrew Morton , "regressions@lists.linux.dev" , linux-ia64@vger.kernel.org, Linux-fsdevel , Linux Kernel Mailing List , Alexander Viro Subject: Re: regression: Bug 215601 - gcc segv at startup on ia64 Message-ID: <202202232030.B408F0E895@keescook> References: <823f70be-7661-0195-7c97-65673dc7c12a@leemhuis.info> <03497313-A472-4152-BD28-41C35E4E824E@chromium.org> <94c3be49-0262-c613-e5f5-49b536985dde@physik.fu-berlin.de> <9A1F30F8-3DE2-4075-B103-81D891773246@chromium.org> <4e42e754-d87e-5f6b-90db-39b4700ee0f1@physik.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e42e754-d87e-5f6b-90db-39b4700ee0f1@physik.fu-berlin.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Feb 21, 2022 at 10:57:01PM +0100, John Paul Adrian Glaubitz wrote: > Hi Kees! > > On 2/21/22 21:58, Kees Cook wrote: > >> I have applied this patch on top of 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 and it doesn't > >> fix the problem for me. Reverting 5f501d555653f8968011a1e65ebb121c8b43c144, however, fixes > >> the problem. > >> > >> FWIW, this problem doesn't just affect GCC but systemd keeps segfaulting with this change as well. > > > > Very weird! Can you attached either of those binaries to bugzilla (or a URL I can fetch it from)? I can try to figure out where it is going weird... > > Here's the initrd of that particular machine: > > > https://people.debian.org/~glaubitz/initrd.img-5.17.0-rc5+ > > You should be able to extract the binaries from this initrd image and the "mount" command, > for example, should be one of the affected binaries. In dmesg, do you see any of these reports? pr_info("%d (%s): Uhuuh, elf segment at %px requested but the memory is mapped already\n", task_pid_nr(current), current->comm, (void *)addr); I don't see anything out of order in the "mount" binary from the above initrd. What does "readelf -lW" show for the GCC you're seeing failures on? -- Kees Cook