diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-09-13 18:15:35 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-10-11 14:39:39 +0200 |
commit | 835c65c0ed1ecf07147200cca01aa84ae6b0c8e2 (patch) | |
tree | b8ffa3d82fa79d32b5c5e1d8f40ac67196b3f76a /src/print_statfs.c | |
parent | 48550c2384f3b3eb76ddccfce10ee7c35d13440d (diff) | |
download | strace-835c65c0ed1ecf07147200cca01aa84ae6b0c8e2.tar.gz |
bpf: fix bpf_prog_info.map_ids array printing
map_id_buf had an incorrect storage size (8 bytes instead of 4), which led
to incorrect fetching of map_ids array elements, so only odd/even-indexed
elements (on big/little-endian architectures, respectively) were printed.
* src/bpf.c (print_bpf_prog_info): Change map_id_buf type from uint64_t
to uint32_t.
* tests/bpf-obj_get_info_by_fd.c: Create second bpf map, use it in the
bpf program, and add additional checks regarding map_ids printing.
* NEWS: Mention this.
Fixes: v4.23~99 "bpf: decode bpf_attr.info field used by BPF_OBJ_GET_INFO_BY_FD command"
Diffstat (limited to 'src/print_statfs.c')
0 files changed, 0 insertions, 0 deletions