[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1327496817.2425.32.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Wed, 25 Jan 2012 14:06:57 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: James Chapman <jchapman@...alix.com>
Cc: netdev@...r.kernel.org, alex <alex@....org>,
Ben Hutchings <ben@...adent.org.uk>
Subject: Re: [PATCH 1/1] l2tp: l2tp_ip - fix possible oops on packet receive
Le mercredi 25 janvier 2012 à 12:39 +0000, James Chapman a écrit :
> When a packet is received on an L2TP IP socket (L2TPv3 IP link
> encapsulation), the l2tpip socket's backlog_rcv function calls
> xfrm4_policy_check(). This is not necessary, since it was called
> before the skb was added to the backlog. With CONFIG_NET_NS enabled,
> xfrm4_policy_check() will oops if skb->dev is null, so this trivial
> patch removes the call.
>
> This bug has always been present, but only when CONFIG_NET_NS is
> enabled does it cause problems. Most users are probably using UDP
> encapsulation for L2TP, hence the problem has only recently
> surfaced.
>
...
> Signed-off-by: James Chapman <jchapman@...alix.com>
>
> ---
Acked-by: Eric Dumazet <eric.dumazet@...il.com>
Cc: alex <alex@....org>
Cc: Ben Hutchings <ben@...adent.org.uk>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists