diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-07-14 02:24:09 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-14 03:07:43 +0300 |
commit | 0b20933d8cfe2bf6473e9b581b5d1ed9a2117ecc (patch) | |
tree | 79a7e9cabc285400476b921dbdaa4bba220fa46e /include/uapi/linux/usb | |
parent | 7c819e701382d4969ca4837b8cbe157895f5d0bf (diff) | |
download | linux-0b20933d8cfe2bf6473e9b581b5d1ed9a2117ecc.tar.xz |
tools/bpftool: Strip away modifiers from global variables
Reliably remove all the type modifiers from read-only (.rodata) global
variable definitions, including cases of inner field const modifiers and
arrays of const values.
Also modify one of selftests to ensure that const volatile struct doesn't
prevent user-space from modifying .rodata variable.
Fixes: 985ead416df3 ("bpftool: Add skeleton codegen command")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200713232409.3062144-3-andriin@fb.com
Diffstat (limited to 'include/uapi/linux/usb')
0 files changed, 0 insertions, 0 deletions