Masami Hiramatsu
840ce9cfc8
tracing: Show real address for trace event arguments
...
[ Upstream commit efbbdaa22b ]
To help debugging kernel, show real address for trace event arguments
in tracefs/trace{,pipe} instead of hashed pointer value.
Since ftrace human-readable format uses vsprintf(), all %p are
translated to hash values instead of pointer address.
However, when debugging the kernel, raw address value gives a
hint when comparing with the memory mapping in the kernel.
(Those are sometimes used with crash log, which is not hashed too)
So converting %p with %px when calling trace_seq_printf().
Moreover, this is not improving the security because the tracefs
can be used only by root user and the raw address values are readable
from tracefs/percpu/cpu*/trace_pipe_raw file.
Link: https://lkml.kernel.org/r/160277370703.29307.5134475491761971203.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
Stable-dep-of: d5a821896360 ("tracing: Fix memory leak of iter->temp when reading trace_pipe")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-08-11 11:57:33 +02:00
..
2022-12-19 12:27:32 +01:00
2022-12-02 17:40:03 +01:00
2023-06-28 10:28:13 +02:00
2023-01-14 10:15:58 +01:00
2023-05-17 11:47:36 +02:00
2022-08-21 15:16:09 +02:00
2023-05-17 11:48:03 +02:00
2022-12-08 11:23:57 +01:00
2022-08-21 15:16:16 +02:00
2023-05-17 11:47:53 +02:00
2022-08-31 17:15:17 +02:00
2022-11-25 17:45:41 +01:00
2023-06-05 09:07:02 +02:00
2023-06-28 10:28:08 +02:00
2023-08-08 19:57:39 +02:00
2023-01-14 10:15:11 +01:00
2023-06-21 15:45:35 +02:00
2023-07-27 08:44:06 +02:00
2022-10-26 13:25:35 +02:00
2022-07-29 17:19:25 +02:00
2022-08-21 15:15:45 +02:00
2023-05-17 11:47:32 +02:00
2022-08-21 15:15:36 +02:00
2023-03-11 16:40:15 +01:00
2022-11-16 09:57:09 +01:00
2023-07-27 08:43:37 +02:00
2022-08-03 12:00:52 +02:00
2022-09-15 11:32:02 +02:00
2022-07-21 21:20:00 +02:00
2022-12-14 11:31:57 +01:00
2023-02-01 08:23:08 +01:00
2022-10-15 07:55:51 +02:00
2022-10-15 07:55:51 +02:00
2022-10-15 07:55:51 +02:00
2023-08-08 19:57:40 +02:00
2023-05-30 12:57:48 +01:00
2023-01-14 10:15:19 +01:00
2023-01-14 10:16:31 +01:00
2023-05-30 12:57:45 +01:00
2023-05-30 12:57:45 +01:00
2022-10-26 13:25:34 +02:00
2023-01-14 10:16:50 +01:00
2023-01-04 11:39:22 +01:00
2023-01-04 11:39:18 +01:00
2023-07-27 08:43:39 +02:00
2023-01-14 10:15:22 +01:00
2023-01-04 11:39:17 +01:00
2023-01-04 11:39:18 +01:00
2023-05-30 12:57:58 +01:00
2022-11-10 18:14:25 +01:00
2023-04-20 12:10:23 +02:00
2023-03-22 13:30:08 +01:00
2023-01-14 10:16:42 +01:00
2023-02-22 12:55:56 +01:00
2023-01-14 10:16:13 +01:00
2023-05-30 12:57:57 +01:00
2023-05-30 12:57:46 +01:00
2023-03-11 16:40:00 +01:00
2023-07-27 08:43:37 +02:00
2022-09-28 11:10:35 +02:00
2023-01-14 10:15:58 +01:00
2023-01-04 11:39:23 +01:00
2022-10-26 13:25:42 +02:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:08 +01:00
2023-03-11 16:39:19 +01:00
2023-06-21 15:45:35 +02:00
2023-04-20 12:10:29 +02:00
2022-08-21 15:16:08 +02:00
2023-03-11 16:39:59 +01:00
2023-06-21 15:45:35 +02:00
2022-10-30 09:41:15 +01:00
2022-08-21 15:15:33 +02:00
2023-01-14 10:16:44 +01:00
2022-12-14 11:31:59 +01:00
2022-07-12 16:32:18 +02:00
2022-08-21 15:15:21 +02:00
2023-01-04 11:39:16 +01:00
2023-01-04 11:39:24 +01:00
2023-07-27 08:43:39 +02:00
2023-06-21 15:45:38 +02:00
2023-06-21 15:45:38 +02:00
2023-03-11 16:39:38 +01:00
2023-07-27 08:43:40 +02:00
2023-02-25 11:55:03 +01:00
2023-04-05 11:23:36 +02:00
2023-05-17 11:47:51 +02:00
2023-02-22 12:55:54 +01:00
2022-07-25 11:26:47 +02:00
2022-09-23 14:16:58 +02:00
2023-04-05 11:23:34 +02:00
2022-10-26 13:25:23 +02:00
2023-03-17 08:45:14 +01:00
2023-07-27 08:43:56 +02:00
2023-07-27 08:43:58 +02:00
2023-07-27 08:43:31 +02:00
2022-07-12 16:32:18 +02:00
2023-05-17 11:47:31 +02:00
2023-06-05 09:07:03 +02:00
2023-05-17 11:48:19 +02:00
2023-01-14 10:15:28 +01:00
2023-07-27 08:44:13 +02:00
2023-02-25 11:55:02 +01:00
2023-03-11 16:39:48 +01:00
2022-11-25 17:45:49 +01:00
2022-09-05 10:28:56 +02:00
2022-07-12 16:32:22 +02:00
2023-01-04 11:39:23 +01:00
2023-07-27 08:44:31 +02:00
2022-11-10 18:14:14 +01:00
2023-03-22 13:30:02 +01:00
2023-04-26 11:27:35 +02:00
2022-09-05 10:28:56 +02:00
2023-01-04 11:39:17 +01:00
2022-11-25 17:45:54 +01:00
2023-02-22 12:55:53 +01:00
2023-06-21 15:45:35 +02:00
2023-01-04 11:39:23 +01:00
2023-06-28 10:28:09 +02:00
2023-01-04 11:39:23 +01:00
2023-07-27 08:44:43 +02:00
2023-05-17 11:47:32 +02:00
2023-01-14 10:15:16 +01:00
2023-01-18 11:44:52 +01:00
2023-08-11 11:57:33 +02:00
2023-01-04 11:39:22 +01:00
2023-03-22 13:30:03 +01:00
2022-07-29 17:19:28 +02:00
2023-05-17 11:48:09 +02:00
2022-08-25 11:38:14 +02:00
2023-03-11 16:39:51 +01:00
2023-01-04 11:39:16 +01:00
2023-02-01 08:23:23 +01:00
2023-05-30 12:57:57 +01:00
2023-02-15 17:22:10 +01:00
2022-08-21 15:16:07 +02:00
2023-05-17 11:47:56 +02:00
2022-08-21 15:15:29 +02:00
2023-07-27 08:44:19 +02:00