diff options
author | David Fries <[email protected]> | 2014-11-10 20:19:36 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-11-26 19:09:01 -0800 |
commit | a30cfa475d1a26c18f1998ba1e034a4e2ab4c7a8 (patch) | |
tree | 0d352909e457fca03a206f1a7fe10174ed7e5ba9 /tools/perf/util/trace-event-scripting.c | |
parent | 55c4e6405d434e2db1e3fb3618b84741bb17d862 (diff) |
cn: verify msg->len before making callback
The struct cn_msg len field comes from userspace and needs to be
validated. More logical to do so here where the cn_msg pointer is
pulled out of the sk_buff than the callback which is passed cn_msg *
and might assume no validation is needed.
Reported-by: Dan Carpenter <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: David Fries <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions