aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2023-12-02 09:01:54 +0800
committerHerbert Xu <[email protected]>2023-12-08 11:59:45 +0800
commit78aafb3884f6bc6636efcc1760c891c8500b9922 (patch)
tree89919fa3bb6a915e2c1b3eb2031581adb02fd6a5 /tools/perf/scripts/python
parent01d70a4bbff20ea05cadb4c208841985a7cc6596 (diff)
hwrng: core - Fix page fault dead lock on mmap-ed hwrng
There is a dead-lock in the hwrng device read path. This triggers when the user reads from /dev/hwrng into memory also mmap-ed from /dev/hwrng. The resulting page fault triggers a recursive read which then dead-locks. Fix this by using a stack buffer when calling copy_to_user. Reported-by: Edward Adam Davis <[email protected]> Reported-by: [email protected] Fixes: 9996508b3353 ("hwrng: core - Replace u32 in driver API with byte array") Cc: <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions