lkml.org 
[lkml]   [2019]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v6 2/6] ARM: Disable instrumentation for some code
From
Date
On 7/2/19 2:56 PM, Linus Walleij wrote:
> On Tue, Jun 18, 2019 at 12:11 AM Florian Fainelli <f.fainelli@gmail.com> 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.

Makes sense, I will add that, thanks!

>
> Other than that,
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Yours,
> Linus Walleij
>


--
Florian

\
 
 \ /
  Last update: 2019-07-11 18:55    [W:0.030 / U:2.760 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site