]> git.karo-electronics.de Git - karo-tx-linux.git/commit
batman-adv: Only write requested number of byte to user buffer
authorSven Eckelmann <sven@narfation.org>
Sat, 10 Dec 2011 14:28:36 +0000 (15:28 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Mon, 12 Dec 2011 11:11:07 +0000 (19:11 +0800)
commitb5a1eeef04cc7859f34dec9b72ea1b28e4aba07c
tree4503055d16bbf2b05eac3adc6d04402bab8eba36
parentd18eb45332478f319e5cf996e093228a68864cce
batman-adv: Only write requested number of byte to user buffer

Don't write more than the requested number of bytes of an batman-adv icmp
packet to the userspace buffer. Otherwise unrelated userspace memory might get
overridden by the kernel.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/icmp_socket.c