Re: [PATCH 1/8] x86,kcfi: Fix EXPORT_SYMBOL vs kCFI
From: Christoph Hellwig
Date: Tue Nov 05 2024 - 10:41:20 EST
On Tue, Nov 05, 2024 at 03:58:42PM +0100, Peter Zijlstra wrote:
> > bounded number of functions that are used as either default methods
> > or as ready made callbacks. Everything else has no business being
> > called indirectly. While disallowing this might be a bit of work,
> > I think it would be a great security improvement.
>
> Well, we don't disagree. But since most of the EXPORT'ed functions are
> done in C, we need something that works there too.
Yes, absolutely. In fact I doubt there are more than a handful of
assembly exports that are valid targets for indirect calls.