Commit bd91c48f authored by Jilai Wang's avatar Jilai Wang Committed by Shrirang Bagul
Browse files

msm: npu: memset npu_kevent to prevent leak stack information

BugLink: https://bugs.launchpad.net/bugs/1931727



npu_kevent will be copied to user buffer, so it is possible that
user will be able to access some stack memory via the uninitialized
padding data. This change is to use memset to make sure this stack
information won't be leaked.

Change-Id: I77acafe11e67093f17906176720508674e1d35e8
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
(cherry picked from commit 12cda6b32554236d1e5f9833b0a6caf2a418ab5c)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
parent a06e9100
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment