From 83257435faca1827b17e7e6e1766f9c0c216595d Mon Sep 17 00:00:00 2001 From: Paul Kot Date: Sat, 10 Dec 2011 15:28:34 +0100 Subject: [PATCH] batman-adv: bat_socket_read missing checks commit c00b6856fc642b234895cfabd15b289e76726430 upstream. Writing a icmp_packet_rr and then reading icmp_packet can lead to kernel memory corruption, if __user *buf is just below TASK_SIZE. Signed-off-by: Paul Kot [sven@narfation.org: made it checkpatch clean] Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Ben Hutchings --- Reading git-format-patch failed