Thread (1 message) 1 message, 1 author, 2012-07-23

Re: [patch] openvswitch: potential NULL deref in sample()

From: Jesse Gross <hidden>
Date: 2012-07-23 19:54:00
Also in: kernel-janitors

On Mon, Jul 23, 2012 at 12:46 AM, Dan Carpenter
[off-list ref] 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 <redacted>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help