rds: fix an infoleak in rds_inc_info_copy
authorKangjie Lu <kangjielu@gmail.com>
Thu, 2 Jun 2016 08:11:20 +0000 (04:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jun 2016 04:32:37 +0000 (21:32 -0700)
commit4116def2337991b39919f3b448326e21c40e0dbb
tree7ccdfaac2b0c0dc732a14d0db3c89abea1dfa5db
parent5d2be1422e02ccd697ccfcd45c85b4a26e6178e2
rds: fix an infoleak in rds_inc_info_copy

The last field "flags" of object "minfo" is not initialized.
Copying this object out may leak kernel stack data.
Assign 0 to it to avoid leak.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/recv.c