From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) (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 754CC20C488 for ; Tue, 30 Dec 2025 21:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767128929; cv=none; b=j6lheVX8w3hi7GBl0BY4KHFV6LhDjIKuI86Fweb1IEsgYxvW5RHsdP9MaKbjFYPlzGJqa+OzNsO78k0jwD7MLCktdHWG2G12gYXE2p/YyKdZ9hC/WxWFEu0D4OddlBf/+xwNxgNRe0ADvcS1HbTDXVkZmNOejsouXAAXSyDFObY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767128929; c=relaxed/simple; bh=IhC+gPTq5zWMt5POk2bfoV7YtU5TtD4QAgXc0Bpabyw=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=E2jfNO5Gh4Chg6wKB7zKadEe9PwBMV+2q6XHbej9lbUieWwsu8QIkEbMOwIhLqQRdydfG54RZIHOusiFKLLBNL/HuBc9An1z4ksRX5waGTUmyFrx+N9iIB7ufEJEKM7rpwf/P/zAktJDMV//b6FalY9oKkG4UTOOk2jnMq/P/F0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=m5VRocYS; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=S6oRw7Ep; arc=none smtp.client-ip=103.168.172.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="m5VRocYS"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="S6oRw7Ep" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 8DD971400089; Tue, 30 Dec 2025 16:08:46 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Tue, 30 Dec 2025 16:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1767128926; x=1767215326; bh=hvZE2Mdaq3RzQueJdX+n3+4wx/tUoxDbdm9E/c+gs1o=; b= m5VRocYSXIlaNjd+wnyxBkSVsUT/BydMIpJq7VagNGuKzBrqFtbgisYFelvU7Mqy ipBIrQzYfnPIapunzxQX69y2NP5LynZX8FpTsZ9zoCAgqOFuhNtQaOCU8cIOSKtU 7F1PmHdpMDwwJLPSYVLfWRj3kV8QrKcp5y86LKuEP+N4WpmUHf64xINXxKVdg3kL qF4ZtIGseqI8F4kWe/w8WrErprFwyIM93VviN76uAnk8Hm1o///re+scA+CofU0m /ltX8JeBbs66ZEDAc17iuvb7gLtVZOlVlipCv5u5vt9kPimmSHADDrLuhkrOoW5a hFIdUFJhGqCpIpwwZLhNbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1767128926; x= 1767215326; bh=hvZE2Mdaq3RzQueJdX+n3+4wx/tUoxDbdm9E/c+gs1o=; b=S 6oRw7Epu5P83pBA0VBspCtXLB9a+fetUFSiiUsfvJEL6RQPSW90uhRVcGFyC4Fo5 gxkgaAx095YYoERFgoXy9eJDavez8YdhCRI4XplExR95uDhyO59c400fuyBiVIfT 1cJu+S5IU994i2m+Ed6KeFLOGUDf0bwCaOOdGDOVLRNNc71azzHI2/ZOC0RQREMW BATRCK0mnBociX6piQSsajcRl8E14M3NQ+fk0gGIFN1Osb43dFTa7I4bHkMUlNP9 hCxF7kwd6IXe6WpwBXgkNHdUB081jFrF0v8OJhfPE31oPOUAe1DsfnmlQaXuCIIL rtNvczVIOjav0rn9B2vHw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdekuddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdetrhhnugcu uegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtthgvrh hnpedvhfdvkeeuudevfffftefgvdevfedvleehvddvgeejvdefhedtgeegveehfeeljeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnug esrghrnhgusgdruggvpdhnsggprhgtphhtthhopedufedpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepsghpsegrlhhivghnkedruggvpdhrtghpthhtoheplhhinhhugiesrg hrmhhlihhnuhigrdhorhhgrdhukhdprhgtphhtthhopeguihhnghhuhigvnheskhgvrhhn vghlrdhorhhgpdhrtghpthhtohepvhhguhhpthgrsehkvghrnhgvlhdrohhrghdprhgtph htthhopeigkeeisehkvghrnhgvlhdrohhrghdprhgtphhtthhopehtghhlgieslhhinhhu thhrohhnihigrdguvgdprhgtphhtthhopehthhhomhgrshdrfigvihhsshhstghhuhhhse hlihhnuhhtrhhonhhigidruggvpdhrtghpthhtohepuggrvhgvrdhhrghnshgvnheslhhi nhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehlihhnuhigqdgrrhhmqdhkvghrnh gvlheslhhishhtshdrihhnfhhrrgguvggrugdrohhrgh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C0E08700065; Tue, 30 Dec 2025 16:08:44 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: A1Q6nbcC_O6V Date: Tue, 30 Dec 2025 22:08:04 +0100 From: "Arnd Bergmann" To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Vineet Gupta" , "Russell King" , "Dinh Nguyen" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H. Peter Anvin" Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Message-Id: In-Reply-To: <20251230-headers_install-config-leak-v1-4-efba5c58073d@linutronix.de> References: <20251230-headers_install-config-leak-v1-0-efba5c58073d@linutronix.de> <20251230-headers_install-config-leak-v1-4-efba5c58073d@linutronix.de> Subject: Re: [PATCH 4/5] x86/uapi: Stop leaking kconfig references to userspace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2025, at 08:10, Thomas Wei=C3=9Fschuh wrote: >=20 > /* entries in ARCH_DLINFO: */ > -#if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) > +#if defined(__KERNEL__) && (defined(CONFIG_IA32_EMULATION) ||=20 > !defined(CONFIG_X86_64)) > # define AT_VECTOR_SIZE_ARCH 3 > #else /* else it's non-compat x86-64 */ > # define AT_VECTOR_SIZE_ARCH 2 While this patch clearly keeps the current behavior, I think it's wrong, and 32-bit userspace should see a '3' instead of '2' here. It can probably just be '3' unconditionally, or we can make it more complex and have a userspace definition based on __x86_64__ being defined. I also wonder if there is a problem with the third x86-64 entry being zero rather than AT_IGNORE. I see that some architectures do it like this, to keep the number constant even if some entries are missing: if (likely(signal_minsigstksz)) \ NEW_AUX_ENT(AT_MINSIGSTKSZ, signal_minsigstksz); \ else \ NEW_AUX_ENT(AT_IGNORE, 0); \ Arnd