summary refs log tree commit diff
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2012-03-12 10:20:49 +0000
committerDavid S. Miller <davem@davemloft.net>2012-03-12 17:06:48 -0700
commitef31bef6216db76950c38f1993b45953402f4c63 (patch)
tree044be8b3a0a0f4cd365dbf107576a176bdeb0e0b /ipc/sem.c
parentafd465030acb4098abcb6b965a5aebc7ea2209e0 (diff)
downloadlinux-ef31bef6216db76950c38f1993b45953402f4c63.tar.gz
net/hyperv: Fix data corruption in rndis_filter_receive()
Limiting the memcpy to be the sizeof(struct rndis_message) can truncate
the message if there are Per-Packet-Info or Out-of-Band data.

In my earlier patch (commit 45326342), the unnecessary kmap_atomic and
kunmap_atomic surrounding this memcpy have been removed because the memory
in the receive buffer is always mapped. This memcpy is not necessary
either. To fix the bug, I removed the memcpy.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc/sem.c')
0 files changed, 0 insertions, 0 deletions