On 5/15/2020 9:59 PM, Sagi Grimberg wrote:
It's not only the fmr_pools. The FMR API operates on a page granularity,
so a sub-page registration, or a non-page-aligned one, ends up exposing
data outside the buffer. This is done silently, and is a significant
vulnerability for most upper layers.
You're right Tom, I forgot about that...
I guess I'd vote to remove it altogether then...
Santosh,
I don't really understand the mechanism you use from user/kernel
regarding the registration.
But I saw you use wait_event and wait for completing the
FRWR/INVALIDATION. For sure this is not optimal.
But can't really say what is the bottleneck in your case.
Can you share the numbers you get for FMR/FRWR benchmarks ?