Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp134245ybi; Tue, 2 Jul 2019 17:42:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr9sVCkH44nK2fCq7S/nk3mxwHYNAhXj20OoxQreYgxyPuKhSfFR5FZ2odvibmH9z38KQL X-Received: by 2002:a63:6ecf:: with SMTP id j198mr33414363pgc.437.1562114562967; Tue, 02 Jul 2019 17:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562114562; cv=none; d=google.com; s=arc-20160816; b=qumK3d1F/d9CTXWi5V7Wm2XRNrPn0jsu0C5fT/NOS8FbbKZPtJKayTBuRDD2A2Guoz t+F6rzz/l2X6D0tFjydHoTpkWaZA9PynhRpTtPIe4RalQYwJoX31M6iLJWITDNoFSCUB CRhaEOhRF+VUmjDRfig7Q09e48+OuTKuWxZJrXBa4wUp8YRfdaJ8SySN9ebsGEvmWI2c 4QSjMfQCdBqu5WJwzhmkBCiugj2F2dcnWwl3S3vzmqrOWqldUqP6l5Mf8eQAEXjACKj7 /Eb7b1FP9OGDXuk5Yt2Kr8iy0iUpeXHTMFzYij9RUQi9zEGwjIgZPSR7psbXsRgI7UQ2 N1QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uy9P4Bv7MoU15f1hxa9HUk41ddeWB4vxhHhX7nu5AF8=; b=NLpnH+jlNcHayctW5XdnY6IrDW9vxppiPuqeIgp9lT2jygM8wvWATJKsq1RYmBE9/C nWu42x+OQIjnRckgJZohigFu6HI/scLS2yYoopmwlyt5nu9LvDtAmXEfciL0W7kkd9zN 6vPSt4VSCecUePAopjpAfBE1fRTre7QzJmKWd5mN1AOdlGBUPniei3bU90nBRXis5z28 R4jWjZ3zpMdobNSaiV/mKqPP0KSs0CWMOADfSU/S3YQCYM37dCCnr/NYriOvoOmde4f7 HjWin0tx/SaJsRfDORtT6wCpyKWoWonmsymcEzTx2Hw0SL7FN143jjq6r2KLC3vDuwAh mV7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chfL2Y+v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si345225pgi.56.2019.07.02.17.42.26; Tue, 02 Jul 2019 17:42:42 -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=pass header.i=@linaro.org header.s=google header.b=chfL2Y+v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbfGCAmD (ORCPT + 99 others); Tue, 2 Jul 2019 20:42:03 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44026 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfGCAmC (ORCPT ); Tue, 2 Jul 2019 20:42:02 -0400 Received: by mail-lj1-f194.google.com with SMTP id 16so441897ljv.10 for ; Tue, 02 Jul 2019 17:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uy9P4Bv7MoU15f1hxa9HUk41ddeWB4vxhHhX7nu5AF8=; b=chfL2Y+vcu0HLio56W5yCpYcO12fzccTTuvBbkGhkNe/aF5ZgcfKOE24xS40HsFMlc Ut8Bz0uCuff4zpfBt474goph+OPSk+NhNQVgLSimuL3/Ah0v11JGh/8rGaKti0yddSiM q/0fOfoab+9/DUCSuDVGXRkPBEodmSnVOEGRZxSGePAp5QYIi/4446bzXKyWwa+Z9QVU JorSbzfYLEjhFTeRYS7/jv30gSLerU7/hW/VDodF7UL5D3eT6ZP0fWQXg/OaUFUv2/fn GcIo0P7LqaWgUcqGlOiipgnrK233+5QeGPJ94GG6q7nHRhDMqNxm2bzPhj2Qys7AxdxL UO4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uy9P4Bv7MoU15f1hxa9HUk41ddeWB4vxhHhX7nu5AF8=; b=ndhbB+FpJZRAmEZQZu1U6nL8iy6bGys7/0YvZWk8oQ7Qtib4fqzpaGLJ/gmCwVhvWI N14gJCQcHGZzX6f8ciUMmFuhsTcZyP2z9s7aCcMOeZgzEYxmcqbafTWnUurGXffrAHYg c+Sd3qplK1swv8vIoa9d1LR/DCCQ6BVx48qvs2WEAYYMDBk2Penlgcrz3LCQFkX4fNsg AbsDehSRYJRB21eOL9Ainc+/JD4g2aZTrDh6k6r0+C+KJzBBqgQZ+g1GjOY4bzGf2e6w jrqPCnAF6dp5+yeORPlbG/apX6+6fUswsayLJ9RTaW0IM68vX5cV3OO6aJr1w+QC79Nf 620g== X-Gm-Message-State: APjAAAWgDx8ZdhXDyXaO0uj8VgILd9q7IpZha9UE0kViRGez7v+2J8Ia GUGIqL7tnalM1jbXyJ35AwxaG1VzMmPEQF+NrN4BVabN X-Received: by 2002:a2e:8195:: with SMTP id e21mr167967ljg.62.1562104610089; Tue, 02 Jul 2019 14:56:50 -0700 (PDT) MIME-Version: 1.0 References: <20190617221134.9930-1-f.fainelli@gmail.com> <20190617221134.9930-3-f.fainelli@gmail.com> In-Reply-To: <20190617221134.9930-3-f.fainelli@gmail.com> From: Linus Walleij Date: Tue, 2 Jul 2019 23:56:38 +0200 Message-ID: Subject: Re: [PATCH v6 2/6] ARM: Disable instrumentation for some code To: Florian Fainelli Cc: Linux ARM , bcm-kernel-feedback-list , Andrey Ryabinin , Abbott Liu , Alexander Potapenko , Dmitry Vyukov , Jonathan Corbet , Russell King , christoffer.dall@arm.com, Marc Zyngier , Arnd Bergmann , Nicolas Pitre , Vladimir Murzin , Kees Cook , jinb.park7@gmail.com, Alexandre Belloni , Ard Biesheuvel , Daniel Lezcano , Philippe Ombredanne , Rob Landley , Greg KH , Andrew Morton , Mark Rutland , Catalin Marinas , Masahiro Yamada , Thomas Gleixner , thgarnie@google.com, David Howells , Geert Uytterhoeven , Andre Przywara , julien.thierry@arm.com, drjones@redhat.com, philip@cog.systems, mhocko@suse.com, kirill.shutemov@linux.intel.com, kasan-dev@googlegroups.com, Linux Doc Mailing List , "linux-kernel@vger.kernel.org" , kvmarm@lists.cs.columbia.edu, Andrey Ryabinin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 12:11 AM Florian Fainelli wrote: > @@ -236,7 +236,8 @@ static int unwind_pop_register(struct unwind_ctrl_block *ctrl, > if (*vsp >= (unsigned long *)ctrl->sp_high) > return -URC_FAILURE; > > - ctrl->vrs[reg] = *(*vsp)++; > + ctrl->vrs[reg] = READ_ONCE_NOCHECK(*(*vsp)); > + (*vsp)++; I would probably even put in a comment here so it is clear why we do this. Passers-by may not know that READ_ONCE_NOCHECK() is even related to KASan. Other than that, Reviewed-by: Linus Walleij Yours, Linus Walleij