From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C6C1C5320E for ; Tue, 27 Aug 2024 08:22:35 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WtLBf0jFbz2xKQ; Tue, 27 Aug 2024 18:22:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=145.40.73.55 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1724746954; cv=none; b=ezwWgdhD/8hTykfPtNmtGyohPVXMr9NjxvMnUigrInYOPWvubNn9DGsfgfx0rG8ml2dgWvroN8ywsWZmPDzwGc3m39QGHFcE+BKfFyL2VtlFRIY6XjIdL4iX+lE+nlTKAhEQjLO84Dj/Vr1mFveVw8i10UAueUviAt0uQYXkVQc6uoYMHa1eDQrHUY+sSwDJ+n9UfoIlJ0UtuxRu1yZJoec2ZefXKBAZHIFq393I8oAGeaYflQ9mi4edagF4fKeIiifWQA8h8VtXHIL+KvPXQachP5pfyS0wdwGJ/X71eB3Xh2RRDcIg416MiwaC8a385bqVNvAejt2HKXi70ymu5A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1724746954; c=relaxed/relaxed; bh=Uzmm5ymz9Kdo8U5i2J3vApJuNWGqBvcBgCCp8LWSRoY=; h=Received:Received:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=lGfjTsIZ2KJQzx/hduCZHBASpoUvX8xqae3UFZ6FbkfpQS6e3LGbdeKTn8e09nktKshQKxYLjYy3HlGNAekZaFXr/F/4I0tkHnFnm5DZz0g4cxFPpmcv/Z8FeNpsWraCvaO+u99Wti3AWHUVFRHuVOSNrey96ptH68z8M0/mHCGwqQe6FvqvI0W02Wl1sTVrC4fU9IEWCmU2VnjkWi7xeUPaQCWOv7Bc5VOHfz2M4DR8rnctH9wYepcqWADcP7q05XLq3c92ZlSopV5VzwHqKyynyBYAIHBPLqTrMm1DX3M8QsdZJ5ZATpmgpxeuhBoFxhkIY6porp1FlEN4xBfogA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=zx2c4.com; dkim=pass (1024-bit key; unprotected) header.d=zx2c4.com header.i=@zx2c4.com header.a=rsa-sha256 header.s=20210105 header.b=TORGCs/7; dkim-atps=neutral; spf=pass (client-ip=145.40.73.55; helo=sin.source.kernel.org; envelope-from=srs0=xpq3=p2=zx2c4.com=jason@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=zx2c4.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=zx2c4.com header.i=@zx2c4.com header.a=rsa-sha256 header.s=20210105 header.b=TORGCs/7; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=145.40.73.55; helo=sin.source.kernel.org; envelope-from=srs0=xpq3=p2=zx2c4.com=jason@kernel.org; receiver=lists.ozlabs.org) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WtLBd6t4nz2xHW for ; Tue, 27 Aug 2024 18:22:33 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id B21F4CE10F9; Tue, 27 Aug 2024 08:22:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63334C8B7A1; Tue, 27 Aug 2024 08:03:40 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="TORGCs/7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1724745819; h=from:from:reply-to:subject:subject: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=Uzmm5ymz9Kdo8U5i2J3vApJuNWGqBvcBgCCp8LWSRoY=; b=TORGCs/7gC4HKVFIs54oJJTrqMS5kY0+3ykih9Z6ThQoVZ/vsLyrzOfeVn51GHXKBfwtZ6 RiqDIBoNb31ZAgvJXn8l41ee5CELTUFr+Z73k3I/SEWAyJsyL6vaP2Hs4QqHw88LtYnJby synNMhSoaRx1O1AKVH96EVx8KYIEMkE= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4fa0e2f2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 27 Aug 2024 08:03:38 +0000 (UTC) Date: Tue, 27 Aug 2024 10:03:32 +0200 From: "Jason A. Donenfeld" To: Christophe Leroy Cc: Theodore Ts'o , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 4/4] random: vDSO: don't use 64 bits atomics on 32 bits architectures Message-ID: References: <30806cb8d7e0b95dcfb9f81a4583759faa1d8f31.1724743492.git.christophe.leroy@csgroup.eu> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Post: List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <30806cb8d7e0b95dcfb9f81a4583759faa1d8f31.1724743492.git.christophe.leroy@csgroup.eu> On Tue, Aug 27, 2024 at 09:31:50AM +0200, Christophe Leroy wrote: > Performing SMP atomic operations on u64 fails on powerpc32: Thanks for this, and nice catch on the vDSO side checking on big endian. I've applied this, fixing up the commit message and the comment, maintaining the reverse christmas tree in getrandom.c, and adding tglx's suggested-by tag. Jason