diff options
| author | Daniel Borkmann <[email protected]> | 2024-10-16 13:49:12 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-10-17 18:06:34 +0000 |
| commit | 3e9e708757ca3b7eb65a820031d62fea1a265709 (patch) | |
| tree | d430bbb3ef23b6f94cb6f0e7574c89fb2c93cc7f /rust/helpers/task.c | |
| parent | bpf: Fix incorrect delta propagation between linked registers (diff) | |
| download | kernel-3e9e708757ca3b7eb65a820031d62fea1a265709.tar.gz kernel-3e9e708757ca3b7eb65a820031d62fea1a265709.zip | |
bpf: Fix print_reg_state's constant scalar dump
print_reg_state() should not consider adding reg->off to reg->var_off.value
when dumping scalars. Scalars can be produced with reg->off != 0 through
BPF_ADD_CONST, and thus as-is this can skew the register log dump.
Fixes: 98d7ca374ba4 ("bpf: Track delta between "linked" registers.")
Reported-by: Nathaniel Theis <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
