[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CARP interface creation/deletion triggers page fault
- To: bugs@openbsd.org
- Subject: CARP interface creation/deletion triggers page fault
- From: Sean <sean@obstacle9.com>
- Date: Tue, 08 Jun 2004 09:49:53 -0700
- User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
Hello,
Attempt to assign a new IP on a new subnet to an existing VHID on a carp
device; destroy the device with ifconfig carp0 destroy; create it again
and assign new IP to VHID. Triggers a page fault. Tested on May 30 and
June 1st -current builds. I tried submitting this via sendbug several
times, but I never received any confirmation that it was received (aside
from sendbug's confirmation).
# ifconfig carp0 create
# ifconfig carp0 vhid 1 pass carpy 10.10.10.1 netmask 255.255.255.0
# ifconfig carp0 vhid 1 pass carpy 192.168.1.1 netmask 255.255.255.0 (
ifconfig responds with: "ifconfig:
SIOCAIFADDR: Can't assign requested address", but if I use an IP within
the existing address's subnet
(10.10.10.0/24), it works fine)
# ifconfig carp0 destroy
# ifconfig carp0 create
# ifconfig carp0 vhid 1 pass carpy 192.168.1.1 netmask 255.255.255.0
uvm_fault(0xd0598da0, 0xdeadb000, 0, 1) -> d
kernel: page fault trap, code=0
Stopped at carp_set_addr+0x67: cmpw $0,0x3c(%eax)
ddb> trace
carp_set_addr(d1824c00,d182dac4,8020690c,d02705a9,d182dac4) at
carp_set_addr+0x
67
carp_ioctl(d1824c00,8020690c,d182da80,d182da0c,d182da80) at carp_ioctl+0xfe
in_ifinit(d1824c00,d182da80,e8543eb4,0,d6eabca8) at in_ifinit+0x83
in_control(d6e1325c,8040691a,e8543ea4,d1824c00,8040691a) at in_control+0x5af
udp_usrreq(d6e1325c,b,8040691a,e8543ea4,d1824c00) at udp_usrreq+0x55
ifioctl(d6e1325c,8040691a,e8543ea4,d6ed4c84,d6ed3600) at ifioctl+0x53b
soo_ioctl(d6ed3600,8040691a,e8543ea4,d6ed4c84,d6ed4c84) at soo_ioctl+0x101
sys_ioctl(d6ed4c84,e8543f88,e8543f7c,20,0) at sys_ioctl+0x360
syscall() at syscall+0x21d
--- syscall (number 54) ---
0x1c0062c9:
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
*20469 1303 20469 0 2 0x4006 ifconfig
1303 1 1303 0 3 0x4086 wait bash
23640 1 23640 0 3 0x4086 ttyin getty
32554 1 32554 0 3 0x4086 ttyin getty
26824 1 26824 0 3 0x4086 ttyin getty
28924 1 28924 0 3 0x4086 ttyin getty
23491 1 23491 0 3 0x4086 ttyin getty
25557 1 25557 0 3 0x84 select cron
6972 1 6972 0 3 0x40184 select sendmail
22274 1 22274 0 3 0x84 select sshd
1556 1 1556 0 3 0x184 select inetd
9993 8364 8364 73 2 0x184 syslogd
8364 1 8364 0 3 0x84 netio syslogd
3652 1 3652 77 3 0x184 poll dhclient
12037 1 13322 0 3 0x86 poll dhclient
12 0 0 0 3 0x100204 usbevt usb1
11 0 0 0 3 0x100204 usbtsk usbtask
10 0 0 0 3 0x100204 usbevt usb0
9 0 0 0 3 0x100204 apmev apm0
8 0 0 0 3 0x100204 kmalloc kmthread
7 0 0 0 3 0x100204 crypto_wa crypto
6 0 0 0 3 0x100204 aiodoned aiodoned
5 0 0 0 3 0x100204 syncer update
4 0 0 0 3 0x100204 cleaner cleaner
3 0 0 0 3 0x100204 reaper reaper
2 0 0 0 3 0x100204 pgdaemon pagedaemon
1 0 1 0 3 0x4084 wait init
0 -1 0 0 3 0x80204 scheduler swapper
OpenBSD 3.5-current (GENERIC) #118: Tue Jun 1 16:11:58 MDT 2004
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz ("GenuineIntel" 686-class) 2.40 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem = 1073328128 (1048172K)
avail mem = 987676672 (964528K)
using 4278 buffers containing 53768192 bytes (52508K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(de) BIOS, date 07/19/03, BIOS32 rev. 0 @ 0xfb330
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xdf84
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfde90/240 (13 entries)
pcibios0: PCI Exclusive IRQs: 5 9 10 11 12
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x5600
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x05
pci2 at ppb1 bus 2
em0 at pci2 dev 1 function 0 "Intel PRO/1000MT Dual Port (82546EB)" rev
0x03: irq 5, address: 00:04:23:a7:ad:c4
em1 at pci2 dev 1 function 1 "Intel PRO/1000MT Dual Port (82546EB)" rev
0x03: irq 12, address: 00:04:23:a7:ad:c5
ahc1 at pci2 dev 5 function 0 "Adaptec AIC-7899 U160" rev 0x01: irq 10
scsibus0 at ahc1: 16 targets
sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAP3367NC, 0108> SCSI3 0/direct
fixed
sd0: 35046MB, 48122 cyl, 2 head, 745 sec, 512 bytes/sec, 71775284 sec total
ahc2 at pci2 dev 5 function 1 "Adaptec AIC-7899 U160" rev 0x01: irq 11
scsibus1 at ahc2: 16 targets
fxp0 at pci2 dev 6 function 0 "Intel 82557" rev 0x08: irq 11, address
00:30:48:52:94:b6
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
fxp1 at pci2 dev 7 function 0 "Intel 82557" rev 0x08: irq 9, address
00:30:48:52:94:b7
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
vga1 at pci2 dev 8 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ichpcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x05
pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x05: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <TEAC, CD-232E, 1.0A> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x05: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82801BA SMBus" rev 0x05 at pci0 dev 31 function 3 not configured
uhci1 at pci0 dev 31 function 4 "Intel 82801BA USB2" rev 0x05: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 4c40 netmask 5e60 ttymask 5ee2
pctr: user-level cycle counter enabled
ahc1: target 0 using 16bit transfers
ahc1: target 0 synchronous at 80.0MHz DT, offset = 0x7f
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02