Re: UTF-8 string filtering

2015-09-05 Thread Sebastien Marie
On Fri, Sep 04, 2015 at 03:17:31PM +1000, Damien Miller wrote: > Hi, > > Comments appreciated. as micm@ already mentioned, utf8_stringprep.c in patch is in two (or three ?) copies of itself in the same file. > diff --git a/sshconnect2.c b/sshconnect2.c > index 2b525ac..04120e7 100644 > ---

Re: UTF-8 string filtering

2015-09-05 Thread Stefan Sperling
On Sat, Sep 05, 2015 at 10:16:17AM +0200, Sebastien Marie wrote: > but be aware that some functions, like, `mblen' (used in sftp.c, so not > in same context than `utf8_ok' I think), could copte badly with > setlocale() call (man mblen extract): > > Calling any other functions in libc never

Re: Avoid grabbing the kernel lock in pool backend allocator

2015-09-05 Thread Mark Kettenis
> From: Alexey Suslikov > Date: Sat, 5 Sep 2015 08:49:17 + (UTC) > > Mark Kettenis xs4all.nl> writes: > > > RCS file: /cvs/src/sys/kern/subr_pool.c,v > > > > > kd.kd_waitok = ISSET(flags, PR_WAITOK); > > > > > + /* > > +* XXX Until we can call

trunk weirdness

2015-09-05 Thread Dimitris Papastamos
Hi all, I have a trunk failover setup between my wired and wireless connection. My wired is master and my wireless is slave. My config is as follows: ==> /etc/hostname.em0 <== up ==> /etc/hostname.iwn0 <== nwid FOO wpakey XXX up ==> /etc/hostname.trunk0 <== trunkproto failover trunkport em0

Re: UTF-8 string filtering

2015-09-05 Thread Stefan Sperling
On Fri, Sep 04, 2015 at 03:17:31PM +1000, Damien Miller wrote: > +/* Check whether we can display UTF-8 safely */ > +static int > +utf8_ok(void) > +{ > + static int ret = -1; > + char *cp; > + > + if (ret == -1) { > + setlocale(LC_CTYPE, ""); As discussed in the other

Re: trunk weirdness

2015-09-05 Thread Stuart Henderson
On 2015/09/05 12:13, Dimitris Papastamos wrote: > On Sat, Sep 05, 2015 at 12:04:20PM +0100, Dimitris Papastamos wrote: > > Scenario 1 - boot with em0 active > > 1) pinging via em0 works > > 2) switch to iwn0, ping doesn't work <-- problem > > 3) switch to em0, ping works > > 4) sh /etc/netstart >

Re: mkhybrid minor fixes

2015-09-05 Thread Philip Guenther
On Thu, Sep 3, 2015 at 10:08 AM, Miod Vallat wrote: > mkhybrid(8) does not seem to be maintained upstream. Here are a few > minor fixes to it: > - buffer overflows, spotted by -Wbounded. They are caused by the way > char name[] is defined in struct iso_directory_record in >

Re: Avoid grabbing the kernel lock in pool backend allocator

2015-09-05 Thread Alexey Suslikov
Mark Kettenis xs4all.nl> writes: > RCS file: /cvs/src/sys/kern/subr_pool.c,v > kd.kd_waitok = ISSET(flags, PR_WAITOK); > + /* > + * XXX Until we can call msleep(9) without holding the kernel > + * lock. > + */ > + if (ISSET(flags, PR_WAITOK)) It there a

Re: trunk weirdness

2015-09-05 Thread Dimitris Papastamos
On Sat, Sep 05, 2015 at 12:04:20PM +0100, Dimitris Papastamos wrote: > Scenario 1 - boot with em0 active > 1) pinging via em0 works > 2) switch to iwn0, ping doesn't work <-- problem > 3) switch to em0, ping works > 4) sh /etc/netstart > 5) pinging via em0 works > 6) switch to iwn0, ping works

Remove lies from pool(9) man page

2015-09-05 Thread Mark Kettenis
This documents that the way to choose a non-interrupt safe backend allocator is by passing the PR_WAITOK flag to pool_init(). Also documentes that this means that pool_put() may sleep[1] in that case, something that mikeb@ noted yesterday. ok? [1] The non-interrupt safe multi page allocator

Re: nc -c, because openssl s_[client|server] sucks donkey balls

2015-09-05 Thread Bob Beck
On Sat, Sep 05, 2015 at 10:13:14AM -0600, Bob Beck wrote: > I doodled this into netcat last night, because I got tired of typing openssl > s_client > and s_server when testing things.. Still scripts nicely. > >

Re: trunk weirdness

2015-09-05 Thread Dimitris Papastamos
On Sat, Sep 05, 2015 at 12:39:21PM +0100, Stuart Henderson wrote: > On 2015/09/05 12:13, Dimitris Papastamos wrote: > > On Sat, Sep 05, 2015 at 12:04:20PM +0100, Dimitris Papastamos wrote: > > > Scenario 1 - boot with em0 active > > > 1) pinging via em0 works > > > 2) switch to iwn0, ping doesn't

Prepare sort(1) for tame(2)

2015-09-05 Thread Rob Pierce
Move set_hw_params() up (sysctl/getrlimit system calls) so tame(2) can be called earlier. Index: sort.c === RCS file: /cvs/src/usr.bin/sort/sort.c,v retrieving revision 1.79 diff -u -p -r1.79 sort.c --- sort.c 5 Apr 2015

Re: nc -c, because openssl s_[client|server] sucks donkey balls

2015-09-05 Thread Sebastien Marie
On Sat, Sep 05, 2015 at 10:13:14AM -0600, Bob Beck wrote: > I doodled this into netcat last night, because I got tired of typing openssl > s_client > and s_server when testing things.. Still scripts nicely. > >

OpenBSD or OpenBSD projects Mirroring/ hosting in Ireland ?

2015-09-05 Thread Tom Smyth
Hi Lads, What requirements do you have for mirrors, I would like to help, we have 2 upstream providers on... and multiple peerings on our local exchange.. If you think this is useful or helpful... you are welcome to talk about your requirements and I will try to deliver on those.. -- Kindest

Re: UTF-8 string filtering (missing check in mbrtowc [utf8])

2015-09-05 Thread Sebastien Marie
On Sat, Sep 05, 2015 at 01:26:18PM +0200, Stefan Sperling wrote: > > > +static u_int32_t > > +decode_utf8(const char *in, const char **nextc, int *had_error) > > +{ > > Please make sure this function performs the same validation checks > as

Re: [patch] httpd: fcgi/PATH_INFO not handled correctly

2015-09-05 Thread Joerg Jung
On Sun, Aug 30, 2015 at 08:40:57PM +0200, Joerg Jung wrote: > On Wed, Aug 26, 2015 at 08:23:22PM +0200, Denis Fondras wrote: > > Hello, > > > > While using httpd together uwsgi and Flask, I noticed that GET requests to / > > returned 404. The same setup with nginx was returning 200. > > > > The

[patch] fdisk: show value range for partition offset/size

2015-09-05 Thread Gregor Best
Hi people, the following patch changes the prompt for the 'Partition size' and 'Partition offset' prompts in fdisk to show the range of allowed values and display the raw value as well when showing an error for out of bounds values. Index: misc.c

Re: UTF-8 string filtering

2015-09-05 Thread Sebastien Marie
About the approch, I see one possible drawback: with this API, we couldn't work on partial string, and we have to manage the whole string in memory. Depending of the usage, it could be a problem (for large block processing for example). On Fri, Sep 04, 2015 at 03:17:31PM +1000, Damien Miller

Re: UTF-8 string filtering

2015-09-05 Thread Stefan Sperling
On Sat, Sep 05, 2015 at 04:38:30PM +0300, pizdel...@gmail.com wrote: > On Sat, Sep 05, 2015 at 01:26:18PM +0200, Stefan Sperling wrote: > > I can't see where you're checking for overlong UTF-8 sequences, for example. > > It is somewhere in there > > + } else if ((e & 0xe0)

Re: trunk weirdness

2015-09-05 Thread Stuart Henderson
On 2015/09/05 13:18, Dimitris Papastamos wrote: > On Sat, Sep 05, 2015 at 12:39:21PM +0100, Stuart Henderson wrote: > > On 2015/09/05 12:13, Dimitris Papastamos wrote: > > > On Sat, Sep 05, 2015 at 12:04:20PM +0100, Dimitris Papastamos wrote: > > > > Scenario 1 - boot with em0 active > > > > 1)

Re: UTF-8 string filtering (missing check in mbrtowc [utf8])

2015-09-05 Thread Stefan Sperling
On Sat, Sep 05, 2015 at 02:40:12PM +0200, Sebastien Marie wrote: > We have a missing check in libc function. > > RFC 3629 ask for limiting the range to 0x10: > https://tools.ietf.org/html/rfc3629#page-10 > > Currently, passing a c-string with "f7 bf bf bf" to mbrtowc(3) [with > UTF-8

Re: UTF-8 string filtering

2015-09-05 Thread pizdelect
On Sat, Sep 05, 2015 at 01:26:18PM +0200, Stefan Sperling wrote: > I can't see where you're checking for overlong UTF-8 sequences, for example. It is somewhere in there + } else if ((e & 0xe0) == 0xc0) { /* 11 bit code point */ + state = 1;

ldconfig: missing strdup checks

2015-09-05 Thread Tobias Stoeckmann
Okay to add missing strdup checks to ldconfig? Index: libexec/ld.so/ldconfig/library.c === RCS file: /cvs/src/libexec/ld.so/ldconfig/library.c,v retrieving revision 1.9 diff -u -p -r1.9 library.c --- libexec/ld.so/ldconfig/library.c

Re: virtualization support

2015-09-05 Thread Lampshade
Sorry for newbie question, but I am curious and this hipervisor is new thing so there is no man pages yet. I have read general classification of hypervisors on Wikipedia and there are types: Type-1 and Type-2. I have also read about KVM on cern.ch's Wiki.

nc -c, because openssl s_[client|server] sucks donkey balls

2015-09-05 Thread Bob Beck
I doodled this into netcat last night, because I got tired of typing openssl s_client and s_server when testing things.. Still scripts nicely.

Re: efifb(4) improvements

2015-09-05 Thread YASUOKA Masahiko
ok yasuoka The diff speeded up boot time 32.5 sec => 18.0 sec (with -s, until appearing prompt of single user mode). On Sun, 6 Sep 2015 00:49:09 +0200 (CEST) Mark Kettenis wrote: > On most modern hardware reading from a framebuffer is much slower than > writing to it.

efifb(4) improvements

2015-09-05 Thread Mark Kettenis
On most modern hardware reading from a framebuffer is much slower than writing to it. This is why when I added code to the rasops code to remember the characters written and simply redraw them when we scroll the console. That code only works when RI_VCONS was specified, because that code already