]> git.baikalelectronics.ru Git - kernel.git/commit
net/appletalk: Fix kernel memory disclosure
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Mon, 9 Jan 2017 13:57:48 +0000 (20:57 +0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 21:34:39 +0000 (16:34 -0500)
commit3242df6898b48963b8a68968dba17231aa4f0026
tree678e2f202c6a78e6a7c7f7e23f4de8bd43f3d3c9
parentff3df33ddb1241ea22d5da0c6915f07ead365d66
net/appletalk: Fix kernel memory disclosure

ipddp_route structs contain alignment padding so kernel heap memory
is leaked when they are copied to user space in
ipddp_ioctl(SIOCFINDIPDDPRT). Change kmalloc() to kzalloc() to clear
that memory.

Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/appletalk/ipddp.c