Re: mfi(4) vs WT and WB

2014-06-10 Thread Otto Moerbeek
On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: This volumes feel pretty fast, so I suspect caching mode is OK. Still it is confusing to have a flag that doesn't reflect reality. I'm planning to upgrade the firmware next week. We'll see if that changes anything. BTW, al

Re: mfi(4) vs WT and WB

2014-06-10 Thread Otto Moerbeek
On Tue, Jun 10, 2014 at 09:52:23PM +0200, Mark Kettenis wrote: Date: Tue, 10 Jun 2014 21:34:56 +0200 From: Otto Moerbeek o...@drijf.net On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: This volumes feel pretty fast, so I suspect caching mode is OK. Still

mfi(4) vs WT and WB

2014-06-06 Thread Otto Moerbeek
Hi, I have an PERC 6/i Integrated adapter here: mfi0 at pci2 dev 0 function 0 Symbios Logic SAS1078 rev 0x04: apic 1 int 0 mfi0: PERC 6/i Integrated, firmware 6.2.0-0013, 256MB cache Which has an OK battery but still reports itself as being in WT mode: # sysctl hw.sensors.mfi0.indicator0

Re: mfi(4) vs WT and WB

2014-06-06 Thread Otto Moerbeek
On Fri, Jun 06, 2014 at 02:46:35PM -0400, Jim wrote: On Fri, Jun 06, 2014 at 11:45:49AM +0200, Otto Moerbeek wrote: Hi, I have an PERC 6/i Integrated adapter here: mfi0 at pci2 dev 0 function 0 Symbios Logic SAS1078 rev 0x04: apic 1 int 0 mfi0: PERC 6/i Integrated, firmware 6.2.0

ld.so take 2

2014-06-05 Thread Otto Moerbeek
: reallocarray.c,v 1.1 2014/05/08 21:43:49 deraadt Exp $ */ +/* + * Copyright (c) 2008 Otto Moerbeek o...@drijf.net + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice

Re: ld.so take 2

2014-06-05 Thread Otto Moerbeek
OK, Grrr... messed this up, sent thw wrong version. Both the To: header and the text contain errors, but the intend should be clear. Diff is the right version. Take care when replying. -Otto On Thu, Jun 05, 2014 at 02:22:01PM +0200, Otto Moerbeek wrote: Hi, The new malloc has

Re: ld.so take 2

2014-06-05 Thread Otto Moerbeek
On Thu, Jun 05, 2014 at 09:04:25AM -0600, Theo de Raadt wrote: + if (optr != NULL) { + _dl_write(STDERR_FILENO, msg1, sizeof(msg1) - 1); + _dl_exit(7); + } I think this is a trap. A true realloc is not much to add. It can be the simple always

ld.so malloc

2014-06-02 Thread Otto Moerbeek
1970 00:00:00 - +++ malloc.c2 Jun 2014 12:35:48 - @@ -0,0 +1,1022 @@ +/* $OpenBSD: malloc.c,v 1.166 2014/05/26 06:19:07 otto Exp $ */ +/* + * Copyright (c) 2008, 2010, 2011 Otto Moerbeek o...@drijf.net + * Copyright (c) 2012 Matthew Dempsky matt...@openbsd.org + * Copyright (c

move random bytes buffer to mmap'ed region

2014-05-29 Thread Otto Moerbeek
Hi, more localized data access, and there's room in the allocated page(s) anyway. ok? -Otto Index: malloc.c === RCS file: /cvs/src/lib/libc/stdlib/malloc.c,v retrieving revision 1.166 diff -u -p -r1.166 malloc.c ---

move all stats under MALLOC_STATS

2014-05-22 Thread Otto Moerbeek
Hi, some stats are always computed. Move them under #ifdef MALLOC_STATS And a small thing for error reporting. ok? -Otto Index: malloc.c === RCS file: /cvs/src/lib/libc/stdlib/malloc.c,v retrieving revision 1.165 diff -u

Re: better free checking

2014-05-16 Thread Otto Moerbeek
On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: As I learned the hard way not long ago, free() doesn't detect all errors because of the delay mechanism. We can make two improvements. 1. Perform the sanity checking from free_bytes before we insert something into the delay array.

Re: better free checking

2014-05-16 Thread Otto Moerbeek
On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: As I learned the hard way not long ago, free() doesn't detect all errors because of the delay mechanism. We can make two improvements. 1. Perform the sanity checking from free_bytes before we insert something into the delay array.

Re: IPv6 by default

2014-04-29 Thread Otto Moerbeek
On Tue, Apr 29, 2014 at 10:04:35AM -0400, Simon Perreault wrote: Le 2014-04-29 09:55, Henning Brauer a ?crit : Wouldn't it be better if libasr would run A and requests in parallel? Whichever response arrives first wins. no, since that gives extremely unpredictable results. How

Re: IPv6 by default

2014-04-29 Thread Otto Moerbeek
On Tue, Apr 29, 2014 at 04:57:28PM +, Christian Weisgerber wrote: On 2014-04-29, Mark Kettenis mark.kette...@xs4all.nl wrote: Google's data [1] shows a few third-world countries where what you say is true, plus Japan because of a single particularly broken ISP [2]. Isn't there a

Re: mo junk mo problems

2014-04-23 Thread Otto Moerbeek
On Tue, Apr 22, 2014 at 09:49:42PM -0400, Ted Unangst wrote: On Mon, Apr 14, 2014 at 12:12, Otto Moerbeek wrote: On Sun, Apr 13, 2014 at 06:34:17PM -0400, Ted Unangst wrote: I took another look at the way junk works in malloc, and there's a few improvements I'd like to make. I

Re: [patch ping.c] replace malloc memset with calloc

2014-04-22 Thread Otto Moerbeek
, (fd_set *)NULL, timeout) 1) Quoting Otto Moerbeek o...@drijf.net: On Tue, Apr 22, 2014 at 12:45:25AM -0400, Peter Malone wrote: Hi, malloc memset can be replaced with calloc in ping.c. Please see below for patch details: Better rework this to get rid of fdmasks. -Otto

Re: [patch ping.c] replace malloc memset with calloc

2014-04-21 Thread Otto Moerbeek
On Tue, Apr 22, 2014 at 12:45:25AM -0400, Peter Malone wrote: Hi, malloc memset can be replaced with calloc in ping.c. Please see below for patch details: Better rework this to get rid of fdmasks. -Otto Index: ping.c

Re: ffs2 boot

2014-04-17 Thread Otto Moerbeek
On Wed, Apr 16, 2014 at 11:16:00PM -0700, Philip Guenther wrote: On Thursday, April 17, 2014, Otto Moerbeek o...@drijf.net wrote: ... But bear in mind that ffs2 has more overhead in terms of metadata. IMO, making it the default is not a good idea. You have fewer than 24 years left

Re: ffs2 boot

2014-04-17 Thread Otto Moerbeek
17, 2014 at 5:09 AM, Otto Moerbeek o...@drijf.net wrote: On Wed, Apr 16, 2014 at 11:16:00PM -0700, Philip Guenther wrote: On Thursday, April 17, 2014, Otto Moerbeek o...@drijf.net wrote: ... But bear in mind that ffs2 has more overhead in terms of metadata. IMO, making

Re: ffs2 boot

2014-04-16 Thread Otto Moerbeek
) 2011 Joel Sing js...@openbsd.org * Copyright (c) 2010 Otto Moerbeek o...@openbsd.org * Copyright (c) 2003 Tom Cosgrove tom.cosgr...@arches-consulting.com @@ -91,6 +92,7 @@ struct sym_data pbr_symbols[] = { {_inodeblk, 4}, {_inodedbl, 4}, {_nblocks,2

Re: segfault in dhclient 5.4 please help

2014-04-15 Thread Otto Moerbeek
On Mon, Apr 14, 2014 at 09:32:43PM -0400, sven falempin wrote: so i got gdb back to the machine because i cannot reproduce outside of the box. gdb too old cannot gcore. The state is nasty, but i do get the trace of the dhcp transaction. [..] DHCPREQUEST on trunk0 to 255.255.255.255

Re: segfault in dhclient 5.4 please help

2014-04-15 Thread Otto Moerbeek
Op 15 apr. 2014 om 13:13 heeft Kenneth Westerback kwesterb...@gmail.com het volgende geschreven: On 15 April 2014 08:34, Otto Moerbeek o...@drijf.net wrote: On Mon, Apr 14, 2014 at 09:32:43PM -0400, sven falempin wrote: so i got gdb back to the machine because i cannot reproduce outside

Re: mo junk mo problems

2014-04-14 Thread Otto Moerbeek
On Sun, Apr 13, 2014 at 06:34:17PM -0400, Ted Unangst wrote: I took another look at the way junk works in malloc, and there's a few improvements I'd like to make. 1. Remove the Z option. In general, I think malloc options should make programs crash more, not less. This option is a bandaid,

Re: malloc chunk info in region

2014-04-14 Thread Otto Moerbeek
On Mon, Apr 14, 2014 at 11:54:32AM -0600, Bob Beck wrote: On Mon, Apr 14, 2014 at 11:39 AM, Ted Unangst t...@tedunangst.com wrote: Small tweak. Use a union, instead of casts. There's still casting for the call to insert(), but I think this is a little better. Also use the correct type for

Re: malloc chunk info in region

2014-04-14 Thread Otto Moerbeek
On Mon, Apr 14, 2014 at 02:21:27PM -0400, Ted Unangst wrote: On Mon, Apr 14, 2014 at 20:09, Otto Moerbeek wrote: static int -insert(struct dir_info *d, void *p, size_t sz, void *f) +insert(struct dir_info *d, void *p, uintptr_t sz, void *f) Doesn't it make sense for sz to stay

Re: 5.5beta wierds

2014-01-22 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 11:58:44AM -0700, Todd C. Miller wrote: On Tue, 21 Jan 2014 10:44:00 +0100, Otto Moerbeek wrote: And here's the man page diff, our ctime and asctime actually do not ever return NULL, while posix allows that. Isn't it worth documenting that ctime and asctime

Re: 5.5beta wierds

2014-01-21 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 09:08:18PM +1300, Philip Guenther wrote: On Tue, Jan 21, 2014 at 8:33 PM, Otto Moerbeek o...@drijf.net wrote: ... Right. what happens is that localtime(3) returns NULL, because the year is not representable as an int. struct tm.tm_year must be an int according

Re: 5.5beta wierds

2014-01-21 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 09:34:51AM +0100, Otto Moerbeek wrote: On Tue, Jan 21, 2014 at 09:08:18PM +1300, Philip Guenther wrote: On Tue, Jan 21, 2014 at 8:33 PM, Otto Moerbeek o...@drijf.net wrote: ... Right. what happens is that localtime(3) returns NULL, because the year

Re: 5.5beta wierds

2014-01-20 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 03:52:23PM +1100, Rod Whitworth wrote: I had a short run-up of the first 5.5 i386 snap install and it looked pretty much as expected but a more recent one showed up and I grabbed it and loaded it onto my little Shuttle. The dmesg is below but I'll make some

Re: Weird loop in ftp client

2013-11-23 Thread Otto Moerbeek
On Fri, Nov 22, 2013 at 10:04:02PM +0100, Maxime Villard wrote: Le 22/11/2013 17:48, Ted Unangst a ??crit : On Fri, Nov 22, 2013 at 10:09, Stuart Henderson wrote: On 2013/11/22 07:25, Maxime Villard wrote: If write() fails without EPIPE, d is decremented, and the function keeps

Re: make ftp(1) ignore leading whitespace in URLs

2013-11-05 Thread Otto Moerbeek
On Tue, Nov 05, 2013 at 08:54:00PM +0100, Marc Espie wrote: On Tue, Nov 05, 2013 at 02:20:00PM +0100, Janne Johansson wrote: I think this would help the port yt to not crash on such urls, and I think it uses ftp to collect the youtube movies. Fix yt, then. I hate this. Like others say,

Re: Possible buffer overflow in nd6_rtr.c

2013-10-03 Thread Otto Moerbeek
On Thu, Oct 03, 2013 at 08:42:17AM -0700, Loganaden Velvindron wrote: Hi All, From nd6_rtr.c: bzero(ifra, sizeof(ifra)); /* * in6_update_ifa() does not use ifra_name, but we accurately set it * for safety. */ strncpy(ifra.ifra_name, ifp-if_xname,

loongson panic on current

2013-09-28 Thread Otto Moerbeek
Hi, I recently upgraded my yeeloong and now I'm seeing this panic, it happened twice already. All hand-transcribed. panic: kernel diagnostic assertion p-p_wchan == NULL failed: file ../../../../kern/kern_sched.c, line 322 trace: Debugger+0x4 panic+0xe4 addupc_intr+0x0 active process is 2 0 0

Re: rman.h

2013-09-18 Thread Otto Moerbeek
Op 17 sep. 2013 om 21:54 heeft Kyle R W Milz k...@getaddrinfo.net het volgende geschreven: tech@, I was porting over some freebsd kernel code and came across a struct rman and some rman_* utility functions, defined in fbsd's sys/rman.h . Does obsd have an equivalent interface? It might

Re: Iso image integrity verification

2013-09-12 Thread Otto Moerbeek
On Thu, Sep 12, 2013 at 09:22:51AM -0400, Kenneth R Westerback wrote: On Thu, Sep 12, 2013 at 10:49:30AM +0200, InterNetX - Robert Garrett wrote: The real problem here is that in order to be added to certain lists of trusted PKI providers, you must be audited by security Assessors one of

Re: Iso image integrity verification

2013-09-11 Thread Otto Moerbeek
On Wed, Sep 11, 2013 at 03:17:20PM +0300, Valentin Zagura wrote: Yes, we know, but that file can also be easily compromised if it's not available for download with a secure protocol (HTTPS) So get the CD. You'll support the project as well. -Otto On Wed, Sep 11, 2013 at 1:59 PM,

Re: src/sbin/ifconfig: missing include

2013-08-19 Thread Otto Moerbeek
On Mon, Aug 19, 2013 at 12:52:41PM +0200, David Coppa wrote: This misses util.h: cc -O2 -pipe -fno-pie -Wall -DINET6 -c /usr/src/sbin/ifconfig/ifconfig.c /usr/src/sbin/ifconfig/ifconfig.c: In function 'setifwpakey': /usr/src/sbin/ifconfig/ifconfig.c:1759: warning: implicit declaration

Re: SSLHonorCipherOrder for OpenBSD's httpd

2013-07-12 Thread Otto Moerbeek
Example lines for the config file. ok? -Otto Index: httpd.conf === RCS file: /cvs/src/usr.sbin/httpd/conf/httpd.conf,v retrieving revision 1.26 diff -u -p -r1.26 httpd.conf --- httpd.conf 3 Jun 2009 18:28:21 -

Re: SSLHonorCipherOrder for OpenBSD's httpd

2013-07-11 Thread Otto Moerbeek
On Wed, Jul 10, 2013 at 10:28:32AM +0200, Otto Moerbeek wrote: On Sun, Jul 07, 2013 at 10:17:11PM -0700, Aaron Stellman wrote: On Mon, Jul 08, 2013 at 07:06:43AM +0200, Otto Moerbeek wrote: I think you missed the renogiate case. Anyway, I posted almost the same diff some time ago

Re: SSLHonorCipherOrder for OpenBSD's httpd

2013-07-10 Thread Otto Moerbeek
On Sun, Jul 07, 2013 at 10:17:11PM -0700, Aaron Stellman wrote: On Mon, Jul 08, 2013 at 07:06:43AM +0200, Otto Moerbeek wrote: I think you missed the renogiate case. Anyway, I posted almost the same diff some time ago. You're right -- renegotiate case was missed. Your patch from April

Re: base apache and HonorCipherOrder

2013-07-09 Thread Otto Moerbeek
On Mon, Jul 08, 2013 at 01:53:46PM +1000, Damien Miller wrote: On Sun, 7 Jul 2013, Aaron Stellman wrote: On Tue, Apr 23, 2013 at 09:08:19AM +0200, Otto Moerbeek wrote: If there is any interest, I might add the manual stuff, get ok's and commit it. I find it useful to have

Re: SSLHonorCipherOrder for OpenBSD's httpd

2013-07-07 Thread Otto Moerbeek
On Sun, Jul 07, 2013 at 08:40:52PM -0700, Aaron Stellman wrote: On Mon, Jul 08, 2013 at 05:30:22AM +0200, J??r??mie Courr??ges-Anglas wrote: Otto Moerbeek had already done work about this, but no one commented on the mailing-list: http://marc.info/?l=openbsd-techm=136670100711787w=2 I am

Re: SSLHonorCipherOrder for OpenBSD's httpd

2013-07-07 Thread Otto Moerbeek
On Sun, Jul 07, 2013 at 08:18:18PM -0700, Aaron Stellman wrote: As you may or may not know, SSLHonorCipherOrder is supported since apache 2.1. This diff ports this feature to OpenBSD's httpd. Its effects can be tested @ https://www.ssllabs.com/ssltest/analyze.html?d=example.com by playing

Re: libc malloc poison

2013-07-05 Thread Otto Moerbeek
On Thu, Jul 04, 2013 at 05:24:20PM +0200, Mark Kettenis wrote: From: Theo de Raadt dera...@cvs.openbsd.org Date: Thu, 04 Jul 2013 09:04:54 -0600 I suspect the best approach would be a hybrid value. The upper half of the address should try to land in an unmapped zone, or into the zero

panic while resuming with connected ucom

2013-06-21 Thread Otto Moerbeek
Hi, I have a Thinkpad T430 with an internal 3G modem that shows up as a (couple of) umodem. If I have a connection to the corresponding ucom active (with cu or pppd) and suspend the machine followed by a resume, it panics (or rather gets a trap) during resume; hand typed: kernel: protection

Re: help X11 performance: make sigprocmask(2) SY_NOLOCK

2013-06-20 Thread Otto Moerbeek
On Wed, Jun 19, 2013 at 07:39:15PM +, Miod Vallat wrote: - p-p_sigmask = mask ~ sigcantmask; + p-p_sigmask = mask; On the right architecture where a word store isn't atomic enough and with the right compiler that decides to put p_sigmask on an

Re: SOFTRAID PROBLEM

2013-06-16 Thread Otto Moerbeek
On Sun, Jun 16, 2013 at 07:57:48AM +0200, laborat...@cpnetserver.net wrote: Hi, after using some hard-drive with softraid in raid5, I can no longer reset them. All disks the same problem... When I try to delete raid partition disklabel reports: With the command: disklabel -E wd1, after any

Re: dhcpd uses bad current time

2013-05-16 Thread Otto Moerbeek
On Wed, May 15, 2013 at 10:29:22AM +0200, Gerhard Roth wrote: On Wed, 15 May 2013 10:15:54 +0200 Gerhard Roth gr...@genua.de wrote: In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an

Re: dhcpd uses bad current time

2013-05-15 Thread Otto Moerbeek
On Wed, May 15, 2013 at 10:15:54AM +0200, Gerhard Roth wrote: In dhcpd, variable cur_time is set only once per dispatch loop. Unfortunately, this is done before the poll(2) call. Since poll(2) may sleep for an arbitrary amount of time, the value of cur_time might refer to some long ago point

Re: realloc errno

2013-05-11 Thread Otto Moerbeek
On Tue, May 07, 2013 at 12:43:48AM -0400, Ted Unangst wrote: If growing the current region fails, realloc will leave errno set, even though the function will eventually succeed. (Late reply because I was away on vacation) I don't think this is correct. realloc itself already takes care of

Re: DPI for pf(4)

2013-05-02 Thread Otto Moerbeek
fOn Thu, May 02, 2013 at 04:03:05PM +0200, Franco Fichtner wrote: On May 2, 2013, at 3:20 PM, Damien Miller d...@mindrot.org wrote: On Thu, 2 May 2013, Franco Fichtner wrote: OK, the implementation only pulls a couple of bytes from the packet's payload. It will never pull bytes that

Re: rm(1) static addition

2013-04-27 Thread Otto Moerbeek
On Sat, Apr 27, 2013 at 01:08:06AM -0400, Eitan Adler wrote: Hey all, Time for attempt #2! Adding static to internal function allows the compiler to better detect dead code (functions, variables, etc) and makes it easier for the compiler to optimize; e.g., since it knows a function will

Re: rm(1) static addition

2013-04-27 Thread Otto Moerbeek
On Sat, Apr 27, 2013 at 09:09:25PM +0200, Franco Fichtner wrote: On Apr 27, 2013, at 7:36 PM, Ted Unangst t...@tedunangst.com wrote: On Sat, Apr 27, 2013 at 08:10, Otto Moerbeek wrote: On Sat, Apr 27, 2013 at 01:08:06AM -0400, Eitan Adler wrote: Adding static to internal function

base apache and HonorCipherOrder

2013-04-23 Thread Otto Moerbeek
Hi, SSLHonorCipherOrder is needed by some recommended setups to protect against the beast attack, but only available in newer apaches. So I added it to our apache in base. If there is any interest, I might add the manual stuff, get ok's and commit it. -Otto Index:

Re: Mention available filesystem types for disklabel somewhere

2013-04-06 Thread Otto Moerbeek
On Sat, Apr 06, 2013 at 12:43:32PM -0500, Chris Bennett wrote: On Sat, Apr 06, 2013 at 10:48:55AM -0600, Theo de Raadt wrote: I had to search the sources to realise the fat filesystem type is called MSDOS. Maybe at least a header can be mentioned in disklabel(8)? Sorry, everyone knows

Re: nc(1) shutdown(2) typo

2013-03-20 Thread Otto Moerbeek
On Wed, Mar 20, 2013 at 12:43:37AM +, Creamy wrote: On Tue, Mar 19, 2013 at 06:34:31PM -0600, Theo de Raadt wrote: Using netcat to reliably get data is never going to be appropriate for a production system, IMHO. Wow. You sure do set the bar low. Probably a lot of people are

Re: nc(1) shutdown(2) typo

2013-03-19 Thread Otto Moerbeek
On Tue, Mar 19, 2013 at 04:00:46PM +0100, Martin Pelikan wrote: wfd is stdin, so doing a shutdown on it will mostly be a noop, right? Of course you're right. I was so focused on finding the bug I didn't look above what the fd is :-( Are you okay with removing this particular shutdown(2)

Re: nc(1) shutdown(2) typo

2013-03-19 Thread Otto Moerbeek
On Tue, Mar 19, 2013 at 07:48:41PM +0100, Otto Moerbeek wrote: On Tue, Mar 19, 2013 at 02:35:49PM -0400, Ted Unangst wrote: On Tue, Mar 19, 2013 at 17:39, Stuart Henderson wrote: On 2013/03/19 18:26, Otto Moerbeek wrote: On Tue, Mar 19, 2013 at 04:00:46PM +0100, Martin Pelikan wrote

Re: nc(1) shutdown(2) typo

2013-03-19 Thread Otto Moerbeek
On Tue, Mar 19, 2013 at 08:12:15PM +0100, Martin Pelikan wrote: Yes, but it would even be better if there would be an option to get the shutdown on EOF behaviour back. Some servers wait until they see the shutdown from the client to finish their work. woah. Can somebody

Re: nc(1) shutdown(2) typo

2013-03-19 Thread Otto Moerbeek
On Tue, Mar 19, 2013 at 08:43:55PM +0100, J??r??mie Courr??ges-Anglas wrote: Otto Moerbeek o...@drijf.net writes: On Tue, Mar 19, 2013 at 03:16:50PM -0400, Ted Unangst wrote: OK, thanks, I think I get it. Let me summarize: nc currently calls shutdown() when it gets EOF on input

Re: nc(1) shutdown(2) typo

2013-03-18 Thread Otto Moerbeek
On Mon, Mar 18, 2013 at 03:14:59PM +0100, Martin Pelikan wrote: Hi! Theo pointed out an issue with nc(1), as mentioned in https://groups.google.com/forum/?hl=enfromgroups=#!topic/muc.lists.freebsd.bugs/0yNFZVHClcI and

Re: less list_end macros

2013-03-08 Thread Otto Moerbeek
On Fri, Mar 08, 2013 at 10:14:02AM +0100, Mark Kettenis wrote: Date: Fri, 8 Mar 2013 09:55:07 +0100 From: Martin Pieuchot mpieuc...@nolizard.org On 07/03/13(Thu) 22:32, Claudio Jeker wrote: On Thu, Mar 07, 2013 at 04:23:34PM -0500, Ted Unangst wrote: Maybe I'm just easily

Re: add missing semicolon to tree(3) example code

2013-02-17 Thread Otto Moerbeek
On Sun, Feb 17, 2013 at 03:59:41PM +0100, Franco Fichtner wrote: Hi all, found this still lingering in my tree. Still trying to figure out the best workflow for sending patches. Not sure if this adheres to the standards. Thanks, Franco --- share/man/man3/tree.3 | 2 +- 1 file

Re: add missing semicolon to tree(3) example code

2013-02-17 Thread Otto Moerbeek
On Mon, Feb 18, 2013 at 12:11:37AM +0100, Mark Kettenis wrote: Date: Sun, 17 Feb 2013 18:45:10 +0100 From: Otto Moerbeek o...@drijf.net On Sun, Feb 17, 2013 at 03:59:41PM +0100, Franco Fichtner wrote: Hi all, found this still lingering in my tree. Still trying to figure out

Re: Small size_t patch for fsck_ffs

2012-12-26 Thread Otto Moerbeek
On Tue, Dec 25, 2012 at 02:02:01PM -0800, Philip Guenther wrote: On Tue, Dec 25, 2012 at 6:55 AM, Vadim Zhukov persg...@gmail.com wrote: A small nit in fsck_ffs/dir.c. A few lines above (size_t) cast is used, but here it's missing. ... - if (memcmp(dirp-d_name, idesc-id_name,

Re: [PATCH] mlockall() problem in OpenBSD 5.2

2012-12-08 Thread Otto Moerbeek
On Sun, Dec 09, 2012 at 12:26:35AM +0100, Ariane van der Steldt wrote: On 11/09/12 08:56, Gerhard Roth wrote: On Thu, 08 Nov 2012 16:22:41 -0500 Ted Unangst t...@tedunangst.com wrote: On Thu, Nov 08, 2012 at 13:34, Ilya Bakulin wrote: The problem seems to be in uvm_map_pageable_all()

Re: [PATCH] mlockall() problem in OpenBSD 5.2

2012-12-08 Thread Otto Moerbeek
On Sun, Dec 09, 2012 at 08:28:08AM +0100, Otto Moerbeek wrote: On Sun, Dec 09, 2012 at 12:26:35AM +0100, Ariane van der Steldt wrote: On 11/09/12 08:56, Gerhard Roth wrote: On Thu, 08 Nov 2012 16:22:41 -0500 Ted Unangst t...@tedunangst.com wrote: On Thu, Nov 08, 2012 at 13:34, Ilya

Re: Make cron supply valid RFC822 From: and To: headers

2012-11-13 Thread Otto Moerbeek
On Tue, Nov 13, 2012 at 03:14:06PM +0100, Alexander Hall wrote: On 11/13/12 13:49, Christian Weisgerber wrote: Alexander Hall alexan...@beard.se wrote: Since I switched to SMTPD I noticed a few cron emails being marked as spam by spamassassin, largely caused by the From: and To: headers not

dc(1) exp improvements

2012-11-06 Thread Otto Moerbeek
Hi, And here's a diff to repair ^, whcih now produces correct results for things like (dc)0.1 _1 ^p or (bc)0.1 ^ -1 The diff is against very current, so beware. Please test. I have some regress test updates for dc as well. t9 turns out to be a wrong test (computation of 2.1 ^ 500).

Re: dc(1) exp improvements

2012-11-06 Thread Otto Moerbeek
On Tue, Nov 06, 2012 at 04:57:20PM -0430, Andres Perera wrote: On Tue, Nov 6, 2012 at 3:27 PM, Otto Moerbeek o...@drijf.net wrote: Hi, And here's a diff to repair ^, whcih now produces correct results for things like (dc)0.1 _1 ^p or (bc)0.1 ^ -1 The diff is against

Re: remove redundant information from mmap.2

2012-10-17 Thread Otto Moerbeek
Op 16 okt. 2012 om 22:56 heeft Jason McIntyre j...@kerhand.co.uk het volgende geschreven: On Sat, Oct 06, 2012 at 09:40:23PM +0200, Dawe wrote: I think this information is already given in the sentences before. Index: mmap.2 ===

Re: remove redundant information from mmap.2

2012-10-17 Thread Otto Moerbeek
On Wed, Oct 17, 2012 at 03:14:14PM +0100, Jason McIntyre wrote: On Wed, Oct 17, 2012 at 09:06:23AM +0200, Otto Moerbeek wrote: Op 16 okt. 2012 om 22:56 heeft Jason McIntyre j...@kerhand.co.uk het volgende geschreven: On Sat, Oct 06, 2012 at 09:40:23PM +0200, Dawe wrote: I think

Re: make mg statusline a bit more informative

2012-10-10 Thread Otto Moerbeek
On Wed, Oct 10, 2012 at 03:39:39PM +0200, Jasper Lievisse Adriaanse wrote: On Wed, Oct 10, 2012 at 03:31:30PM +0200, Mark Kettenis wrote: Date: Wed, 10 Oct 2012 15:12:59 +0200 From: Jasper Lievisse Adriaanse jas...@openbsd.org Currently the statusline in mg shows the line and column

Re: Threads related SIGSEGV in random.c

2012-09-20 Thread Otto Moerbeek
On Thu, Sep 20, 2012 at 09:42:16AM +0100, Stuart Henderson wrote: On 2012/09/19 22:06, Stefan Sperling wrote: On Wed, Sep 19, 2012 at 10:37:09PM +0300, Alexey Suslikov wrote: Could you guide me how to rebuild/reinstall libc in a proper way? It's easy, just needs 11 steps. This is how I

Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Otto Moerbeek
Op 19 sep. 2012 om 17:28 heeft Theo de Raadt dera...@cvs.openbsd.org het volgende geschreven: arc4random() is also thread-safe (it has interal locking) and very desirable for other reasons. But no way to save state. The last part of this is intentional. Saving the state of pseudo random

Re: Threads related SIGSEGV in random.c

2012-09-18 Thread Otto Moerbeek
On Tue, Sep 18, 2012 at 09:45:59PM -0400, Ted Unangst wrote: On Wed, Sep 19, 2012 at 00:48, Alexey Suslikov wrote: No, according to posix it should be thread safe. I don't know why, since rand() is one of the exempted functions, but random() is not. Standards gods are capricious

Re: fts(3) traversal priority in cp(1)

2012-08-24 Thread Otto Moerbeek
On Thu, Aug 23, 2012 at 01:33:37PM -0700, Philip Guenther wrote: On Thu, Aug 23, 2012 at 12:32 PM, Jan Stary h...@stare.cz wrote: cp.c says: /* * mastercmp -- * The comparison function for the copy order. The order is to copy * non-directory files before directory

Re: fts(3) traversal priority in cp(1)

2012-08-24 Thread Otto Moerbeek
On Fri, Aug 24, 2012 at 08:12:49AM +0200, Otto Moerbeek wrote: On Thu, Aug 23, 2012 at 01:33:37PM -0700, Philip Guenther wrote: On Thu, Aug 23, 2012 at 12:32 PM, Jan Stary h...@stare.cz wrote: cp.c says: /* * mastercmp -- * The comparison function for the copy order

Re: recno(3) patch

2012-07-27 Thread Otto Moerbeek
On Fri, Jul 27, 2012 at 03:54:43PM +0300, Gregory Edigarov wrote: Hello, Seems like a typo is in there. Don't tink so. Integral type is used in the C standard to mean any type containing whole numbers. This is to avoid confusion beteen int (the specific type) and integer (a type with

Re: recno(3) patch

2012-07-27 Thread Otto Moerbeek
On Fri, Jul 27, 2012 at 03:05:56PM +0200, Otto Moerbeek wrote: On Fri, Jul 27, 2012 at 03:54:43PM +0300, Gregory Edigarov wrote: Hello, Seems like a typo is in there. Don't tink so. Integral type is used in the C standard to mean any type containing whole numbers. This is to avoid

Re: Any idea of donate a Raspberry Pi to a developer?

2012-07-18 Thread Otto Moerbeek
On Tue, Jul 17, 2012 at 07:55:28PM +0200, Johan Ryberg wrote: You simply just throw another persons political opinion on me. I have read that thread as well but that's not the point. Do you honestly believe that one answer speaks for all other very skilled developers? It's a fact that the

Re: ftp mput recursiv upload diff for testing

2012-07-13 Thread Otto Moerbeek
On Fri, Jul 13, 2012 at 06:58:48PM +0200, Alexander Bluhm wrote: On Fri, Jul 13, 2012 at 03:23:26AM +0200, Jan Klemkow wrote: + char *cmd, *tp, *xargv[] = {argv[0], NULL, NULL}; Put spaces inside {}: { argv[0], NULL, NULL } It took me a while to figure out what that code does, so

Re: Virtio drivers for OpenBSD

2012-07-11 Thread Otto Moerbeek
On Wed, Jul 11, 2012 at 02:07:00PM +0200, Stefan Fritsch wrote: Hi, I have been working on porting NetBSD's virtio drivers to OpenBSD. I am not finished yet, but in order to prevent duplicate work, I thought I'd publish the current state (attached as diff to OpenBSD 5.1). It adds a

Re: typos in stat(2)

2012-07-11 Thread Otto Moerbeek
On Wed, Jul 11, 2012 at 02:11:56PM +0200, Han Boetes wrote: I found these typos in the stat(2) manpage: Really? I think it already was explained. This morning. -Otto Index: sys/stat.2 === RCS file:

Re: tinyscheme + mg

2012-06-28 Thread Otto Moerbeek
On Thu, Jun 28, 2012 at 11:00:24AM -0600, Nick Bender wrote: On Thu, Jun 28, 2012 at 9:16 AM, Ted Unangst t...@tedunangst.com wrote: Integration is one of the goals. ?I can't predict what extensions you may want to write. ?I mean, mg already reads a .mg file. ?If we knew what people were

Re: tinyscheme + mg

2012-06-28 Thread Otto Moerbeek
On Thu, Jun 28, 2012 at 12:40:57PM -0600, Nick Bender wrote: On Thu, Jun 28, 2012 at 12:29 PM, Otto Moerbeek o...@drijf.net wrote: On Thu, Jun 28, 2012 at 11:00:24AM -0600, Nick Bender wrote: raises head TCL? BSD, small, fast, been around forever, C like syntax. In base would

Re: c++ headers w/ -pedantic, overflow in implicit constant conversion

2012-05-10 Thread Otto Moerbeek
On Thu, May 10, 2012 at 08:46:26AM -0700, Matthew Dempsky wrote: On Thu, Mar 15, 2012 at 3:19 AM, Marc Espie es...@nerim.net wrote: #define __glibcxx_max(T) \ - (__glibcxx_signed (T) ? ((T)1 __glibcxx_digits (T)) - 1 : ~(T)0) + (__glibcxx_signed (T) ? \ + (T)1

Re: c++ headers w/ -pedantic, overflow in implicit constant conversion

2012-05-10 Thread Otto Moerbeek
On Thu, May 10, 2012 at 05:00:19PM +, Miod Vallat wrote: Look, landry just reminded me that I forgot to commit this. It was mostly awaiting test results, and we've been running with this for almost two months. If you think something else is better, take it upstream, since I

Re: login_yubikey does not accept user.name

2012-04-05 Thread Otto Moerbeek
On Thu, Apr 05, 2012 at 01:32:46PM +0200, Bj?rn Ketelaars wrote: On Thu, Apr 5, 2012 at 6:51 AM, Otto Moerbeek o...@drijf.net wrote: That sounds like timing bases attacks to guess a username still will work. -Otto First thing I thought when reading your reply: absolute nonsense

Re: login_yubikey does not accept user.name

2012-04-04 Thread Otto Moerbeek
On Wed, Apr 04, 2012 at 09:43:35PM +0200, Bj?rn Ketelaars wrote: 2012/4/4 Todd C. Miller todd.mil...@courtesan.com: Why do we care if the user exists? Ideally, you want the code to behave more or less the same whether the user is real or not. Otherwise, a remote attacker can guess valid

Re: aml: Fix integer types to be unsigned

2012-04-01 Thread Otto Moerbeek
On Sun, Apr 01, 2012 at 01:54:10PM +0300, Paul Irofti wrote: [--snip-some-of-the-gyping-from-my-initial-diff--] case AML_OBJTYPE_STRING: - if (ival == -1) + if (ival == (uint64_t)-1) This is what I tried first as well. But this cast fails on my x61s where ival

Re: aml: Fix integer types to be unsigned

2012-03-31 Thread Otto Moerbeek
On Sat, Mar 31, 2012 at 01:47:18AM +0300, Paul Irofti wrote: After the report from a few weeks ago I went ahead and fixed most (if not all) of the signed integer usages in the AML parser. Please have a look at this diff, test it thoroughly and comment/okay it. Some comments inline.

Re: md5: new -C flag to skip non-existent files in checklist

2012-03-15 Thread Otto Moerbeek
On Thu, Mar 15, 2012 at 03:26:44AM -0400, Ted Unangst wrote: On Mon, Mar 12, 2012, Stuart Henderson wrote: On 2012/03/12 00:49, Daniel C. Sinclair wrote: What do you think of making cksum output: (SHA256) nonexistant.txt: MISSING instead of FAILED and the extra output to stderr

Re: Sysctl(3) man page

2012-03-09 Thread Otto Moerbeek
On Fri, Mar 09, 2012 at 05:08:43PM -0500, Donald Allen wrote: On Fri, Mar 9, 2012 at 4:40 PM, Ted Unangst t...@tedunangst.com wrote: On Fri, Mar 09, 2012, Donald Allen wrote: OpenBSD's pride in its man pages is justified, for the most part. But having recently decided to come back to

Re: ksh(1): encapsulate hashtable iteration usage

2012-02-18 Thread Otto Moerbeek
On Sat, Feb 18, 2012 at 09:18:29PM +0100, Steffen Daode Nurpmeso wrote: [snip] while I did graduate on a theoretical computer science subject myself I think this alternate hash table stuff is all overkill for ksh. A typical shell instance has very little vars. Added to that, the ksh code is

Re: calendar in Debian

2012-01-25 Thread Otto Moerbeek
On Sat, Jan 21, 2012 at 09:39:30AM +0100, Otto Moerbeek wrote: On Fri, Jan 20, 2012 at 10:48:54AM +0100, Otto Moerbeek wrote: On Fri, Jan 20, 2012 at 10:38:35AM +0100, Michael Meskes wrote: On Thu, Jan 19, 2012 at 09:41:08PM +0100, Otto Moerbeek wrote: With a hint from Paul

Re: calendar in Debian

2012-01-21 Thread Otto Moerbeek
On Fri, Jan 20, 2012 at 10:48:54AM +0100, Otto Moerbeek wrote: On Fri, Jan 20, 2012 at 10:38:35AM +0100, Michael Meskes wrote: On Thu, Jan 19, 2012 at 09:41:08PM +0100, Otto Moerbeek wrote: With a hint from Paul Jantzen I did test this a bit further. There's That is, Paul Janzen

Re: calendar in Debian

2012-01-20 Thread Otto Moerbeek
On Fri, Jan 20, 2012 at 10:30:01AM +0100, Michael Meskes wrote: On Thu, Jan 19, 2012 at 09:38:06PM +0100, Otto Moerbeek wrote: With a hint from Paul Jantzen I did test this a bit further. There's code to avoid having a child runing too long. If you have 20s patience, you'll see

Re: calendar in Debian

2012-01-20 Thread Otto Moerbeek
On Fri, Jan 20, 2012 at 10:38:35AM +0100, Michael Meskes wrote: On Thu, Jan 19, 2012 at 09:41:08PM +0100, Otto Moerbeek wrote: With a hint from Paul Jantzen I did test this a bit further. There's That is, Paul Janzen, sorry about that. code to avoid having a child runing too long

Re: calendar in Debian

2012-01-19 Thread Otto Moerbeek
On Thu, Jan 19, 2012 at 10:40:13AM +0100, Michael Meskes wrote: Hi, I'm working on the Debian package bsdmainutils which includes calendar from OpenBSD. In an effort to fix bugs and improve the feature set we added several patches to calendar. Some are Linux specific, but the majority

<    2   3   4   5   6   7   8   9   >