Bug 18687

Summary: mrouted and IPDIVERT cause a panic
Product: Base System Reporter: tjohnson <tjohnson>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description tjohnson 2000-05-20 04:50:01 UTC
The system panics when mrouted is run when IPDIVERT is enabled.
This is for my gateway machine...
this is from FreeBSD 4.0,

Final words (retyped, from spectaculary bad handwriting...)

page fault in kernel mode
mp_lock=01000002 cpuid=1 lapicid=01000000
fault virtual addr=0x640232
fault code    supervisor read, page not present
IP     0x8:0xc01b0716
SP    0x10:0xff80ddb4
FP    0x10:0xff80ddbc
Code Segment  base rx0, limit 0xfffff type 0x1b
              OPL 0, pres 1, def32 1 gran 1
eflags:     interupt enabled, resume, IOPL=0
process:   idle
interupt mask   =  <- SMP:XXX
kernel: type 12 trap,code =0
stopped at divert_packet_0x8a  movsml 0x22(%eax),%eax

trace back:
divert_packet
ip_output
tbf_send_packet      
tbf_control
encap_send
ip_mdq
X_ip_mforward
ip_input
ipintr
swi_net_next

How-To-Repeat: Compile a kernel with:
options IPFIREWALL
options IPDIVERT
options IPFILTER
options MROUTING

Get NAT running.
Build yourself a tunnel to another computer.  Run a few copies of vic.
It should crash within a minute.
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 03:39:05 UTC
State Changed
From-To: open->feedback


Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE?
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-11-16 04:51:39 UTC
State Changed
From-To: feedback->closed


Timeout; no response from originator.