aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorSteffen Klassert <[email protected]>2017-05-05 07:40:42 +0200
committerSteffen Klassert <[email protected]>2017-05-08 08:03:01 +0200
commitd90c902449a7561f1b1d58ba5a0d11728ce8b0b2 (patch)
tree5e0505f4a86aa0a1a77cb9c1b300865c51ccddb6 /tools/perf/util/scripting-engines/trace-event-python.c
parent9b3eb54106cf6acd03f07cf0ab01c13676a226c2 (diff)
af_key: Fix slab-out-of-bounds in pfkey_compile_policy.
The sadb_x_sec_len is stored in the unit 'byte divided by eight'. So we have to multiply this value by eight before we can do size checks. Otherwise we may get a slab-out-of-bounds when we memcpy the user sec_ctx. Fixes: df71837d502 ("[LSM-IPSec]: Security association restriction.") Reported-by: Andrey Konovalov <[email protected]> Tested-by: Andrey Konovalov <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions