]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash
authorWei Zhang <asuka.com@163.com>
Sat, 28 Jun 2014 19:34:53 +0000 (12:34 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 29 Jun 2014 21:10:48 +0000 (14:10 -0700)
commitd33ebfc096b3c1d715f39f5b874019c18a1beda7
treebe67488d53526607888b26803f2445029c3e8470
parent71be70f87dec9b7161e5a7235eb1fce51001f125
openvswitch: 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.
This bug introduced by commit 7f305cb348436463 (openvswitch: Add gre
tunnel support.)

Signed-off-by: Wei Zhang <asuka.com@163.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
net/openvswitch/vport-gre.c