oops using openvswitch gre tunnels with upstream commit 703133de in kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvswitch (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Chris J Arges | ||
Quantal |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
1) This affects Precise w/ 3.5 HWE kernel and Quantal series.
This is using the openvswitch 1.4.6 package currently in proposed.
This also affects ovs p/q using any of the Ubuntu kernels since they all contain upstream commit 703133de.
e81a8144 -> ubuntu-precise
77dc64ef -> ubuntu-quantal
..
2)
ii openvswitch-common 1.4.6-0ubuntu1.
ii openvswitch-
ii openvswitch-switch 1.4.6-0ubuntu1.
ii openvswitch-test 1.4.6-0ubuntu1.
3)
Expected that setting up a GRE tunnel won't cause an oops.
Test Case:
# Install above packages with affected versions.
# Ensure you have an isolated network setup for eth1 between vms
# Obviously replace IPs with what's appropriate on your network
ovs-vsctl del-br integbr
ovs-vsctl add-br integbr
ifconfig eth1 192.168.234.21 netmask 255.255.255.0
ovs-vsctl add-port integbr gre0 -- set interface gre0 type=gre options:
ovs-vsctl add-port integbr tsp0 -- set interface tsp0 type=internal
ifconfig tsp0 192.168.15.2 netmask 255.255.255.0
iptables -F
iptables -F -t nat
# goes boom here
4)
This is the bt from crash:
PID: 1197 TASK: ffff88007a009700 CPU: 0 COMMAND: "ovs-vswitchd"
#0 [ffff8800799213f0] machine_kexec at ffffffff8103a275
#1 [ffff880079921460] crash_kexec at ffffffff810b9d68
#2 [ffff880079921530] oops_end at ffffffff81685600
#3 [ffff880079921560] no_context at ffffffff81676637
#4 [ffff8800799215c0] __bad_area_
#5 [ffff880079921610] bad_area_
#6 [ffff880079921620] do_page_fault at ffffffff816881bb
#7 [ffff880079921730] do_async_page_fault at ffffffff81687a35
#8 [ffff880079921750] async_page_fault at ffffffff81684a95
#9 [ffff8800799218b0] ovs_vport_send at ffffffffa01b956e [openvswitch]
#10 [ffff8800799218d0] do_output at ffffffffa01b0214 [openvswitch]
#11 [ffff8800799218e0] do_execute_actions at ffffffffa01b031f [openvswitch]
#12 [ffff880079921970] ovs_execute_actions at ffffffffa01b0a68 [openvswitch]
#13 [ffff8800799219b0] ovs_packet_
#14 [ffff880079921a10] genl_rcv_msg at ffffffff8159c9b0
#15 [ffff880079921aa0] netlink_rcv_skb at ffffffff8159c2d1
#16 [ffff880079921ad0] genl_rcv at ffffffff8159c745
#17 [ffff880079921af0] netlink_unicast at ffffffff8159bc2d
#18 [ffff880079921b40] netlink_sendmsg at ffffffff8159bf8a
#19 [ffff880079921bd0] sock_sendmsg at ffffffff8155c838
#20 [ffff880079921d50] ___sys_sendmsg at ffffffff8155cc81
#21 [ffff880079921f00] __sys_sendmsg at ffffffff8155ea09
#22 [ffff880079921f70] sys_sendmsg at ffffffff8155ea62
#23 [ffff880079921f80] system_
RIP: 00007f4b2bfee570 RSP: 00007fff3cfd08e8 RFLAGS: 00000206
RAX: 000000000000002e RBX: ffffffff8168c5a9 RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: 00007fff3cfcd910 RDI: 0000000000000025
RBP: 00007f4b2f2a9e40 R8: 00007f4b2f2ab2c0 R9: 00000000000002ff
R10: 1600000000000000 R11: 0000000000000246 R12: ffffffff8155ea62
R13: ffff880079921f78 R14: 00007fff3cfcd910 R15: 0000000000000002
ORIG_RAX: 000000000000002e CS: 0033 SS: 002b
Changed in openvswitch (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
status: | New → In Progress |
no longer affects: | linux (Ubuntu) |
Changed in openvswitch (Ubuntu Precise): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in openvswitch (Ubuntu Quantal): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in openvswitch (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in openvswitch (Ubuntu Quantal): | |
importance: | Undecided → High |
importance: | High → Medium |
Changed in openvswitch (Ubuntu Precise): | |
status: | New → In Progress |
Changed in openvswitch (Ubuntu Quantal): | |
status: | New → In Progress |
Changed in openvswitch (Ubuntu): | |
assignee: | Chris J Arges (arges) → nobody |
importance: | Medium → Undecided |
status: | In Progress → Fix Released |
Changed in openvswitch (Ubuntu Raring): | |
assignee: | nobody → Chris J Arges (arges) |
importance: | Undecided → Medium |
status: | New → In Progress |
summary: |
- oops using openvswitch 1.4.6 with 3.5 series kernel + oops using openvswitch gre tunnels with upstream commit 703133de in + kernel |
Changed in openvswitch (Ubuntu Saucy): | |
status: | New → Fix Released |
tags: |
added: verification-done-precise verification-done-quantal removed: verification-done |
If I revert 77dc64ef531cfad d7d1d148f9a754e 7a7c87c1f2 (703133de331a7a 7df47f31fb9de51 dc6f68a9de8 upstream) from the 3.5 series Ubuntu kernel the problem disappears. Will need to investigate further if this is something that should be solved in the ovs module or kernel side.