Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp575934lqr; Wed, 5 Jun 2024 14:41:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWyhT/cSBGKMXZ5j7YbP/PZxMv3kdj6rP+f59UAYb138xC8BrH06OJ/En5CNiHMIrnhd8EmGttrYAcpoik0pvu126xXUqStrj+EI7/EA== X-Google-Smtp-Source: AGHT+IFonEX2VAvpaRk797fQgYMzXv10KSTp7tnNxah2NsiynnEug/siN9+wMI8/bMpqWstLzSAC X-Received: by 2002:a17:907:502:b0:a52:65bd:a19a with SMTP id a640c23a62f3a-a69a024cf7bmr195779966b.57.1717623714363; Wed, 05 Jun 2024 14:41:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717623714; cv=pass; d=google.com; s=arc-20160816; b=z+8yp7D2uD8OqKfnMSlPezwQ5AaNk1/WatzEFmeIeuzmvtj6BzERWPuhYyCEz650tU 6gkSRAxeBWSLyQ+jw27qLqW1z+q75TkUyKKliOmvLUA2KTL1a4hfulIuVjJpffLeOsJO aHF6Z7r8WEUrUzNrZlhvATekbTPF+v4Y5U2ENFPExKS+TzWn9UJ9omQuBdxAgBaYGkpS KRvqpQJr5FXCrPQKCYHcQRZK7gecGeQHa8a3JgfVsONKMtHUawJduplwobuDxFwIth7p TTyEfBGZCLHjGUlDLRJjltkync2Gl0b7vpDoRnUn6GrcQzDvH2YFA9w2EGbH3BSEdH+7 Xd9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=RMaEgKRTCDlNySpYj41VqXw4r1dDo5g5VEmGt4FNdnE=; fh=QNUMAGahGqqWNO1XD0jrc5QxaF3lo2G0JFvWxb7gUC8=; b=ARcfCj5MrDBrY8bxCEY29aeK70AWO5YmggTqba7HUiUPSQA9qGMvIfyAOXSchF+KTt boRep1A68ob6JfZXIpQ5RXCkfIP/qpaft70oNedrBXPnDgrq0tX2zkUiNgEXeLXBICdC 1IUJmr0PtvISeq2CZ3pZRa5csz8SK72kvLMdiNAmHAYzZKtxBDR1s7X9jIQ8wC1fNZBU W6EZIQ8ZOCwe3KCVcrCoISjYT/35SWHLXl1U3hr7WznC5/H8ZPAC49qosu6a2/EmZPCo P67ydBIoaA62J4nWC+3mY+M/zSuBXGNzGBg75lOOF14mWDkwHvXlQ+o6HIDysZwQCjcu oPfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Gx1iWzgT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-crypto+bounces-4767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68b7a0b5cfsi513131666b.317.2024.06.05.14.41.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Gx1iWzgT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-crypto+bounces-4767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 17DA51F2314A for ; Wed, 5 Jun 2024 21:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10D3A15FA61; Wed, 5 Jun 2024 21:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Gx1iWzgT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZtHx48XW" X-Original-To: linux-crypto@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7861213A87A; Wed, 5 Jun 2024 21:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717623707; cv=none; b=P7qAqAObnu+LXUSrOfMTNXvKIUB9MdoQzbhRKzWzXf4zfE9SxQMK2cPCUiAjRkKzXnt8iJH5QeAqfFhOUyBp+TMX36cxTTPtcVSS5at4MnVrjzYkL0GbsxgvJVRKyhZanEjfiUJRX1pHuW6MtruJbuV567miEa3rl1OI8rVDCOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717623707; c=relaxed/simple; bh=m/okp4LUNPy9iC8VpIelYhrBq5Bzu3Me1uCGiBay1UM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=T8k6Pzv0YhT3Fuhn8lTznIplXfXDaraZ4UnmfuZ9i2PQ/8ZSULW+Q5zk9nVokM8dznvhouiuhdMhfKsN0sNxEjXAxWwkFJnVr3StFPhcJY2yDUoaubMFkQbC9f98AsVwiIdx6AGGFZx7iVsHxPy4mWvctKqq9+4yS6tcWG9I4HA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Gx1iWzgT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZtHx48XW; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717623704; 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=RMaEgKRTCDlNySpYj41VqXw4r1dDo5g5VEmGt4FNdnE=; b=Gx1iWzgTX0o8ADRd6eAhWRdaw8KXSRR7QkzG/7kanVTpqiDlZTNDYD6c9Pj4vMqiSqVvW6 waJ3TIx6C4gRFJ6kLumfJVF+iQIKnjSbSk9MmcxpV/FiEVZl9oG+rLW4PZB5iAm55qpH37 VQqPiI+P4dfRQtdfuDbPXgenUewddcsAVN3ijs4UDMd5wihw/YM8ihrRfp+/OSNpVz4KgC vhSKaGL1vv+ThKOW9p0MbLK8irlk8DhzWsqn2aXDrJQbra4cRQ/waEoo8vovW19KGoZCZv Bd4czcoC5I1BjMIy4jLKO1Si6cFOSBneHqSFi5B1P32BZvtH8b71uObeOQEBaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717623704; 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=RMaEgKRTCDlNySpYj41VqXw4r1dDo5g5VEmGt4FNdnE=; b=ZtHx48XWJqTKoECYXNN6PcoyyGXqNPkylnSFnwUYTP4Dr/UG3RwteEbcFNRjKTC86kbbo0 4hp+lFhJW9V2AdAA== To: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, patches@lists.linux.dev Cc: "Jason A. Donenfeld" , linux-crypto@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, Greg Kroah-Hartman , Adhemerval Zanella Netto , Carlos O'Donell , Florian Weimer , Arnd Bergmann , Jann Horn , Christian Brauner , David Hildenbrand , Samuel Neves Subject: Re: [PATCH v16 5/5] x86: vdso: Wire up getrandom() vDSO implementation In-Reply-To: <20240528122352.2485958-6-Jason@zx2c4.com> References: <20240528122352.2485958-1-Jason@zx2c4.com> <20240528122352.2485958-6-Jason@zx2c4.com> Date: Wed, 05 Jun 2024 23:41:44 +0200 Message-ID: <87y17j2hk7.ffs@tglx> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, May 28 2024 at 14:19, Jason A. Donenfeld wrote: > + > +static __always_inline const struct vdso_rng_data *__arch_get_vdso_rng_data(void) > +{ > + if (__vdso_data->clock_mode == VDSO_CLOCKMODE_TIMENS) Lacks an IS_ENABLED(CONFIG_TIMENS) > + return (void *)&__vdso_rng_data + ((void *)&__timens_vdso_data - (void *)&__vdso_data); > + return &__vdso_rng_data; > +} Thanks, tglx