]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/ptp: Fix kernel memory disclosure
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 11 Oct 2016 13:02:47 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 14:20:06 +0000 (10:20 -0400)
commitbd93aa1aaa17a43cb839df300875ade4c702f8af
tree55954839f7713011d9681f7626cfb5471d0a1d15
parenta72065e8f18dbc7b7ead95e9d1683be40060756c
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: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c