diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2019-11-07 11:03:49 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-11-07 16:01:34 +0100 |
commit | 7e22077d0c73a68ff3fd8b3d2f6564fcbcf8cb23 (patch) | |
tree | 341749de11e136cd25048774bc1ccbc765172fbf /sound/pci/azt3328.h | |
parent | bpf: Account for insn->off when doing bpf_probe_read_kernel (diff) | |
download | linux-7e22077d0c73a68ff3fd8b3d2f6564fcbcf8cb23.tar.xz linux-7e22077d0c73a68ff3fd8b3d2f6564fcbcf8cb23.zip |
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 <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191107100349.88976-1-iii@linux.ibm.com
Diffstat (limited to 'sound/pci/azt3328.h')
0 files changed, 0 insertions, 0 deletions