[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvswitch-dev
Subject:    [ovs-dev] [PATCH] odp-util: Fix segfault in MPLS attribute parsing.
From:       joestringer () nicira ! com (Joe Stringer)
Date:       2014-10-31 22:45:37
Message-ID: CAOftzPjqXmHFfSNtRke2SqK8P8FvOJFE2+j9ErYMxvzJ=U9BZw () mail ! gmail ! com
[Download RAW message or body]

On 31 October 2014 15:11, Ben Pfaff <blp at nicira.com> wrote:

> On Fri, Oct 31, 2014 at 02:40:11PM -0700, Joe Stringer wrote:
> > Just because the ethertype is MPLS, this doesn't mean that the datapath
> > understands and provides OVS_KEY_ATTR_MPLS attributes for the flow.
> > Previously we would check the size of the OVS_KEY_ATTR_MPLS attribute
> > before checking whether the attribute is present. This would cause a
> > segfault in nl_attr_get_size(), usually triggered from a handler thread.
> >
> > This patch brings the MPLS parsing code more in line with the rest of
> > the parse_l2_5_onward() function, by only processing MPLS if the
> > attribute is present.
> >
> > Reported-by: Pravin B Shelar <pshelar at nicira.com>
> > Signed-off-by: Joe Stringer <joestringer at nicira.com>
>
> You will backport this, right?
>
> Acked-by: Ben Pfaff <blp at nicira.com>
>

Thanks, I pushed this to master and branch-2.3.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic