[PATCH] cobalt/posix/sem: Fix invalid parameter in tracepoint

Jan Kiszka jan.kiszka at siemens.com
Thu Sep 17 17:55:01 CEST 2020


From: Jan Kiszka <jan.kiszka at siemens.com>

This not just traces garbage, it usually crashes the system one the
tracepoint is enabled.

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
  kernel/cobalt/posix/sem.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/sem.c b/kernel/cobalt/posix/sem.c
index b02667e5f0..05a861dfe3 100644
--- a/kernel/cobalt/posix/sem.c
+++ b/kernel/cobalt/posix/sem.c
@@ -502,7 +502,7 @@ COBALT_SYSCALL(sem_broadcast_np, current,
  	int ret;

  	handle = cobalt_get_handle_from_user(&u_sem->handle);
-	trace_cobalt_psem_broadcast(u_sem->handle);
+	trace_cobalt_psem_broadcast(handle);

  	xnlock_get_irqsave(&nklock, s);

-- 
2.26.2



More information about the Xenomai mailing list