Re: [PATCH] bpf: Mark kfuncs as __noclone

From: Eduard Zingerman
Date: Wed Aug 27 2025 - 03:01:33 EST


On Tue, 2025-08-26 at 23:52 -0700, Eduard Zingerman wrote:

[...]

> If we are being really paranoid about LTO builds, is __noclone sufficient?
> E.g. [1] does not imply that signature can't be changed.
> We currently apply only __retain__, here is a little test with both attributes:

Nope, there are also 'used' and 'noinline' applied.
With these the function is preserved as expected.
Sorry for the noise.

[...]