Re: Kernel error with March 20th amd64 snapshot
Hi Martin Just to add another dimension to this, the same snapshot caused a suspend resume regession for me (I also get a crash if I replug the wireless keyboard/mouse). If I try to suspend with or without a USB flash drive attached I get the same crash. The trace etc below looks fairly similar to what is already reported. Also, before this I was unable to suspend whenever I had a USB flash drive attached, whether it was mounted or not. The system wouldn't actually crash, it would just automatically resume as soon as it was suspended. I think this started around a month or so ago and there were no suspend problems before that. Thanks, Peter OpenBSD 5.5-current (GENERIC.MP) #16: Sat Mar 22 01:04:40 MDT 2014 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3193958400 (3045MB) avail mem = 3100270592 (2956MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0450 (77 entries) bios0: vendor Dell Inc. version 2.6.4 date 03/01/2010 bios0: Dell Inc. OptiPlex 745 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET SSDT SSDT SSDT acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Pentium(R) D CPU 3.40GHz, 3389.50 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,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF cpu0: 2MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 199MHz cpu0: mwait min=64, max=64 cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Pentium(R) D CPU 3.40GHz, 3389.03 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,DTES64,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR,PDCM,NXE,LONG,LAHF cpu1: 2MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 8 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 4 (PCI4) acpiprt1 at acpi0: bus 2 (PCI2) acpiprt2 at acpi0: bus -1 (PCI3) acpiprt3 at acpi0: bus 1 (PCI1) acpiprt4 at acpi0: bus 3 (PCI5) acpiprt5 at acpi0: bus -1 (PCI6) acpiprt6 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0: PSS acpicpu1 at acpi0: PSS acpibtn0 at acpi0: VBTN cpu0: Enhanced SpeedStep 3389 MHz: speeds: 3400, 2400 MHz memory map conflict 0xbf603c00/0x9fc400 pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel 82Q965 Host rev 0x02 ppb0 at pci0 dev 1 function 0 Intel 82Q965 PCIE rev 0x02: msi pci1 at ppb0 bus 1 vga1 at pci0 dev 2 function 0 Intel 82Q965 Video rev 0x02 intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1 drm0 at inteldrm0 inteldrm0: 1024x768 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) Intel 82Q965 Video rev 0x02 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x02: apic 8 int 16 uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x02: apic 8 int 17 ehci0 at pci0 dev 26 function 7 Intel 82801H 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 azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02: msi azalia0: codecs: Analog Devices AD1983 audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x02: msi pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 4 Intel 82801H PCIE rev 0x02: msi pci3 at ppb2 bus 3 bge0 at pci3 dev 0 function 0 Broadcom BCM5754 rev 0x02, BCM5754/5787 A2 (0xb002): msi, address 00:18:8b:66:ff:e6 brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0 uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x02: apic 8 int 23 uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x02: apic 8 int 17 uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x02: apic 8 int 18 ehci1 at pci0 dev 29 function 7 Intel 82801H 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 0xf2 pci4 at ppb3 bus 4 pcib0 at pci0 dev 31 function 0 Intel 82801H LPC rev 0x02 pciide0 at pci0 dev 31 function 2 Intel 82801H SATA rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 8 int 20 for native-PCI interrupt wd0 at pciide0 channel 0 drive 0: ADATA SP800 wd0: 16-sector PIO, LBA48, 30533MB, 62533296 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 atapiscsi0 at pciide0 channel 1
Re: Kernel error with March 20th amd64 snapshot
please try the following patch. Index: uhidev.c === RCS file: /cvs/src/sys/dev/usb/uhidev.c,v retrieving revision 1.56 diff -u -p -r1.56 uhidev.c --- uhidev.c19 Mar 2014 08:59:37 - 1.56 +++ uhidev.c23 Mar 2014 10:45:14 - @@ -387,7 +387,8 @@ uhidev_detach(struct device *self, int f * IDs, this is a hack since we need a dev - Report ID mapping * for uhidev_intr(). */ - if (sc-sc_nrepid 0 sc-sc_subdevs[0] == sc-sc_subdevs[1]) + if (sc-sc_nrepid 0 sc-sc_subdevs[0] != NULL + sc-sc_subdevs[0] == sc-sc_subdevs[1]) return (config_detach(sc-sc_subdevs[0]-sc_dev, flags)); for (i = 0; i sc-sc_nrepid; i++) {
dnsmasq + nsd ?
As I have seen openbsd is removing bind from base (which point I don't discuss), has anyone successfully used dnsmasq + nsd ? Dnsmasq can act as dhcp + dhcpv6 + radvd + dns caching server. So it's pretty good to replace many different softwares. And it would allow to implement bind views as request from the lan would be addressed to dnsmasq, resolving also ipv6 if well setup, and request coming from the rest of the internet would go to nsd (which serves also dnssec keys...). [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
dnssec on openbsd domains
As openbsd has a great reputation for security, I wonder if there's a plan to setup dnssec on all domains (I have checked www.openbsd.org and www.opensmtpd.org and no good result from now) ? [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
crypto vnd(4) question
Hello, I would like to ask you. Does anybody have a real life experience with a few TB large encrypted vnd(4) image which hosts a filesystem which is intensively written to and read from? In such a setup where the host device is a 4k-byte sector drive and the vnd(4) emulates a 512-byte sector device, is it robust enough? I suppose the vnd sectors would be used in groups of eight or more (4096-byte fragments) and would be aligned to the host drive sectors. Are there any issues? Is the double filesystem overhead and double buffering a problem? AFAIK, it is the only alternative to softraid crypto discipline for 4k-byte sector drives now. Thank you. Regards, David
Recovery after pwd.db corruption ?
Hello, After a power-loss, my server rebooted and gave at start : starting network daemons: sshdMar 23 07:59:40 su: /etc/pwd.db: Inappropriate file type or format (failed) smtpdMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type or format (failed). starting local daemons: cronMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type or format (failed). OpenBSD/socppc (asphyx) (console) login: root Password: Login incorrect login: Is there a way to repair without putting out the drive ? (it is an OpenBSD5.4 on a RB600a) Thank you in advance, Denis
Re: Recovery after pwd.db corruption ?
The following recipe might help: boot bsd.rd (s) for shell fsck your root filesystem mount your root filesystem on /mnt fsck the filesystems specified in /mnt/etc/fstab Mount at least your /usr partition, but on /mnt/usr You will need it to run the pwd_mkdb command Run the following: /mnt/usr/sbin/pwd_mkdb -d /mnt/etc master.passwd Good luck. There is a simpler path of course. Do an upgrade to the same era of code you were running. Behind the scenes, it will perform this same action. After a power-loss, my server rebooted and gave at start : starting network daemons: sshdMar 23 07:59:40 su: /etc/pwd.db: Inappropriate file type or format (failed) smtpdMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type or format (failed). starting local daemons: cronMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type or format (failed). OpenBSD/socppc (asphyx) (console) login: root Password: Login incorrect login: Is there a way to repair without putting out the drive ? (it is an OpenBSD5.4 on a RB600a) Thank you in advance, Denis
Re: Recovery after pwd.db corruption ?
On Sun, Mar 23, 2014 at 22:02, Denis Fondras wrote: Hello, After a power-loss, my server rebooted and gave at start : starting network daemons: sshdMar 23 07:59:40 su: /etc/pwd.db: Inappropriate file type or format (failed) smtpdMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type If /etc/master.passwd is still whole, run pwd_mkdb /etc/master.passwd.
Re: Recovery after pwd.db corruption ?
Thank you very much Ted Theo ! :)
Re: crypto vnd(4) question
On Sun, 23 Mar 2014 19:17:58 +0100 (CET) David Vasek va...@fido.cz wrote: Hello, I would like to ask you. Does anybody have a real life experience with a few TB large encrypted vnd(4) image which hosts a filesystem which is intensively written to and read from? In such a setup where the host device is a 4k-byte sector drive and the vnd(4) emulates a 512-byte sector device, is it robust enough? I suppose the vnd sectors would be used in groups of eight or more (4096-byte fragments) and would be aligned to the host drive sectors. Are there any issues? Is the double filesystem overhead and double buffering a problem? AFAIK, it is the only alternative to softraid crypto discipline for 4k-byte sector drives now. Thank you. Regards, David Hi, I have two external USB disks, 3TB and 4TB, in use like that. So far no problems, even after hard reboots (power outage). They are used for backups, and it's USB 2.0 - so I can't really say much about intense writing... kind regards, Robert
Re: Unbound in base, yes, what about ldns?
On Thu, Mar 20, 2014 at 7:39 PM, Stuart Henderson s...@spacehopper.org wrote: You can uninstall the package if you don't need it, or you can keep it if you do need it (for example, for drill or the ldns-* tools). How about this line added to rc.conf.local when using the package: syslogd_flags=${syslogd_flags} -a /var/unbound/dev/log Is it still needed or should it be removed? Thanks, Chris
Re: Questions about monitoring LAN traffic with openbsd/pf/pflog/pflow
Em 22-03-2014 08:39, Florian Obser escreveu: On Thu, Mar 20, 2014 at 06:14:39PM -0300, Giancarlo Razzolini wrote: AFAIK, using anything beside proto 5 on pflow interfaces is broken, at least on OpenBSD 5.4. I know there were some recent work in this area that solves this issue. Nope, proto 9 was allways working. proto 10 had the problem that it was sending templates / flows that were technically correct, but there is no known receiver which could actually parse them ;) This was fixed in rev 1.34 of pflow.c (August 13th 2013) and will be in 5.5. I must been fooled by nfsen and my poor job in cleaning things then. I tried 9 before reverting to 5, but I believe that I didn't cleaned the files prior to the test. Anyway, I knew that 10 was broken and is fixed to be in 5.5. I an expecting it, eagerly. Cheers, -- Giancarlo Razzolini GPG: 4096R/77B981BC
Openbsd 4.1 Routing Issues
Hello to all, I had try to set up openbsd as home router but eventually it fail to function properly. External Interface (vr0) 192.168.1.2 255.255.255.0 none Internal Interface (rl0) 172.16.10.1 255.255.255.0 none Wireless Interface (ath0) 192.168.5.1 255.255.255.0 none *Routing Table* (route show | more) Destination Gateway Flags Interface default 175.13.8.127.254 UGS tun0 loopback loopback UGRS lo0 loopback loopback UH lo0 172.16.10/24 link#2 UC rl0 172.16.10.3 inet6 UHLC rl0 175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0 192.168.1/24 link#1 UC vr0 192.168.5/24 link#3 UC ath0 My wireless interface light is keep on blinking rather stay on stable mode. *Packet Filter Rules* (pfcrt -sr) nat on vr0 from !(vr0) to any - (vr0) round-robin scrub on vr0 all no-df fragment reassemble scrub on vr0 all reassemble tcp block drop in log on vr0 all pass out quick on ath0/rl0 keep state. Please help me why my pc cannot connect to internet. My pc can even ping external interface ip address (192.168.1.2) but it shows no internet access. My external interface connects to a modem with ip address of 192.168.1.254. Please help. -- Linux
Re: Openbsd 4.1 Routing Issues
It appears, at first glance, that your default route is incorrect. Is your external IP address assigned statically or by DHCP? If statically, then you will want to edit /etc/mygate to set your default route correctly. (Also, are you really running OpenBSD version 4.1, and if so, why???) -Adam On March 23, 2014 11:44:00 PM CDT, Wong Peter peterap...@gmail.com wrote: Hello to all, I had try to set up openbsd as home router but eventually it fail to function properly. External Interface (vr0) 192.168.1.2 255.255.255.0 none Internal Interface (rl0) 172.16.10.1 255.255.255.0 none Wireless Interface (ath0) 192.168.5.1 255.255.255.0 none *Routing Table* (route show | more) Destination Gateway Flags Interface default 175.13.8.127.254 UGS tun0 loopback loopback UGRS lo0 loopback loopback UH lo0 172.16.10/24 link#2 UC rl0 172.16.10.3 inet6 UHLC rl0 175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0 192.168.1/24 link#1 UC vr0 192.168.5/24 link#3 UC ath0 My wireless interface light is keep on blinking rather stay on stable mode. *Packet Filter Rules* (pfcrt -sr) nat on vr0 from !(vr0) to any - (vr0) round-robin scrub on vr0 all no-df fragment reassemble scrub on vr0 all reassemble tcp block drop in log on vr0 all pass out quick on ath0/rl0 keep state. Please help me why my pc cannot connect to internet. My pc can even ping external interface ip address (192.168.1.2) but it shows no internet access. My external interface connects to a modem with ip address of 192.168.1.254. Please help. -- Linux -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: Openbsd 4.1 Routing Issues
Whoops, I just noticed the PPPoE link. You might try manually overriding the default route to see if that solves your problem. I'm sorry I don't remember the exact syntax needed to do this offhand. I know under Linux it would be route add default dev tun0, but I'm not sure of the OpenBSD syntax, as I'm not at my computer right now. -Adam On March 23, 2014 11:44:00 PM CDT, Wong Peter peterap...@gmail.com wrote: Hello to all, I had try to set up openbsd as home router but eventually it fail to function properly. External Interface (vr0) 192.168.1.2 255.255.255.0 none Internal Interface (rl0) 172.16.10.1 255.255.255.0 none Wireless Interface (ath0) 192.168.5.1 255.255.255.0 none *Routing Table* (route show | more) Destination Gateway Flags Interface default 175.13.8.127.254 UGS tun0 loopback loopback UGRS lo0 loopback loopback UH lo0 172.16.10/24 link#2 UC rl0 172.16.10.3 inet6 UHLC rl0 175.130.127.254 175.135.116.213 (PPPOE IP address) UH tun0 192.168.1/24 link#1 UC vr0 192.168.5/24 link#3 UC ath0 My wireless interface light is keep on blinking rather stay on stable mode. *Packet Filter Rules* (pfcrt -sr) nat on vr0 from !(vr0) to any - (vr0) round-robin scrub on vr0 all no-df fragment reassemble scrub on vr0 all reassemble tcp block drop in log on vr0 all pass out quick on ath0/rl0 keep state. Please help me why my pc cannot connect to internet. My pc can even ping external interface ip address (192.168.1.2) but it shows no internet access. My external interface connects to a modem with ip address of 192.168.1.254. Please help. -- Linux -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: Kernel error with March 20th amd64 snapshot
Hello By the time I had downloaded the cvs tree it seems a slightly modified version of Andre's patch had been committed. I tested with that and it fixed my crash on suspend problem (I could also replug the keyboard/mouse). However, the problem of an automatic resume when a USB drive is attached on suspend still persists. Thanks, Peter On Sun, Mar 23, 2014 at 11:52 PM, Andre de Oliveira deoliveira...@googlemail.com wrote: please try the following patch. Index: uhidev.c === RCS file: /cvs/src/sys/dev/usb/uhidev.c,v retrieving revision 1.56 diff -u -p -r1.56 uhidev.c --- uhidev.c19 Mar 2014 08:59:37 - 1.56 +++ uhidev.c23 Mar 2014 10:45:14 - @@ -387,7 +387,8 @@ uhidev_detach(struct device *self, int f * IDs, this is a hack since we need a dev - Report ID mapping * for uhidev_intr(). */ - if (sc-sc_nrepid 0 sc-sc_subdevs[0] == sc-sc_subdevs[1]) + if (sc-sc_nrepid 0 sc-sc_subdevs[0] != NULL + sc-sc_subdevs[0] == sc-sc_subdevs[1]) return (config_detach(sc-sc_subdevs[0]-sc_dev, flags)); for (i = 0; i sc-sc_nrepid; i++) {