In the Linux kernel, the following vulnerability has been resolved: perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler Calling perf_allow_kernel() from the NMI context is unsafe and could be fatal. Capture the permission at event-initialization time by storing it in event->hw.flags, and have the NMI handler rely on that cached flag instead of making the call directly.
https://git.kernel.org/stable/c/b0a09142622a994c4f4088c3f61db5da87cfc711
https://git.kernel.org/stable/c/2783ed2442ce69ae240b787aee6dae801cef7aec
https://git.kernel.org/stable/c/0584e74fa2b27e9e722cfb5b579f79263df20040