From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 DFC8D381B1A for ; Wed, 8 Apr 2026 12:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775650153; cv=none; b=jJ/UpYRtiKyhWWAWQXFxWHAXR+6geO64Z00B0rYLCEuZOxuGg0VNRduiv+PtJypPfo/8EW5H4nKurlRg0yV4jpEJgVGW4FSk2lqpPH73bs8FUylXlsl4ixL/TnOQIfpsL6vrD9Kvn9THaHqkue1GyAHGCTtPrbJazQjG7yoe39c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775650153; c=relaxed/simple; bh=2BCByia9JtoHWHvNRbfXSgWLvXSkoBd/GXEpk9mN3sk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=pt+uZk397IMRPG/s8/nYNF/4N+5X8t6ZGVFneQ+mSWdDfg0YQYEq5MXVrWPXsCACq+YHzHIYecj1G+4DeubUmMlPx9cHCUHDen3BZ+jYvhN/5GgTze7InekbCLf/0yQrd0UTeQDco9QAHebiJJSerRX4BAjZOu/8G8tZakAgh2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=iiQV9a2a; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=l705Gku2; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=iiQV9a2a; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=l705Gku2; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="iiQV9a2a"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="l705Gku2"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="iiQV9a2a"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="l705Gku2" Received: from knuth.suse.de (unknown [IPv6:2a07:de40:a101:3:9249:faff:fe06:959]) by smtp-out2.suse.de (Postfix) with ESMTP id 24C5F5BCE1; Wed, 8 Apr 2026 12:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1775650150; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5jN9b84zeMhPr0wqDGwzpPQKGKGkii6toLkFBYTFma4=; b=iiQV9a2aeLpkmTgIP9tAQOehyeRp9WhCbZl/lOPE8K7OXGijWVE45pQXnH1Rmc+MAIf28y 8viMuL0H6Xi5s050KYbTQCeIs5iEEjYGkzDxFH23A/zkQedg4BCBunMHFhYwXdGMWnLxbQ 2JBu260YdFUb01p8u+siS2ozgZqo/Lw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1775650150; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5jN9b84zeMhPr0wqDGwzpPQKGKGkii6toLkFBYTFma4=; b=l705Gku2kT2cOiv4yCtltbT98XuSUKePeUR0yaA6HJHDmkSuBPuG1o/dp8BuOosVsewuEy XosmCS1fF9Q2o7AQ== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=iiQV9a2a; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=l705Gku2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1775650150; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5jN9b84zeMhPr0wqDGwzpPQKGKGkii6toLkFBYTFma4=; b=iiQV9a2aeLpkmTgIP9tAQOehyeRp9WhCbZl/lOPE8K7OXGijWVE45pQXnH1Rmc+MAIf28y 8viMuL0H6Xi5s050KYbTQCeIs5iEEjYGkzDxFH23A/zkQedg4BCBunMHFhYwXdGMWnLxbQ 2JBu260YdFUb01p8u+siS2ozgZqo/Lw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1775650150; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5jN9b84zeMhPr0wqDGwzpPQKGKGkii6toLkFBYTFma4=; b=l705Gku2kT2cOiv4yCtltbT98XuSUKePeUR0yaA6HJHDmkSuBPuG1o/dp8BuOosVsewuEy XosmCS1fF9Q2o7AQ== Received: by knuth.suse.de (Postfix, from userid 10510) id 0381CAB2F1C; Wed, 08 Apr 2026 14:09:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by knuth.suse.de (Postfix) with ESMTP id DDF78AB2F1B; Wed, 08 Apr 2026 14:09:09 +0200 (CEST) Date: Wed, 8 Apr 2026 14:09:09 +0200 (CEST) From: Michael Matz To: Borislav Petkov cc: Segher Boessenkool , Nam Le , 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 In-Reply-To: <20260408100944.GBadYpaB8WLl78FamY@fat_crate.local> Message-ID: <30d52592-644c-1ff2-e610-357d42461121@suse.de> References: <20260407233957.2263551-1-lehoangnamtep@gmail.com> <20260408095202.GAadYlQtQvNJ5WXFDn@fat_crate.local> <20260408100944.GBadYpaB8WLl78FamY@fat_crate.local> Precedence: bulk X-Mailing-List: linux-toolchains@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [1.39 / 50.00]; BAYES_HAM(-3.00)[99.99%]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; RDNS_NONE(2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; HFILTER_HELO_IP_A(1.00)[knuth.suse.de]; HFILTER_HELO_NORES_A_OR_MX(0.30)[knuth.suse.de]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_TRACE(0.00)[suse.de:+]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[kernel.crashing.org,gmail.com,kernel.org,redhat.com,vger.kernel.org]; DNSWL_BLOCKED(0.00)[2a07:de40:a101:3:9249:faff:fe06:959:from]; RCPT_COUNT_SEVEN(0.00)[8]; MID_RHS_MATCH_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:mid] X-Spamd-Bar: + X-Rspamd-Queue-Id: 24C5F5BCE1 X-Rspamd-Action: no action X-Spam-Flag: NO X-Spam-Score: 1.39 X-Spam-Level: * Hello, On Wed, 8 Apr 2026, Borislav Petkov wrote: > On Wed, Apr 08, 2026 at 04:58:08AM -0500, Segher Boessenkool wrote: > > On Wed, Apr 08, 2026 at 11:52:02AM +0200, Borislav Petkov wrote: > > > Sounds to me like you're shooting yourself in the foot on purpose: > > > > And no matter what this needs to add a comment there saying this is to > > work around, hrm, imperfections in LLVM! So that people who hit > > problems here later have something to start with. > > Right, I see --dynamic-linker=file in ld.bfd too. Why isn't that one slapping > a section too? It does normally. (See any random executable file in /bin/) But section layout can and does differ between ld.bfd and ld.lld (and for bfd it depends on the linker script), so it's probably simply not getting in the way of your explicitely placed sections with ld.bfd. You might be interested in --no-dynamic-linker or -static, no idea what the current needs of the kernel vmlinux image are. Ciao, Michael.