aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorSolomon Peachy <[email protected]>2013-06-04 23:37:05 -0400
committerJohn W. Linville <[email protected]>2013-06-10 14:41:25 -0400
commitaa63e18e3ddad4eb15d4af34ae66e7f4dcc7a6d0 (patch)
tree4fd3cb8439a8efc71e4b768257dbaea6f8dddbec /tools/perf/scripts/python/net_dropmonitor.py
parentcc2588eabbe46820a86e55fccec8b741e15f647f (diff)
cw1200: Sanity-check arguments in copy_from_user()
The optional debugfs interface to the vendor's engineering tools wasn't bounds checking at all, which made it trivial to perform a buffer overflow if this interface was compiled in and then explicitly enabled at runtime. This patch checks both the length supplied as part of the data to ensure it is sane, and also the amount of data compared to the remaining buffer space. If either is too large, fail immediately. (This bug was spotted by Dan Carpenter <[email protected]>) Signed-off-by: Solomon Peachy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions