Subject: Re: [PATCH] net: ipv4: fix for a race condition in raw_sendmsg

From: Eric Dumazet <[email-masked]>
Date: Sat, 09 Dec 2017 20:30:55 -0800

On Sun, 2017-12-10 at 03:50 +0000, [email-masked] wrote:
> From: Mohamed Ghannam <[email-masked]>
> 
> inet->hdrincl is racy, and could lead to uninitialized stack pointer
> usage, so its value should be read only once.
> 
> Signed-off-by: Mohamed Ghannam <[email-masked]>
> ---
>  net/ipv4/raw.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

Thanks a lot for fixing this very serious bug.

Reviewed-by: Eric Dumazet <[email-masked]>

Please David add :

Fixes: c008ba5bdc9f ("ipv4: Avoid reading user iov twice after raw_probe_proto_opt")

Thanks !