Message ID | 20240816154307.3031838-1-kpsingh@kernel.org (mailing list archive) |
---|---|
Headers | show |
Series | Reduce overhead of LSMs with static calls | expand |
On 8/16/24 08:43, KP Singh wrote: [ ... ] > # v14 to v15 > > * Fixed early LSM init wuth Patch 1 > * Made the static call table aligned to u64 and added a comment as to why this > is needed. > Applied to v6.11-rc3, together with several other LSM patches from linux-next to avoid conflicts, this series passes all my qemu tests. Feel free to add Tested-by: Guenter Roeck <linux@roeck-us.net> Thanks, Guenter
On 2024/08/17 0:43, KP Singh wrote: > # v13 to v14 > > * Dropped Patch 5 based on the ongoing discussion in > https://lore.kernel.org/linux-security-module/20240629084331.3807368-4-kpsingh@kernel.org/, BPF > LSM will still have default callbacks enabled. Why not use struct lsm_callback { struct list_head list; struct static_call_key key; } for each callback given that the latency is mostly caused by use of indirect function call? Then, we don't need "lsm: count the LSMs enabled at compile time" (which I'm NACKing). > * Dropped Patch 4 as recommended by Paul, indirect calls will remain in some LSM hooks for now. > https://lore.kernel.org/linux-security-module/20240629084331.3807368-5-kpsingh@kernel.org/ > * Fixed minor nits in Patch 3
On Fri, Aug 16, 2024 at 5:30 PM Guenter Roeck <linux@roeck-us.net> wrote: > On 8/16/24 08:43, KP Singh wrote: > [ ... ] > > # v14 to v15 > > > > * Fixed early LSM init wuth Patch 1 > > * Made the static call table aligned to u64 and added a comment as to why this > > is needed. > > > > Applied to v6.11-rc3, together with several other LSM patches from linux-next > to avoid conflicts, this series passes all my qemu tests. Feel free to add > > Tested-by: Guenter Roeck <linux@roeck-us.net> Thanks Guenter, I appreciate your help testing and debugging all of the different arches.
On Fri, Aug 16, 2024 at 11:43 AM KP Singh <kpsingh@kernel.org> wrote: > > # Background > > LSM hooks (callbacks) are currently invoked as indirect function calls. These > callbacks are registered into a linked list at boot time as the order of the > LSMs can be configured on the kernel command line with the "lsm=" command line > parameter ... Merged into lsm/dev, thanks all.