From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from flow-b2-smtp.messagingengine.com (flow-b2-smtp.messagingengine.com [202.12.124.137]) (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 8FEBF229B36; Mon, 1 Sep 2025 13:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.137 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756732802; cv=none; b=rVlXMVzDQ4wVafMyr3UOr0/eCqg3U+i5h8d2ja4tH5Yrb7UwKOYBpbCIvQ73SIl9Z/sGl3W5J7vqsKDbIVsOIwKTnTgqveXq6BM/b1ggZxEaZMvNwZ9mRegkEunZBwtYmXUvEbuvoefcP8dnhrbsh1bMUF+CSl+BH/Q7F6dkUso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756732802; c=relaxed/simple; bh=Mw8Cn4/OCWn4lPhhW5QgwqsK4SmxabwHi0TRYO6VF1s=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=Cx5MQMuMRB/23Gd/1l5tLbAJ2oBpFSSscM3yiLrlt9jUj3C4zkEbLt4VlXbpfC+U8fH3X90tNLsBGV2+kwQw3z91ltgIayRosbKEsz4l68y3ML14LsWs4a+pLZsgPgpld1EmOIz0fNZvSkVNKRPmy9Mk35nt+cKRehJ3Zjpp+tw= 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=CnAwI6SL; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ck+bLnVy; arc=none smtp.client-ip=202.12.124.137 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="CnAwI6SL"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ck+bLnVy" Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailflow.stl.internal (Postfix) with ESMTP id 0273F1300C7C; Mon, 1 Sep 2025 09:19:58 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-05.internal (MEProxy); Mon, 01 Sep 2025 09:19:59 -0400 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=fm3; t=1756732798; x=1756739998; bh=Mw8Cn4/OCWn4lPhhW5QgwqsK4SmxabwHi0TRYO6VF1s=; b= CnAwI6SLiAzw0ll8Zcw4x5ea+0Wq8HSRDsTA+9idX6q1fQOlDdE3T68T/kysPsIG nKO9tHyF6Fkm5B/udz2FfkCejBvRRR69H9aA2BrCMMr0ANRdSOH6v/vmUfCY6aKN 9al2A9m+/LbUpShQmy9n/+vOjS0OpgsEZXq0Hj3P0uQRDAZ6sDBza6GbHCFQZfCU bK3sxkJn4xh0u5pizVBli7lqdFPr0vIypTIrsNVvRo5/G3G98pikcIa/SMLnU+XR joMia7KY2YpR6qcrOYAY4upTkIkbmsxCcG7v0eDIzuymSe6UVhl0vDVJcf8/pwuU ub3tO2OuWEVDh/PNC1ns9Q== 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=fm1; t=1756732798; x= 1756739998; bh=Mw8Cn4/OCWn4lPhhW5QgwqsK4SmxabwHi0TRYO6VF1s=; b=c k+bLnVyuYvhrOGGKenVyE6fBWoVEDNzhfGsMxUqDAGiBXMw3Y0aqSZrO99yruehh 7SuaY3v8ffaiwA7q/f2441rlWzMGV2KhxDUvwd5dJkD0oNAnUbFI+noFJSDwLkKD jaa1OqQOv30Qbm6ICXD545lYhFrDJwWshMDunmIO1s2irCc75wtkhZpAT5hwAc4C n9m0gNYy7MoNjydJqkXVeuEM3iLHeA2rOUyPeXYXDswUfkuw0LeEthOs5ReQ8jiv c3Pd+c7YESEkFE+JbQiaKxUimpiO9cHD2qvSqsWz4lgmPWBj3I05MDeoALVGtNaJ UzJmRoeKiveqvY5CekgRA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduledvvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrnhgu uceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrthhtvg hrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefhvdei necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnh gusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepvdeipdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehvsggrsghkrgesshhushgvrdgtiidprhgtphhtthhopehmghhorh hmrghnsehsuhhsvgdruggvpdhrtghpthhtohephihsrghtohesuhhsvghrshdrshhouhhr tggvfhhorhhgvgdrjhhppdhrtghpthhtoheptghgrhhouhhpshesvhhgvghrrdhkvghrnh gvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrlhhphhgrsehvghgvrhdrkhgvrhhn vghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqsghlohgtkhesvhhgvghrrdhkvghrnh gvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgtshhkhiesvhhgvghrrdhkvghrnhgv lhdrohhrghdprhgtphhtthhopehlihhnuhigqdhfshguvghvvghlsehvghgvrhdrkhgvrh hnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqhhgvgigrghhonhesvhhgvghrrdhk vghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 76793700065; Mon, 1 Sep 2025 09:19:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: AngmsHLdt4H3 Date: Mon, 01 Sep 2025 15:19:31 +0200 From: "Arnd Bergmann" To: "schuster.simon@siemens-energy.com" , "Dinh Nguyen" , "Christian Brauner" , "Andrew Morton" , "David Hildenbrand" , "Lorenzo Stoakes" , "Liam R. Howlett" , "Vlastimil Babka" , "Mike Rapoport" , "Suren Baghdasaryan" , "Michal Hocko" , "Ingo Molnar" , "Peter Zijlstra" , "Juri Lelli" , "Vincent Guittot" , "Dietmar Eggemann" , "Steven Rostedt" , "Benjamin Segall" , "Mel Gorman" , "Valentin Schneider" , "Kees Cook" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" , guoren , "Oleg Nesterov" , "Jens Axboe" , "Alexander Viro" , "Jan Kara" , "Tejun Heo" , "Johannes Weiner" , =?UTF-8?Q?Michal_Koutn=C3=BD?= , "Paul Moore" , "Serge Hallyn" , "James Morris" , "Serge E. Hallyn" , "Anna-Maria Gleixner" , "Frederic Weisbecker" , "Thomas Gleixner" , "Masami Hiramatsu" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Simon Horman" , "Mathieu Desnoyers" , "Arnaldo Carvalho de Melo" , "Namhyung Kim" , "Mark Rutland" , "Alexander Shishkin" , "Jiri Olsa" , "Ian Rogers" , "Adrian Hunter" , "John Johansen" , "Stephen Smalley" , "Ondrej Mosnacek" , "Kentaro Takeda" , "Tetsuo Handa" , "Richard Henderson" , "Matt Turner" , "Vineet Gupta" , "Russell King" , "Catalin Marinas" , "Will Deacon" , "Brian Cain" , "Huacai Chen" , "WANG Xuerui" , "Geert Uytterhoeven" , "Michal Simek" , "Thomas Bogendoerfer" , "Jonas Bonn" , "Stefan Kristiansson" , "Stafford Horne" , "James E . J . Bottomley" , "Helge Deller" , "Madhavan Srinivasan" , "Michael Ellerman" , "Nicholas Piggin" , "Christophe Leroy" , "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" , "Sven Schnelle" , "Yoshinori Sato" , "Rich Felker" , "John Paul Adrian Glaubitz" , "Andreas Larsson" , "Richard Weinberger" , "Anton Ivanov" , "Johannes Berg" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H. Peter Anvin" , "Chris Zankel" , "Max Filippov" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, "linux-csky@vger.kernel.org" , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, linux-security-module@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Netdev , linux-perf-users@vger.kernel.org, apparmor@lists.ubuntu.com, selinux@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, "linux-openrisc@vger.kernel.org" , linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, stable@vger.kernel.org Message-Id: <13f8ca46-92f0-47bb-a046-165402122a44@app.fastmail.com> In-Reply-To: <20250901-nios2-implement-clone3-v2-1-53fcf5577d57@siemens-energy.com> References: <20250901-nios2-implement-clone3-v2-0-53fcf5577d57@siemens-energy.com> <20250901-nios2-implement-clone3-v2-1-53fcf5577d57@siemens-energy.com> Subject: Re: [PATCH v2 1/4] copy_sighand: Handle architectures where sizeof(unsigned long) < sizeof(u64) Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, Sep 1, 2025, at 15:09, Simon Schuster via B4 Relay wrote: > This commit fixes the bug by always passing clone_flags to copy_sighand > via their declared u64 type, invariant of architecture-dependent integer > sizes. > > Fixes: b612e5df4587 ("clone3: add CLONE_CLEAR_SIGHAND") > Cc: stable@vger.kernel.org # linux-5.5+ > Signed-off-by: Simon Schuster > Reviewed-by: Lorenzo Stoakes Reviewed-by: Arnd Bergmann