PF doesn't work with changed interfaces names.

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Aug 24 15:09:46 GMT 2005


Hi.

When we change interface name with:

	# ifconfig fxp0 name net0

and we add a firewall rule, restart pf, remove the rule, restart pf, we got:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xdeadc1d7
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc04525e5
stack pointer           = 0x10:0xcab5d7c4
frame pointer           = 0x10:0xcab5d7c8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 423 (sshd)
[thread 100073]
Stopped at      pf_state_compare_lan_ext+0x11:  movzbl  0xf9(%ebx),%eax
db> tr
pf_state_compare_lan_ext(cab5d838,deadc0de) at pf_state_compare_lan_ext+0x11
pf_state_tree_lan_ext_RB_FIND(c11e9ec0,cab5d838) at pf_state_tree_lan_ext_RB_FIND+0x1b
pf_find_state_recurse(c11e9e00,cab5d838,0,da7a0000,da7a6400) at pf_find_state_recurse+0x39
pf_test_state_tcp(cab5d97c,2,c11e9e00,c11a4400,14) at pf_test_state_tcp+0xcb
pf_test(2,c1099000,cab5da70,c12bfa8c,c13325a0) at pf_test+0x37c
pf_check_out(0,cab5da70,c1099000,2,c12bfa8c) at pf_check_out+0x4d
pfil_run_hooks(c0708a40,cab5daec,c1099000,2,c12bfa8c) at pfil_run_hooks+0xbd
ip_output(c11a4400,0,cab5dab8,0,0) at ip_output+0x736
tcp_output(c12c1380,c12bfa8c,0,40,c11a0e00) at tcp_output+0xf4b
tcp_usr_send(c13c0144,0,c11a0e00,0,0) at tcp_usr_send+0x14f
sosend(c13c0144,0,cab5dc88,c11a0e00,0) at sosend+0x5e7
soo_write(c11ec374,cab5dc88,c1368000,0,c13304b0) at soo_write+0x46
dofilewrite(c13304b0,c11ec374,5,807b000,40) at dofilewrite+0xa8
write(c13304b0,cab5dd14,3,8,206) at write+0x39
syscall(2f,2f,2f,806d0c8,40) at syscall+0x213
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (4, FreeBSD ELF32, write), eip = 0x28246af3, esp = 0xbfbfddbc, ebp = 0xbfbfdde8 ---
db> 

Any ideas?

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20050824/929ac3bd/attachment.bin


More information about the freebsd-pf mailing list