commit | 90a237378e7adb251e37a3b40838b892ac0178e9 | [log] [tgz] |
---|---|---|
author | Srinivasarao P <spathi@codeaurora.org> | Tue Jan 08 13:52:13 2019 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jan 22 00:25:20 2019 -0800 |
tree | e6775c8b4d5520b18f7d4032fe370f7420400441 | |
parent | f68bf8e8b44c5fe0af9997e98cec84963743c9b0 [diff] |
iommu/iommu-debug: fix buffer overflows in debugfs read functions The kernel buffer 'ubuf' can overflow while copying data to user space in debugfs read functions. Fix it by limiting the length of data to be copied to userspace. Change-Id: Ibb3d8c4fb637ddc0e63677ec2dff14a4cf8c0c73 Signed-off-by: Srinivasarao P <spathi@codeaurora.org>