Re: [PATCH] ipv4, ipv6: ensure raw socket message is big enough to hold an IP header

2017-05-04 Thread David Miller
From: Alexander Potapenko Date: Wed, 3 May 2017 17:06:58 +0200 > raw_send_hdrinc() and rawv6_send_hdrinc() expect that the buffer copied > from the userspace contains the IPv4/IPv6 header, so if too few bytes are > copied, parts of the header may remain uninitialized. > > This bug has been dete

[PATCH] ipv4, ipv6: ensure raw socket message is big enough to hold an IP header

2017-05-03 Thread Alexander Potapenko
raw_send_hdrinc() and rawv6_send_hdrinc() expect that the buffer copied from the userspace contains the IPv4/IPv6 header, so if too few bytes are copied, parts of the header may remain uninitialized. This bug has been detected with KMSAN. Signed-off-by: Alexander Potapenko --- The previous versi