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

2017-12-11 Thread David Miller
From: simo.ghan...@gmail.com Date: Sun, 10 Dec 2017 03:50:58 + > From: Mohamed Ghannam > > 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 Applied and queued up for -stable with Fixes:

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

2017-12-09 Thread Eric Dumazet
On Sun, 2017-12-10 at 03:50 +, simo.ghan...@gmail.com wrote: > From: Mohamed Ghannam > > 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 > --- >  net/ipv4/raw.c | 15 ++- >  1

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

2017-12-09 Thread simo . ghannam
From: Mohamed Ghannam 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 --- net/ipv4/raw.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/net/ipv4/raw.c b/net/i