ACK: [xenial/master-next 1/1] UBUNTU: SAUCE: net: ipv4: fix for a race condition in raw_sendmsg -- fix backport
Khaled Elmously
khalid.elmously at canonical.com
Mon Feb 12 19:53:26 UTC 2018
Nice catch
Acked-by: Khalid Elmously <khalid.elmously at canonical.com>
On 2018-02-12 19:21:02 , Andy Whitcroft wrote:
> Fix a miss-backport of the upstream commit.
>
> Fixes: 63da13a92f24 ("net: ipv4: fix for a race condition in raw_sendmsg -- fix backport")
> BugLink: http://bugs.launchpad.net/bugs/1748671
> Signed-off-by: Andy Whitcroft <apw at canonical.com>
> ---
> net/ipv4/raw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
> index 83a609bc7c57..3b764c0c1fec 100644
> --- a/net/ipv4/raw.c
> +++ b/net/ipv4/raw.c
> @@ -621,7 +621,7 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
> goto done;
> }
>
> - if (hdrincl) {
> + if (!hdrincl) {
> rfv.msg = msg;
> rfv.hlen = 0;
>
> --
> 2.15.1
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list