digitemp/usb
Hi has someone used digitemp with usb adapter on openbsd ? i currently test digitemp 3.5.0 on 4.0-stable with a ds9490R usb adapter and it segfault like this $ ./digitemp_DS2490 -s /dev/ttyU1 -w DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane GNU Public License v2.0 - http://www.digitemp.com Found DS2490 device #1 at /dev/usb0//dev/ugen0 Segmentation fault (core dumped) thanks a lot Regards Julien note: - used with libusb-0.1.10ap1 - no return on dt-general@
Re: digitemp/usb
On Sat, Feb 10, 2007 at 12:49:04PM +0100, Julien TOUCHE wrote: Hi has someone used digitemp with usb adapter on openbsd ? i currently test digitemp 3.5.0 on 4.0-stable with a ds9490R usb adapter and it segfault like this $ ./digitemp_DS2490 -s /dev/ttyU1 -w DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane GNU Public License v2.0 - http://www.digitemp.com Found DS2490 device #1 at /dev/usb0//dev/ugen0 Segmentation fault (core dumped) thanks a lot Regards Julien note: - used with libusb-0.1.10ap1 - no return on dt-general@ There is in kernel support for USB one wire devices post 4.0, perhaps try a snapshot, then you'll be able to read values out of the sysctl tree. Failing that you want to do: gdb ./digitemp_DS2490 core digitemp_DS249.core bt then reproduce the output of that to the author of the software.
Re: searching a good MRTG/SNMP configuration
On Sun, Feb 04, 2007 at 04:04:56PM +0100, Henning Brauer wrote: * Andreas Bihlmaier [EMAIL PROTECTED] [2007-02-04 14:04]: I guess somebody using OpenBSD already has a nice MRTG configuration showing: IN/OUT traffic [CPU] load memory usage some stuff about pf (states, blocks/pass) (using this patch: http://www.packetmischief.ca/openbsd/snmp/) save yourself the trouble and just go for ports/sysutils/symon/ Thanks everybody who responded. I eventually went with symon and used a shell script based on: http://www.benzedrine.cx/statistics.html but heavily modified. Results: http://bihlmaier.org/stats Problems: - The new two-level sensor framework is not supported, meaning sensor() is useless ATM. - df() did not give usefull stats. If somebody has further suggestions or is interested in my setup (every hosts generates graphs, pushes them to central host, which creates html pages) please contact me on or off list. Regards, ahb
Re: digitemp/usb
Jonathan Gray wrote on 10/02/07 13:52: There is in kernel support for USB one wire devices post 4.0, perhaps try a snapshot, then you'll be able to read values out of the sysctl tree. seems great http://www.openbsd.org/cgi-bin/man.cgi?query=uowsektion=4format=html Failing that you want to do: gdb ./digitemp_DS2490 core digitemp_DS249.core bt then reproduce the output of that to the author of the software. already done without much return for now. thanks Regards Julien
Re: searching a good MRTG/SNMP configuration
On 10/02/07, Andreas Bihlmaier [EMAIL PROTECTED] wrote: On Sun, Feb 04, 2007 at 04:04:56PM +0100, Henning Brauer wrote: * Andreas Bihlmaier [EMAIL PROTECTED] [2007-02-04 14:04]: I guess somebody using OpenBSD already has a nice MRTG configuration showing: IN/OUT traffic [CPU] load memory usage some stuff about pf (states, blocks/pass) (using this patch: http://www.packetmischief.ca/openbsd/snmp/) save yourself the trouble and just go for ports/sysutils/symon/ Thanks everybody who responded. I eventually went with symon and used a shell script based on: http://www.benzedrine.cx/statistics.html but heavily modified. Results: http://bihlmaier.org/stats Problems: - The new two-level sensor framework is not supported, meaning sensor() is useless ATM. There is a patch for symon for allowing it to adapt to the old one-level or the new two-level sensor framework at compile time: http://marc.theaimsgroup.com/?l=openbsd-portsm=116917726601827w=2 Willem Dijkstra, author of symon, has this patch, but he told me he is too overwhelmed with other work, so I don't know if a new version of symon is coming out anytime soon. Maybe someone could put this patch into the ports tree before OpenBSD 4.1 freeze? Cheers, Constantine.
Re: OpenBSD on Xeon 64 bit
Alvaro wrote: Hi, I like to know if the OpenBSD for amd64 is working fine with intel Xeon processors (64 bit). I am reading here ( http://en.wikipedia.org/wiki/AMD64 ) and here ( http://en.wikipedia.org/wiki/Xeon#Xeon_.26_Xeon_MP_.2864-bit.29 ) that these processors are based on AMD64 instruction set. The openBSD faq for AMD64 said: All versions of the AMD Athlon 64 processors and their clones are supported. I assume that their clones are the processors based on AMD64 instruction set...like this xeon. Am i wrong? Right now they are working very well with the OpenBSD i386 release. They will probably work just fine with amd64, then, assuming you have the newer versions which clone the amd64 instruction sets moderately well, as opposed to the older ones that didn't. That's the general answer based on a general question. To know how it works in YOUR case, you would have to provide exact details of your machine and hope someone recognizes it as exactly one that they have in service as you are planning on using yours, and that you don't get mislead by people who THINK their machine is just like yours, but is very different in subtle but critical ways... .. OR, since you already have the machine, try it out! Nothing beats working fine tests done on your own hardware on your own application. Nick.
Re: Dummy Interface In OpenBGPd
On 2007/02/07 13:36, Claudio Jeker wrote: Btw. for ospfd you can use interface lo1 to reliably redistribute the loopback address. I have configured a router with yyy.yy.yyy.247/32 on lo1 and yyy.yy.yyy.247/28 on vlan2244. This seems attractive since BGP sessions can be bound to an address which is available (at least over one of my metro links) whether or not OSPF is running - (not to mention because I am working in a fairly small PI block and would really like to avoid burning another /28 ;-) The vlan already has a router acting as DR. If I configure vlan2244 before lo1, all is well, associations are formed, prefixes are seen. If I configure lo1 before vlan2244 (default order for /etc/netstart), ospfd doesn't act on any packets coming from the DR, it believes that it should be DR itself, but no outbound packets are seen by tcpdump -i vlan2244 (or -i lo1). I can work-around this at startup by altering netstart as follows, but I wondered:- 1) is this an acceptable work-around? 2) should ospfd handle this any differently? 3) is it bloody stupid to be doing this? --- netstart.orig Wed Nov 22 20:21:41 2006 +++ netstartSat Feb 10 13:32:09 2007 @@ -289,7 +289,7 @@ # Configure all the non-loopback interfaces which we know about, but # do not start interfaces which must be delayed. # Refer to hostname.if(5) and bridgename.if(5) -ifmstart trunk vlan carp gif gre pfsync pppoe +ifmstart trunk vlan carp gif gre pfsync pppoe lo if [ $ip6kernel = YES -a x$rtsolif != x ]; then fw=`sysctl -n net.inet6.ip6.forwarding` @@ -311,7 +311,7 @@ # The pfsync interfaces need to come up before carp. # Configure all the carp interfaces which we know about. # They must come up after pfsync but before default route. -ifmstart trunk vlan pfsync carp +ifmstart trunk vlan pfsync carp lo # /etc/mygate, if it exists, contains the name of my gateway host # that name must be in /etc/hosts. -- -- -- -- -- -- -- -- # ls -l `which ospfd` -r-xr-xr-x 1 root bin 108900 Feb 7 00:47 /usr/sbin/ospfd # cat /etc/ospfd.conf router-id yyy.yy.yyy.247 auth-type crypt auth-md 1 YlqnfuTjFhs7v6 auth-md-keyid 1 hello-interval 2 router-dead-time 10 area 0.0.0.0 { interface lo1 interface vlan2244 { metric 20 } } # sh /etc/netstart lo1 vlan2244 # ospfd -d startup orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface vlan2244 if_fsm: event UP resulted in action START and changing state for interface vlan2244 from DOWN to WAIT start_spf_timer: IDLE - DELAY spf_calc: calculation started, area ID 0.0.0.0 spf_calc: calculation ended, area ID 0.0.0.0 spf_start_holdtimer: DELAY - HOLD spf_timer: state HOLD - IDLE if_act_elect: interface vlan2244 old dr none new dr yyy.yy.yyy.247, old bdr none new bdr none orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface vlan2244 orig_rtr_lsa: area 0.0.0.0 orig_rtr_lsa: stub net, interface vlan2244 if_fsm: event WAITTIMER resulted in action ELECT and changing state for interface vlan2244 from WAIT to DR ^Z[1] + Suspendedospfd -d # bg [1] ospfd -d # tcpdump -nilo1 tcpdump: listening on lo1, link-type LOOP ^C 0 packets received by filter 0 packets dropped by kernel # tcpdump -nivlan2244 tcpdump: listening on vlan2244, link-type EN10MB 14:23:12.018878 SSTP STP config root=88c4.0:c:31:64:f7:0 rootcost=0 bridge=88c4.0:c:31:64:f7:0 port=11 ifcost=128 age=0/0 max=20/0 hello=2/0 fwdelay=15/0 pvid=2244 14:23:12.357744 yyy.yy.yyy.243 224.0.0.5: OSPFv2-hello 44: rtrid yyy.yy.yyy.3 backbone dr yyy.yy.yyy.243 [tos 0xc0] [ttl 1] 14:23:14.018983 SSTP STP config root=88c4.0:c:31:64:f7:0 rootcost=0 bridge=88c4.0:c:31:64:f7:0 port=11 ifcost=128 age=0/0 max=20/0 hello=2/0 fwdelay=15/0 pvid=2244 14:23:14.367676 yyy.yy.yyy.243 224.0.0.5: OSPFv2-hello 44: rtrid yyy.yy.yyy.3 backbone dr yyy.yy.yyy.243 [tos 0xc0] [ttl 1] 14:23:16.019399 SSTP STP config root=88c4.0:c:31:64:f7:0 rootcost=0 bridge=88c4.0:c:31:64:f7:0 port=11 ifcost=128 age=0/0 max=20/0 hello=2/0 fwdelay=15/0 pvid=2244 14:23:16.377767 yyy.yy.yyy.243 224.0.0.5: OSPFv2-hello 44: rtrid yyy.yy.yyy.3 backbone dr yyy.yy.yyy.243 [tos 0xc0] [ttl 1] ^C -- -- -- -- -- -- -- --
Writing Device Drivers Dokumentation
Hello! I would like to write a framebuffer driver for OpenBSD (for the MS Xbox platform). Where can I find documentation about writing OpenBSD drivers in general or especially for framebuffers? Thanks in advance, Markus Ritzer
kernel debug simple question
hi there, i am trying to troubleshoot a usb external disk. the disk detaches while mounted and used. how can i umount / before i am going to reboot? syncing cannot work in this case of course, but that leaves only the external disk in a dirty state, not my /, hence the question. is it possible to do it before getting dropped into ddb? or is it possible to do it from ddb? some posts past implied that anything is possible from ddb :D -f -- why is the alphabet in that order? is it because of that song?
Re: pcn in VMware, 5KB/s
Brad Brad wrote: Scp's between the guest and host only manage about 5KB/s so I tried going back to le which worked great. I configured a new kernel with disable pcn* but on next boot I had no nics at all, so i tried again disable pci* also since I think le is isa, but it still didn't work. That's strange that pcn is giving you worse performance than le. I've had performance problems under VMware (ESX 2.x) where the host's NIC is hard-set speed and duplex, and the guest winds up with a ton of collisions, and setting the duplex in the guest doesn't make a difference. Maybe that's the case here? You could always try using vmxnet/vic.
Re: external usb disk freezing machine (not always)
hi there, some more updates.. feels a bit like talking to myself :} i have compiled a custom kernel with options UMASSDEBUG, UHUBDEBUG. there is a log attached to this mail showing as the disk is attached to the first usb (high speed) port (@17:27:36) and then to the second (high speed) port (@17:29:07). at the end of this session, my usb mouse stopped working also and i had to reinsert it into a high speed port. furthermore, i have found out, that the disk works flawlessly *if* plugged into the usb1 port and misbehaves in the high speed usb2 port: amaaq usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 addr 3: full speed, self powered, config 1, External HDD(0x0900), Western Digital(0x1058), rev 0.00 ^^ port 2 addr 2: low speed, power 100 mA, config 1, NetScroll+ Traveler(0x002e), KYE(0x0458), rev 0.00 Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered this session is still alive and well after more than an hour, while if in an usb2 port, in a matter of a couple of minutes, or sometimes instantly, it detaches. for watching movies it is kind of enough i guess :D i am wondering, maybe a quirk is needed for this drive? if yes, how does one go about finding what and where? it's older brother, a 200G model (also WD) worked fine before, but i have sold it, and can't test it anymore... one more thing i have noticed, gkrellm actually shows read/write stats when the disk is in usb1 and shows nothing when in usb2 port, unless the disk was present at boot time... also, usbdevs(8) blanks these stats for a couple of seconds (shows only 0) but then resumes later. i am starting to run out of ideas, so any help is welcome... Feb 10 17:17:52 amaaq /bsd: OpenBSD 4.0-current (GENERIC.usb) #0: Sat Feb 10 16:26:16 CET 2007 Feb 10 17:17:52 amaaq /bsd: [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.usb Feb 10 17:17:52 amaaq /bsd: cpu0: Intel(R) Pentium(R) M processor 1.80GHz (GenuineIntel 686-class) 1.80 GHz Feb 10 17:17:52 amaaq /bsd: cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2 Feb 10 17:17:52 amaaq /bsd: real mem = 535326720 (522780K) Feb 10 17:17:52 amaaq /bsd: avail mem = 480227328 (468972K) Feb 10 17:17:52 amaaq /bsd: using 4256 buffers containing 26890240 bytes (26260K) of memory Feb 10 17:17:52 amaaq /bsd: mainbus0 (root) Feb 10 17:17:52 amaaq /bsd: bios0 at mainbus0: AT/286+ BIOS, date 03/23/05, BIOS32 rev. 0 @ 0xfd700, SMBIOS rev. 2.31 @ 0xd6010 (31 entries) Feb 10 17:17:53 amaaq /bsd: bios0: TOSHIBA Satellite M30X Feb 10 17:17:53 amaaq /bsd: apm0 at bios0: Power Management spec V1.2 Feb 10 17:17:53 amaaq /bsd: apm0: AC on, battery charge unknown Feb 10 17:17:53 amaaq /bsd: apm0: flags 30102 dobusy 0 doidle 1 Feb 10 17:17:53 amaaq /bsd: pcibios0 at bios0: rev 2.1 @ 0xfd700/0x900 Feb 10 17:17:53 amaaq /bsd: pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf20/192 (10 entries) Feb 10 17:17:53 amaaq /bsd: pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00) Feb 10 17:17:53 amaaq /bsd: pcibios0: PCI bus #3 is the last bus Feb 10 17:17:53 amaaq /bsd: bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd6000/0x800! 0xe/0x4000! Feb 10 17:17:53 amaaq /bsd: acpi at mainbus0 not configured Feb 10 17:17:53 amaaq /bsd: cpu0 at mainbus0 Feb 10 17:17:53 amaaq /bsd: cpu0: Enhanced SpeedStep 1800 MHz (1340 mV): speeds: 1800, 1600, 1400, 1200, 1000, 800, 600 MHz Feb 10 17:17:53 amaaq /bsd: pci0 at mainbus0 bus 0: configuration mode 1 (no bios) Feb 10 17:17:53 amaaq /bsd: pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02 Feb 10 17:17:53 amaaq /bsd: Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured Feb 10 17:17:53 amaaq /bsd: Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not configured Feb 10 17:17:53 amaaq /bsd: ppb0 at pci0 dev 1 function 0 Intel 82852/82855 AGP rev 0x02 Feb 10 17:17:53 amaaq /bsd: pci1 at ppb0 bus 1 Feb 10 17:17:53 amaaq /bsd: vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 NP rev 0x00 Feb 10 17:17:53 amaaq /bsd: wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) Feb 10 17:17:53 amaaq /bsd: wsdisplay0: screen 1-5 added (80x25, vt100 emulation) Feb 10 17:17:53 amaaq /bsd: uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x03: irq 10 Feb 10 17:17:53 amaaq /bsd: usb0 at uhci0: USB revision 1.0 Feb 10 17:17:53 amaaq /bsd: uhub0 at usb0 Feb 10 17:17:53 amaaq /bsd:
Re: pcn in VMware, 5KB/s
Brad Brad [EMAIL PROTECTED] wrote: I'm running OpenBSD 4.0 in VMware workstation 5.5.3 build-34685 linux host. Scp's between the guest and host only manage about 5KB/s so I tried going back to le which worked great. I configured a new kernel with disable pcn* but on next boot I had no nics at all, so i tried again disable pci* also since I think le is isa, but it still didn't work. How can I get the cards to register as le again? le at pci was removed some time ago
Mailgraph with apache chroot
Hello! I have installed an OpenBSD server with postfix MTA and I am trying to have mailgraph work. I used the pkg_add command to add the mailgraph software. The script cgi script is installed in the default chroot apache: /var/www/cgi-bin/mailgraph/mailgraph.cgi I have defined the correct directory values in the cgi file. When I go the the web page I get this error: Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for module RRDs: Cannot load specified object at /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230. at /cgi-bin/mailgraph/mailgraph.cgi line 7 Compilation failed in require at /cgi-bin/mailgraph/mailgraph.cgi line 7. BEGIN failed--compilation aborted at /cgi-bin/mailgraph/mailgraph.cgi line 7. [Sat Jan 6 15:28:33 2007] [error] [client 192.168.0.100] Premature end of script headers: /cgi-bin/mailgraph/mailgraph.cgi The actual perl modules are copied in the chroot environment: # ls -al /var/www/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so -rwxr-xr-x 1 root bin 123336 Jan 4 07:13 /var/www/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so # ls -al /var/www/usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm -r--r--r-- 1 root wheel 28125 Jan 3 23:41 /var/www/usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm # more /var/www/cgi-bin/mailgraph/mailgraph.cgi #!/usr/bin/perl -w # mailgraph -- a postfix statistics rrdtool frontend # copyright (c) 2000-2005 David Schweikert dws AT ee POINT ethz.ch # released under the GNU General Public License use RRDs; use POSIX qw(uname); my $VERSION = 1.12; my $host = (POSIX::uname())[1]; my $scriptname = 'mailgraph.cgi'; my $xpoints = 540; my $points_per_sample = 3; my $ypoints = 160; my $ypoints_err = 96; my $rrd = '/mailgraph/mailgraph.rrd'; # path to where the RRD database is my $rrd_virus = '/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is my $tmp_dir = '/mailgraph'; # temporary directory where to store the images Line 7 is the RRDs perl module...it is installed. I did some googling and found this: http://archives.neohapsis.com/archives/openbsd/2006-12/0404.html The solution was to add /usr/X11R6/lib/ to ldconfig... Here is my rc.conf.local: shlib_dirs=/usr/X11R6/lib/# extra directories for ldconfig, separated Then I copied /usr/X11R6/lib/ in the apache chroot: # cp -r /usr/X11R6/lib/ /var/www/usr/X11R6/lib/ Still doesn't work. anyone got any ideas on my probleme? Thank you very much for your help.
Re: MCPAN and Ports issues
On 2/10/07, Bray Mailloux [EMAIL PROTECTED] wrote: /usr/local/libdata/perl5/site_perl/Net/Daemon.pm (same md5) /usr/local/libdata/perl5/site_perl/Net/Daemon/Log.pm (same md5) /usr/local/libdata/perl5/site_perl/Net/Daemon/Test.pm (same md5) /usr/local/man/man3p/Net::Daemon.3p (same md5) /usr/local/man/man3p/Net::Daemon::Log.3p (same md5) /usr/local/man/man3p/Net::Daemon::Test.3p (same md5) /usr/sbin/pkg_add: fatal issues in installing p5-Net-Daemon-0.39 Do these messages mean that the modules are already installed in the system? Yes. You'll have less headache if you install available perl modules from OpenBSD's packages rather that externally. DS
Problems with FreeBSD binary compatibility
Hi, I've been trying to set up FreeBSD binary compatibility on my OpenBSD box but every time I try and run a program, I get the following error message: /libexec/ld-elf.so.1: /lib/libc.so.5: mmap of entire address space failed: Invalid argument I get this with something as simple as trying to execute FreeBSD's ldd. I am currently running OpenBSD 4.0 GENERIC i386. Any suggestions as to how I could get this working would be appreciated. I've gone through the compat_freebsd man page but I still haven't been able to get it working. Thanks Eric
Re: Mailgraph with apache chroot
On 2007/02/10 21:43, doc Hyde wrote: '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for module RRDs: Cannot load specified object at /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230. at /cgi-bin/mailgraph/mailgraph.cgi line 7 Line 7 is the RRDs perl module...it is installed. It works with the following files copied in (obviously adjust for machine arch etc). Found by a combination of ldd /usr/local/bin/rrdtool, and 'sudo ktrace -i chroot /var/www /cgi-bin/mailgraph.cgi' - each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. Quite a nice little program, out of the box it understands Sendmail and Postfix log entries and a whole bunch of mail scanners including my favourite, smtp-vilter. /var/www/usr/bin/perl /var/www/usr/libexec/ld.so /var/www/usr/lib/libc.so.40.3 /var/www/usr/lib/libutil.so.11.0 /var/www/usr/lib/libperl.so.10.1 /var/www/usr/lib/libm.so.2.3 /var/www/usr/lib/librrd.so.0.0 /var/www/usr/lib/libjpeg.so.62.0 /var/www/usr/lib/libfontconfig.so.3.0 /var/www/usr/lib/libfreetype.so.13.1 /var/www/usr/lib/libpng.so.5.1 /var/www/usr/lib/libz.so.4.1 /var/www/usr/lib/libiconv.so.4.0 /var/www/usr/lib/libgd.so.20.33 /var/www/usr/lib/libexpat.so.5.0 /var/www/usr/local/libdata/perl5/site_perl/RRDs.pm /var/www/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/RRDs/RRDs.so /var/www/usr/libdata/perl5/strict.pm /var/www/usr/libdata/perl5/vars.pm /var/www/usr/libdata/perl5/warnings/register.pm /var/www/usr/libdata/perl5/warnings.pm /var/www/usr/libdata/perl5/Carp.pm /var/www/usr/libdata/perl5/Exporter.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/DynaLoader.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/Config.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/DynaLoader/dl_findfile.al /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/autosplit.ix /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/POSIX.so /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/load_imports.al /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/POSIX.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/XSLoader.pm /var/www/usr/libdata/perl5/AutoLoader.pm
malloc guard page question
Hi everyone, Recently I have been going over a bunch of the documents in openbsd.org/papers in order to write an overview of the security features in OpenBSD for school. I have a small question concerning the malloc G option. Theo basically says this in slide: (http://www.openbsd.org/papers/ven05-deraadt/mgp00028.html) - [...SNIP...] malloc.conf 'G' option: [...SNIP...] Cannot enabled by default yet. Maybe never, but we will see. --- This was written in 2005 (2 years ago). I installed 4.0 and read through the man page of malloc, and I didn't find any indication that the G option is enabled by default yet (couldn't find the answer on google either). My question is the following: Is there any plans to enable the guard page feature of malloc ('G' option) in the future? Is so any timetable? Thank you for your time, Jd
Re: Mailgraph with apache chroot
On 2/10/07, Stuart Henderson [EMAIL PROTECTED] wrote: On 2007/02/10 21:43, doc Hyde wrote: '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for module RRDs: Cannot load specified object at /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230. at /cgi-bin/mailgraph/mailgraph.cgi line 7 Line 7 is the RRDs perl module...it is installed. It works with the following files copied in (obviously adjust for machine arch etc). Found by a combination of ldd /usr/local/bin/rrdtool, and 'sudo ktrace -i chroot /var/www /cgi-bin/mailgraph.cgi' - each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. Quite a nice little program, out of the box it understands Sendmail and Postfix log entries and a whole bunch of mail scanners including my favourite, smtp-vilter. /var/www/usr/bin/perl /var/www/usr/libexec/ld.so /var/www/usr/lib/libc.so.40.3 /var/www/usr/lib/libutil.so.11.0 /var/www/usr/lib/libperl.so.10.1 /var/www/usr/lib/libm.so.2.3 /var/www/usr/lib/librrd.so.0.0 /var/www/usr/lib/libjpeg.so.62.0 /var/www/usr/lib/libfontconfig.so.3.0 /var/www/usr/lib/libfreetype.so.13.1 /var/www/usr/lib/libpng.so.5.1 /var/www/usr/lib/libz.so.4.1 /var/www/usr/lib/libiconv.so.4.0 /var/www/usr/lib/libgd.so.20.33 /var/www/usr/lib/libexpat.so.5.0 /var/www/usr/local/libdata/perl5/site_perl/RRDs.pm /var/www/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/RRDs/RRDs.so /var/www/usr/libdata/perl5/strict.pm /var/www/usr/libdata/perl5/vars.pm /var/www/usr/libdata/perl5/warnings/register.pm /var/www/usr/libdata/perl5/warnings.pm /var/www/usr/libdata/perl5/Carp.pm /var/www/usr/libdata/perl5/Exporter.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/DynaLoader.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/Config.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/DynaLoader/dl_findfile.al /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/autosplit.ix /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/POSIX.so /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/auto/POSIX/load_imports.al /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/POSIX.pm /var/www/usr/libdata/perl5/amd64-openbsd/5.8.8/XSLoader.pm /var/www/usr/libdata/perl5/AutoLoader.pm Thank you very much for your answer. I have already donne this, here is my output: # ldd /usr/local/bin/rrdtool /usr/local/bin/rrdtool: StartEnd Type Open Ref GrpRef Name exe 10 0 /usr/local/bin/rrdtool 08f76000 28f7f000 rlib 01 0 /usr/local/lib/librrd.so.0.0 0cedf000 2cf13000 rlib 02 0 /usr/local/lib/libgd.so.20.33 024a3000 2257f000 rlib 03 0 /usr/local/lib/libiconv.so.4.0 00114000 2011c000 rlib 03 0 /usr/lib/libz.so.4.1 01b35000 21b3c000 rlib 03 0 /usr/local/lib/libpng.so.5.1 000ac000 200c8000 rlib 04 0 /usr/X11R6/lib/libfreetype.so.13.1 0ca57000 2ca67000 rlib 03 0 /usr/X11R6/lib/libfontconfig.so.3.0 0b848000 2b84e000 rlib 03 0 /usr/local/lib/libjpeg.so.62.0 0bd4a000 2bd51000 rlib 03 0 /usr/lib/libm.so.2.3 0db88000 2dbb9000 rlib 01 0 /usr/lib/libc.so.39.3 0fbb9000 2fbc2000 rlib 01 0 /usr/X11R6/lib/libexpat.so.5.0 09c51000 09c51000 rtld 01 0 /usr/libexec/ld.so All copied in my jailed /var/www: -rw-r--r-- 1 root wheel 149112 Feb 10 23:52 /var/www/usr/X11R6/lib/libexpat.so.5.0 -rw-r--r-- 1 root wheel 214155 Feb 10 23:51 /var/www/usr/X11R6/lib/libfontconfig.so.3.0 -rw-r--r-- 1 root wheel 477836 Feb 10 23:51 /var/www/usr/X11R6/lib/libfreetype.so.13.1 -r--r--r-- 1 root wheel 3953635 Feb 10 23:52 /var/www/usr/lib/libc.so.39.3 -r--r--r-- 1 root wheel 535118 Feb 10 23:52 /var/www/usr/lib/libm.so.2.3 -r--r--r-- 1 root wheel 174396 Feb 11 00:16 /var/www/usr/lib/libz.so.4.1 -r-xr-xr-x 1 root wheel42571 Feb 10 23:53 /var/www/usr/libexec/ld.so -r-xr-xr-x 1 root wheel13796 Feb 10 23:49 /var/www/usr/local/bin/rrdtool -rwxr-xr-x 1 root wheel 246506 Feb 10 23:50 /var/www/usr/local/lib/libgd.so.20.33 -r--r--r-- 1 root wheel 1005395 Feb 10 23:50 /var/www/usr/local/lib/libiconv.so.4.0 -rwxr-xr-x 1 root wheel 131960 Feb 11 00:13 /var/www/usr/local/lib/libjpeg.so.62.0 -r--r--r-- 1 root wheel 151434 Feb 11 00:16 /var/www/usr/local/lib/libpng.so.5.1 -rwxr-xr-x 1 root wheel 118893 Feb 11 00:12 /var/www/usr/local/lib/librrd.so.0.0 # sudo ktrace -i chroot /var/www /cgi-bin/mailgraph/mailgraph.cgi Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for module RRDs: Cannot load specified object at /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230. at /cgi-bin/mailgraph/mailgraph.cgi line 7 Compilation failed in require at /cgi-bin/mailgraph/mailgraph.cgi line 7. BEGIN failed--compilation aborted at /cgi-bin/mailgraph/mailgraph.cgi line 7. I
Re: Mailgraph with apache chroot
On 2007/02/11 00:24, doc Hyde wrote: I have already donne this, here is my output: # ldd /usr/local/bin/rrdtool That is only part of what I said; It works with the following files copied in (obviously adjust for machine arch etc). Found by a combination of ldd /usr/local/bin/rrdtool, and 'sudo ktrace -i chroot /var/www /cgi-bin/mailgraph.cgi' - each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. Notice this bit which I wrote: each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. All copied in my jailed /var/www: If that's everything, you are missing a whole stack of Perl files. # sudo ktrace -i chroot /var/www /cgi-bin/mailgraph/mailgraph.cgi Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for hmm, I think that one's on the list I made which you appear to have ignored... I'll describe the process in a little bit more detail for anyone who wants to learn: mkdir, copy the wanted file in (/usr/loc/RRDs.so), repeat, copy the next in, etc. If it just says 'Unknown error' without useful information, run the script chrooted with ktrace, then kdump|more, search for the error message, and page back over the next few hundred lines and you'll probably see what file it failed to load (probably a .so), copy that in, repeat until it works. (with mailgraph, that's the easy bit - then you get to work out that what it's doing when it just sits there apparently doing nothing is it's actually tail -f'ing the log ;-)
Re: Mailgraph with apache chroot
On 2/11/07, Stuart Henderson [EMAIL PROTECTED] wrote: On 2007/02/11 00:24, doc Hyde wrote: I have already donne this, here is my output: # ldd /usr/local/bin/rrdtool That is only part of what I said; It works with the following files copied in (obviously adjust for machine arch etc). Found by a combination of ldd /usr/local/bin/rrdtool, and 'sudo ktrace -i chroot /var/www /cgi-bin/mailgraph.cgi' - each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. Notice this bit which I wrote: each time it fails, look at the error messages and/or kdump output, copy the lib in, and try again. All copied in my jailed /var/www: If that's everything, you are missing a whole stack of Perl files. # sudo ktrace -i chroot /var/www /cgi-bin/mailgraph/mailgraph.cgi Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for hmm, I think that one's on the list I made which you appear to have ignored... I'll describe the process in a little bit more detail for anyone who wants to learn: mkdir, copy the wanted file in (/usr/loc/RRDs.so), repeat, copy the next in, etc. If it just says 'Unknown error' without useful information, run the script chrooted with ktrace, then kdump|more, search for the error message, and page back over the next few hundred lines and you'll probably see what file it failed to load (probably a .so), copy that in, repeat until it works. (with mailgraph, that's the easy bit - then you get to work out that what it's doing when it just sits there apparently doing nothing is it's actually tail -f'ing the log ;-) I finally got it to work. I installed syweb for the symon. There is a script called install_rrdtool.sh which installs the necessary libs for rrdtool to work in a chroot environment. I launched that script and it most probably copied a library I missed out. Unfortunately I have no clue which ones where missing. The ones on your list are not in mine because they aren't on my system at all. Here is the script source: # cat install_rrdtool.sh #!/bin/sh # $Id: install_rrdtool.sh,v 1.6 2006/12/20 20:59:14 dijkstra Exp $ # # Script to install rrdtool inside apache chroot RRD_CMD=${RRD_CMD:-/usr/local/bin/rrdtool} PREFIX=${PREFIX:-/var/www} if [ ! -x ${RRD_CMD} ]; then echo cannot find rrdtool - exiting exit 0 fi FORMAT=`file ${RRD_CMD} 2/dev/null` if [ ${FORMAT}x = x ]; then echo cannot determine executable format for rrdtool - exiting exit 0 fi ELF=`echo ${FORMAT} | grep ELF` if [ ${ELF}x = x ]; then LIBS=`ldd ${RRD_CMD} | sed -e '1d' -e '$d' -e 's/^.* \([^ ]*\)$/\1/g'` else LIBS=`ldd ${RRD_CMD} | sed -e '1,3d' -e '$d' -e 's/^.* \([^ ]*\)$/\1/g'` fi if [ ${LIBS}x = x ]; then echo cannot determine library dependencies for ${RRD_CMD} - exiting exit 0 fi cd ${PREFIX} mkdir -p bin usr/lib usr/libexec cp -f $LIBS usr/lib cp -f ${RRD_CMD} bin cp -f /usr/libexec/ld.so usr/libexec cp -f /bin/sh bin/sh echo rrdtool and libs installed in apache root exit 1 Anyways thanks for your fast answer. Alban
Re: malloc guard page question
I was hoping re-re-re-reading Theo's slide would help me understand, but unfortunately it only raised another question to which I can't find an answer: On slide 27 (http://www.openbsd.org/papers/ven05-deraadt/mgp00027.html) it says: If you try to read/write beyond the end of an object, maybe there is a guard page there? So is there a guard page or not? :) If the G option of malloc is used I'm under the impression that every object will be surrounded by guard pages. But if the G option is not used, will there be any guard pages at all? If so how are they allocated? Thanks, -Jd
Broadcom Gigabit NIC Interface Translation From Debian/Linux To OpenBSD
Anybody, I have two OpenBSD machines connected with 2Mbps thru a leased-lines in different locations, A B. Both machines colocated at location A and location B has a bge0 NIC card with 100/1000Mbps speed and each of these interfaces shall be connected to a device between the sites. This NIC card is detected and configured in Debian/Linux as: eth1 speed 10 duplex full autoneg off I just wonder how I should re-configure this NIC card in OpenBSD. I tried Location A -- $sudo vi /etc/hostname.bge0 inet 192.168.111.1 netmask 255.255.255.0 NONE Location B -- $sudo vi /etc/hostname.bge0 inet 192.168.111.2 netmask 255.255.255.0 NONE What stumbled me is that I cannot ping location A from location B vice-versa. Any tips to sort this out is equally appreciated. Regards, Demuel