Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3050632yba; Mon, 8 Apr 2019 10:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9+dKZz+dhpufYwjk6Eb4Mb77ilp6xBq6p8S8JonuHFPrdGYueOAGUWv3KA+2nju052zhe X-Received: by 2002:a63:450f:: with SMTP id s15mr29073463pga.157.1554742939910; Mon, 08 Apr 2019 10:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554742939; cv=none; d=google.com; s=arc-20160816; b=bFN2eCJw0nrlgtK1yRuvkVJfA9iqFC4Iq3CkyD5t+J1EzlarF9URn7o4pJn1TUZVej /p1gr+WSLB1f4hmk4NtIdmPr4FJ/9QIHoce0nOQaFaaZPqV6gtFLWhl+qfktxkG+vfWZ vsJdt7Zkv1q7YYnUEQbWVdhstZoDRtOvpMSbyPRVVmrBOWorSMU0dxc1Ih8qf7n2FcU8 lB6hMycx2mg/y+7gCWoJjQC9zeolWFdjJgVBv5k3agoBCSV8yRdLE5+2h33w2OBcPrsn hWJnyWTtRswKLYv42AIaT1XyUJKRpNg12IrEXTszJxdXUV4mQ3PDfdmFpLflFIDaqw3d I+dw== 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=81/KmEkB+/pugen2d+cVnJhqjOy8JESn90tSCrSP5OA=; b=EgnczNF8+IRWTO9Wrmk8rV/UcS8yj0CY4bivLrrD8KYQ+rWRn7GhVSxEQ0letj9NhD H9iqu/hFm8iNRE8UO/iwNRBuMbNOpeVYT40KjXzWbTaqeFcMPKenfvWoxY4iF500cpP4 aE/W8uCguDjNIrFkbCAqtMRzJC13sX0ClodVu1D0rSAnEI+t5EExTZQaJjtf0vF9kaJz xZ788GUxWpY7ERJgJa4oD9AojJS05qh9oYykAvI90Y0L5Y6PspWW5JLbOy4wi4UWYSK1 gBqS5s/tohpxFXs0Wt6+r+eBFDJLEVPPhpQcp1Q2tJwmiIbZR4/DgldZVRMn503y/k2T cfqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QOgC7zlT; 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 h22si20878751pfn.238.2019.04.08.10.02.04; Mon, 08 Apr 2019 10:02:19 -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=QOgC7zlT; 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 S1729212AbfDHQ7k (ORCPT + 99 others); Mon, 8 Apr 2019 12:59:40 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58696 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729218AbfDHQ6h (ORCPT ); Mon, 8 Apr 2019 12:58: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=81/KmEkB+/pugen2d+cVnJhqjOy8JESn90tSCrSP5OA=; b=QOgC7zlTzAw4y2Y7TFowxGsZRc PJcn58cDLE10cX1vxRR3bQGOktmaB3OU9PLTrcOzoJY4U5kncmN8BkWN1NyByCg4dt8z+0bFnH8lh SRab/Aul08EsF4Kg9MiX9SE1d/w3/QQ4rnrq5N+OltPyzFGcsyLjJRlwKViZBBao4cguS2SGvjXkb d7mj/APLonbcDZAQrdGgAROzp4g1JJsfb9F2W/t/6i08Yfk9Q+7I5t2hVoJwEhfuCW9R6Iuu8FUAq KQKj5i/9IJa1q2d4mr5JHrjTgW2psBtgBMPMF1xPDxoXZJYU7VSomzlKviva5NiXeAYeVy68LmrLE tkNxJNVw==; Received: from [179.95.33.162] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDXbO-0005Ss-67; Mon, 08 Apr 2019 16:58:34 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hDXbI-0005nX-D4; Mon, 08 Apr 2019 13:58:28 -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 09/10] docs: speculation.rst: mark example blocks as such Date: Mon, 8 Apr 2019 13:58:25 -0300 Message-Id: <0aa821b9a14f61755e97007562e84c66a3c13f3d.1554742526.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/other/speculation.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/other/speculation.rst b/Documentation/other/speculation.rst index e9e6cbae2841..50d7ea857cff 100644 --- a/Documentation/other/speculation.rst +++ b/Documentation/other/speculation.rst @@ -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