rc(8): reorder_libs(): print names of relinked libraries

2022-07-29 Thread Scott Cheloha
Recently I've been doing some MIPS64 stuff on my EdgeRouter PoE. It has a USB disk, two 500MHz processors, and 512MB of RAM. So, every time I reboot to test the next iteration of my kernel patch, I get to here: reordering libraries: and I sit there for half a minute or more and wonder

Re: remove pre-486 code from i386 platform

2022-07-29 Thread Tomasz Rola
On Fri, Jul 29, 2022 at 02:46:26AM -0400, Daniel Dickman wrote: > [...] > > Should we add defines for the 286 too? I do not think OpenBSD ever ran on 286, right? Adding defines for 286 would thus be rather pointless. Keeping some #define lines is easier than explaining every now and then why

Build llvm-cov in base

2022-07-29 Thread Frederic Cambus
Hi tech@, Now that we have llvm-profdata in base, I would like to propose adding llvm-cov as well. Just like llvm-profdata, it is fast to build and only takes a few seconds on my amd64 machine. Having it in base would allow producing reports from coverage data processed with llvm-profdata

Re: Consistency and cleanup in /share/misc/airport

2022-07-29 Thread Thomas Wager
On Thu, 2022-07-28 at 21:45 -0400, Daniel Dickman wrote: > > No thanks. These are pretty standard ways to refer to groups of > airports that are close by. We have a bunch of these in the file and > I'd hate to lose these. > > BHZ:All Airports around Belo Horizonte, MG, Brazil > BUE:All Airports

Re: route(8), mention id(1)? [was Re: patch to ksh to show current rdomain]

2022-07-29 Thread Klemens Nanni
On Fri, Jul 29, 2022 at 03:29:01PM +0100, Stuart Henderson wrote: > On 2022/07/29 14:01, Klemens Nanni wrote: > > retrieving revision 1.103 > > diff -u -p -r1.103 route.8 > > --- sbin/route/route.8 31 Mar 2022 17:27:20 - 1.103 > > +++ sbin/route/route.8 29 Jul 2022 13:54:26

Re: [v4] amd64: simplify TSC sync testing

2022-07-29 Thread Dave Voutila
Mark Kettenis writes: >> From: Dave Voutila >> Date: Fri, 29 Jul 2022 10:51:20 -0400 >> >> Mark Kettenis writes: >> >> >> From: Dave Voutila >> >> Date: Fri, 29 Jul 2022 10:10:01 -0400 >> >> >> >> Scott Cheloha writes: >> >> >> >> > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila

Re: [v4] amd64: simplify TSC sync testing

2022-07-29 Thread Mark Kettenis
> From: Dave Voutila > Date: Fri, 29 Jul 2022 10:51:20 -0400 > > Mark Kettenis writes: > > >> From: Dave Voutila > >> Date: Fri, 29 Jul 2022 10:10:01 -0400 > >> > >> Scott Cheloha writes: > >> > >> > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila wrote: > >> >> > >> >> Stuart

Weakness of Internet of Things security

2022-07-29 Thread Nelson H. F. Beebe
Recent traffic on this list is addressing OpenBSD issues with respect to randomness for improving security. There is an excellent survey published today of problems with Internet of Things security, which in turn affects O/S development, written by two prominent cryptographers, one of whom is the

Re: randomise arc4random() rekey interval

2022-07-29 Thread Theo de Raadt
>Another option is to move the _rs_stir_if_needed() calls from >_rs_random_u32() and _rs_random_buf() to arc4random() and >arc4random_buf(). The latter two are the subsystem's entry points. That requires more careful review of the -portable versions in libcrypto. It seems they were forgotten.

Re: [v4] amd64: simplify TSC sync testing

2022-07-29 Thread Dave Voutila
Mark Kettenis writes: >> From: Dave Voutila >> Date: Fri, 29 Jul 2022 10:10:01 -0400 >> >> Scott Cheloha writes: >> >> > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila wrote: >> >> >> >> Stuart Henderson writes: >> >> >> >> > On 2022/07/28 12:57, Scott Cheloha wrote: >> >> >> On

Re: [v4] amd64: simplify TSC sync testing

2022-07-29 Thread Mark Kettenis
> From: Dave Voutila > Date: Fri, 29 Jul 2022 10:10:01 -0400 > > Scott Cheloha writes: > > > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila wrote: > >> > >> Stuart Henderson writes: > >> > >> > On 2022/07/28 12:57, Scott Cheloha wrote: > >> >> On Thu, Jul 28, 2022 at 07:55:40AM -0400,

Re: [v4] amd64: simplify TSC sync testing

2022-07-29 Thread Dave Voutila
Scott Cheloha writes: > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila wrote: >> >> Stuart Henderson writes: >> >> > On 2022/07/28 12:57, Scott Cheloha wrote: >> >> On Thu, Jul 28, 2022 at 07:55:40AM -0400, Dave Voutila wrote: >> >> > >> >> > This is breaking timecounter selection on

Re: route(8), mention id(1)? [was Re: patch to ksh to show current rdomain]

2022-07-29 Thread Stuart Henderson
On 2022/07/29 14:01, Klemens Nanni wrote: > retrieving revision 1.103 > diff -u -p -r1.103 route.8 > --- sbin/route/route.831 Mar 2022 17:27:20 - 1.103 > +++ sbin/route/route.829 Jul 2022 13:54:26 - > @@ -78,6 +78,9 @@ Suppress all output. > .It Fl T Ar rtable >

Re: route(8), mention id(1)? [was Re: patch to ksh to show current rdomain]

2022-07-29 Thread Klemens Nanni
On Tue, Jul 26, 2022 at 12:09:29PM +, Klemens Nanni wrote: > On Tue, Jul 26, 2022 at 12:44:20PM +0100, Stuart Henderson wrote: > > I tried looking for a command to do this and completely failed > > hence the ugly ps command. Do we want something like this? > > I think it's useful. There's

Re: randomise arc4random() rekey interval

2022-07-29 Thread Visa Hankala
On Fri, Jul 29, 2022 at 06:56:08AM -0600, Theo de Raadt wrote: > Visa Hankala wrote: > > > On Thu, Jul 28, 2022 at 11:00:12AM +1000, Damien Miller wrote: > > > + rs->rs_count = REKEY_BASE; > > > + /* rekey interval should not be predictable */ > > > + _rs_random_u32(_fuzz); > > > + rs->rs_count

Re: ts(1): parse input format string only once

2022-07-29 Thread Scott Cheloha
On Wed, Jul 13, 2022 at 12:50:24AM -0500, Scott Cheloha wrote: > We reduce overhead if we only parse the user's format string once. To > achieve that, this patch does the following: > > [...] > > - When parsing the user format string in fmtfmt(), keep a list of > where each microsecond

Re: randomise arc4random() rekey interval

2022-07-29 Thread Theo de Raadt
Visa Hankala wrote: > On Thu, Jul 28, 2022 at 11:00:12AM +1000, Damien Miller wrote: > > + rs->rs_count = REKEY_BASE; > > + /* rekey interval should not be predictable */ > > + _rs_random_u32(_fuzz); > > + rs->rs_count += rekey_fuzz % REKEY_BASE; > > The randomization looks good. > >

Re: randomise arc4random() rekey interval

2022-07-29 Thread Visa Hankala
On Thu, Jul 28, 2022 at 11:00:12AM +1000, Damien Miller wrote: > + rs->rs_count = REKEY_BASE; > + /* rekey interval should not be predictable */ > + _rs_random_u32(_fuzz); > + rs->rs_count += rekey_fuzz % REKEY_BASE; The randomization looks good. However, might it cause a problem

Re: remove pre-486 code from i386 platform

2022-07-29 Thread Daniel Dickman
> On Jul 29, 2022, at 2:18 AM, Tomasz Rola wrote: > > On Thu, Jul 28, 2022 at 08:06:28PM -0400, Daniel Dickman wrote: >>> On Thu, Jul 28, 2022 at 3:37 AM Jeroen Massar wrote: >>> > [...] >>> >>> I personally would not touch the .h definitions: >>> Index:

Re: remove pre-486 code from i386 platform

2022-07-29 Thread Jonathan Gray
On Fri, Jul 29, 2022 at 06:58:08AM +0200, Tomasz Rola wrote: > On Thu, Jul 28, 2022 at 08:06:28PM -0400, Daniel Dickman wrote: > > On Thu, Jul 28, 2022 at 3:37 AM Jeroen Massar wrote: > > > > [...] > > > > > > I personally would not touch the .h definitions: > > > > > > > > > > > Index:

Re: remove pre-486 code from i386 platform

2022-07-29 Thread Tomasz Rola
On Thu, Jul 28, 2022 at 08:06:28PM -0400, Daniel Dickman wrote: > On Thu, Jul 28, 2022 at 3:37 AM Jeroen Massar wrote: > > [...] > > > > I personally would not touch the .h definitions: > > > > > > > > Index: i386/include/cputypes.h > > > [..] > > > > > > -#define CPUCLASS_3860 > > >