Re: : Rosetta Stone for Unix
On Thu, Oct 09, 2008 at 10:52:24PM -0500, Denny White wrote: On Thu, Oct 09, 2008 at 03:01:22PM +0200, Han Boetes wrote: Theo de Raadt wrote: http://bhami.com/rosetta.html As always, it is a shame that those types of pages have so many errors. [snip: examples] It is just sad. It's better to light a candle than to curse the darkness. # Han On Thu, Oct 09, 2008 at 11:11:26AM -0500, Marco Peereboom spoke thusly: Right, let me put on my hippie robes so that we can sing koombaya. Obviously it doesn't matter that website is spewing shit; it is the thought that counts. For what it's worth, I never meant to stir up a hornet's nest on the list. The guy's got a mailto link and welcomes all corrections. He answers promptly, too. I guess it's being done in the spirit of open source. You know, where everyone is welcome to pitch in constructively? Hence, the link for Contributions and corrections gratefully accepted. I already wrote to him about what Theo spotted right off and got an answer he will correct it as soon as possible. I went back again, clicked on 'set all OS' and 'Draw table', and can find no shutdown command ref for OpenBSD. There's just a ? there. Checked OpenBSD in the box, again clicked 'Draw Table' and got the same. Maybe the person who wrote the previous message pertaining to that command looked at the wrong column. Or hell, maybe I did. It's apparent it's a work in progress. Kind of like release schedules, applying patches, etc. Things improve with time. Why not pitch in and help the guy? Or not. Point is, he's trying. I guess he could take the 'Sysadmin' out at the top of the page, possibly misleading to a newbie, but he's also got good links to the OpenBSD FAQ's and man pages. Those ARE definitive guides and users are warned about that early on, both in the documentation and on the mailing lists. If they choose to try to shortcut and use something they found like on the site in question and it bites them in the butt, they only have themselves to blame. I don't think any sysadmin worth his salt would blindly follow everything on the site. +1 -- Denny White === GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A === -- / Raimo Niskanen, Erlang/OTP, Ericsson AB
Re: root acount unable to mail gmail.com
On 2008-10-10, Jesus Sanchez [EMAIL PROTECTED] wrote: - hostname zexel.es (it's not true I own that domain, but needed) it doesn't even exist, many mail hosts won't accept mail from there at all. i'm quite surprised gmail does...
Re: CARP multicast and ADSL bridge
Am Thu, 09 Oct 2008 19:45:01 -0700 schrieb Brian [EMAIL PROTECTED]: Hello, After much reading of man pages, FAQs and googling, I have come up against a dead end. I have a dual redundant CARP setup on 2 sparc64 boxes running 4.3, with an Ovislink OV303 ADSL bridge for internet connectivity. All ports are connected to the bridge with a procurve 1800-24g semi-intelligent switch. The problems are that the multicast CARP packets are getting forwarded over the bridge and running up my very limited bandwidth cap (which, of course, is no one's problem but my own) and more importantly is causing my ADSL connection to be dropped every 10-15 minutes. The tech at the ISP diagnosed the problem, and I wouldn't have believed it if I hadn't verified the behaviour myself. As soon as I disable CARP on the external interface and the CARP announce packets stop, the connection stays up for days. With CARP running, I would sometimes be down for hours, with the ADSL connection going up for a second, and dropping right away. I tried to do multicast filtering on the ADSL port, but my switch isn't intelligent enough, and the ADSL device won't filter in bridge mode. The only thing I could think to do is to put the 2 CARP ports on a seperate VLAN and route the CARP multicast packets through that, but my attempts to use pf to rdr the multicast packets to a separate vlan0 interface have not been successful. Is there a magical way to resolve my situation without buying a more expensive switch? I thought it would be worth asking before shutting up and hacking together a possibly stupid VLAN tagging solution in ip_carp. Thanks for your patience. -Brian Marshall Hi Brian, did You try to avoid multicast by setting up the carppeers directly? See man ifconfig: carppeer peer_address If the driver is a carp(4) pseudo-device, send the carp adver- tisements to a specified point-to-point peer or multicast group instead of sending the messages to the default carp multicast group. The peer_address is the IP address of the other host tak- ing part in the carp cluster. With this option, carp(4) traffic can be protected using ipsec(4) and it may be desired in networks that do not allow or have problems with IPv4 multicast traffic. Regards Uwe [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
Re: CARP multicast and ADSL bridge
On 2008-10-10, Brian [EMAIL PROTECTED] wrote: Hello, After much reading of man pages, FAQs and googling, I have come up against a dead end. I have a dual redundant CARP setup on 2 sparc64 boxes running 4.3, with an Ovislink OV303 ADSL bridge for internet connectivity. All ports are connected to the bridge with a procurve 1800-24g semi-intelligent switch. The problems are that the multicast CARP packets are getting forwarded over the bridge and running up my very limited bandwidth cap (which, of course, is no one's problem but my own) and more importantly is causing my ADSL connection to be dropped every 10-15 minutes. The tech at the ISP diagnosed the problem, and I wouldn't have believed it if I hadn't verified the behaviour myself. As soon as I disable CARP on the external interface and the CARP announce packets stop, the connection stays up for days. With CARP running, I would sometimes be down for hours, with the ADSL connection going up for a second, and dropping right away. I tried to do multicast filtering on the ADSL port, but my switch isn't intelligent enough, and the ADSL device won't filter in bridge mode. The only thing I could think to do is to put the 2 CARP ports on a seperate VLAN and route the CARP multicast packets through that, but my attempts to use pf to rdr the multicast packets to a separate vlan0 interface have not been successful. Is there a magical way to resolve my situation without buying a more expensive switch? I thought it would be worth asking before shutting up and hacking together a possibly stupid VLAN tagging solution in ip_carp. Thanks for your patience. -Brian Marshall Maybe you can do something with carppeer. It's described in ifconfig(8). If it works, please share your final config with the list :)
Re: DHCPD on 4.3 not passing options
On 2008-10-09, Beto [EMAIL PROTECTED] wrote: Thank you for the answers. Dorian, this options is how systemimager works. On an ISC dhcpd3 it is declared: option option-140 code 140 = text; Don, I updated my src tree (stable) and recompiled my userland yesterday, the error persist. The code without bug was updated on the stable tree? Thanks. You can look for yourself at CVS tags of the relevant commit on http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/dhcpd/options.c Maybe you could backport it.
Re: root acount unable to mail gmail.com
On Fri, Oct 10, 2008 at 12:44:21AM +0200, Jesus Sanchez wrote: Hi, using a clean install of OpenBSD 4.3, after doing some changes, the /etc/rc.conf sendmail_flags uses /etc/mail/sendmail.cf as config file. popa3d runs OK and network also, but I have a problem. When I send mail as a regular user, mail goes to the account but if I login as root and then send a mail to a wellknown gmail.com account (this acount, [EMAIL PROTECTED], for example) mail never comes. This is a gmail.com problem? didn't found anything about restrictions on root acount and sendmail. I had trouble sending mails to big mail providers (gmail included). But this was a few years ago and it was due to the fact that my ISP didn't offer reverse DNS. You could test sending to a less popular mail provider (i.e. not so strict and spam infected), it worked for me at that time. -- Everything is simple, we're stupid. gopher://sdf.lonestar.org/1/users/bulibuta
Re: root acount unable to mail gmail.com - vers. 4.3
HI I have more or less the same issue. I try to send a monitoring mail via root, and if I do a tcpdump I see: pass out on em2: public_ip.17782 127.0.0.1.25: What means, the firewall try to send a mail to outside. I try the same thing with the command: mail [EMAIL PROTECTED] subject: toto . And I see exactly the same result. What is wrong ? Regards
Re: dmesg IBM x3650 OpenBSD 4.3
Jonathan, thanks, i see. I Tried enabling de aac driver in the GENERIC and RAMDISK_CD , and made a release. It's still not showing it as enabled when booting with this new cd. Could it be possible that the driver is another one? I am writing an email to Adaptec right now asking for the documentation you need. Regards, Marcos Laufer Jonathan Gray wrote: On Tue, Oct 07, 2008 at 06:26:23PM -0200, Marcos Laufer wrote: Hello, this is an IBM x3650, i booted with a 4.3 cd and this is the dmesg (SAS hard disks are not recognized) Adaptec ASR-2120S rev 0x02 at pci6 dev 0 function 0 not configured The driver for Adaptec RAID (aac) is disabled by default. See http://undeadly.org/cgi?action=articlesid=20050318231311 for the backstory. Adaptec won't provide documentation required to maintain the driver.
Re: dmesg IBM x3650 OpenBSD 4.3
I am writing an email to Adaptec right now asking for the documentation you need. Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself.
Re: dmesg IBM x3650 OpenBSD 4.3
I'm pretty sure that my email won't change a thing about Adaptec's way of thinking. But it is the right thing to do, i must send them that email with my point of view and needs as a user of Adaptec's products. I will also let IBM know about this. Theo de Raadt wrote: I am writing an email to Adaptec right now asking for the documentation you need. Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself.
protection alert
Sign-In Protection Alert - Protection de l'ouverture de session - Alerte An attempt to access Online Banking was denied on: Une tentative d'accider ` Banque en direct a iti refusie le: Saturday, 07 October 2008 at 2:07:51 EST Mardi, 07 Octobre 2008 ` 2:07:51 EDT Access was denied for one of two reasons: * Incorrect attempts to access and Login failures. * Signing on from a different location or device different from your location and your IP address. L'acchs a iti refusi pour l'une des deux raisons suivantes : * La riponse ` votre question d'identification personnelle ne correspondait pas ` nos dossiers. * Votre question d'identification personnelle a iti posie mais aucune riponse n'a iti fournie. If you remember trying to access Online Banking on the above date and time, please select That was me. If you do not remember trying to access Online Banking on the above date and time, please select That was NOT me. You will then be prompted to safeguards your account. Si vous vous souvenez d'avoir tenti d'accider ` Banque en direct ` la date et ` l'heure ci-dessus, cliquez sur + C'itait moi ;. Si vous ne vous souvenez pas d'avoir tenti d'accider ` Banque en direct ` la date et ` l'heure ci-dessus, cliquez sur + Ce n'itait PAS moi ;. Le systhme vous demandera alors de changer votre mot de passe. That was me That was not me C'itait moi Ce n'itait PAS moi ) 1999 2007 BMO Bank of Montreal. All rights reserved.
Re: root acount unable to mail gmail.com - vers. 4.3
Christophe Rioux escribis: HI I have more or less the same issue. I try to send a monitoring mail via root, and if I do a tcpdump I see: pass out on em2: public_ip.17782 127.0.0.1.25: pf activated? it may be a rule. Try looking your pf.conf What means, the firewall try to send a mail to outside. I try the same thing with the command: mail [EMAIL PROTECTED] subject: toto . are /var/spool/mqueue or /var/spool/clientmqueue empty?? try using # mail -v [EMAIL PROTECTED] And I see exactly the same result. What is wrong ? Regards
LDAP and OpenBSD
Hi misc :) I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Francesco
RES: LDAP and OpenBSD
I4d like to do the same here. I wanna integrate obsd with Microsoft AD. Share with us your findings. I will do the same if I got it. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de raven Enviada em: sexta-feira, 10 de outubro de 2008 14:52 Para: OpenBSD misc mailing list Assunto: LDAP and OpenBSD Hi misc :) I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Francesco
Re: dmesg IBM x3650 OpenBSD 4.3
2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause. 3ware and Adaptec are bastards because they lied to us and our user community time after time. It will take a lot for them to make it up to our user base. Help our cause? They attempted to destroy our cause, and they will get called what they really are. They, and their defenders.
Re: dmesg IBM x3650 OpenBSD 4.3
2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause.
Re: LDAP and OpenBSD
On Fri, 2008-10-10 at 19:52 +0200, raven wrote: I'm thinking how my users into an ldap db can login into my openbsd One would need NSS_LDAP and PAM_LDAP, which requires PAM and NSS infrastructure in-tree. Likely you'd want to sponsor development for something like that. ~BAS -- Brian A. Seklecki [EMAIL PROTECTED] Collaborative Fusion, Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
Re: LDAP and OpenBSD
raven schrieb: Hi misc :) I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Francesco try: openbsd login ldap as keywords, the first hit itself leads to a link collection.
Re: LDAP and OpenBSD
On 10/10/08, raven [EMAIL PROTECTED] wrote: I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Easiest solution would be to use RADIUS via login_radius. Perhaps your LDAP is hooked into a RADIUS server (e.g. Microsoft Active Directory with IAS)? If not, you can find open source RADIUS servers for free in ports. Kevin
Re: dmesg IBM x3650 OpenBSD 4.3
On Fri, Oct 10, 2008 at 1:53 PM, gm_sjo [EMAIL PROTECTED] wrote: 2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause. It can't help less than saying please did.
Re: dmesg IBM x3650 OpenBSD 4.3
2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause. And what would you call them? Hopefully they ARE reading this so they can get a picture of just how close minded they are being in regards to enabling their products to work on whatever OS people want.
Re: dmesg IBM x3650 OpenBSD 4.3
2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause. I'm sure your mail on a public mailing list is really going to help the cause, too.
proposal port for multi-aterm
multi-aterm is a clone of aterm (v 0.4.2) and adds multi tab feature. I've been usint it for days and seems to works well. Could be nice to port it, at compile time, I had no problems also. http://www.nongnu.org/materm/materm.html Give it a try :) -Jesus
Re: LDAP and OpenBSD
On Fri, 10 Oct 2008 19:52:10 +0200 raven [EMAIL PROTECTED] wrote: Hi misc :) I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Francesco Here, have a cookie: usr.sbin/ypldap/ It's not linked to the build for a reason. Time to visit: http://www.openbsd.org/donations.html - Robert
Re: dmesg IBM x3650 OpenBSD 4.3
On 2008-10-10, Marcos Laufer [EMAIL PROTECTED] wrote: I'm pretty sure that my email won't change a thing about Adaptec's way of thinking. But it is the right thing to do, i must send them that email with my point of view and needs as a user of Adaptec's products. I will also let IBM know about this. Most other big server vendors either stopped using, or never used, Adaptec's RAID controllers (e.g. Dell, HP, Fujitsu-Siemens, Sun ...)
Re: LDAP and OpenBSD
On 2008-10-10, Brian A. Seklecki [EMAIL PROTECTED] wrote: On Fri, 2008-10-10 at 19:52 +0200, raven wrote: I'm thinking how my users into an ldap db can login into my openbsd One would need NSS_LDAP and PAM_LDAP, which requires PAM and NSS infrastructure in-tree. fortunately not.. Likely you'd want to sponsor development for something like that. It's not linked to the builds yet, but look at http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/ypldap/
uvm_mapent_alloc
Greetings, I currently have a 4.3 running a modified kernel (disabled ACPI and APM because they hang on my HS20 Blade) I'm receiving the following Error: uvm_mapent_alloc: out of static map entries Is there a way for me to adjust this through sysctl? any help will be greatly appreciated. I run webservers on this box. thanks, -b
Re: uvm_mapent_alloc
On 13:42 Fri 10 Oct, Beavis wrote: Greetings, I currently have a 4.3 running a modified kernel (disabled ACPI and APM because they hang on my HS20 Blade) I'm receiving the following Error: uvm_mapent_alloc: out of static map entries Is there a way for me to adjust this through sysctl? any help will be greatly appreciated. I run webservers on this box. looks like this is fixed in -current, see http://article.gmane.org/gmane.os.openbsd.cvs/79457 -- Vladimir Kirillov http://darkproger.net
Re: dmesg IBM x3650 OpenBSD 4.3
gm_sjo wrote: 2008/10/10 Theo de Raadt [EMAIL PROTECTED]: Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself. I'm sure calling vendors 'bastards' on a public mailing list is really going to help the cause. When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Theo has proven very well that the most effective method of dealing with these 'bastard' vendors (that ignore or undermine OpenBSD) is to use negative reinforcement. Corporations only understand and react appropriately to bad publicity that threatens their profits. Anything else merely encourages them to continue to ignore OpenBSD, because they perceive that it costs less to ignore OpenBSD than it does to help. Breeno
Re: uvm_mapent_alloc
thanks for the reply vladimir. is it needed to upgrade my 4.3 stable to -current? isn't there a patch available for this? thank you, -b On Fri, Oct 10, 2008 at 2:40 PM, Vladimir Kirillov [EMAIL PROTECTED] wrote: On 13:42 Fri 10 Oct, Beavis wrote: Greetings, I currently have a 4.3 running a modified kernel (disabled ACPI and APM because they hang on my HS20 Blade) I'm receiving the following Error: uvm_mapent_alloc: out of static map entries Is there a way for me to adjust this through sysctl? any help will be greatly appreciated. I run webservers on this box. looks like this is fixed in -current, see http://article.gmane.org/gmane.os.openbsd.cvs/79457 -- Vladimir Kirillov http://darkproger.net
Re: dmesg IBM x3650 OpenBSD 4.3
2008/10/10 Breen Ouellette [EMAIL PROTECTED]: When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Dear lord, it's brainwashed minions such as yourself that make me wonder why I continously donate money to the 'cause'. But of course, that's irrelevant, right?
Re: uvm_mapent_alloc
On 14:44 Fri 10 Oct, Beavis wrote: thanks for the reply vladimir. is it needed to upgrade my 4.3 stable to -current? isn't there a patch available for this? The 4.3 uvm_map.c is 5 diffs far from this patch http://www.openbsd.org/cgi-bin/cvsweb/src/sys/uvm/uvm_map.c?r1=1.104#rev1.104 you can generate the diff yourself, cvs diff -r1.99 -r1.104 uvm_map.c or here: Index: uvm_map.c === RCS file: /cvs/src/sys/uvm/uvm_map.c,v retrieving revision 1.99 retrieving revision 1.104 diff -u -p -r1.99 -r1.104 --- uvm_map.c 15 Sep 2007 10:10:37 - 1.99 +++ uvm_map.c 23 Sep 2008 13:25:46 - 1.104 @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.99 2007/09/15 10:10:37 martin Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.104 2008/09/23 13:25:46 art Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -98,6 +98,7 @@ static struct timeval uvm_kmapent_last_w static struct timeval uvm_kmapent_warn_rate = { 10, 0 }; struct uvm_cnt uvm_map_call, map_backmerge, map_forwmerge; +struct uvm_cnt map_nousermerge; struct uvm_cnt uvm_mlk_call, uvm_mlk_hint; const char vmmapbsy[] = vmmapbsy; @@ -538,6 +539,7 @@ uvm_map_init(void) UVMCNT_INIT(map_backmerge, UVMCNT_CNT, 0, # uvm_map() back merges, 0); UVMCNT_INIT(map_forwmerge, UVMCNT_CNT, 0, # uvm_map() missed forward, 0); + UVMCNT_INIT(map_nousermerge, UVMCNT_CNT, 0, # back merges skipped, 0); UVMCNT_INIT(uvm_mlk_call, UVMCNT_CNT, 0, # map lookup calls, 0); UVMCNT_INIT(uvm_mlk_hint, UVMCNT_CNT, 0, # map lookup hint hits, 0); @@ -726,6 +728,8 @@ uvm_map_p(struct vm_map *map, vaddr_t *s if ((map-flags VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * step 0: sanity check of protection code @@ -832,6 +836,15 @@ uvm_map_p(struct vm_map *map, vaddr_t *s goto step3; } + /* +* Only merge kernel mappings, but keep track +* of how much we skipped. +*/ + if (map != kernel_map map != kmem_map) { + UVMCNT_INCR(map_nousermerge); + goto step3; + } + if (prev_entry-aref.ar_amap) { error = amap_extend(prev_entry, size); if (error) { @@ -897,6 +910,8 @@ step3: if ((flags UVM_FLAG_OVERLAY) == 0) new_entry-etype |= UVM_ET_NEEDSCOPY; } + if (flags UVM_FLAG_HOLE) + new_entry-etype |= UVM_ET_HOLE; new_entry-protection = prot; new_entry-max_protection = maxprot; @@ -1098,6 +1113,45 @@ uvm_map_spacefits(struct vm_map *map, va } /* + * uvm_map_pie: return a random load address for a PIE executable + * properly aligned. + */ + +#ifndef VM_PIE_MAX_ADDR +#define VM_PIE_MAX_ADDR (VM_MAXUSER_ADDRESS / 4) +#endif + +#ifndef VM_PIE_MIN_ADDR +#define VM_PIE_MIN_ADDR VM_MIN_ADDRESS +#endif + +#ifndef VM_PIE_MIN_ALIGN +#define VM_PIE_MIN_ALIGN PAGE_SIZE +#endif + +vaddr_t +uvm_map_pie(vaddr_t align) +{ + vaddr_t addr, space, min; + + align = MAX(align, VM_PIE_MIN_ALIGN); + + /* round up to next alignment */ + min = (VM_PIE_MIN_ADDR + align - 1) ~(align - 1); + + if (align = VM_PIE_MAX_ADDR || min = VM_PIE_MAX_ADDR) + return (align); + + space = (VM_PIE_MAX_ADDR - min) / align; + space = MIN(space, (u_int32_t)-1); + + addr = (vaddr_t)arc4random_uniform((u_int32_t)space) * align; + addr += min; + + return (addr); +} + +/* * uvm_map_hint: return the beginning of the best area suitable for * creating a new mapping with prot protection. */ @@ -1385,6 +1439,8 @@ uvm_unmap_remove(struct vm_map *map, vad if ((map-flags VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * find first entry @@ -1451,7 +1507,9 @@ uvm_unmap_remove(struct vm_map *map, vad * special case: handle mappings to anonymous kernel objects. * we want to free these pages right away... */ - if (map-flags VM_MAP_INTRSAFE) { + if (UVM_ET_ISHOLE(entry)) { + /* nothing to do! */ + } else if (map-flags VM_MAP_INTRSAFE) { uvm_km_pgremove_intrsafe(entry-start, entry-end); pmap_kremove(entry-start, len); } else if (UVM_ET_ISOBJ(entry) @@ -3697,9 +3755,8 @@ uvm_object_printit(uobj, full, pr) static const char page_flagbits[] = \20\1BUSY\2WANTED\3TABLED\4CLEAN\5CLEANCHK\6RELEASED\7FAKE\10RDONLY - \11ZERO\15PAGER1; -static const char page_pqflagbits[] = -
Re: dmesg IBM x3650 OpenBSD 4.3
Theo: In this useful paper http://cvs.openbsd.org/papers/brhard2007/ you explain very good the situation. Great. Maybe is totally off-topic, but ?would it helps in some way to create a web section listing the reasonable and bastard vendors? I think it would be useful in two points: * helps to OpenBSD community to choose the right hardware * make good or bad publicity depending on real vendor's position Anyway it's only an idea. -- Thanks, Jordi Espasa Clofent
Re: dmesg IBM x3650 OpenBSD 4.3
Are we really arguing whether or not its ever appropriate to call someone a bastard on public mailing list? Who cares? Suigesting that Theo becom less inflamatory didn't go so well for NetBSD, neither did pandering to hardware vendors so that their OS could run anywhere. Doesn't it seem reasonable that someone take a hard line with these folks, and isn't it established that this is the place. Theo has accomplished some important things, and did so using his tactics, aren't the nice folks who'll sign any NDA no matter how braindead, and who will jump through whatever other ridiculous hoops a hardware vendor creates following that thread to its logical conclusion. Around here its going to be' safe simple and secure, and hardware vendors whom fail to live up to their promises, whom bait and switch documentation, whom engage free operating system developers only on some misguided MBA's terms are going to be called (shudder) bastards. Even if we were convinced that the carrot was 9x as effective as the stick, we still need the stick for the other 10%. On Fri, Oct 10, 2008 at 3:55 PM, gm_sjo [EMAIL PROTECTED] wrote: 2008/10/10 Breen Ouellette [EMAIL PROTECTED]: When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Dear lord, it's brainwashed minions such as yourself that make me wonder why I continously donate money to the 'cause'. But of course, that's irrelevant, right? -- Some software money can't buy. For everything else there's Micros~1.
Re: dmesg IBM x3650 OpenBSD 4.3
gm_sjo ha scritto: 2008/10/10 Breen Ouellette [EMAIL PROTECTED]: When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Dear lord, it's brainwashed minions such as yourself that make me wonder why I continously donate money to the 'cause'. But of course, that's irrelevant, right? No, it's not. If you think to pay to have developers with mouth shout you're really wrong. The 'cause' is to make Openbsd to be Openbsd, if Theo express an opinion about vendors they dont do nothing wrong just because he express the reality of situation. You have an unix-like o.s. secure by default (i dont pay royalties for that :) ) with some hardware supported just because some drunk vendors give documentations to openbsd developers or maybe because some addicted developer (developers) make a reverse engeenering of that driver. That the cause. You pay to have a good and stable operating system, and make openbsd to work good enough just with documentation and drivers blob free. You think Openbsd staff spend your money to buy documentations and to keep his mouth shut with others ? Francesco P.S.: Sorry for my bad english :) P.S.2: Theo and developers, stop to use his money to buy trojan condoms :)
Re: dmesg IBM x3650 OpenBSD 4.3
gm_sjo wrote: 2008/10/10 Breen Ouellette [EMAIL PROTECTED]: When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Dear lord, it's brainwashed minions such as yourself that make me wonder why I continously donate money to the 'cause'. But of course, that's irrelevant, right? Your personal attack does not improve your standing in this matter. You are trying to deflect the issue: that you don't agree with Theo's tactics. Yet, you have failed to provide a single good reason for why people should believe you. Theo's trash talking about trashy vendors has a history of effectiveness, while the wishy washy avoidance that you advocate has never proven effective. Show us one vendor that has released documentation because OpenBSD developers and users sat back and waited quietly for it. And again, what exactly was it that have you done for OpenBSD that makes your opinion worth listening to, let alone superior to Theo's? Breeno
Ms Project ile Proje Yönetimi -Excel de Finans Uygulamaları
ZeruMax bilisim hizmetleri MS PROJECT ]LE PROJE YVNET]M] Ms Project kullaniminin uygulamali ve pratik olarak anlatilacagi bu egitimi kacirmayin... 18 - 19 Ekim 2008 - 09.30 - 17.00 - Lares Park Otel - Taksim - 650 YTL+kdv Egitmen: Cenk ILTIR EXCELDE FINANS UYGULAMALARI Finansal islemlerde Excel kullaniminin uygulamali ve pratik olarak anlatilacagi bu egitimi kacirmayin... 25 - 26 Ekim 2008 - 09.30 - 17.00 - Lares Park Otel - Taksim - 650 YTL+kdv Egitmen: Cenk ILTIR w w wz e r u m a x c o m - 0 2 1 6 4 8 6 3 6 3 4 MS PROJECT ]LE PROJE YVNET]M] = Amag: Epitimin amac}, y|r|t|len projelerin takibinde, bir proje yvnetim arac} olarak Microsoft Projectin etkin kullan}m}n}n vpretilmesidir. Kat}l}mc}lar epitim sonunda, Microsoft Project ile projeleri planlama ve y|r|tme tekniklerini ve kontrol-analiz i~lemlerini vprenecekler ve proje yvnetiminde Microsoft Project'i bir arag olarak kullanmaya ba~layacaklard}r. Epitime kat}lmak igin Microsoft Projectin kullan}m}yla ilgili vnceden bilgi sahibi olunmas} vngvr|lmemektedir. Epitim, uygulama ekranlar}n}n y|zeysel anlat}m}ndan gok, ABD'deki Project Management Institute (PMI) standartlar} temelinde Microsoft Project'in etkin kullan}m}n}n vpretilmesini amaglamaktad}r. Epitim s|resince her kat}l}mc}n}n vn|nde bir bilgisayar bulunmakta ve uygulama vrnekleri, pratik egzersizler ve ge~itli senaryolar arac}l}p}yla Microsoft Project'in proje amaglar}na uygun kullan}m yollar} gvsterilmektedir. T|m pratik gal}~malar, kursun ba~}nda olu~turulan bir vrnek proje temelinde y|r|t|lmektedir. Epitim Sonunda Kat}l}mc}lar === * Kendi projelerini s|re, maliyet ve kapsam yvn|nden nas}l planlayabileceklerini, * Her t|rl| performans raporlamas} nas}l yapabileceklerini, * Proje bilgilerini nas}l payla~acaklar}n} * Proje plan}na uygun olarak s|reci nas}l izleyebileceklerini, Vpreneceklerdir. Epitim ]geripi: 1. Genel Tan}mlar * Proje Nedir? * Proje Yvnetimi Nedir? * Proje Safhalar} ve Proje Vm|r Dvng|s| 2. Proje Yvnetimi * Proje B|t|nle~tirme Yvnetimi * Proje Kapsam Yvnetimi * Proje Zaman Yvnetimi * Proje Maliyet Yvnetimi * Proje Kalite Yvnetimi * Proje Risk Yvnetimi * Proje ]nsan Kaynaklar} Yvnetimi * Proje Tedarik Yvnetimi 3. Ba~lama S|regleri 4. Planlama S|regleri - Ana S|regler 5. Planlama S|regleri - Yard}mc} S|regler 6. Y|r|tme S|regleri 7. Kontrol S|regleri 8. Kapan}~ S|regleri 9. Microsoft Project 2003 9.1 Ms Project Dosyas} Ve Vn Tan}mlar * MS Project kullan}m}nda izlenmesi gereken yvntem * Proje dosyas} igin ba~ta yap}lmas} gerekli d|zenlemeler * Proje takviminin yarat}lmas} * Global.mpt kullan}m} * Proje ba~lang}g tarihi ve takvimin dosyaya baplanmas} 9.2. Gvr|n|m Ve Tablolar}n (Views And Tables) Tan}t}m} * Gvr|n|mlerin tan}t}m} * Tablolar}n kullan}m} ve yeni tablo yaratma * Gvr|n|m ve tablolar aras}ndaki baplant} * Gantt Chart tan}t}m} ve uyarlamalar * Task sheet tan}t}m} ve uyarlamalar 9.3. Aktivite (Gvrev) Tan}mlar} * Aktivitelerin girilmesi * S|re (duration) tan}m}n}n esaslar} * Aktivite ge~itleri (task type) * Birlikte gal}~ma kurallar} (effort driven) * Task Information dialog box kullan}m} * Custom fields yarat}lmas} 9.4. Aktivitelerin Yap}land}r}lmas} (Wbs) * ]~ ayr}~}m yap}s} (WBS) olu~turma * Top down ve Bottom-up yvntemlerinin kullan}m} * Outline number * WBS kodu 9.5. Otomatik Zamanlama (Schedul}ng) Kurallar} * Aktivite baplar}n} (task dependencies) tan}mlama * Lead ve lag time tan}mlamak * Kesintisiz gal}~ma (elapsed time) tan}mlamak * Vzel aktivite tan}m} * Peryodik olarak tekrar eden aktiviteler * Aktivitelere k}s}tlamalar getirme (ALAP, ASAP, ve diperleri) 9.6. Kaynaklar}n Tan}m} Ve Aktivitelere Atama * Kullan}lacak kaynaklar}n (work/material) belirlenmesi * Kaynak tan}t}m tablosu kullan}m} * Kaynaklar igin takvim olu~turma * Aktivitelere kaynak atama * Fazla mesai (overtime) tan}mlama 9.7. Proje B|tgesi Olu~turma * Kaynak |cretlerinin tan}m} * Malzeme fiyatlar}n} tan}mlama * Diper giderleri tan}mlama * Cost Rate Table tan}mlama * Proje b|tgesini g}karma 9.8. CPM Analizi * Kritik yol metodu (CPM) * Bolluk (slack) deperi tan}m} * Kritik aktiviteleri belirleme * Kritik yolu etkileyen faktvrler * Kritik yolu iyile~tirme yvntemleri 9.9 Kaynak Dengeleme (Resource Level}ng) ]~lemleri * Fazla y|kleme yap}lm}~ kaynak tan}m} * Fazla y|kleme yap}lm}~ kaynaklar}n belirlenmesi * Az y|kleme yap}lm}~ kaynaklar}n saptanmas} * Otomatik kaynak dengeleme esaslar} * Kaynak dengeleme yap}l}rken dikkat edilmesi gerekli hususlar * Resource Leveling dialog box (RLDB) kullan}m} * Dengeleme igin elle yap}labilecek i~lemler 9.10. Baseline Kullan}m} * Baseline tan}m} * Baseline ile birlikte saklanan aktivite bilgileri * Baseline alma * Multiple baseline kullan}m} * Interim plan
You've received A Hallmark E-Card!
Hallmark.comShop OnlineHallmark MagazineE-Cards MoreAt Gold Crown You have recieved A Hallmark E-Card. Hello! You have recieved a Hallmark E-Card. To see it, click here, There's something special about that E-Card feeling. We invite you to make a friend's day and send one. Hope to see you soon, Your friends at Hallmark Your privacy is our priority. Click the Privacy and Security link at the bottom of this E-mail to view our policy. Hallmark.com | Privacy Security | Customer Service | Store Locator
Re: dmesg IBM x3650 OpenBSD 4.3
gm_sjo wrote: 2008/10/10 Breen Ouellette [EMAIL PROTECTED]: When you have proven yourself even 10% as helpful to the cause of OpenBSD as Theo is, then maybe, just maybe, you are justified in criticizing his tactics. I look forward to that point in time, but until then I really have no reason to side with you, nor should anyone else who is informed on this matter. Dear lord, it's brainwashed minions such as yourself that make me wonder why I continously donate money to the 'cause'. But of course, that's irrelevant, right? breen and many others are not brainwashed, they are fed up with whining naysayers who want to dictate manners via the internet. fucking do something useful instead of complaining about how someone else does it and maybe you'll *earn* some respect.
Re: uvm_mapent_alloc
On 2008-10-10, Vladimir Kirillov [EMAIL PROTECTED] wrote: On 14:44 Fri 10 Oct, Beavis wrote: thanks for the reply vladimir. is it needed to upgrade my 4.3 stable to -current? isn't there a patch available for this? no there isn't. The 4.3 uvm_map.c is 5 diffs far from this patch http://www.openbsd.org/cgi-bin/cvsweb/src/sys/uvm/uvm_map.c?r1=1.104#rev1.104 you can generate the diff yourself, cvs diff -r1.99 -r1.104 uvm_map.c running -current would be a much smarter move than grafting in this sort of diff.
dell latitude e6400: first test
I just installed OpenBSD 4.4-current from yesterday on my latitude e6400, everything went fine. The ethernet and wireless is not yet supported thought. Brightness are controlled by hardware, so it works fine. X works fine too. Here are dmesg, audiotcl, mixerctl and hw.sensors. OpenBSD 4.4-current (GENERIC.MP) #1875: Thu Oct 9 07:10:49 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3694690304 (3523MB) avail mem = 3585703936 (3419MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf6590 (57 entries) bios0: vendor Dell Inc. version A05 date 09/28/2008 bios0: Dell Inc. Latitude E6400 acpi0 at bios0: rev 2 acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG SLIC TCPA SSDT acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4) RP02(S4) RP03(S4) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4) 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)2 Duo CPU P8400 @ 2.26GHz, 2261.30 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG cpu0: 3MB 64b/line 8-way L2 cache cpu0: apic clock running at 266MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz, 2261.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG cpu1: 3MB 64b/line 8-way L2 cache ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpiprt0 at acpi0: bus 3 (PCIE) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 11 (RP01) acpiprt3 at acpi0: bus 12 (RP02) acpiprt4 at acpi0: bus 13 (RP03) acpiprt5 at acpi0: bus 14 (RP04) acpiprt6 at acpi0: bus -1 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus 0 (PCI0) acpiec0 at acpi0 acpicpu0 at acpi0: C3 acpicpu1 at acpi0: C3 acpitz0 at acpi0: critical temperature 107 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model DELL FU27488 serial 30161 type LION oem Sony acpibat1 at acpi0: BAT1 not present acpivideo at acpi0 not configured acpivideo at acpi0 not configured acpivideo at acpi0 not configured cpu0: unknown i686 model 7, can't get bus clockcpu0: EST: unknown system bus clock pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07 vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured Intel ICH9 IGP M AMT rev 0x03 at pci0 dev 25 function 0 not configured uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int 20 (irq 7) uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int 21 (irq 4) uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2 int 22 (irq 10) ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2 int 22 (irq 10) 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 82801I HD Audio rev 0x03: apic 2 int 21 (irq 4) azalia0: ../../../../dev/pci/azalia.c/1343 invalid PCM format: 0x azalia0: codec[s]: IDT/0x76b2, Intel/0x2802, using IDT/0x76b2 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2 int 16 (irq 0) pci1 at ppb0 bus 11 ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2 int 17 (irq 0) pci2 at ppb1 bus 12 Intel WiFi Link 5300AGN rev 0x00 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2 int 18 (irq 0) pci3 at ppb2 bus 13 ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: apic 2 int 19 (irq 0) pci4 at ppb3 bus 14 uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2 int 20 (irq 7) uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2 int 21 (irq 4) uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2 int 22 (irq 10) ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2 int 20 (irq 7) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93 pci5 at ppb4 bus 3 Ricoh 5C832 Firewire rev 0x04 at pci5 dev 1 function 0 not configured sdhc0 at pci5 dev 1 function 1 Ricoh 5C822 SD/MMC rev 0x21: apic 2 int 18 (irq 11) sdmmc0 at sdhc0 Ricoh 5C843 MMC rev 0x11 at pci5 dev 1 function 2 not configured pcib0 at pci0 dev 31 function 0 Intel 82801IEM LPC rev 0x03 ahci0 at pci0 dev 31 function 2
Re: Random crashes with Intel D945GCLF2
On Thu, 9 Oct 2008 23:10:02 +0200 (CEST) Mark Kettenis [EMAIL PROTECTED] wrote: I just committed a fix for the dmesg corruption problem. This may also fix the random crashes you were saying. Current snapshots should already have the fix. Boy, those Intel-branded boards have shitty BIOSes... Rev 1.84 of sys/arch/amd64/amd64/machdep.c also fixes the dmesg-output on my Thinkpad X200, a Centrino 2 system. Thx Mark! - Robert
Re: LDAP and OpenBSD
Am Fri, 10 Oct 2008 19:52:10 +0200 schrieb raven [EMAIL PROTECTED]: Hi misc :) I'm thinking how my users into an ldap db can login into my openbsd machine as users. I try to use google but no clue at all. Thanks guys :) Francesco Hello Francesco, there's a solution ;-). I've gotten my -current running to authenticate against my openldap server. As stated by the others there is usr.sbin/ypldap. It's not linked to the builds yet - but it works - together with the port sysutils/login_ldap. You can grab the users/groupsB9 from ypldap and then authenticate them against an ldap server - no matter if this is openldap or AD. I'll send a howto within the next days (hopely during this weekend). Please be patient. Regards Uwe B9Not fully working yet - ypldap only lists the first group for the user. But ypldap is still under developement. [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
Re: Random crashes with Intel D945GCLF2
On 09/10/2008, SJP Lists [EMAIL PROTECTED] wrote: 2008/10/10 Damian Gerow [EMAIL PROTECTED]: Mark Kettenis wrote: Boy, those Intel-branded boards have shitty BIOSes... And support. They've basically said that OpenBSD is not a supported OS, so they won't help me. Neither do they support diagnostics from third-party programs or companies. I think I've learned my lesson here. I thought it odd being an Intel board not using an Intel NIC. Not really their board? Have you seen the specifications for the D201GLY family? :) C.
Re: uvm_mapent_alloc
Vladimir, Sorry to bother you but I tried to apply the patch on uvm_map.c i copied the patch you gave me here and run patch -p0 uvm_map.patch I get some rej. files. any pointers or help will be greatly appreciated from anyone. -b On Fri, Oct 10, 2008 at 3:01 PM, Vladimir Kirillov [EMAIL PROTECTED] wrote: On 14:44 Fri 10 Oct, Beavis wrote: thanks for the reply vladimir. is it needed to upgrade my 4.3 stable to -current? isn't there a patch available for this? The 4.3 uvm_map.c is 5 diffs far from this patch http://www.openbsd.org/cgi-bin/cvsweb/src/sys/uvm/uvm_map.c?r1=1.104#rev1.104 you can generate the diff yourself, cvs diff -r1.99 -r1.104 uvm_map.c or here: Index: uvm_map.c === RCS file: /cvs/src/sys/uvm/uvm_map.c,v retrieving revision 1.99 retrieving revision 1.104 diff -u -p -r1.99 -r1.104 --- uvm_map.c 15 Sep 2007 10:10:37 - 1.99 +++ uvm_map.c 23 Sep 2008 13:25:46 - 1.104 @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.99 2007/09/15 10:10:37 martin Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.104 2008/09/23 13:25:46 art Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -98,6 +98,7 @@ static struct timeval uvm_kmapent_last_w static struct timeval uvm_kmapent_warn_rate = { 10, 0 }; struct uvm_cnt uvm_map_call, map_backmerge, map_forwmerge; +struct uvm_cnt map_nousermerge; struct uvm_cnt uvm_mlk_call, uvm_mlk_hint; const char vmmapbsy[] = vmmapbsy; @@ -538,6 +539,7 @@ uvm_map_init(void) UVMCNT_INIT(map_backmerge, UVMCNT_CNT, 0, # uvm_map() back merges, 0); UVMCNT_INIT(map_forwmerge, UVMCNT_CNT, 0, # uvm_map() missed forward, 0); + UVMCNT_INIT(map_nousermerge, UVMCNT_CNT, 0, # back merges skipped, 0); UVMCNT_INIT(uvm_mlk_call, UVMCNT_CNT, 0, # map lookup calls, 0); UVMCNT_INIT(uvm_mlk_hint, UVMCNT_CNT, 0, # map lookup hint hits, 0); @@ -726,6 +728,8 @@ uvm_map_p(struct vm_map *map, vaddr_t *s if ((map-flags VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * step 0: sanity check of protection code @@ -832,6 +836,15 @@ uvm_map_p(struct vm_map *map, vaddr_t *s goto step3; } + /* +* Only merge kernel mappings, but keep track +* of how much we skipped. +*/ + if (map != kernel_map map != kmem_map) { + UVMCNT_INCR(map_nousermerge); + goto step3; + } + if (prev_entry-aref.ar_amap) { error = amap_extend(prev_entry, size); if (error) { @@ -897,6 +910,8 @@ step3: if ((flags UVM_FLAG_OVERLAY) == 0) new_entry-etype |= UVM_ET_NEEDSCOPY; } + if (flags UVM_FLAG_HOLE) + new_entry-etype |= UVM_ET_HOLE; new_entry-protection = prot; new_entry-max_protection = maxprot; @@ -1098,6 +1113,45 @@ uvm_map_spacefits(struct vm_map *map, va } /* + * uvm_map_pie: return a random load address for a PIE executable + * properly aligned. + */ + +#ifndef VM_PIE_MAX_ADDR +#define VM_PIE_MAX_ADDR (VM_MAXUSER_ADDRESS / 4) +#endif + +#ifndef VM_PIE_MIN_ADDR +#define VM_PIE_MIN_ADDR VM_MIN_ADDRESS +#endif + +#ifndef VM_PIE_MIN_ALIGN +#define VM_PIE_MIN_ALIGN PAGE_SIZE +#endif + +vaddr_t +uvm_map_pie(vaddr_t align) +{ + vaddr_t addr, space, min; + + align = MAX(align, VM_PIE_MIN_ALIGN); + + /* round up to next alignment */ + min = (VM_PIE_MIN_ADDR + align - 1) ~(align - 1); + + if (align = VM_PIE_MAX_ADDR || min = VM_PIE_MAX_ADDR) + return (align); + + space = (VM_PIE_MAX_ADDR - min) / align; + space = MIN(space, (u_int32_t)-1); + + addr = (vaddr_t)arc4random_uniform((u_int32_t)space) * align; + addr += min; + + return (addr); +} + +/* * uvm_map_hint: return the beginning of the best area suitable for * creating a new mapping with prot protection. */ @@ -1385,6 +1439,8 @@ uvm_unmap_remove(struct vm_map *map, vad if ((map-flags VM_MAP_INTRSAFE) == 0) splassert(IPL_NONE); + else + splassert(IPL_VM); /* * find first entry @@ -1451,7 +1507,9 @@ uvm_unmap_remove(struct vm_map *map, vad * special case: handle mappings to anonymous kernel objects. * we want to free these pages right away... */ - if (map-flags VM_MAP_INTRSAFE) { + if (UVM_ET_ISHOLE(entry)) { + /* nothing to do! */ + } else if (map-flags VM_MAP_INTRSAFE) { uvm_km_pgremove_intrsafe(entry-start,
Re: CARP multicast and ADSL bridge
Thank you all for the kind advice. Carppeer is exactly what I need. I'll implement it as soon as I have an opportunity to upgrade to 4.4, since it doesn't seem to be in 4.3. I'll post config once I verify that I have it set up properly. -Brian Marshall
Re: LDAP and OpenBSD
Ok guys... because I have beer yet I decided to write my experience down now: 1. Use -current. Grab the sources and go to /usr/src/usr.sbin/ypldap and make a cvs update; make depend; make; make install 2. Install the port sysutils/login_ldap 3. Configure /etc/ypldap.conf: EOF domain $OPENBSD interval 60 provide map passwd.byname provide map passwd.byuid provide map group.byname provide map group.bygid directory $USE_IP_HERE {# A attribute name maps to uid fixed attribute passwd * # B attribute uid maps to uidNumber attribute gid maps to gidNumber fixed attribute class ldap# Login class! fixed attribute expire 0 # USE_IP_HERE attribute change maps to shadowLastChange # D attribute gecos maps to gecos attribute home maps to homeDirectory fixed attribute shell /bin/ksh# E attribute groupname maps to cn fixed attribute grouppasswd * attribute groupgid maps to gidNumber attribute groupmembers maps to memberUid binddn cn=$ldapuser,dc=example,dc=com # F bindcred YourSecret basedn dc=example,dc=com group filter (objectclass=posixGroup) passwd filter (objectclass=posixAccount) } EOF A Name resolution not working yet - use IP instead B Passwords in NIS not needed - we use login_ldap # XXX C Problems with time format - account e usfor Linux users - but there's no bash ;-) F Not needed if anonymous searches are allowed - not yet in man XXX You could use other auth too - like krb5 against AD - should be tested! 4. Configure login_ldap: /etc/login.conf ldap:\ :auth=-ldap:\ :x-ldap-server=$USE_IP_HERE:\ :shell=/bin/ksh:\ # not mandatory :x-ldap-basedn=dc=example,dc=com:\ :x-ldap-filter=((objectclass=posixAccount)(uid=%u)):\ :x-ldap-groupdn=cn=group_users_should_reside_to,dc=example,dc=com:\ :x-ldap-groupfilter=((objectClass=posixGroup)(memberUid=%u)):\ :tc=default: 5. Test ypldap ~ # ypldap -dv startup [debug mode] configuration starting applying configuration connecting to directories trying directory: $IP starting directory update starting directory update updates are over, cleaning up trees now flattening trees pushing line: anonymous:*:4:3:ldap:0:/home/anonymous:/bin/ksh pushing line: uwerler:*:1000:1000:ldap:12011:0:Uwe Werler:/home/uwerler:/bin/ksh pushing line: user001:*:1001:1001:ldap:12011:0:Who' this?:/home/user001:/bin/ksh pushing line: admins:*:1000:uwerler pushing line: users01:*:1001:user001 That means You should see something like this ;-) 6. Start ypbind ypbind 7. Test the user ~ # id uwerler uid=1000(uwerler) gid=1000(admins) groups=1000(admins)* * as I already wrote - only the first group from ldap is used now OK, this is working so far. Now try to login. The problem is if You want to auth with passwords You should type Your password twice. Why - I've to ask the list myself. I've seen such messages in my auhlog: Oct 7 16:07:50 openbsd02 sshd[11261]: Failed password for uwerler from 10.0.0.127 port 36885 ssh2 Oct 7 16:07:52 openbsd02 sshd[11261]: Accepted password for uwerler from 10.0.0.127 port 36885 ssh2 !!! You've done !!! Regards Uwe To make Your changes permanent: 1. Find the lines and comment out in /etc/rc to avoid ypserv's startup snip if [ X`domainname` != X ]; then #if [ -d /var/yp/`domainname` ]; then # # YP server capabilities needed... # echo -n ' ypserv'; ypserv ${ypserv_flags} # #echo -n ' ypxfrd'; ypxfrd #fi snip 2. Add a line to /etc/rc.conf ypldap_flags= 3. Add lines to /etc/rc.local: if [ X${ypldap_flags} != XNO ]; then echo -n ' ypldap' /usr/sbin/ypldap ${ypldap_flags} 1 /dev/null fi
Re: LDAP and OpenBSD
Ok, it's quite late tonight - after some beer: # vipw ^G i +:* :wq # vi /etc/group ^G i +:*:: :wq # You've done.
Re: Mountain and Road Bikes Liquidation Sale on 2007 models
I'm interested in the '07 Specialized Stumpjumper Comp Cinder Cycling Shop wrote: Hi there, We are liquidating our 2007 stock and we give big discounts on all our bicycles. We sell Cannondale, Cervelo, Ellsworth, Giant, Jamis, Klein, Kona, Litespeed, Rocky Mountain, Santa Cruz, Specialized, Trek, Gary Fisher bikes. Here are some of our best offers: NEW 2007 Cannondale Road Tandem Bike $1,200 NEW 2007 Cannondale F4000 SL Mountain Bike $2,400 NEW 2007 Cannondale Gemini 900 Mountain Bike $1,200 NEW 2007 Cannondale Mountain Tandem Bike$1,200 NEW 2007 Cannondale Prophet 4000 Mountain Bike $2,600 NEW 2007 Cannondale R1000 Road Bike$1,000 NEW 2007 Cannondale Scalpel 3000 Mountain Bike $2,600 NEW 2007 Cannondale Six13 Team 1 Dura Ace Road Bike $2,400 NEW 2007 Cervelo Soloist Carbon Road Bike$2,300 NEW 2007 Cervelo P3 Carbon Road Bike $2,300 NEW 2007 Cervelo Soloist Team Road Bike$1,100 NEW 2007 Ellsworth Epiphany Mountain Bike$2,500 NEW 2007 Ellsworth Moment Mountain Bike$2,600 NEW 2007 Ellsworth Truth Mountain Bike $2,200 NEW 2007 Gary Fisher Cake 1 DLX Mountain Bike $1,500 NEW 2007 Giant Anthem 1 Mountain Bike $1,200 NEW 2007 Giant Reign X0 Mountain Bike $1,800 NEW 2007 Giant Tcr Composite 1 Road Bike$1,500 NEW 2007 Giant Trance 1 Mountain Bike $1,200 NEW 2007 Jamis Dakar XC Pro Mountain Bike$1,900 NEW 2007 Klein Q-Pro XV Road Bike$1,300 NEW 2007 Kona Dawg Primo Mountain Bike $1,200 NEW 2007 Kona Kula Supreme Mountain Bike$1,900 NEW 2007 Kona Stinky Mountain Bike$1,100 NEW 2007 Litespeed Bella Road Bike$1,200 NEW 2007 Litespeed Ghisallo Road Bike $2,600 NEW 2007 Litespeed Niota Ti Mountain Bike$2,800 NEW 2007 Litespeed Tuscany Road Bike $1,800 NEW 2007 Rocky Mountain Element Team Mountain Bike$2,000 NEW 2007 Rocky Mountain Slayer 70 Mountain Bike$1,700 NEW 2007 Santa Cruz Blur LT Mountain Bike$2,400 NEW 2007 Santa Cruz Nomad Mountain Bike $2,000 NEW 2007 Santa Cruz V 10 Mountain Bike $2,400 NEW 2007 Specialized Demo 8 Mountain Bike $2,000 NEW 2007 Specialized Enduro SL Pro Carbon Mountain Bike $2,200 NEW 2007 Specialized Epic Comp Mountain Bike $1,200 NEW 2007 Specialized Epic Marathon Mountain Bike$1,800 NEW 2007 Specialized Roubaix Pro Road Bike $1,800 NEW 2007 Specialized Ruby Pro Road Bike$1,800 NEW 2007 Specialized S-Works Stumpjumper Fsr Carbon Bike$2,400 NEW 2007 Specialized S-Works Tarmac SL Sram Road Bike $2,400 NEW 2007 Specialized S-Works Roubaix Dura Ace Road Bike $2,400 NEW 2007 Specialized Stumpjumper Comp Mountain Bike$1,000 NEW 2007 Specialized Tarmac Pro Double Road Bike$1,800 NEW 2007 Specialized Transition Pro Road Bike $1,800 NEW 2007 Trek 5000 Road Bike $1,100 NEW 2007 Trek Pilot SL 5.9 Road Bike $1,900 NEW 2007 Trek Tandem T 2000 Road Bike $1,500 NEW 2007 Trek Madone SSL 6.9 Road Bike $2,900 NEW 2007 Trek Top Fuel SL Mountain Bike $2,900 and many many ... models available at this special price. If you are interested please reply and we will give you our website address where you can order the bikes. We offer free shipping if you buy now !!! We look forward for your reply, Jack Simmons, Sales Dep., Cinder Cycling Shop, 11874 Heron Bay Blvd, Coral Springs, FL, 33076, USA . http://app.streamsend.com/private/MN9b/Q9cYqlY/unsubscribe/248682 -- View this message in context: http://www.nabble.com/Re%3A-Mountain-and-Road-Bikes-Liquidation-Sale-on-2007-models-tp15389863p19929136.html Sent from the openbsd user - misc mailing list archive at Nabble.com.
Re: uvm_mapent_alloc
On 19:25 Fri 10 Oct, Beavis wrote: Vladimir, Sorry to bother you but I tried to apply the patch on uvm_map.c i copied the patch you gave me here and run patch -p0 uvm_map.patch I get some rej. files. any pointers or help will be greatly appreciated from anyone. you should do patch -p3 in /usr/src but running -current might be better :) -- Vladimir Kirillov http://darkproger.net
Re: uvm_mapent_alloc
On 19:25 Fri 10 Oct, Beavis wrote: Vladimir, Sorry to bother you but I tried to apply the patch on uvm_map.c i copied the patch you gave me here and run patch -p0 uvm_map.patch I get some rej. files. any pointers or help will be greatly appreciated from anyone. or probably copy the diff to sys/uvm/ and apply it there... -- Vladimir Kirillov http://darkproger.net