MP NLRI label stack at bgpd

2014-11-19 Thread Рябухин Станислав Геннадьевич
Hello,


I found that route decision engine in bgpd does not detect label information 
with value 0x80 for withdrawn route.

RFC3107 Carrying Label Information in BGP-4:

...
A BGP speaker can withdraw a previously advertised route (as well as
the binding between this route and a label) by either (a) advertising
a new route (and a label) with the same NLRI as the previously
advertised route, or (b) listing the NLRI of the previously
advertised route in the Withdrawn Routes field of an Update message.
The label information carried (as part of NLRI) in the Withdrawn
Routes field should be set to 0x80.  (Of course, terminating the
BGP session also withdraws all the previously advertised routes.)
...

May be my patch will useful for someone:

Index: rde.c
===
RCS file: /cvs/src/usr.sbin/bgpd/rde.c,v
retrieving revision 1.327
diff -u -p -r1.327 rde.c
--- rde.c   22 Jan 2014 04:08:08 -  1.327
+++ rde.c   19 Nov 2014 07:39:58 -
@@ -1904,6 +1904,9 @@ rde_update_get_vpn4(u_char *p, u_int16_t
 int  rv, done = 0;
 u_int8_t pfxlen;
 u_int16_tplen;
+   int  withdrawn;
+
+   withdrawn=0;

 if (len  1)
 return (-1);
@@ -1921,11 +1924,17 @@ rde_update_get_vpn4(u_char *p, u_int16_t
 if (prefix-vpn4.labellen + 3U 
 sizeof(prefix-vpn4.labelstack))
 return (-1);
+   if(*p == 0x80)
+   withdrawn=1;
 prefix-vpn4.labelstack[prefix-vpn4.labellen++] = *p++;
+   if(withdrawn == 1  *p != 0x00)
+   withdrawn=0;
 prefix-vpn4.labelstack[prefix-vpn4.labellen++] = *p++;
+   if(withdrawn == 1  *p != 0x00)
+   withdrawn=0;
 prefix-vpn4.labelstack[prefix-vpn4.labellen] = *p++;
-   if (prefix-vpn4.labelstack[prefix-vpn4.labellen] 
-   BGP_MPLS_BOS)
+   if ( (prefix-vpn4.labelstack[prefix-vpn4.labellen]   
BGP_MPLS_BOS)
+   || withdrawn == 1)
 done = 1;
 prefix-vpn4.labellen++;
 plen += 3;




-- 
Best regards,
Stanislav G. Ryabukhin.
sryabuk...@tascom.ru



Re: uvideo(4) problems in recent snaps?

2014-11-19 Thread Paul de Weerd
On Tue, Nov 18, 2014 at 06:50:43PM +0100, Martin Pieuchot wrote:
|  Can anyone else confirm this?
| 
| I can confirm.  I see this on amd64 with a Nov 2 snapshot.  If
| somebody can bisect this period and find which change introduced
| a regression, it would be nice.

Last night (while testing xhci on my laptop) I had video(1) running
for a few hours without problems.  Very recent snap (two days ago),
even more recent code for the kernel.

Cheers,

Paul 'WEiRD' de Weerd

[weerd@drop] $ usbdevs
addr 1: EHCI root hub, Intel
 addr 2: Rate Matching Hub, Intel
  addr 3: Fingerprint Sensor, AuthenTec
  addr 4: product 0x0189, Intel
  addr 5: USB2.0 Camera, Ricoh Company Ltd.
addr 1: xHCI root hub, NEC
addr 1: EHCI root hub, Intel
 addr 2: Rate Matching Hub, Intel
  addr 3: USB Receiver, Logitech
[weerd@drop] $ dmesg
OpenBSD 5.6-current (GENERIC.MP) #0: Mon Nov 17 20:18:05 CET 2014
we...@drop.weirdnet.nl:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8485335040 (8092MB)
avail mem = 8255610880 (7873MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe6020 (18 entries)
bios0: vendor INSYDE version R1010H5 date 07/28/2011
bios0: Sony Corporation VPCZ23C5E
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA ASF! HPET APIC MCFG SLIC WDAT SSDT BOOT SSDT ASPT 
SSDT SSDT SSDT SSDT
acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S0) WLAN(S0) RP01(S0) RMSC(S0) 
RP02(S0) NXUC(S3) RP03(S3) RLAN(S3) RP04(S3) RP07(S3) PEG0(S0) PEGP(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2794.04 MHz
cpu0: 
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2793.65 MHz
cpu1: 
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2793.65 MHz
cpu2: 
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2793.65 MHz
cpu3: 
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus 3 (RP02)
acpiprt3 at acpi0: bus 4 (RP03)
acpiprt4 at acpi0: bus 5 (RP04)
acpiprt5 at acpi0: bus 8 (RP07)
acpiprt6 at acpi0: bus -1 (PEG0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpitz0 at acpi0: critical temperature is 98 degC
acpibat0 at acpi0: BAT1 type Lion oem Sony Corporation
acpibat1 at acpi0: BAT2 type Lion oem Sony Corporation
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: DD01
acpivideo1 at acpi0: DD02
acpivideo2 at acpi0: DD03
acpivideo3 at acpi0: DD04
acpivideo4 at acpi0: DD05
acpivideo5 at acpi0: DD06
acpivideo6 at acpi0: DD07
acpivideo7 at acpi0: DD08
acpivideo8 at acpi0: GFX0
acpivout0 at acpivideo8: DD02
cpu0: Enhanced SpeedStep 2794 MHz: speeds: 2801, 2800, 2400, 2200, 2000, 1800, 
1600, 1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 3000 rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 

Re: xombrero crashes with ReferenceError: Can't find variable: iom

2014-11-19 Thread Stefan Wollny
Am 11/19/14 um 00:28 schrieb trondd:
 Have you tried firefox with -safe-mode with no plugins?
 
Save-mode yes, but with plugins for savety:


~ $ firefox --save-mode
1416411067180   GMPInstallManager.simpleCheckAndInstall INFOLast
check was: 159287 seconds ago, minimum seconds: 86400
1416411067181   GMPInstallManager._getURL   INFOUsing url:
https://aus4.mozilla.org/update/3/GMP/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml
1416411067184   GMPInstallManager._getURL   INFOUsing url
(with replacement):
https://aus4.mozilla.org/update/3/GMP/33.1/20141115010747/OpenBSD_x86_64-gcc3/en-US/default/OpenBSD%205.6%20(GTK%202.24.25)/default/default/update.xml
1416411067189   GMPInstallManager.checkForAddonsINFO
sending request to:
https://aus4.mozilla.org/update/3/GMP/33.1/20141115010747/OpenBSD_x86_64-gcc3/en-US/default/OpenBSD%205.6%20(GTK%202.24.25)/default/default/update.xml
141641100   GMPInstallManager._getChannelStatus INFO
request.status is: 0
141641101   GMPInstallManager.onTimeoutXML  WARN
request.status: 0 (timeout)
1416411089645   GMPInstallManager.simpleCheckAndInstall ERROR   Could
not check for addons
/usr/local/libexec/gstreamer-1.0/gst-plugin-scanner:/usr/lib/libstdc++.so.57.0:
/usr/local/lib/libestdc++.so.16.0 : WARNING:
symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink
your program
gst-plugin-scanner(19913) in free(): error: bogus pointer (double
free?) 0x12bc07600340
^C

~ $

As you can see the 'gst-plugin-scanner' is still troublesome. I killed
firefox this time by STRL-C.

~ $ xombrero
xombrero:/usr/local/lib/libestdc++.so.16.0: /usr/lib/libstdc++.so.57.0
: WARNING: symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch,
relink your program
/usr/local/libexec/gstreamer-1.0/gst-plugin-scanner:/usr/lib/libstdc++.so.57.0:
/usr/local/lib/libestdc++.so.16.0 : WARNING:
symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink
your program
gst-plugin-scanner(29692) in free(): error: bogus pointer (double
free?) 0x1500ddd03340
^C

~ $

Xombrero doesn't have plugins - so what is going on here?

Very strange...

STEFAN



Re: Problems with PPPoE, VLAN, 5.5 (amd64)

2014-11-19 Thread Ted Unangst
On Fri, May 02, 2014 at 14:54, thors...@bonck.net wrote:
 Under 5.4-stable, following configuration sets up a working connection
 for me:

 Having installed OpenBSD-5.5 amd64 the exact same configuration does
 not succeed in setting up a working network connection.

This has finally been fixed. I'm sorry it took so long and that
nothing happened in response to your report.



Re: Trying to get suspend to RAM working on an X31

2014-11-19 Thread Mike Larkin
On Thu, Nov 13, 2014 at 10:41:35AM +0200, Antonio Barrones wrote:
 On 13 November 2014 01:33, Mike Larkin mlar...@azathoth.net wrote:
  On Thu, Nov 13, 2014 at 12:16:46AM +0200, Antonio Barrones wrote:
  Mike Larkin mlarkin at azathoth.net writes:
 
  
   On Fri, Oct 10, 2014 at 10:01:18AM -0700, John Magolske wrote:
Hi,
   
I have an X31 ThinkPad on which I've installed OpenBSD. Everything
 
  
   boot -c , disable radeondrm (and also disable auto xdm start).
  
   See if you can zzz/resume from the console without radeondrm running.
  
   That will at least give us a place to start.
  
   Another thing you can try is seeing if the machine is in ddb on resume
   for some reason. Try a few (3 or 4) bo re  commands (enter after 
   each). See
   if the machine reboots, and if so you might have clues in dmesg after
   reboot.
  
   -ml
  
  
  Hi,
  with the current version and disabling radeondrm at boot, the resume works.
  Without disabling anything the resume doesn't work.
  The keyboard looks not responding, but the keys to change the lights
  in the display are working
 
  Not sure I understand. You say ...the resume works but then say a bunch of
  stuff doesn't work. Which is it?
 
  -ml
 
 When you disable radeondrm at boot (boot -c), then in the -current
 version of OpenBSD, the resume works (but X window doesn't work I have
 tried also with vesa driver in xorg.conf).
 Doing the same with the 5.6 -release version, resume works, but the
 console is corrupted and the characters are not legible but the
 keyboard works and you can boot without hard reset.
 
 If you don't disable anything at boot (with the -current version )
 then resume doesn't work.
 In the previous mail I posted the dmesg with radeondrm disabled and
 also the dmesg without disabling anything at boot.
 
 Antonio

Looks like a problem in radeondrm resume for this chip, then, since 
disabling that works. I wouldn't expect X to work here since you're
basically running half of a radeon config (radeon but no DRM/KMS) at
that point.

-ml



Re: trackpoint/touchpad configuration on new Lenovo laptops

2014-11-19 Thread Mattieu Baptiste
On Tue, Oct 28, 2014 at 2:22 PM, Mattieu Baptiste mattie...@gmail.com wrote:
 Hi,

 I recently changed my laptop at work for a Lenovo T440. Pretty good machine
 except the crappy touchpad. Lenovo has managed to totally fuck the
 trackpoint while making the touchpad a nightmare.

 I tried to tweak the X configuration to make it somewhat usable. My
 configuration follows.

 Is someone willing to share his configuration ? Do you managed to totally
 disable the touchpad to simulate the old trackpad behavior?

For the record, a reader kindly points me to his configuration that
manage to restore the original behavior:
http://betabug.ch/blogs/bsdcow/49

Hope this will help other users.

-- 
Mattieu Baptiste
/earth is 102% full ... please delete anyone you can.



Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-19 Thread Theo de Raadt
 Sorry about that Martin, I'll try to be more helpful by providing more
 details. The snapshot I tried and found to be unreliable was amd64
 bsd.mp 2014-11-14.

 ^^

Which is not 5.6, as your subject says.

It is -current, of a certain date.

Please be more careful with the message.



HDD not found

2014-11-19 Thread Dutch Ingraham
Just asking for a sanity check.  I tried installing 5.6 from CD on a 
WD1600AAJS HDD and was presented with Available disks are: none.  This 
seems to be a fairly mainstream drive around for several years (mine 
being manufactured in 2010), so I just want to check whether I've missed 
some critical install instruction.  I followed section 4.5 of the FAQ 
and accepted default settings and used entire disk.


The same install disk has been used without incident on other 
installations and a different OS was installed on the HDD after the 
attempt chronicled above.


Your suggestions/advice are appreciated.  dmesg to follow:



OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 8401186816 (8011MB)
avail mem = 8172158976 (7793MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
bios0: vendor Dell Inc. version A03 date 02/13/2010
bios0: Dell Inc. OptiPlex 780
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET  SLIC
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.90 MHz
cpu0: 
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF

cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 332MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpiprt0 at acpi0: bus 4 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus 3 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus -1 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Q45 Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel Q45 PCIE rev 0x03: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 Intel Q45 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel Q45 Video rev 0x03 at pci0 dev 2 function 1 not configured
Intel Q45 HECI rev 0x03 at pci0 dev 3 function 0 not configured
pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA 
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI

pciide0: using apic 8 int 18 for native-PCI interrupt
pciide0: channel 0 ignored (not responding; disabled or no drives?)
pciide0: channel 1 ignored (not responding; disabled or no drives?)
Intel Q45 KT rev 0x03 at pci0 dev 3 function 3 not configured
em0 at pci0 dev 25 function 0 Intel ICH10 D BM LM rev 0x02: msi, 
address b8:ac:6f:a4:35:01

uhci0 at pci0 dev 26 function 0 Intel 82801JD USB rev 0x02: apic 8 int 16
uhci1 at pci0 dev 26 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci2 at pci0 dev 26 function 2 Intel 82801JD USB rev 0x02: apic 8 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801JD USB rev 0x02: apic 8 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel 82801JD HD Audio rev 0x02 at pci0 dev 27 function 0 not configured
ppb1 at pci0 dev 28 function 0 Intel 82801JD PCIE rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801JD PCIE rev 0x02: msi
pci3 at ppb2 bus 3
uhci3 at pci0 dev 29 function 0 Intel 82801JD USB rev 0x02: apic 8 int 23
uhci4 at pci0 dev 29 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci5 at pci0 dev 29 function 2 Intel 82801JD USB rev 0x02: apic 8 int 18
ehci1 at pci0 dev 29 function 7 Intel 82801JD USB rev 0x02: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xa2
pci4 at ppb3 bus 4
Intel 82801JDO LPC rev 0x02 at pci0 dev 31 function 0 not configured
pciide1 at pci0 dev 31 function 2 Intel 82801H RAID rev 0x02: DMA, 
channel 0 wired to native-PCI, channel 1 wired to native-PCI

pciide1: using apic 8 int 18 for native-PCI interrupt
Intel 82801JD SMBus rev 0x02 at pci0 dev 31 function 3 not configured
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
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 

Re: HDD not found

2014-11-19 Thread Bertrand Janin
Dutch Ingraham wrote :
 Just asking for a sanity check.  I tried installing 5.6 from CD on a
 WD1600AAJS HDD and was presented with Available disks are: none.  This
 seems to be a fairly mainstream drive around for several years (mine being
 manufactured in 2010), so I just want to check whether I've missed some
 critical install instruction.  I followed section 4.5 of the FAQ and
 accepted default settings and used entire disk.
 
 The same install disk has been used without incident on other installations
 and a different OS was installed on the HDD after the attempt chronicled
 above.
 
 Your suggestions/advice are appreciated.  dmesg to follow:
 
 
 
 OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
 real mem = 8401186816 (8011MB)
 avail mem = 8172158976 (7793MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
 bios0: vendor Dell Inc. version A03 date 02/13/2010
 bios0: Dell Inc. OptiPlex 780
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S1 S3 S4 S5
 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET  SLIC
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.90 MHz
 cpu0: 
 FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
 cpu0: 6MB 64b/line 16-way L2 cache
 cpu0: apic clock running at 332MHz
 cpu at mainbus0: not configured
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 8
 acpiprt0 at acpi0: bus 4 (PCI4)
 acpiprt1 at acpi0: bus 2 (PCI2)
 acpiprt2 at acpi0: bus 3 (PCI3)
 acpiprt3 at acpi0: bus 1 (PCI1)
 acpiprt4 at acpi0: bus -1 (PCI5)
 acpiprt5 at acpi0: bus -1 (PCI6)
 acpiprt6 at acpi0: bus 0 (PCI0)
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel Q45 Host rev 0x03
 ppb0 at pci0 dev 1 function 0 Intel Q45 PCIE rev 0x03: msi
 pci1 at ppb0 bus 1
 vga1 at pci0 dev 2 function 0 Intel Q45 Video rev 0x03
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 Intel Q45 Video rev 0x03 at pci0 dev 2 function 1 not configured
 Intel Q45 HECI rev 0x03 at pci0 dev 3 function 0 not configured
 pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA
 (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
 pciide0: using apic 8 int 18 for native-PCI interrupt
 pciide0: channel 0 ignored (not responding; disabled or no drives?)
 pciide0: channel 1 ignored (not responding; disabled or no drives?)
 Intel Q45 KT rev 0x03 at pci0 dev 3 function 3 not configured
 em0 at pci0 dev 25 function 0 Intel ICH10 D BM LM rev 0x02: msi, address
 b8:ac:6f:a4:35:01
 uhci0 at pci0 dev 26 function 0 Intel 82801JD USB rev 0x02: apic 8 int 16
 uhci1 at pci0 dev 26 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
 uhci2 at pci0 dev 26 function 2 Intel 82801JD USB rev 0x02: apic 8 int 22
 ehci0 at pci0 dev 26 function 7 Intel 82801JD USB rev 0x02: apic 8 int 22
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 Intel 82801JD HD Audio rev 0x02 at pci0 dev 27 function 0 not configured
 ppb1 at pci0 dev 28 function 0 Intel 82801JD PCIE rev 0x02: msi
 pci2 at ppb1 bus 2
 ppb2 at pci0 dev 28 function 1 Intel 82801JD PCIE rev 0x02: msi
 pci3 at ppb2 bus 3
 uhci3 at pci0 dev 29 function 0 Intel 82801JD USB rev 0x02: apic 8 int 23
 uhci4 at pci0 dev 29 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
 uhci5 at pci0 dev 29 function 2 Intel 82801JD USB rev 0x02: apic 8 int 18
 ehci1 at pci0 dev 29 function 7 Intel 82801JD USB rev 0x02: apic 8 int 23
 usb1 at ehci1: USB revision 2.0
 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb3 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xa2
 pci4 at ppb3 bus 4
 Intel 82801JDO LPC rev 0x02 at pci0 dev 31 function 0 not configured
 pciide1 at pci0 dev 31 function 2 Intel 82801H RAID rev 0x02: DMA, channel
 0 wired to native-PCI, channel 1 wired to native-PCI
 pciide1: using apic 8 int 18 for native-PCI interrupt
 Intel 82801JD SMBus rev 0x02 at pci0 dev 31 function 3 not configured
 usb2 at uhci0: USB revision 1.0
 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb3 at uhci1: USB revision 1.0
 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb4 at uhci2: USB revision 1.0
 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb5 at uhci3: USB revision 1.0
 uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb6 at uhci4: USB revision 1.0
 uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb7 at uhci5: USB revision 1.0
 uhub7 at usb7 Intel UHCI root hub rev 1.00/1.00 addr 1
 isa0 at mainbus0
 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte 

Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-19 Thread Scott Bonds
I'm sorry for creating some confusion. My original email was about the
MacbookAir5,1 external USB ports not working on 5.6-release, when they
worked fine under 5.5-stable, so the subject is descriptive, at least as
the discussion started.

Subsequently I emailed to say that I have also tried a snapshot and
found the USB ports work using the snapshot, but unreliably. *That* is
why I mentioned the 2014-11-14 snapshot--to explain which snapshot I was
encountering some problems. The problems with the snapshot are different
than the problems with 5.6--on 5.6 the USB ports don't seem to function
at all, whereas under the 2014-11-14 they work, but not reliably.

Excerpts from Theo de Raadt's message of 2014-11-19 14:38:31 -0800:
  Sorry about that Martin, I'll try to be more helpful by providing more
  details. The snapshot I tried and found to be unreliable was amd64
  bsd.mp 2014-11-14.
 
  ^^
 
 Which is not 5.6, as your subject says.
 
 It is -current, of a certain date.
 
 Please be more careful with the message.



Re: HDD not found

2014-11-19 Thread Dutch Ingraham

On 11/19/14 18:18, Bertrand Janin wrote:

Dutch Ingraham wrote :

Just asking for a sanity check.  I tried installing 5.6 from CD on a
WD1600AAJS HDD and was presented with Available disks are: none.  This
seems to be a fairly mainstream drive around for several years (mine being
manufactured in 2010), so I just want to check whether I've missed some
critical install instruction.  I followed section 4.5 of the FAQ and
accepted default settings and used entire disk.

The same install disk has been used without incident on other installations
and a different OS was installed on the HDD after the attempt chronicled
above.

Your suggestions/advice are appreciated.  dmesg to follow:



OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 8401186816 (8011MB)
avail mem = 8172158976 (7793MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
bios0: vendor Dell Inc. version A03 date 02/13/2010
bios0: Dell Inc. OptiPlex 780
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET  SLIC
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.90 MHz
cpu0: 
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 332MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpiprt0 at acpi0: bus 4 (PCI4)
acpiprt1 at acpi0: bus 2 (PCI2)
acpiprt2 at acpi0: bus 3 (PCI3)
acpiprt3 at acpi0: bus 1 (PCI1)
acpiprt4 at acpi0: bus -1 (PCI5)
acpiprt5 at acpi0: bus -1 (PCI6)
acpiprt6 at acpi0: bus 0 (PCI0)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Q45 Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel Q45 PCIE rev 0x03: msi
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 Intel Q45 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel Q45 Video rev 0x03 at pci0 dev 2 function 1 not configured
Intel Q45 HECI rev 0x03 at pci0 dev 3 function 0 not configured
pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 8 int 18 for native-PCI interrupt
pciide0: channel 0 ignored (not responding; disabled or no drives?)
pciide0: channel 1 ignored (not responding; disabled or no drives?)
Intel Q45 KT rev 0x03 at pci0 dev 3 function 3 not configured
em0 at pci0 dev 25 function 0 Intel ICH10 D BM LM rev 0x02: msi, address
b8:ac:6f:a4:35:01
uhci0 at pci0 dev 26 function 0 Intel 82801JD USB rev 0x02: apic 8 int 16
uhci1 at pci0 dev 26 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci2 at pci0 dev 26 function 2 Intel 82801JD USB rev 0x02: apic 8 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801JD USB rev 0x02: apic 8 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel 82801JD HD Audio rev 0x02 at pci0 dev 27 function 0 not configured
ppb1 at pci0 dev 28 function 0 Intel 82801JD PCIE rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801JD PCIE rev 0x02: msi
pci3 at ppb2 bus 3
uhci3 at pci0 dev 29 function 0 Intel 82801JD USB rev 0x02: apic 8 int 23
uhci4 at pci0 dev 29 function 1 Intel 82801JD USB rev 0x02: apic 8 int 17
uhci5 at pci0 dev 29 function 2 Intel 82801JD USB rev 0x02: apic 8 int 18
ehci1 at pci0 dev 29 function 7 Intel 82801JD USB rev 0x02: apic 8 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xa2
pci4 at ppb3 bus 4
Intel 82801JDO LPC rev 0x02 at pci0 dev 31 function 0 not configured
pciide1 at pci0 dev 31 function 2 Intel 82801H RAID rev 0x02: DMA, channel
0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 8 int 18 for native-PCI interrupt
Intel 82801JD SMBus rev 0x02 at pci0 dev 31 function 3 not configured
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
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 

Re: HDD not found

2014-11-19 Thread Nick Holland
On 11/19/14 19:38, Dutch Ingraham wrote:
 On 11/19/14 18:18, Bertrand Janin wrote:
 Dutch Ingraham wrote :
 Just asking for a sanity check.  I tried installing 5.6 from CD on a
 WD1600AAJS HDD and was presented with Available disks are: none.  This
 seems to be a fairly mainstream drive around for several years (mine being
 manufactured in 2010), so I just want to check whether I've missed some
 critical install instruction.  I followed section 4.5 of the FAQ and
 accepted default settings and used entire disk.

 The same install disk has been used without incident on other installations
 and a different OS was installed on the HDD after the attempt chronicled
 above.

 Your suggestions/advice are appreciated.  dmesg to follow:

 

 OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
  dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
 real mem = 8401186816 (8011MB)
 avail mem = 8172158976 (7793MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
 bios0: vendor Dell Inc. version A03 date 02/13/2010
 bios0: Dell Inc. OptiPlex 780
...
 pciide0 at pci0 dev 3 function 2 Intel Q45 PT IDER rev 0x03: DMA
 (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
 pciide0: using apic 8 int 18 for native-PCI interrupt
 pciide0: channel 0 ignored (not responding; disabled or no drives?)
 pciide0: channel 1 ignored (not responding; disabled or no drives?)
...
 pciide1 at pci0 dev 31 function 2 Intel 82801H RAID rev 0x02: DMA, channel
 0 wired to native-PCI, channel 1 wired to native-PCI
 pciide1: using apic 8 int 18 for native-PCI interrupt
...
 I don't think it's a drive problem, it doesn't seem to find your disk
 controller at all. I would go in the BIOS and play with the disk controller
 settings.

 -b

Absolutely.  Disks are disks.  it's the interface that you were missing.


 Excellent - thank you, Bertrand.
 
 For anyone else with this particular issue and BIOS version, note that 
 the SATA Operation option may need to be set to legacy.

That's best avoided, and I suspect you can.
I suspect you went from Worst setting to second worst setting.
Looks like your system was set to RAID originally.  Most of these
systems have two options -- AHCI and Legacy, some have the third
option of RAID.  You don't want RAID...it is software-only RAID, and
under some conditions you can have the BIOS clobber data on the second
disk that your non-SW RAID OS set up as a second disk.

OpenBSD was one of the first OSs to disable the support of those
controlers in that mode to prevent problems, but at least some Linux
systems do now, too.

AHCI is a huge performance boost over legacy in general, and in some
cases, the legacy support is horrifically slow, slower than the old
pciide interfaces that never dreamed of AHCI.

Good news is if you flip it from Legacy to AHCI, things will Just
Work if you used DUIDs during setup.

Nick.



Re: Postfix SASL auth problem in OpenBSD 5.6

2014-11-19 Thread Philip Guenther
On Mon, Nov 17, 2014 at 12:22 PM, giacomo luis...@tin.it wrote:
 On 16.11.14, 20:25, Philip Guenther wrote:
 On Sat, Nov 15, 2014 at 7:00 AM, giacomo luis...@tin.it wrote:
  Recently I have upgrade my system from OpenBSD 5.4 to 5.5 and 5.6.
  In old system I installed the port of Postfix with SASL and MySQL support.
  In the 5.4 the program work fine. After the two aupgrade with the same
  configuration I have problem with authentication.

 What crypt(3) format was used for the passwords?

 In OpenBSD 5.6, support for MD5-style passwords where the hashed
 password starts with $1$ has been removed.

 Thanks for your replay,
 I use Cyrus SASL library. The configuration of Postfix is the same in
 5.4, 5.5 and 5.6 system but in 5.4 run well and the later not run.

Let me try again.

Your postfix+cyrus-sasl setup is storing passwords, in *some*
checkable form, *somewhere*.

Since this is cyrus-sasl, there are many possible places it could
store them.  You mention mysql, so maybe it's storing them there?
Let's assume that.

So, that leaves the *format* that they are stored in.  *If* cyrus-sasl
is storing them in crypt's MD5 format, then this would explain the
problem: support for the MD5 format was removed from OpenBSD in 5.6.
That's the most obvious explanation (to me) for why your setup stopped
working, but we really don't have much to go on.

But hey, they're your passwords, in a black box that you...don't know
how to look into?  Maybe you should familiarize yourself with how
they're stored?  I suggest that you read the cyrus-sasl docs and
webpages and see what's in your config file and from that figure out
what's going on.


Philip Guenther



Re: Apache 1.3 vs. nginx vs. base httpd

2014-11-19 Thread Bogdan Andu
Hi,
Thank you for insights,
I see that scripts written in Perl need a special Perl that supports FastCGI
(see FastCGI Programmer's Guide - Chapter 3, Developing FastCGI Applications
in Perl)
..snip..
The FastCGI-savvy binaries are extensions of standard Perl, and are intended
to replace your existing Perl installation...snip..
This is not something I want. I want to use OS's Perl distribution with tools
that work directly with standard distribution.
May be it is time to consider the possibility to convert Perl/Apache/mod_perl
scripts to Erlang Yaws/Mochiweb/WebMachine/Cowboy or even Nitrogen framework.
Another question because I use Erlang on OpenBSD ...
I applied patches from R15B02 to OTP 17.3 and it seems to work as expected
(stress tests, etc). Do you think it is safe this for production environment
as I want to migrate the R14B04 applications to OTP 17.3 ?

It is scheduled for near future to upgrade OTP from R15B02 to 17.3 ?

Bogdan

|   |
|   |   |   |   |   |
| FastCGI Programmer's Guide - Chapter 3, Developing FastCGI Applications in
Perl[Top] [Prev] [Next] [Bottom] 3 Developing FastCGI Applications in Perl
This chapter explains how to code FastCGI applications in Perl.  |
|  |
| View on www.fastcgi.com | Preview by Yahoo |
|  |
|   |

  

 On Thursday, November 13, 2014 9:36 PM, Stuart Henderson
s...@spacehopper.org wrote:


 On 2014-11-13, Bogdan Andu bo...@yahoo.com wrote:
 Are Perl scripts in FastCGI evaluated in same manner like in mod_perl, or
 everytime a script is invoked by the server the Perl interpreter is invoked
 also ?

If you run them via slowcgi, the interpreter+script will be started from
scratch each time.

To have a persistent Perl process, convert your script to talk FastCGI
directly (see ports/www/fcgi) or via PSGI and a fastcgi adapter, or use
some framework that supports it (in Perl-land you might want to look at
frameworks like Mojolicious, Dancer etc).

 I want to setup a 5.6 machine and test all these cool stuff but for the
moment
 I don't have access to such machine and I would like to see what other
poeple
 experienced with this httpd(8) daemon .

httpd was *very* new in 5.6, you want something newer (-current, or
keep your eye out for patches). If you want to play with fcgi before
updating, nginx and lighttpd support it natively, and apache via a
module - it isn't something new, it has been around for years, it's
pretty much the only standard way to handle cgi-like scripting in a
non-forking webserver. Config methods differ, but scripts should be
portable between all the various http servers.