Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11290491rwl; Mon, 2 Jan 2023 18:26:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWw8w8ZTMCCWs+rvMq9tPsmz8x6CqbtrKUwE4JtrZw5Y9Zt7NGj9iUOFZcnQXR4citreOW X-Received: by 2002:a17:906:dff5:b0:7ef:b60e:cb02 with SMTP id lc21-20020a170906dff500b007efb60ecb02mr37244440ejc.48.1672712765386; Mon, 02 Jan 2023 18:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672712765; cv=none; d=google.com; s=arc-20160816; b=r9Tx0BYar9FF268eQ6RpBG4Vh0UcJeosZofFpfYXuuifUdYyJHREE7ok71rbcwoAq8 U4VeIbr13bnoh9MSJmApzGw0I0PGHnwza2VF3UnDtesl+XqiZC0kw4sFwHmSHCfsEzmL HXfnMXXJFXqXbaWewNBzDBuwn5DZceMe057YdZfUXS2lloIG7R6JCgKN2pveeLyqIybl FB/nFHFr+ub4DhbzxcjNrzKBYUtVumABumQ8OJIPpW9dEqYgViwawosKxGz1FDtapSbs //cO9pDAQwWlc8FK2VgCnZV+zC8wwiW8uyG6+VwtELgy9CSeSLeKSfDjLohx/BD3iGcm 6laA== 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=afjfLO4eESs57C5GGtx6gjr0hpfsG3j/EHodbPT/rRk=; b=uHgZt00kifkPUXXpX9ulYnTNjvtC5l0avIVZbNP+lNlc9x7hK9Lw8kqoBwlWkJLgkS CzKGnaFAP3bItTzF2bDQp/1Qi3PPYlDBLQU6zLFxPKG2biRgmwtjk6t6/L62i3ISwXO/ A4XSCyvs7rh58/sSC8uquFA2ov/1Hz1uT7gw90mjLy8txol5xqTfKm59zChL27MbXQp7 gUZRAXgIIvzm4DxnwAodbU6VA/oyKzaSUCmb4i9ojQqyYN/QiyR5H6gOkw6KIipZivDb VZHMQTmnYAohGbfjssLWC0fuREa/FuYrq3Rb0L/6txEmKKWVEzK8mOm53q5uXQYlA+6w GdyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CZpEnWZj; 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 g5-20020a056402428500b0048e1008c744si4182774edc.147.2023.01.02.18.25.50; Mon, 02 Jan 2023 18:26: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=@linux-foundation.org header.s=google header.b=CZpEnWZj; 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 S236486AbjACCNe (ORCPT + 62 others); Mon, 2 Jan 2023 21:13:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbjACCNc (ORCPT ); Mon, 2 Jan 2023 21:13:32 -0500 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB750FC5 for ; Mon, 2 Jan 2023 18:13:27 -0800 (PST) Received: by mail-qt1-x834.google.com with SMTP id z12so23642493qtv.5 for ; Mon, 02 Jan 2023 18:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=afjfLO4eESs57C5GGtx6gjr0hpfsG3j/EHodbPT/rRk=; b=CZpEnWZjTCTBTc+oWXEaS9fuWCd5GGIRIIZgZzBPuE85RcKOnevkhvinef4ZkgMNQP JB+U2pkJAZPEjtlX1u1xfq16i5L7YajW6N5+ivq7WiCOPP1AteWZA5oi167HAJQ5rKdi b7wbg9khhdz9DjSfh/jpQ0Je6U4ZIj2mzpybw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=afjfLO4eESs57C5GGtx6gjr0hpfsG3j/EHodbPT/rRk=; b=MlUJl7IJ6B+fNqbMri09H8u7EDTCp5BC5nNfXjKqK1krLF5ipcHzArazG1PSTK0s2N 5dpDYJyZYTThJC/29wuz3p0fZaUQVNyscWbKEq/NwBtuOecJcMnWah9ZpxZKfRjE6jdh TQGEeOoe0MS8/Nbp9pdyGcybHkXocTNlEfin2W7F1pRC5jco7t9XPORkIiZL+6/ioZY6 SoC5D8EAykG9uKmEbCPRUYgE8o2lJbGO+HMzd6PkmGekNvjcT4cbJv3Z/5NPHjUiQXBt ZQB86VephFgA1choRDRmCt0tChyr4hkQWPyLesI847NpXzMFWXpTOHby7oKJeZCcxup5 j31w== X-Gm-Message-State: AFqh2kpzRfYTc6F1YW7sf853xSdONPWhag8u1+R8DUYOVbHDnJ7IReen TE1B2bC0pzb2a3KZ/WMMlqLrCiye1cfZ5lHS X-Received: by 2002:a05:622a:244e:b0:3a5:17f0:e718 with SMTP id bl14-20020a05622a244e00b003a517f0e718mr58761024qtb.14.1672712006588; Mon, 02 Jan 2023 18:13:26 -0800 (PST) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com. [209.85.160.171]) by smtp.gmail.com with ESMTPSA id dm2-20020a05620a1d4200b006bbc3724affsm21087580qkb.45.2023.01.02.18.13.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Jan 2023 18:13:26 -0800 (PST) Received: by mail-qt1-f171.google.com with SMTP id g7so23650421qts.1 for ; Mon, 02 Jan 2023 18:13:25 -0800 (PST) X-Received: by 2002:ac8:71da:0:b0:3a9:80b6:4ca0 with SMTP id i26-20020ac871da000000b003a980b64ca0mr1632297qtp.304.1672712005420; Mon, 02 Jan 2023 18:13:25 -0800 (PST) MIME-Version: 1.0 References: <20230102225656.GA3532398@roeck-us.net> <20230103014535.GA313835@roeck-us.net> In-Reply-To: <20230103014535.GA313835@roeck-us.net> From: Linus Torvalds Date: Mon, 2 Jan 2023 18:13:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 6.2-rc2 To: Guenter Roeck Cc: "Jason A. Donenfeld" , Yoshinori Sato , Rich Felker , Arnd Bergmann , Linux Kernel Mailing List , Masahiro Yamada , Palmer Dabbelt , Ard Biesheuvel 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 Mon, Jan 2, 2023 at 5:45 PM Guenter Roeck wrote: > > ... and reverting commit 99cb0d917ff indeed fixes the problem. Hmm. My gut feel is that this just exposes some bug in binutils. That said, maybe that commit should not have added its own /DISCARDS/ thing, and instead just added that "*(.note.GNU-stack)" to the general /DISCARDS/ thing that is defined by the #define DISCARDS .. a little bit later, so that we only end up with one single DISCARD list. Something like this (broken patch on purpose): --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -897,5 +897,4 @@ */ #define NOTES \ - /DISCARD/ : { *(.note.GNU-stack) } \ .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ BOUNDED_SECTION_BY(.note.*, _notes) \ @@ -1016,4 +1015,5 @@ #define DISCARDS \ /DISCARD/ : { \ + *(.note.GNU-stack) \ EXIT_DISCARDS \ EXIT_CALL \ But maybe that DISCARDS macrop ends up being used too late? It really shouldn't matter, but here we are, with a build problem with some random old binutils on an odd platform.. Linus