linux-kernelorg-stable/kernel/trace/rv
Zhen Ni 9b5096761c rv: Fix missing mutex unlock in rv_register_monitor()
If create_monitor_dir() fails, the function returns directly without
releasing rv_interface_lock. This leaves the mutex locked and causes
subsequent monitor registration attempts to deadlock.

Fix it by making the error path jump to out_unlock, ensuring that the
mutex is always released before returning.

Fixes: 24cbfe18d5 ("rv: Merge struct rv_monitor_def into struct rv_monitor")
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20250903065112.1878330-1-zhen.ni@easystack.cn
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
2025-09-15 08:36:35 +02:00
..
monitors rv: Support systems with time64-only syscalls 2025-09-15 08:36:27 +02:00
Kconfig rv: Add opid per-cpu monitor 2025-07-28 16:47:35 -04:00
Makefile rv: Add opid per-cpu monitor 2025-07-28 16:47:35 -04:00
reactor_panic.c rv: Let the reactors take care of buffers 2025-07-09 15:27:00 -04:00
reactor_printk.c rv: Let the reactors take care of buffers 2025-07-09 15:27:00 -04:00
rv.c rv: Fix missing mutex unlock in rv_register_monitor() 2025-09-15 08:36:35 +02:00
rv.h rv: Remove rv_reactor's reference counter 2025-07-25 09:04:14 -04:00
rv_reactors.c rv: Fix wrong type cast in reactors_show() and monitor_reactor_show() 2025-07-28 10:39:34 -04:00
rv_trace.h rv: Add opid per-cpu monitor 2025-07-28 16:47:35 -04:00