Re: [PATCH] arm64: uprobes: Optimize cache flushes for xol slot

From: Liao, Chang
Date: Wed Nov 06 2024 - 04:55:38 EST


Hi, Will and Catalin

在 2024/9/19 20:17, Liao Chang 写道:
> On 09/23, Will Deacon wrote:
>> However, we should use __GFP_ZERO anyway
>> because I don't think it's a good idea to map an uninitialised page into
>> userspace.
> Agreed, and imo this even needs a separate "fix info leak" patch.
>
> Oleg.

Given that Oleg's fix info leak patch has been merged [1], the risk of leakage
is gone. So I am looking forward to your options about this patch. As many
functions start with same instructions like 'stp fp, lr, [sp, #imm]' or
'paciasp'. So I think this patch could avoid unnecessary D/I cache synchronization.

[1] https://lore.kernel.org/all/20240929162047.GA12611@xxxxxxxxxx/

--
BR
Liao, Chang