Closed melver closed 2 years ago
With ever increase core counts in modern CPUs, it would be wise to avoid triggering 2 IPIs due to static branch enable+disable for each KFENCE allocation.
Investigate making changes to the static_keys/jump_labels infrastructure, that would allow us to avoid the 2 IPIs we currently require. More details are already in a comment in the KFENCE code: https://github.com/google/kasan/blob/kfence/mm/kfence/core.c#L575
Should we move this to Bugzilla?
Hmm, no, I consider this fixed by: https://lore.kernel.org/all/20211019102524.2807208-2-elver@google.com/
Let's close this then. Thanks!
With ever increase core counts in modern CPUs, it would be wise to avoid triggering 2 IPIs due to static branch enable+disable for each KFENCE allocation.
Investigate making changes to the static_keys/jump_labels infrastructure, that would allow us to avoid the 2 IPIs we currently require. More details are already in a comment in the KFENCE code: https://github.com/google/kasan/blob/kfence/mm/kfence/core.c#L575