summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@cea.fr>2018-09-08 00:36:08 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-10 09:56:35 +0200
commit33e0f07f6f29c6c3727b28c5c4a1576c04dec3af (patch)
tree9138fdde2b6a57668a8179a1b4a31c00e5923539 /tools/perf/scripts/python/bin
parent3479b3c35e82ed10aa0ca2ee9e78c4eded06ba62 (diff)
9p: p9dirent_read: check network-provided name length
[ Upstream commit ef5305f1f72eb1cfcda25c382bb0368509c0385b ] strcpy to dirent->d_name could overflow the buffer, use strscpy to check the provided string length and error out if the size was too big. While we are here, make the function return an error when the pdu parsing failed, instead of returning the pdu offset as if it had been a success... Link: http://lkml.kernel.org/r/1536339057-21974-4-git-send-email-asmadeus@codewreck.org Addresses-Coverity-ID: 139133 ("Copy into fixed size buffer") Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions