From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 113383A1B5; Wed, 8 Apr 2026 12:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775652612; cv=none; b=Hpc212p/U1Ne0z/xHZAc7B+hT7kVjtIw1m4iErWKKFLUxUtJyHsCsPD+xxBIz7nK+Sq+7x6XgIUHHrF24RMV40T/Z3n+dy2W63vmf5u2ERRoXm47M+h/bzAHKUvYuiSAsGhMoiiXeOKF2PdQYN8plz5a0sRFYpuHt53dN3Gj1RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775652612; c=relaxed/simple; bh=jp/OAhi8Aj7cWAFojTd7PJcvghO+WuCxM67yQ7FywrU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mqQ0kHifZluE8tGazIevU54416UkRbEABMIfqtkOybzuZ2eU2BzSzyD21ehzBkxi7H0+YcT09305zVx4u/MNycL6nY9sQN6ruhT0BzFKqOwPDp8s0zlaYOiCD7KPt126cSPOufK8PUMv7mCznliPteAaHC1/Vu++BCPIVbtujCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=RT4QKRRU; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="RT4QKRRU" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id AED1140E0163; Wed, 8 Apr 2026 12:50:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3ynDTxmvbGvG; Wed, 8 Apr 2026 12:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1775652603; bh=lxjP0NURLLirpmi1k/4sFczn/SocppgzXd4a6PzLlFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RT4QKRRUAWnypHeh6ikZbiA2SeKCOQT6vb4CO46oESi1Ew9x2raRMe5mZzo5UPh62 UHGpXQ8kgU3X2w4i20x3yKJIPQH0KHQLf8rmbPLt9KXSeDoc5lpGBXmiqXLCkPr/cE sxRYiFs6uvT2FYhWKOYyjoCMTZ/b5Yry6LFyuRgcJ90v2WTOZGqC230c3jGWP9Rkw5 3N4/4QBlrbGowD0/hev06HhUdI9h3BSpf628V/RJrOUvunJt28ZeofsSCCkTUHAHPh MTM4HHvHRtskkC9sjSsC1ulgEdoL38KX/i8bTConFg+mNovpEYUwSTx+93OldlRYY/ XPZeNQSk6V1LJdeHtWuL1G3h0098MQPTKItGR7BCY+8kxQfs5K4DLey6KyeiJEG7se UoVvHpRTYdtTDwvEZnfNWHa9iA2R2hT6wnJbLPZ+T1bwMwNhWPEZfH/Mr3tVLuw0Pt sZeqgnY0FSYo4MO8HAouYz8oHQt1bYxcXtjR+CAFZypGNXAqqYdyahysiTHisWzTUk /CsIhTlNvZ+sfg70C5sqcTVmg7MQ7qm7Nn9dfXXrKE3iwajy3UQFSbhLXlC8Kqiq2L AExu7NAMaNp70o5yU1/qHDEFydvtM9JIvhKFYkdMn/l1+2bmYkeKnUzXn8r9MAnJkY IrJA6ttXUO8KXr/VXsu77QCM= Received: from zn.tnic (p5de8e020.dip0.t-ipconnect.de [93.232.224.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id B5F8940E015C; Wed, 8 Apr 2026 12:49:55 +0000 (UTC) Date: Wed, 8 Apr 2026 14:49:50 +0200 From: Borislav Petkov To: Nam Le Cc: Segher Boessenkool , Michael Matz , tglx@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, linux-toolchains@vger.kernel.org Subject: Re: [PATCH] x86/boot: Discard .interp sections Message-ID: <20260408124950.GCadZO7qkTh83ojTHr@fat_crate.local> References: <20260407233957.2263551-1-lehoangnamtep@gmail.com> <20260408095202.GAadYlQtQvNJ5WXFDn@fat_crate.local> <20260408100944.GBadYpaB8WLl78FamY@fat_crate.local> <2b848d54-c265-4675-91bd-a84fb2719b00@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2b848d54-c265-4675-91bd-a84fb2719b00@gmail.com> 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette