Closed rm-star closed 9 years ago
Here is a test script which can recreate the issue. Your kernel will need to support ip netns
set -x
ip netns add $PID
function makeDevs() { local PID=$RANDOM ip netns add $PID
local DEV1=$RANDOM
local DEV2=$RANDOM
ip link add veth$DEV1 type veth peer name veth$DEV2
ip link set veth$DEV1 up
ip link set veth$DEV2 netns $PID
ip netns exec $PID ip link set dev veth$DEV2 name eth0
ip netns exec $PID ip link set eth0 up
ip netns exec $PID ip link delete eth0
}
for i in seq 1 100
; do
makeDevs &
done
This problem has been fixed in the code that is currently in git.
I have a development environment which is running on ESX vSphere. The VM in question is running redhat 6 on a kernel 2.6.32-504.12.2.el6.x86_64.
We are running docker in this environment and have found that pf_ring seems to be causing a kernel panic. It happens when we request docker to create about 15 containers at the same time.
We are using version 5.6.1 of pf_ring but I have seen the same problem in 6.0.2
Pid: 15, comm: netns Tainted: G W --------------- 2.6.32-504.12.2.el6.x86_64 #1 VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform RIP: 0010:[] [] remove_proc_entry+0x7c/0x1b0
RSP: 0018:ffff88043a2f5c00 EFLAGS: 00010282
RAX: 0000000000000004 RBX: 0001000000000000 RCX: 0000000000000000
RDX: ffff8803e2372a10 RSI: 000000000000002f RDI: ffffffffa0506f18
RBP: ffff88043a2f5c50 R08: 0000000000000004 R09: 0000000000000000
R10: 000000000000000f R11: 000000000000000f R12: ffffffffa0506f18
R13: ffffffffa0506f18 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff88002c300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 00007f0e0f23c000 CR3: 0000000001a85000 CR4: 00000000000407e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process netns (pid: 15, threadinfo ffff88043a2f4000, task ffff88043a278040)
Stack:
0000000000000018 ffff88043a2f5c60 ffff88043a2f5c20 ffff8803e23729c0