diff options
author | Alexei Starovoitov <ast@kernel.org> | 2024-11-03 16:52:06 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-11-03 16:52:06 -0800 |
commit | f2daa5a577e95f4be4e9ffae17b5bbf1ffe7a852 (patch) | |
tree | 4c7c61095be6eed18061191589d57458f5b19d80 /include/linux/kref_api.h | |
parent | 77017b9c46820d72596e50a3986bd0734c1340a9 (diff) | |
parent | 711df091dea9b6f9e83ed738967cb0763f4d362c (diff) |
Merge branch 'fix-resource-leak-checks-for-tail-calls'
Kumar Kartikeya Dwivedi says:
====================
Fix resource leak checks for tail calls
This set contains a fix for detecting unreleased RCU read locks or
unfinished preempt_disable sections when performing a tail call. Spin
locks are prevented by accident since they don't allow any function
calls, including tail calls (modelled as call instruction to a helper),
so we ensure they are checked as well, in preparation for relaxing
function call restricton for critical sections in the future.
Then, in the second patch, all the checks for reference leaks and locks
are unified into a single function that can be called from different
places. This unification patch is kept separate and placed after the fix
to allow independent backport of the fix to older kernels without a
depdendency on the clean up.
Naturally, this creates a divergence in the disparate error messages,
therefore selftests that rely on the exact error strings need to be
updated to match the new verifier log message.
A selftest is included to ensure no regressions occur wrt this behavior.
====================
Link: https://lore.kernel.org/r/20241103225940.1408302-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/kref_api.h')
0 files changed, 0 insertions, 0 deletions