aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorMathias Krause <[email protected]>2013-04-07 01:52:01 +0000
committerDavid S. Miller <[email protected]>2013-04-07 16:28:02 -0400
commit680d04e0ba7e926233e3b9cee59125ce181f66ba (patch)
treebd075aa2f2b87d1b6f019baaee2cbb89cb4ba388 /include/linux/fpga/fpga-mgr.h
parent60085c3d009b0df252547adb336d1ccca5ce52ec (diff)
VSOCK: vmci - fix possible info leak in vmci_transport_dgram_dequeue()
In case we received no data on the call to skb_recv_datagram(), i.e. skb->data is NULL, vmci_transport_dgram_dequeue() will return with 0 without updating msg_namelen leading to net/socket.c leaking the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix this by moving the already existing msg_namelen assignment a few lines above. Cc: Andy King <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: George Zhang <[email protected]> Signed-off-by: Mathias Krause <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions