diff options
| author | Martin KaFai Lau <[email protected]> | 2020-01-10 23:16:44 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-01-12 03:08:21 +0000 |
| commit | 555089fdfc37ad65e0ee9b42ca40c238ff546f83 (patch) | |
| tree | 49325ac48be165288896658c354b0bad03c5118a /net/ipv4/tcp_ulp.c | |
| parent | net: bpf: Don't leak time wait and request sockets (diff) | |
| download | kernel-555089fdfc37ad65e0ee9b42ca40c238ff546f83.tar.gz kernel-555089fdfc37ad65e0ee9b42ca40c238ff546f83.zip | |
bpftool: Fix printing incorrect pointer in btf_dump_ptr
For plain text output, it incorrectly prints the pointer value
"void *data". The "void *data" is actually pointing to memory that
contains a bpf-map's value. The intention is to print the content of
the bpf-map's value instead of printing the pointer pointing to the
bpf-map's value.
In this case, a member of the bpf-map's value is a pointer type.
Thus, it should print the "*(void **)data".
Fixes: 22c349e8db89 ("tools: bpftool: fix format strings and arguments for jsonw_printf()")
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
0 files changed, 0 insertions, 0 deletions
