diff options
| author | Alexei Starovoitov <[email protected]> | 2018-09-12 14:06:10 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-09-12 23:30:02 +0200 |
| commit | dd066823db2ac4e22f721ec85190817b58059a54 (patch) | |
| tree | f7f40317bb1474a382035fb58a120e73c82fec46 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 4b1c5d917d34f705096bb7dd8a2bd19b0881970e (diff) | |
bpf/verifier: disallow pointer subtraction
Subtraction of pointers was accidentally allowed for unpriv programs
by commit 82abbf8d2fc4. Revert that part of commit.
Fixes: 82abbf8d2fc4 ("bpf: do not allow root to mangle valid pointers")
Reported-by: Jann Horn <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions