Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp816716lqc; Fri, 8 Mar 2024 12:30:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyHTD7jLt5bQR5qgEBXtbwIuE8K5GSsd2gJ7Bi+2KV2no/n6Lho4d1OWqJkpA0mLCbi5RRiQhK5iHW/4nDoNVpu6Kbdbkwn4xCus3UVQ== X-Google-Smtp-Source: AGHT+IFfpIcQbnPuvA01sLUAXptj91tXQKzpI3jmARIq/7SbRAIwI+EtsPSYKJEXvRT6O9IuTVcI X-Received: by 2002:a17:902:ec81:b0:1dd:524e:3ad5 with SMTP id x1-20020a170902ec8100b001dd524e3ad5mr206730plg.61.1709929832042; Fri, 08 Mar 2024 12:30:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709929832; cv=pass; d=google.com; s=arc-20160816; b=oGkymkVceHnjeoGG8ZlScm63V4G3vEUnyv/lPuR15ApZKoeMZPE6AlpO8iXikHg0OI vM9gN/T7pyry1WzyP8zLlVUuU+C/7oHvT9wBc5bZKM9j24418HPcPidyDtoQWEhj8s7z NbjOa74dP3PTsqwOK5Q02HCTUDkWV2j6Hkqzb5v8bkCW6rD2/m08hkVwYZIV45xnM6O2 Gk8GRvsp+96ZEiD/AejudW5d6HldE4wa0UJcK5chuRH+4h2FUthk84rQrGv6ZRJ1Tv6C YEOX6+7QJLi7OQw9nk9gYlvOxVcdyYXPxTaCx+NbGUnPQaE57chBdF/lUoyhHYNqM+We 4iHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=i+BFqwvpshhQkm0ab4yqWsNgexM9j1Rk2QJFjv0/UiE=; fh=5a75ftJHdPwdzLfr6x/JVxfHynQDxgfWeBTSvQSS4Co=; b=hzWIS1mL+pTSxFQtP2Ft+AyShqLNWNUuKslygNl28/Ze0m/Sys3p3L2vc1zzjAMWXj /HGNNwKgK1s8vp0JYZRarK/TrJxObPsTu2ItRMWu+6bH9JYzILps8+Wj0ptsmctb0gQ3 maKpuZMO6kneuFF4z/SfTLNibqj9iqrNURBs0PkKPVnzkH8u41HQk44ZNEryqVJ5t+5o PV1EFVLmNrf2kVcVLpkQWLcKyUFDiaBSJRS7i4cs6+7uq6xDpIE7Tx7wcy77uwDRo807 6T5MkjzIB1eMhmjnWno6X5PkBFVKkXSVD5bsnC1BSfegpdI29ZwxDhklEDG8OAfgKJur DMHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=kQwPIMWk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="p3/9HIZS"; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-97553-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e12-20020a170902ef4c00b001dbeb8eecaesi106333plx.504.2024.03.08.12.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 12:30:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97553-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=@arndb.de header.s=fm1 header.b=kQwPIMWk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="p3/9HIZS"; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-97553-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B5472283408 for ; Fri, 8 Mar 2024 20:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 129FB5F848; Fri, 8 Mar 2024 20:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="kQwPIMWk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="p3/9HIZS" Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (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 3877C5E063; Fri, 8 Mar 2024 20:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709929816; cv=none; b=UewiU1GFIps66172mb9aoOn+QsBhGEvc7Go69TFlH3JQ9+1o7+B5U8poox0H3/+Xn+sOTPp9FfmyHy7G7EtRzAmSlEm78rlQVp9B1lu1xZhsG+atYgC+w6i6eMVLsP8br03hyOLwvnbLUVRHiC4dHLEMCtC7krZh59X1/YGdGcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709929816; c=relaxed/simple; bh=dQmf6b8r/JQlJSxgV6LHXxtLlFewVIk3A5hnBzx8nkY=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=IuIdfUTSEJuzY4WFldOs0+tUyjMyXGis/WJ7dT4Al+BAK14R9/1/h5ljkfyVSbPyy9VW7pz6N9BlSYK1jjvQNvmRHFomxIPL3mDl/LWoCobGbRthxsl40CW4FNhXqNVjlOmxGRUKNg0PHGRZo2X1lmzyIt3Jk0yohTt7k88nh8I= 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=kQwPIMWk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=p3/9HIZS; arc=none smtp.client-ip=103.168.172.147 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 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 3BB3113800E8; Fri, 8 Mar 2024 15:30:13 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 08 Mar 2024 15:30:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc: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=1709929813; x=1710016213; bh=i+BFqwvpsh hQkm0ab4yqWsNgexM9j1Rk2QJFjv0/UiE=; b=kQwPIMWkFCGEXxk6FMqTWVX3E9 cC/nl21nFuAVUpsnBD7nrv2sMWWZnP1lM7ECMV8F5z3bjZzrZP+cAkHdDwoop+SU k3vM56qh/yUwJEAYxNxtIFmVeXKqj2Am0ShFu133j2vYD1o+0i5Ir8o37SvYuAq8 xqDOsTo13ov/6XyatsxlGu8pczys2TxZHxmNZdHLSDqR98DiaKtXZ4+s1mHb7+N6 yrMlf55MCRNwrSl0iBXpjFby42JJFzAFSBdB65sdlejeUuqg9zdzJRz54nObNNV1 Te9SvtYaOLqE7sK9S/q2OzRqYOw206RsNXp01BtlgH2cUb8RCr6a24ZYKZlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709929813; x=1710016213; bh=i+BFqwvpshhQkm0ab4yqWsNgexM9 j1Rk2QJFjv0/UiE=; b=p3/9HIZS3FcldnOxMlmQWuaSOTyT1e/GWzqYdCpXl9zs zEyxM1hWEVe9Qlu5eG92XFdfLm/pdJi3/YA0mTeFrFI6fs8uaUzWA2Q6XYDHUZ+r W7sXNsGvYVsq+J5UfOVNawXOotaaaFEzUhH6UHIO14qscXwAFdNOPqtd38iRI6FP 3hOzcZ7/ToTfByLwZCaQ48oox4JpB4L9AD5LKK2eivVyNzLggUlbFN3FMBvFEfoz NPXdxfPz1UHqo0eKJPbNrb5nFrnfuQko4wWRngrj0Xlbii/belkJz+Y1wT8w1Fl/ VwBEmJmr6s4oE/OUkQpm+5/txuX69CnVfUj/sb9VdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrieehgddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 216A8B6008D; Fri, 8 Mar 2024 15:30:12 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-251-g8332da0bf6-fm-20240305.001-g8332da0b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240305221824.3300322-1-jeremy.linton@arm.com> <20240305221824.3300322-2-jeremy.linton@arm.com> <202403051526.0BE26F99E@keescook> <34351804-ad1d-498f-932a-c1844b78589f@app.fastmail.com> <38f9541b-dd88-4d49-af3b-bc7880a4e2f4@arm.com> Date: Fri, 08 Mar 2024 21:29:51 +0100 From: "Arnd Bergmann" To: "Jeremy Linton" , "Kees Cook" Cc: linux-arm-kernel@lists.infradead.org, "Catalin Marinas" , "Will Deacon" , "Jason A . Donenfeld" , "Gustavo A. R. Silva" , "Mark Rutland" , "Steven Rostedt" , "Mark Brown" , "Guo Hui" , Manoj.Iyer@arm.com, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "James Yang" , "Shiyou Huang" Subject: Re: [PATCH 1/1] arm64: syscall: Direct PRNG kstack randomization Content-Type: text/plain On Fri, Mar 8, 2024, at 17:49, Jeremy Linton wrote: > On 3/7/24 05:10, Arnd Bergmann wrote: >> >> I'm not sure I understand the logic. Do you mean that accessing >> CNTVCT itself is slow, or that reseeding based on CNTVCT is slow >> because of the overhead of reseeding? > > Slow, as in, its running at a much lower frequency than a cycle counter. Ok, I see. Would it be possible to use PMEVCNTR0 instead? Arnd