summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-05-19 17:48:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-27 16:40:23 +0200
commit1f8f6293768e53544f4131ab5a1fab298dd546dc (patch)
treec7f589371a7a09dff60c2c540628a2d2465744c1 /tools/perf/scripts/python/sctop.py
parentb30282c3bcc7542fe3faf9f5e1a0980c3c28a507 (diff)
fix multiplication overflow in copy_fdtable()
[ Upstream commit 4e89b7210403fa4a8acafe7c602b6212b7af6c3b ] cpy and set really should be size_t; we won't get an overflow on that, since sysctl_nr_open can't be set above ~(size_t)0 / sizeof(void *), so nr that would've managed to overflow size_t on that multiplication won't get anywhere near copy_fdtable() - we'll fail with EMFILE before that. Cc: stable@kernel.org # v2.6.25+ Fixes: 9cfe015aa424 (get rid of NR_OPEN and introduce a sysctl_nr_open) Reported-by: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions