Re: Want to help upstream software improve their random?

2014-12-14 Thread Theo de Raadt
> > Sent: Friday, December 12, 2014 at 5:02 AM > > From: "Theo de Raadt" > > To: t...@cvs.openbsd.org > > Subject: Want to help upstream software improve their random? > > > > Not my business, but how do you handle cases of rand() & srand()-like > calls from software like awk? awk in OpenBSD has

tcpdump non-blocking/immediate mode patch

2014-12-14 Thread Simon Mages
Hi, tcpdump feels a bit laggy or slow some times when i use it for live debugging. The following patch adds a new flag, '-b', to tcpdump. With this flag, tcpdump sets BIOCIMMEDIATE on the bpf(4) device. With BIOCIMMEDIATE set, the output is fluent. Index: usr.sbin/tcpdump/privsep.c =

Re: Want to help upstream software improve their random?

2014-12-14 Thread Kamil Rytarowski
> Sent: Friday, December 12, 2014 at 5:02 AM > From: "Theo de Raadt" > To: t...@cvs.openbsd.org > Subject: Want to help upstream software improve their random? > Not my business, but how do you handle cases of rand() & srand()-like calls from software like awk? What is and what should be the res

acpicpu _CST handling for mwait

2014-12-14 Thread Philip Guenther
Some time ago, I had added support for using the MWAIT instruction in the idle loop. Various people found that made their boxes run hot, to the point that several developers diked it out of their own builds; I've committed one of those yesteryad pending a proper fix. So, to start on that: the

Fix some vulnerabilities in file(1)

2014-12-14 Thread Florian Riehm
Hi, the attached patch fixes two vulnerabilities in file(1): CVE-2014-2270: A specifically crafted Portable Executable (PE) can trigger out-of-bounds read. CVE-2014-1943: A malicious input file could trigger infinite recursion in libmagic(3). The patch is based on a FreeBSD security advisory an

azalia(4) enable ADC / DAC selection while running

2014-12-14 Thread Frederic Nowak
Hi! The azalia(4) driver blocks switching between digital and analog converters when media is playing and complains about a busy device. The patch below allows switching converters by disconnecting the streams before switching converters and reconnecting them afterwards. This allows to start audio