Skip to content
Commit 02a9079c authored by Vlad Tsyrklevich's avatar Vlad Tsyrklevich Committed by David S. Miller
Browse files

drivers/ptp: Fix kernel memory disclosure



The reserved field precise_offset->rsv is not cleared before being
copied to user space, leaking kernel stack memory. Clear the struct
before it's copied.

Signed-off-by: default avatarVlad Tsyrklevich <vlad@tsyrklevich.net>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8a4ddb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment