Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp661569lqh; Fri, 31 May 2024 12:18:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTZ/rpdB57mgxlhx85HeZWEfGxEkn8AZZLnMvxlwMl7h5vnhXKawRlGbHok5WiXcT5ZR5JhVREoBQgTiBABa69kYkmdIf0GNzQoSFpIA== X-Google-Smtp-Source: AGHT+IHNTce10JUsG3kYioNpWQ9j7ADd0Gl23qNLldFWs6GvLaJQqcWL1NRP2bgaQkqy5+zTTqS/ X-Received: by 2002:a05:6a21:998f:b0:1b2:a69:f68f with SMTP id adf61e73a8af0-1b26eec5d11mr3432626637.0.1717183095677; Fri, 31 May 2024 12:18:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717183095; cv=pass; d=google.com; s=arc-20160816; b=KZmQ/bUe+LkzU8sXoAOaJSnQEOp96KbdxnVfxD6wyoG5jTWluacCLRf0wEqqkag51i +Mgh5vvDBYb9lrMlA9CeeiByyt8wZtBFMzbJo7Ck6JwA0Te4H2+sbj7YPZTU9qbUXKfu 4t5cbaXCmXCHxGEa3dc7Snjn03/IDrlvMOaJ9VftonkymOOMYBhcVJoXrdaneIWOusB3 8f/p55N9t5rADMQMmamzZGBbaKd9ddy6o72XvIvkgN3bO96XtKVa7DXCzph+Vp2Oii7c yYg3w4I6FFMNzGwMonDeGPKeg0GusS0OknOg260/SRDJ+netruqvheizyq0S90q867dr wdfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=hPyof/EOj4v+XgKM3joe70Y5CZ+IX8DZjsDqOIZCxPs=; fh=tQPN/XttGiy/6M7Tcj1Re7TMpnGtCCCBqdHg/UkHuHY=; b=aOPEdCmI+vGE3iiwH0ZPqoOWleYRmBhXkibmXX9CAPkcMWuCjLI9Gk9X8hX79xJW4H oSQ0icjtIxuT18dDs6kKrS7PIhphl429nz334s228GUDluiCWPZO44nabQtudvYw2bPL D+bSbk4ePwBT6CPJODmUEOcGTSgiUo1Ezq6Cn+g9RG1ECXrC/837gzT8f1mlHq0KV37y LVZu/DplQ/i3Rs2fJn41uKHNYlU55o6ygL5an5J0gvJohFBF3nn9kkpXRPpW9VGi6xY6 J3nKdzCLyLVkfmSPsJLehv8mnwy8LrBudebgfUri5IGhtoBfeu61GuKeDxUnwBXvEgtW dpnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NMNzQnYP; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-crypto+bounces-4625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4625-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e09937si1996736a12.364.2024.05.31.12.18.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:18:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NMNzQnYP; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-crypto+bounces-4625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4625-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ACECF28949D for ; Fri, 31 May 2024 19:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1023117E446; Fri, 31 May 2024 19:16:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NMNzQnYP" X-Original-To: linux-crypto@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A2B9015B96F; Fri, 31 May 2024 19:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717182966; cv=none; b=sfc7omXo2SQQSRunkMRd6Nj/9V1b7UQe2ukvLAoMxsqxkef13J/3MQhDOcHt/oZNAWQNZPIuLyah0TuooWn3gKPOXWRWDuJW7v7OB1YeGAc1UJLdF7NaJsZF4MdeDjEt/q6H1eWFJ7vGhQweKSdh4yvSRRfyMUVo2mg5lKqeAnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717182966; c=relaxed/simple; bh=/6f2BFnXlCY+TMZKoklwGpsgUO6E6EdXvHtsPgtZCoM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G305icc86lh0bu30rR14koPKscEbTIZEwPUr4HehDT5Lmrj/UOoZAo2xXiv5rFC9wlz8TTPQsP4h2DvIFvfPI1SGpbigB8RpLqFOhwZGXKrodN7+1CQu2Cu2/C0ZciNR9Johv9+frFN6XtDNGuiRGA97JQ74jYgSRcYn5GbaT5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=NMNzQnYP; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=hPyof/EOj4v+XgKM3joe70Y5CZ+IX8DZjsDqOIZCxPs=; b=NMNzQnYP8iGOF1xtsYwfuylVYT wF10rwcKmLlx4Gb0vPuQpVkl6f83Hi8GCNMdXUAqxy2KutR8vigueSbbqVJpNUtWJi4nWTyWLHm96 eBEgXHpQ0Y7A6TUnB27JTUu9aGsFCm7aEIONfBoqdVFcwFtMxh/pmCsMRoi2k6cvTcQwiKR1aIpci 0uwX4SAUfatKIyun7wLLjskZf75p95a3IKjAA3wOY11D2yB97C/y+s4GPgKcYpxPi2HIjz71KOx5d vf442zpq6F2KoZpeUdoGTUfUHAz8AWBx1fyhmac5aQ3x8iMgJFPVMOw1qXA1rppVxMv9OvSB2wgc3 DFu5HivA==; Received: from [50.53.4.147] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sD7jQ-0000000BDnz-0GMj; Fri, 31 May 2024 19:16:04 +0000 Message-ID: <2b21f479-cf4f-49a3-b7c8-33f87a1998ac@infradead.org> Date: Fri, 31 May 2024 12:16:03 -0700 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v16 5/5] x86: vdso: Wire up getrandom() vDSO implementation To: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, patches@lists.linux.dev, tglx@linutronix.de Cc: 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 References: <20240528122352.2485958-1-Jason@zx2c4.com> <20240528122352.2485958-6-Jason@zx2c4.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20240528122352.2485958-6-Jason@zx2c4.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/28/24 5:19 AM, Jason A. Donenfeld wrote: > +/** > + * getrandom_syscall - Invoke the getrandom() syscall. > + * @buffer: Destination buffer to fill with random bytes. > + * @len: Size of @buffer in bytes. > + * @flags: Zero or more GRND_* flags. > + * Returns the number of random bytes written to @buffer, or a negative value indicating an error. * Returns: > + */ -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html