lex: malloc+memset -> calloc

2017-08-16 Thread Michael W. Bombardieri
Hello, Two instances of memset() can be removed in lex if calloc() is used instead of malloc(). - Michael Index: filter.c === RCS file: /cvs/src/usr.bin/lex/filter.c,v retrieving revision 1.7 diff -u -p -u -r1.7 filter.c ---

Re: Improve the accuracy of the TSC frequency calibration (Was: Calculate the frequency of the tsc timecounter)

2017-08-16 Thread Adam Steen
On Tue, Aug 8, 2017 at 10:12 PM, Mike Belopuhov wrote: > On Tue, Aug 08, 2017 at 08:18 +0800, Adam Steen wrote: >> On Mon, Jul 31, 2017 at 3:58 PM, Mike Belopuhov wrote: >> > On Mon, Jul 31, 2017 at 09:48 +0800, Adam Steen wrote: >> >> Ted Unangst wrote:

Re: CID 1452946, 1452957: Uninitialized scalar variable (bridge_ipsec)

2017-08-16 Thread Alexander Bluhm
On Wed, Aug 16, 2017 at 05:18:09PM +0200, Mike Belopuhov wrote: > Hi, > > In may this year, the condition that would make this break do the > right thing got removed and now if a short packet is sent to an > ipsec-enabled bridge, various things like 'spi' and 'off' are left > uninitialized, but

tftp: use monotonic clock for statistics summary

2017-08-16 Thread Scott Cheloha
Hi, Same deal here as in dd(1). We display the elapsed time so we want a monotonic clock. -- Scott Cheloha Index: usr.bin/tftp/tftp.c === RCS file: /cvs/src/usr.bin/tftp/tftp.c,v retrieving revision 1.24 diff -u -p -r1.24 tftp.c

Re: hfsc_deferred race

2017-08-16 Thread Mike Belopuhov
On Tue, Aug 15, 2017 at 17:14 +0200, Mike Belopuhov wrote: > Hi, > > I've just triggered an assert in hfsc_deferred (a callout) on an > MP kernel running on an SP virtual machine: > > panic: kernel diagnostic assertion "HFSC_ENABLED(ifq)" failed: file >

Re: qemu vmm 6.0 / 6.1

2017-08-16 Thread Mike Larkin
On Wed, Aug 16, 2017 at 11:09:57AM -0400, sven falempin wrote: > 6.1 got a firmware (ewww) for seabios > if you dont like this you are free to delete it and use the -b option in vmctl instead. You just don't get non-openbsd guests. your choice. -ml > i mean this :

Re: qemu vmm 6.0 / 6.1

2017-08-16 Thread Bryan Steele
On Wed, Aug 16, 2017 at 11:09:57AM -0400, sven falempin wrote: > 6.1 got a firmware (ewww) for seabios > > i mean this : /usr/ports/sysutils/firmware/vmm > > If i compile this ports on 6.0 do i have any chance it does something right > or i am just digging my grave deeper ? > > Best, > > > --

CID 1453358: Out-of-bounds read (bufq_init)

2017-08-16 Thread Mike Belopuhov
There's only two disk elevator disciplines 0 - fifo and 1 - nscan. BUFQ_HOWMANY is 2, but the 'type' should be checked against (BUFQ_HOWMANY - 1) as it's used as an index. OK? diff --git sys/kern/kern_bufq.c sys/kern/kern_bufq.c index 7ed83470e58..ad9558e0d53 100644 --- sys/kern/kern_bufq.c +++

CID 1452946, 1452957: Uninitialized scalar variable (bridge_ipsec)

2017-08-16 Thread Mike Belopuhov
Hi, In may this year, the condition that would make this break do the right thing got removed and now if a short packet is sent to an ipsec-enabled bridge, various things like 'spi' and 'off' are left uninitialized, but thankfully the gettdb call that follows will most likely fail when presented

Re: qemu vmm 6.0 / 6.1

2017-08-16 Thread Theo de Raadt
> 6.1 got a firmware (ewww) for seabios > > i mean this : /usr/ports/sysutils/firmware/vmm > > If i compile this ports on 6.0 do i have any chance it does something right > or i am just digging my grave deeper ? If you do all the work, you can perform magic. But if you are asking others to

qemu vmm 6.0 / 6.1

2017-08-16 Thread sven falempin
6.1 got a firmware (ewww) for seabios i mean this : /usr/ports/sysutils/firmware/vmm If i compile this ports on 6.0 do i have any chance it does something right or i am just digging my grave deeper ? Best, -- --

Additional media options for ix(4) [again]

2017-08-16 Thread Mike Belopuhov
Hi, I haven't gotten any feedback on the following diff but I think there's still hope. Please test. Original mail: I won't mind some broad testing of the following diff which adds some additional media options to ix(4) from FreeBSD and includes a fix for changing media from Masanobu SAITOH.

[patch] make cipher list preference configurable in httpd

2017-08-16 Thread Andreas Bartelt
The following patch makes the TLS cipher list preference (server vs. client) configurable in httpd (like in relayd): Index: src/usr.sbin/httpd/config.c === RCS file: /cvs/src/usr.sbin/httpd/config.c,v retrieving revision 1.53 diff

Re: [patch] Add -z and -Z to apmd for automatic suspend/hibernate

2017-08-16 Thread Jesper Wallin
On Tue, Aug 15, 2017 at 07:24:47PM -0400, Ted Unangst wrote: > this looks good. will commit soon. > > (one nit, i'll correct, is man page options are upper case first.) Noted for future reference. Thanks!