Re: bsd.mp hangs with acpi enabled

2009-01-18 Thread llx
ev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 2 int 19 (irq 0) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 286187MB, 586112591 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0:  ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 19 
(irq 11)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 1, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b




On Wed, 14 Jan 2009 22:14:03 + (UTC)
Stuart Henderson  wrote:

> On 2009-01-13, llx  wrote:
> > hi 
> >
> > i just replaced my PATA devices with SATA once. since then bsd.mp does not 
> > boot anymore unil i disable acpi. the kernel hangs (no panic) after 
> > displaying. 
> 
> > this happens on 4.4 but also using current (snapshot). any more information 
> > needed. below you see a dmesc and an acpidump.
> 
> full dmesg from the latest snapshot with acpi enabled and with acpi
> disabled would be more useful; if you're lucky your machine will
> leave the dmesg buffer intact between boots, otherwise you need
> a null modem cable to get it.
> 
> you may find that bsd (not just bsd.mp) has problems now.
> 
> > bios0 at mainbus0: AT/286+ BIOS, date 08/11/06, BIOS32 rev. 0 @ 0xfab70, 
> > SMBIOS rev. 2.3 @ 0xf0100 (39 entries)
> > bios0: vendor Award Software International, Inc. version "F2" date 
> > 08/11/2006
> > bios0: Gigabyte Technology Co., Ltd. 945GM-S2
> 
> looks like there are several newer bioses; changelog doesn't
> specifically mention acpi table changes, but it's not unusual to
> sneak them in.


-- 
llx 



high ping times between qemu host and gemu guest with GEMERIC.MP

2007-12-02 Thread llx
hi

machines involved:
 host  running OpenBSD 4.1 GENERIC.MP#2 i386 / qemu-0.8.2p4  (dmesg see below)
 guest running OpenBSD 4.2 GENERIC#1 i386
 some  running OpenBSD 4.0 GENERIC#12 i386

 guest runs on host
 some another machine on the same lan

1. ping guest on host
36 packets transmitted, 36 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.623/514.359/1015.478/364.526 ms

2 ping some on host
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.112/0.175/0.256/0.036 ms

3. ping host from guest
61 packets transmitted, 60 packets received, 1.6% packet loss
round-trip min/avg/max/std-dev = 0.450/551.503/1020.041/383.125 ms

4. ping some from guest
42 packets transmitted, 42 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.368/0.479/0.677/0.072 ms

5. ping host from some
35 packets transmitted, 35 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.107/0.194/0.257/0.042 ms

6. ping guest from some
38 packets transmitted, 38 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.307/0.400/0.545/0.065 ms

as you can see any combination but the one host <-> guest is perfectly ok.
if i use GENERIC instead of GENERIC.MP als host <-> guest works perfectly.

ping guest from host (using GENERIC instead of GENERIC.MP)
27 packets transmitted, 27 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.197/0.328/0.808/0.136 ms

ifconfig on host:
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
sk0: flags=8943 mtu 1500
lladdr 00:11:95:d7:ab:e4
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet6 fe80::211:95ff:fed7:abe4%sk0 prefixlen 64 scopeid 0x1
inet 192.168.111.140 netmask 0xff00 broadcast 192.168.111.255
pflog0: flags=0<> mtu 33224
enc0: flags=0<> mtu 1536
tun0: flags=9943 mtu 1500
lladdr 00:bd:96:d2:f0:01
inet6 fe80::2bd:96ff:fed2:f001%tun0 prefixlen 64 scopeid 0x6
bridge0: flags=41 mtu 1500
groups: bridge

dmesg of host:
OpenBSD 4.1-stable (GENERIC.MP) #2: Fri Jul  6 14:44:00 CEST 2007
[EMAIL 
PROTECTED]:/home/share/pub/OpenBSD/cvsup/4.1/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
real mem  = 2138599424 (2088476K)
avail mem = 1944539136 (1898964K)
using 4278 buffers containing 107053056 bytes (104544K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/11/06, BIOS32 rev. 0 @ 0xfab70, SMBIOS 
rev. 2.3 @ 0xf0100 (39 entries)
bios0: Gigabyte Technology Co., Ltd. 945GM-S2
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xd2d4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd1e0/224 (12 entries)
pcibios0: PCI Exclusive IRQs: 5 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xa800!
acpi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown Core FSB_FREQ value 2 (0x4288)
cpu0: apic clock running at 199 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GP" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02: aperture at 
0xe200, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 2 int 
16 (irq 5)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 0.2), HDA version 1.0
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci1 at ppb0 bus 1
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 23 
(irq 9)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 19 
(irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel U

high ping times between qemu host and gemu guest with GEMERIC.MP

2007-12-02 Thread llx
hi

machines involved:
 host  running OpenBSD 4.1 GENERIC.MP#2 i386 / qemu-0.8.2p4  (dmesg see below)
 guest running OpenBSD 4.2 GENERIC#1 i386
 some  running OpenBSD 4.0 GENERIC#12 i386

 guest runs on host
 some another machine on the same lan

1. ping guest on host
36 packets transmitted, 36 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.623/514.359/1015.478/364.526 ms

2 ping some on host
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.112/0.175/0.256/0.036 ms

3. ping host from guest
61 packets transmitted, 60 packets received, 1.6% packet loss
round-trip min/avg/max/std-dev = 0.450/551.503/1020.041/383.125 ms

4. ping some from guest
42 packets transmitted, 42 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.368/0.479/0.677/0.072 ms

5. ping host from some
35 packets transmitted, 35 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.107/0.194/0.257/0.042 ms

6. ping guest from some
38 packets transmitted, 38 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.307/0.400/0.545/0.065 ms

as you can see any combination but the one host <-> guest is perfectly ok.
if i use GENERIC instead of GENERIC.MP als host <-> guest works perfectly.

ping guest from host (using /bsd instead of /bsd.mp)
27 packets transmitted, 27 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.197/0.328/0.808/0.136 ms

ifconfig on host:
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
sk0: flags=8943 mtu 1500
lladdr 00:11:95:d7:ab:e4
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet6 fe80::211:95ff:fed7:abe4%sk0 prefixlen 64 scopeid 0x1
inet 192.168.111.140 netmask 0xff00 broadcast 192.168.111.255
pflog0: flags=0<> mtu 33224
enc0: flags=0<> mtu 1536
tun0: flags=9943 mtu 1500
lladdr 00:bd:96:d2:f0:01
inet6 fe80::2bd:96ff:fed2:f001%tun0 prefixlen 64 scopeid 0x6
bridge0: flags=41 mtu 1500
groups: bridge

dmesg of host:
OpenBSD 4.1-stable (GENERIC.MP) #2: Fri Jul  6 14:44:00 CEST 2007
[EMAIL 
PROTECTED]:/home/share/pub/OpenBSD/cvsup/4.1/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
real mem  = 2138599424 (2088476K)
avail mem = 1944539136 (1898964K)
using 4278 buffers containing 107053056 bytes (104544K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/11/06, BIOS32 rev. 0 @ 0xfab70, SMBIOS 
rev. 2.3 @ 0xf0100 (39 entries)
bios0: Gigabyte Technology Co., Ltd. 945GM-S2
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xd2d4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd1e0/224 (12 entries)
pcibios0: PCI Exclusive IRQs: 5 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xa800!
acpi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown Core FSB_FREQ value 2 (0x4288)
cpu0: apic clock running at 199 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GP" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02: aperture at 
0xe200, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 2 int 
16 (irq 5)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 0.2), HDA version 1.0
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci1 at ppb0 bus 1
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 23 
(irq 9)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 19 
(irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI ro

quick test of netbeans pkg

2007-03-22 Thread llx
for testing proposes i installed a current snapshoot. i saw 
the announcement of the netbean pkg thus i complied jdk 1.5 
and installed netbeans. 

when i build/run a project the output in the output/console 
of netbeans is mostly not readable. it prints targets like 
  init:
  deps-jar:
but the output form the compiler or the application looks
like it prints a square for each character. looks like a
font and or encoding problem?


the snapshot was downloaded on the 20. march. the base system was 
was dated 18. march the packages 12.march (sunsite.cnlab-switch.ch). 

  OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

  netbeans-5.5NetBeans Java IDE
  jdk-1.5.0p28Java2(TM) Standard Edition Dev Kit v1.5.0


any idea what went wrong?



mapping promise product name to chip-id

2006-12-18 Thread llx
hi

i just spend quite some time looking around to determin which disc-controller 
from promise is using which chipset. depending on the model your looking for
you'll find someting on a mailing list. it's then up to you to believe the 
information found.

1. does anyone know where to find a reliable mapping table?

2. how do i have to interpret the following: in the FAQ: Supported hardware
   i don't see support for PDC40718. grepping the source let me assume there
   is.


cheers 
llx



Re: propolice

2005-12-29 Thread LLX
On Thursday 29 December 2005 22.44, Ted Unangst wrote:
> On 12/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > -fstack-protector : Enable stack protection for functions which contain
> > character arrays.
> > -fno-stack-protector : Disable use of stack protection (ProPolice).
> > -fstack-protector-all : Enable stack protection for all functions.
> > -fno-stack-protector-all : Disables stack protection for all functions.
> >
> > this does not yet explain the observed behavior since 'foo' contains a
> > character array. but it pointed me to fstack-protector-all. using this
> > option the smash is caught.
>
> i think it has to be 8 bytes unless you are using -f-all
thanks! 
wow new definition of what is a character array - i propose a change 
of the c-standard :) 

while it makes sense in practise it is quite confusing.
-> this should defiantly be put into the man-page!

thanks again

>
> > why only the smash in the main is detected?
> >
> > i used the following example:
> >
> > #include 
> >
> > char *src = "sehr langer string";
> >
> > void foo( char * src )
> > {
> >char dst[5];
> >strcpy( dst, src );
> > }
> > int main(int argc, char* argv[])
> > {
> > #ifdef SMASH_MAIN
> >char dst[5];
> >strcpy( dst, src );
> > #else
> >foo( src );
> > #endif
> >return 0;
> > }



propolice

2005-12-29 Thread llx
hi

is was playing around with a couple of attacks. 
while looking at smash attacks i was supprised.

simple strcpy attack / no gcc-options (defaults)
- the stack-smash is detected in 'main'
- the stack-smash is NOT detected in 'foo'

a look at the assembler code file shows that
no code is generated in the pro-/epilog of 'foo'

gcc man did not enlighten me :( while googling
did partially:

-fstack-protector : Enable stack protection for functions which contain 
 
character arrays.
-fno-stack-protector : Disable use of stack protection (ProPolice).
-fstack-protector-all : Enable stack protection for all functions.
-fno-stack-protector-all : Disables stack protection for all functions.

this does not yet explain the observed behavior since 'foo' contains a 
character array. but it pointed me to fstack-protector-all. using this
option the smash is caught.

why only the smash in the main is detected?

i used the following example:

#include 

char *src = "sehr langer string";

void foo( char * src )
{
char dst[5];
strcpy( dst, src );
}
int main(int argc, char* argv[])
{
#ifdef SMASH_MAIN
char dst[5];
strcpy( dst, src );
#else
foo( src );
#endif
return 0;
}