Re: [PATCH v15 0/4] Reduce overhead of LSMs with static calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx/, 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@xxxxxxxxxx/
> * Fixed minor nits in Patch 3





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux