diff options
author | Ilya Leoshkevich <[email protected]> | 2019-11-07 11:03:49 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-11-07 16:01:34 +0100 |
commit | 7e22077d0c73a68ff3fd8b3d2f6564fcbcf8cb23 (patch) | |
tree | 341749de11e136cd25048774bc1ccbc765172fbf /scripts/gdb/linux/tasks.py | |
parent | 85d31dd07002315c0d1816543fdc392c8cc6b73a (diff) |
tools, bpf_asm: Warn when jumps are out of range
When compiling larger programs with bpf_asm, it's possible to
accidentally exceed jt/jf range, in which case it won't complain, but
rather silently emit a truncated offset, leading to a "happy debugging"
situation.
Add a warning to help detecting such issues. It could be made an error
instead, but this might break compilation of existing code (which might
be working by accident).
Signed-off-by: Ilya Leoshkevich <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions