[ovs-dev] [megaflow masklist fix V2] datapath: Fix a kernel crash caused by corrupted mask list.

Andy Zhou azhou at nicira.com
Sat Jun 22 04:07:19 UTC 2013


No. there is no need any more.  An incremental patch is attached that
removes all the tbl->mask_list checks. I have also rolled the last 3
patches in to a single one in case it is useful.


On Fri, Jun 21, 2013 at 6:10 PM, Jesse Gross <jesse at nicira.com> wrote:

> Do we need any of the tests for tbl->mask_list at this point if we
> always allocate a list head?
>
> On Fri, Jun 21, 2013 at 5:52 PM, Andy Zhou <azhou at nicira.com> wrote:
> > O.K.  How about the attached incremental patch?
> >
> >
> > On Fri, Jun 21, 2013 at 4:37 PM, Jesse Gross <jesse at nicira.com> wrote:
> >>
> >> On Fri, Jun 21, 2013 at 4:18 PM, Andy Zhou <azhou at nicira.com> wrote:
> >> > When flow table is copied, the mask list from the old table
> >> > is not properly copied into the new table. The corrupted mask
> >> > list in the new table will lead to kernel crash. This patch
> >> > fixes this bug.
> >> >
> >> > Bug #18110
> >> > Reported-by: Justin Pettit <jpettit at nicira.com>
> >>
> >> Can we just allocate the mask list head when we create v1 of the
> >> table? I think that would eliminate a lot of conditions and also allow
> >> us to return -ENOMEM up front rather than silent failing later on.
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130621/29d6e04c/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-remove-mask_list-NULL-check.patch
Type: application/octet-stream
Size: 1609 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130621/29d6e04c/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-datapath-Fix-a-kernel-crash-caused-by-corrupted-mask.patch
Type: application/octet-stream
Size: 4162 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130621/29d6e04c/attachment-0011.obj>


More information about the dev mailing list