Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4744937yba; Wed, 10 Apr 2019 04:08:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxii3sdcgnIApI2hDA5Mq+jtHH4+i/Ino3hDDCWI/63vFI2eJgpWxtF9noJvL6Q2dWiItIo X-Received: by 2002:a17:902:b94a:: with SMTP id h10mr43462091pls.82.1554894526578; Wed, 10 Apr 2019 04:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554894526; cv=none; d=google.com; s=arc-20160816; b=mOl7eNtcAipvNFnbN7qyEwPpw+Mb7SuZh1WTpuZqdQYjONmk4GXQUV5KcY6oWRtNyA D0E6M2IAW4wntKntqwFDNRjVK8mqc36GKwWYzCULKcMEJ+5Giz3pj+RL86XotuJJ/Ccg 7CfTi0cRrBuUjcDsbCRN1pXsRG5WsLfKSUgrN6iiNEZqvPXRpODZYmgMgOq5BXL+H3D0 lYSNlRcFQF/xwP3x0M2h4ZKpj0wK12wfpyXqoKxFgwmrpiCvHgMq8ghFW8RJqPFOMKgn gitLzgnxRcAXmnxaKgoPntNMq6HuLRPKIGEIY8GZcO9F+JJU7WK0xs1/mfbowa+8zbPS aXEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YprWmfwhQF20Qys/UdJ3RBGreoWNm3/nxiInaksXJ+o=; b=JHt95AFavAhrtN5y/CTCHsn/qBTyHV/v1hiIRFKFMAxm13HK/QVVBIW7OCfFkXlho4 Y9G4LvTPfAHv9cCWJ5BlM/dV7jcX2VN04dK/MaP2z6NRJfjIbYV5caiueKp+ep1E16H0 2Ha/rcJjnF2VmPa0SrRH3V5OLfAJ8fOLUVWvF7YiOcVHbqiNj1YwSND+dlvp8y9kWy9K 13Sj5FNFyPnHJx2iRWBHsFlXdU0qJRp7FuPySvBs4joVtZY6tNVaslH9wZj/mNSjfOB/ hIEIfj0IQqN6W31EbwEq0pSJLPWmK6/2ol6dYzHgKI65U2cnU1s11M1FuA63vNmDp0N/ Esxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tpadLzQl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn11si31454610plb.205.2019.04.10.04.08.31; Wed, 10 Apr 2019 04:08:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tpadLzQl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730353AbfDJJ4k (ORCPT + 99 others); Wed, 10 Apr 2019 05:56:40 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60534 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbfDJJ4h (ORCPT ); Wed, 10 Apr 2019 05:56:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YprWmfwhQF20Qys/UdJ3RBGreoWNm3/nxiInaksXJ+o=; b=tpadLzQl4noh+bArYx4m+wD4q0 X67k5D/8/4dmaQkM1S9Ksd8N+8cHU/rkthXXoBXM+bpIj8SQ5QtulLSsIvZBaNb7nX1gqXg00haVa kADIDc2PDOyWhkUvWDZaBjEtwbHPMJHLoOyxpgazq4tiLYYTF6Mq8oirumB9vNxEfYQZqUeTtD6tV BDfwakks1AjXZXr3HzGl/eK5sRddaDgVduLYsE77JpS1Teol2jl/uur3NErk0EXKsvBdffMBWJ5ij SRnw54tyjsi23dAsghO2DiXYCq36/sFJmUxslUNIrvKTjtyAO5E8NvVcJmXzS3wftowQJxHTVsRFc O+3Sw9CA==; Received: from 177.41.129.23.dynamic.adsl.gvt.net.br ([177.41.129.23] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE9y9-0003Cn-6R; Wed, 10 Apr 2019 09:56:37 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hE9y3-0000oP-T8; Wed, 10 Apr 2019 06:56:31 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 8/8] docs: speculation.txt: mark example blocks as such Date: Wed, 10 Apr 2019 06:56:27 -0300 Message-Id: <793a3b0103b2d91e4bf850849f9de76cee3273a9.1554889999.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Identify the example blocks there, in order to avoid Sphinx warnings. Signed-off-by: Mauro Carvalho Chehab --- Documentation/speculation.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/speculation.txt b/Documentation/speculation.txt index e9e6cbae2841..50d7ea857cff 100644 --- a/Documentation/speculation.txt +++ b/Documentation/speculation.txt @@ -17,7 +17,7 @@ observed to extract secret information. For example, in the presence of branch prediction, it is possible for bounds checks to be ignored by code which is speculatively executed. Consider the -following code: +following code:: int load_array(int *array, unsigned int index) { @@ -27,7 +27,7 @@ following code: return array[index]; } -Which, on arm64, may be compiled to an assembly sequence such as: +Which, on arm64, may be compiled to an assembly sequence such as:: CMP , #MAX_ARRAY_ELEMS B.LT less @@ -44,7 +44,7 @@ microarchitectural state which can be subsequently measured. More complex sequences involving multiple dependent memory accesses may result in sensitive information being leaked. Consider the following -code, building on the prior example: +code, building on the prior example:: int load_dependent_arrays(int *arr1, int *arr2, int index) { @@ -77,7 +77,7 @@ A call to array_index_nospec(index, size) returns a sanitized index value that is bounded to [0, size) even under cpu speculation conditions. -This can be used to protect the earlier load_array() example: +This can be used to protect the earlier load_array() example:: int load_array(int *array, unsigned int index) { -- 2.20.1