[ovs-git] Open vSwitch: datapath: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash (branch-2.1)
dev at openvswitch.org
dev at openvswitch.org
Wed Apr 9 00:48:14 UTC 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".
The branch, branch-2.1 has been updated
via 14e89a8d277e2d02762a087938443fda50418ecb (commit)
from 9b0008b516664d6e73cff907c1f6f0e077806c55 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 14e89a8d277e2d02762a087938443fda50418ecb
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=14e89a8d277e2d02762a087938443fda50418ecb
Author: Wei Zhang <asuka.com at 163.com>
datapath: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash
When use gre vport, openvswitch register a gre_cisco_protocol but
does not supply a err_handler with it. The gre_cisco_err() in
net/ipv4/gre_demux.c expect err_handler be provided with the
gre_cisco_protocol implementation, and call ->err_handler() without
existence check, cause the kernel crash.
This patch provide a err_handler to fix this bug.
Signed-off-by: Wei Zhang <asuka.com at 163.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>
-----------------------------------------------------------------------
Summary of changes:
datapath/linux/compat/include/net/gre.h | 2 ++
datapath/vport-gre.c | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
hooks/post-receive
--
Open vSwitch
More information about the git
mailing list