Re: [linus:master] [iov_iter] c9eec08bac: vm-scalability.throughput -16.9% regression

Borislav Petkov
2023-11-15T21:59:43Z

On Wed, Nov 15, 2023 at 04:50:06PM -0500, Linus Torvalds wrote:
> Sadly, we don't seem to have any obvious #define for "this is not real
> kernel code". We just have a lot of ad-hoc tricks, like removing
> compiler flags and disabling things like KASAN etc on a file-by-file
> (or directory) basis.

Yeah, "untangling" memcpy() has always been a PITA, every time I tried
it. So I'd need to come up with a somewhat sensible scheme of "use this
special memcpy() only in kernel code proper and fallback to the library
version or gcc builtin otherwise"...

--
Regards/Gruss,
Boris.