[ovs-git] Open vSwitch: datapath: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash (master)

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, master has been updated
       via  43f31ef528f5e4b4751036ce2ef90ea1334bbe3f (commit)
      from  6d616e9906220496ab7613cd5135209442adcb4b (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 43f31ef528f5e4b4751036ce2ef90ea1334bbe3f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=43f31ef528f5e4b4751036ce2ef90ea1334bbe3f
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