Re: [syzbot] KASAN: stack-out-of-bounds Read in profile_pc

From: Andi Kleen
Date: Thu Jun 03 2021 - 09:52:23 EST



True, ftrace does have function profiling (function_profile_enabled).

Steve, is there a way to enable that on the kernel cmdline?

That's not really comparable. function profiling has a lot more overhead. Also there is various code which has ftrace instrumentation disabled.

I don't think why you want to kill the old profiler. It's rarely used, but when you need it usually works. It's always good to have simple fall backs. And it's not that it's a lot of difficult code.

-Andi