[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEP_g=8bjVxkymRZmOZraqY5mrkfG-juAu1zXnTdP=UC8cdoqQ@mail.gmail.com>
Date: Mon, 23 Jul 2012 12:54:00 -0700
From: Jesse Gross <jesse@...ira.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: "David S. Miller" <davem@...emloft.net>, dev@...nvswitch.org,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch] openvswitch: potential NULL deref in sample()
On Mon, Jul 23, 2012 at 12:46 AM, Dan Carpenter
<dan.carpenter@...cle.com> wrote:
> If there is no OVS_SAMPLE_ATTR_ACTIONS set then "acts_list" is NULL and
> it leads to a NULL dereference when we call nla_len(acts_list). This
> is a static checker fix, not something I have seen in testing.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
This can never happen in practice because the action list is validated
at the time that userspace installs the flow. There are plenty of
things in this category that would appear to be unsafe because we'd
much rather do sanity checking on a per-flow basis rather than
per-packet.
--
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