Thread (28 messages) 28 messages, 5 authors, 2020-03-20

Re: [PATCH v6 2/6] ARM: Disable instrumentation for some code

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2019-07-11 16:54:19
Also in: kvmarm, linux-doc, lkml

On 7/2/19 2:56 PM, Linus Walleij wrote:
On Tue, Jun 18, 2019 at 12:11 AM Florian Fainelli [off-list ref] wrote:
quoted
@@ -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 <redacted>

Yours,
Linus Walleij

-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help