From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 B64E038A715 for ; Wed, 8 Apr 2026 13:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775655010; cv=none; b=aG7Rwl3VJCrvyz50KoSsJvaK9J9+Q6IfdLTcfg1x+MQpt1oMGuIc+DoGOIyS4TGk0H5NgJ8jN4Rj2d4blcKHiYNSuHLQiwixTVMiWAaxBponHE+4n5ZrF3YjNyLhQ4h8CAAcP+yeAdlla7xu7stnMhM4HWCPgThCYEZnXTpy364= 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.45 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-f45.google.com with SMTP id ffacd0b85a97d-43b9d3ebed5so5026553f8f.1 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=J2D0BMd7wcTeuzP5Enm+zRhN6E1rpTjyVsPbF8tmURkVy+zzWF9JhM/e6Ks2BoWO/O E4udEIUDKDbLOueUzom/gotd8rR3Rp8W2LN3MRR81ly19Z6L5KOX7Xcs8K/zKYLLpcMZ giVcQYcvE4Fsw0LBmDbJDOQRYDh6W/ua9fR+kgEAwAFIQ/3kk8biP4D3xCUGs/PkSpvW yPVdEb/ZNs4G+m5DKH755V5gwz8t+0pS1vwNwfthyZhRsbioUZSjbbBBtFzETO7uWisg hlOAx2FM/060BEkK+4eV4t4N8cCNaE5iWIZYhaPLj0yBBbjpcHN71IpaGlOy3Rsin+XF TFoA== X-Forwarded-Encrypted: i=1; AJvYcCWkmiIFIrtlI5VNOOeQP/Uot0TBPGSCLpMalevMhi29InW7bzcJ3vpbyY3lVh0O3QvlkqNAJcugKQeJ9as=@vger.kernel.org X-Gm-Message-State: AOJu0YxEZOzGmdR7qYZImz3TyGl8zFo4Jv3GghxZpsvaicvAMcD05tfr ohy1cnMdI2malrx0n7XYOZD9tPJtNPBnSRG7XVQj2paXbYyc9rcJ0stf X-Gm-Gg: AeBDiev15uUsiZBF+sSqEz2JSM/EVfSxwvSeniwHyBMVkTxjIvij2eVvWRjWJb/g8zw sSYviZb7M9km7HTF+PCY1vkTpt/X7PrXjeA+r6Ii+Zah/vrazN9Aq9rFDkWUcE6ttt3/r5Ydffn 67/tKsQfd3zkQ9NmbpeVK78o0QUAd/d6QMl4W1ZqIRM0BCJXfUbLlWRftH+BIfhyzROlNuZt9lk D650niAfF2aBDBYF8Xe10iG4M1WHV2iwxw4eyQFSA2BctbYPB4pHvZp1LXRJgYYFr6AGWGChVMD yTmU9l8SqmFC8nWlL2C4L0RKdIkWyHpyllRheQKAfAxqhUg1tsxBhW1tKKeYIusdol2LP5NWBmi AGPdwRR8/2qnjp6i75N8hc/yCbbWzve+nk985OHk19YCvG1JLj1pBrvCKPR+muIiO9dqJOlIoaL Zp30i1vhBAr13qCBfcqLJr6kOw/2R8R9x+Pi4duKU3xiEYdqNIScZFRMltcSRAZAIV 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-kernel@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.