Patch "tracing/synthetic: Print out u64 values properly" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tracing/synthetic: Print out u64 values properly

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tracing-synthetic-print-out-u64-values-properly.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 62663b849662c1a5126b6274d91671b90566ef13 Mon Sep 17 00:00:00 2001
From: Tero Kristo <tero.kristo@xxxxxxxxxxxxxxx>
Date: Mon, 11 Sep 2023 17:17:04 +0300
Subject: tracing/synthetic: Print out u64 values properly

From: Tero Kristo <tero.kristo@xxxxxxxxxxxxxxx>

commit 62663b849662c1a5126b6274d91671b90566ef13 upstream.

The synth traces incorrectly print pointer to the synthetic event values
instead of the actual value when using u64 type. Fix by addressing the
contents of the union properly.

Link: https://lore.kernel.org/linux-trace-kernel/20230911141704.3585965-1-tero.kristo@xxxxxxxxxxxxxxx

Fixes: ddeea494a16f ("tracing/synthetic: Use union instead of casts")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Tero Kristo <tero.kristo@xxxxxxxxxxxxxxx>
Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 kernel/trace/trace_events_synth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace_events_synth.c b/kernel/trace/trace_events_synth.c
index 9897d0bfcab7..14cb275a0bab 100644
--- a/kernel/trace/trace_events_synth.c
+++ b/kernel/trace/trace_events_synth.c
@@ -337,7 +337,7 @@ static void print_synth_event_num_val(struct trace_seq *s,
 		break;
 
 	default:
-		trace_seq_printf(s, print_fmt, name, val, space);
+		trace_seq_printf(s, print_fmt, name, val->as_u64, space);
 		break;
 	}
 }
-- 
2.42.0



Patches currently in stable-queue which might be from tero.kristo@xxxxxxxxxxxxxxx are

queue-6.5/tracing-synthetic-print-out-u64-values-properly.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux