From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1AC438AC95 for ; Wed, 8 Apr 2026 13:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775655010; cv=none; b=pjn0MD9gdn8MNc+pjrppsSnh9JMMegq1QvEYU5acVLL9AUITzMRFv5rVzVh8PTvGa4MJlp8A1+4MsdC5TbxF4Dj7+BiJegqroiZgXGESvXDCTjTbmkfyU5M9DlCRALAo0YYPPAXt8THNb3ARSa7rX+OvJ8p9c1Y0nNEnPsZLqyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775655010; c=relaxed/simple; bh=D/epPJjT7LzigOUiAvgGpNiAkUYUf3cS/4ZxrTJ3Hyo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gfVZlrRyuQESCIkcMUO/StTGvIV8vTq4IkAvLOKr9LjVj94vrWQp1wKmn5CRas4guk6yamhpV+sUuT7B9VEsIkBwBKFj4YYovWLn43a3fhFD14Nu7ehPEFTeSHOgkh7PsLweikaRSZGlOgqfhBTZhDHdXUQgLZgHWt3TqfyY5qI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cWiWTy9s; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cWiWTy9s" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-43cfe71e5d3so5317662f8f.0 for ; Wed, 08 Apr 2026 06:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775655007; x=1776259807; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ur0C8E1oLGtG08m7xn9/Z+1IdSJCBvhkcoPKLxZlx0U=; b=cWiWTy9s0pXUSMzgFXsaearN1DaVzCs0eoeRDEDcX/vBgtSDBhJFFm9J4R2uQbc7HI 6fzKv2HtOUyglqCjVE08H86FTkIJ7gVGDLQAG4N0HxMuG7A3AEjchRifCqizxv6y/V0S +TwPOnp9o/kNc5nQM5GIvrhonrKXTJoJyIXeG7EqrJniFTQ68CBI+XeNbAvSsQMcZIF7 63/6RRADhlbp28xgFzDoWp1ZawM2FIZfsTKB/SPH6G1jh4OSoYZ60emeZb2LRKepdsFS sWXZpnd7G7BwiC3ME6gqB9X1lc/s07zhYZU5+m8/Nh2OxZqo+jFpFHjdDpPmBKqi/qD2 lHvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775655007; x=1776259807; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ur0C8E1oLGtG08m7xn9/Z+1IdSJCBvhkcoPKLxZlx0U=; b=Q7CGDUI7M4WXK8c523iHXb7VbNUdZRea1maqnnUrcyyjhEXSFxcyrHH/RkN/qNBTS7 8EnPNYvk0rNvvmmHIHk8oYTdYJwvrHuSoVrIpJQrLBvKxjyE+y4ghIYc9EizJR40vgRJ b+TAuOAKGDCokPcy3Gct9x81q3eoETOQALzdCqkWfcSIFGwIWy6IVvmiu1HT+OdPgOJm Lii/Ei/0EFd4hZSj3r0PgcKShtmsVRaWYVhckiC77aB2RM27umL3f7G0hX7MeNXYGWxh HuQ0Cgf+7KWE7bLWkIVT9oFYWwl7m4zMcSZk32EPBgZH8SBMcU4Gg3SADczuoHz9Q6Nu KIXw== X-Forwarded-Encrypted: i=1; AJvYcCU+BbgvCtKUpL5dVttjNnIZa/eC3l2U8YhTCi1OZs2iMiU0+CkTE0ocuo09q5OGbplhBZyj4Gjd9Xb0uzEw1a+V@vger.kernel.org X-Gm-Message-State: AOJu0YwBdDtDYhZ0QzIaUr427/TFcUdkqaQmUmUwm7uHo/h9VZYUCRpi tC/OY40GxYefKkVu5ZQMoswz+EZPgwFTBwtvgrqoo5QdKkGcEf7ad08t X-Gm-Gg: AeBDiesuzfZDontjivn4nCCT/oCzuMX9H9POCLEXfbJtFqxhwCFlF32AwWwKuNVY7lb p9LHrz/3Z4q7+HwE0rT0sftYdwfjowbNU2V/axYFmlIXl/evetgYQBmkgPDNzK1QuwaVuG8d7ZT XW41qtVuMAxyDj+t8hGfODqVoQICtzWNQBxOxCiTdkE03zDpJRIKeRaJCUrOwLYS176/FbL4Dx6 Cjl2oDzliIoCCS6ceDEnyqJMVE9DznZIC78D0Sm0KMPYopQF4G6B+kPIB0zNp/4e8hq8PXzOsng gFsEuTqbGElspjLd/y8ZAxdRzcxDW6luVG4B8ER42p7wE04Jd0rr/ao3XVSQrPJUr+95jaBAdc+ Tcl8SOgDLASCzJAmXrqitUHab7UoBnwm9tsI3T/4b0sphaKF1h5PgpUEhiXJbZapygPLzOR/7b2 lFg6t5Z2pMiFKy1zTH3dafLDsZXeqdjRqFbDURnALI8asudjCGA2HP5kTw/3bd8a5J X-Received: by 2002:a5d:64e6:0:b0:43d:740:fb37 with SMTP id ffacd0b85a97d-43d292cd110mr30973618f8f.24.1775655006960; Wed, 08 Apr 2026 06:30:06 -0700 (PDT) Received: from [192.168.50.24] (host-2-100-232-239.as13285.net. [2.100.232.239]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e4d2738sm60057057f8f.24.2026.04.08.06.30.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2026 06:30:06 -0700 (PDT) Message-ID: <5f853c8f-67fe-4a9f-bc8b-4e5c80f4090e@gmail.com> Date: Wed, 8 Apr 2026 14:30:06 +0100 Precedence: bulk X-Mailing-List: linux-toolchains@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/boot: Discard .interp sections To: Borislav Petkov Cc: Segher Boessenkool , Michael Matz , tglx@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, linux-toolchains@vger.kernel.org References: <20260407233957.2263551-1-lehoangnamtep@gmail.com> <20260408095202.GAadYlQtQvNJ5WXFDn@fat_crate.local> <20260408100944.GBadYpaB8WLl78FamY@fat_crate.local> <2b848d54-c265-4675-91bd-a84fb2719b00@gmail.com> <20260408124950.GCadZO7qkTh83ojTHr@fat_crate.local> Content-Language: en-US From: Nam Le In-Reply-To: <20260408124950.GCadZO7qkTh83ojTHr@fat_crate.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/04/2026 13:49, Borislav Petkov wrote: > On Wed, Apr 08, 2026 at 01:01:24PM +0100, Nam Le wrote: > >> Link: https://github.com/llvm/llvm-project/issues/78873#issuecomment-1902794108 > > From that page: > > "I guess the only choice is patching the kernel then." > > People better delete this thinking from their heads! The kernel doesn't mop up > for everyone else's silliness. > >> Normally I would never add this flag, but some package manager (specifically >> Nix) adds --dynamic-linker as a default when building any applications. >> Ideally this should be a fix on LLVM's side of things since its a pretty >> significant difference in behavior between ld.lld and ld.bfd, but for the >> meantime I believe this is a minimal enough change to fix the issue. > > I'd like for your commit message to explain why *exactly* your patch exists. > I.e., the Nix use case. > >> Thank you for the advice! Should I add a comment and submit a v2 patch for >> the change? > > Michael's suggestion of using --no-dynamic-linker makes more sense to me. We > usually protect ourselves this way from the toolchain - by turning off flags > explicitly. > > Thx. > I am hesitant on modifying the Makefile to add the --no-dynamic-linker flag since a previous kernel patch proposed this exact change but was rejected a while back: Link: https://lore.kernel.org/CAFP8O3Kqx-gdTBFn_hesWzd-6NCpGEz1=fMoJXuX+n4c7sp0Bw@mail.gmail.com/ Should I still go for the --no-dynamic-linker change regardless? Seems like progress on this issue has stalled on all ends (Nix, LLVM, and the kernel) ever since 2024, and I just happened to stumble on it again recently. I'd be happy to amend the commit message to include more context on the Nix use case.