bootblock enforced one-shot-upgrade

2019-06-24 Thread Theo de Raadt
When performing /bsd.bupgrade automated snapshots, the upgrade kernel is removed as soon as the root filesystem can be mounted. That way, you don't get stuck in a upgrade reboot loop. But this removal happens pretty far into the upgrade script.. So consider the circumstances. What if the bsd.up

Re: gemini lake gpio

2019-06-24 Thread Mark Kettenis
> From: James Hastings > Date: Sun, 23 Jun 2019 17:15:57 -0400 (EDT) > > New driver for Gemini Lake GPIO controller. > > Nearly identical to Apollo Lake with few changes. > Pad configuration is now 16 bytes starting at offset 0x600. Thanks! I've committed the diff. I'm going to look at your s

Re: Remove irrfilter from bgpctl

2019-06-24 Thread Sebastian Benoit
Claudio Jeker(cje...@diehard.n-r-g.com) on 2019.06.24 12:41:08 +0200: > Hi, > > I think it is time to remove the bgpctl irrfilter code. It is not useful > and it is better to use tools like bgpq3 to build as-sets and prefix-sets > for bgpd filtering. > > If anyone is still using irrfilter please

Re: unbound 1.9.2rc1

2019-06-24 Thread Stuart Henderson
On 2019/06/08 13:53, Stuart Henderson wrote: > New unbound is in rc testing, here's a diff if anyone is interested. > > "This release contains a number of bug fixes for crashes introduced in > 1.9, session ticket code, stream pipeline code, auth zone code and it > also fixes qname minimisation pac

mg(1) M-x blink-and-insert

2019-06-24 Thread Mark Lumsden
The man page for mg says this about blink-and-insert: blink-and-insert Self-insert a character, then search backwards and blink its matching delimiter. For delimiters other than parenthesis, brackets, and braces, the character itself is used as its own match. However, if you do 'M-x

sppp: use timeout_add_sec(9)

2019-06-24 Thread Klemens Nanni
Re-challenge timeouts are made up of a single scalar factor which is multiplied with the unit `lcp.timeout' if you will, so that changing from ticks to seconds here only requires reducing this second factor. I added comments to hopefully make clear enough that the `timeout' member alone carries th

Re: [Patch] Driver for Keyspan USA-19HS

2019-06-24 Thread Jonathan Gray
On Fri, Jun 07, 2019 at 11:08:24AM -0500, joshua stein wrote: > On Mon, 03 Jun 2019 at 23:44:37 -0400, Cody Cutler wrote: > > Hi jcs and tech, the following is a patch which implements jcs's feedback > > and > > adds a man page. > > Thanks Cody, I've imported your driver. > /sys/dev/usb/ukspan.

setpriority()

2019-06-24 Thread Martin Pieuchot
Diff below is mostly a refactoring to reduce the amount of spaghetti in the scheduler logic: - resetpriority() is renamed to setpriority() and is now the only places that sets `p_estcpu' and `p_usrpri'. These two fields represent the priority of a running process. They should be in sync and

Re: rt_ifa_add rtable vs rtlabel confusion

2019-06-24 Thread Martin Pieuchot
On 24/06/19(Mon) 10:10, Claudio Jeker wrote: > rt_ifa_add() and rt_ifs_del() confused rtableid and rtlabelid and so the > code does not correcly set RTAX_LABEL. It makes no sense to try to compare > rdoamin against if_rtlabelid since those are two different things. > > This should probably make 'i

Re: Fix regress/sys/rtable for octeon

2019-06-24 Thread Visa Hankala
On Sun, Jun 23, 2019 at 02:48:24PM +0200, Moritz Buhl wrote: > Hi, > while running regression tests on an octeon ERL, I noticed that > no-macro-redefined flag was not known to the compiler. > I added some #undefs and some hours ago a change to art_walk made > the tests fail too. > > The no-macro-r

pipe(2) and pipe2(2) : nolock

2019-06-24 Thread Sebastien Marie
Hi, The following diff sets NOLOCK on dup(2) and dup2(2) syscalls. It is a part of "unlock more syscalls". All the hard work was already done by mpi@. My changes are mostly to add few KASSERT() or comments in current code. The key function for pipe creation is dopipe(). It creates 2 pipes struct

Re: libcrypto: recognize HW acceleration support on arm64

2019-06-24 Thread Patrick Wildt
On Thu, Jun 20, 2019 at 11:21:20AM +0200, Remco wrote: > On 19-06-19 07:13, Patrick Wildt wrote: > > Hi, > > > > this diff adds the necessary helpers to arm64 so that libcrypto knows > > which of the hardware crypto features are available on the machine. > > Those helpers are used by the existing

Re: Remove irrfilter from bgpctl

2019-06-24 Thread Job Snijders
Hi, On Mon, Jun 24, 2019 at 12:41:08PM +0200, Claudio Jeker wrote: > I think it is time to remove the bgpctl irrfilter code. It is not > useful and it is better to use tools like bgpq3 to build as-sets and > prefix-sets for bgpd filtering. Agreed. I'd love to have a replacement in base some day,

[WIP] new sysctl hw.gpuperf

2019-06-24 Thread Benjamin Baier
Hi, this is wip for a new sysctl that implements gpu throttling. Only implemented for inteldrm right now, and tested on a single amd64 laptop. Helps to keep the GPU/CPU cooler and save some energy. Most of the diff is for sensors to verify if the sysctl works, and will be removed once i'm confide

Re: Pump my sched: fewer SCHED_LOCK() & kill p_priority

2019-06-24 Thread Bryan Linton
On 2019-06-21 17:11:26, Martin Pieuchot wrote: > On 06/06/19(Thu) 15:16, Martin Pieuchot wrote: > > On 02/06/19(Sun) 16:41, Martin Pieuchot wrote: > > > On 01/06/19(Sat) 18:55, Martin Pieuchot wrote: > > > > Diff below exists mainly for documentation and test purposes. If > > > > you're not inter

Remove irrfilter from bgpctl

2019-06-24 Thread Claudio Jeker
Hi, I think it is time to remove the bgpctl irrfilter code. It is not useful and it is better to use tools like bgpq3 to build as-sets and prefix-sets for bgpd filtering. If anyone is still using irrfilter please speak up now. -- :wq Claudio Index: Makefile =

Re: OpenBSD: patch for bridge(4) to fix incoming interface for pf(4)

2019-06-24 Thread Eygene Ryabinkin
Mon, Jun 17, 2019 at 04:15:10PM +0300, Eygene Ryabinkin wrote: > Sun, Jun 09, 2019 at 11:44:10AM -0300, Martin Pieuchot wrote: > > In that case would it makes sense to apply the so-called unicast > > check to `ifp', the incoming interface, first? > > Right. Had rewritten the patch to do this expl

rt_ifa_add rtable vs rtlabel confusion

2019-06-24 Thread Claudio Jeker
rt_ifa_add() and rt_ifs_del() confused rtableid and rtlabelid and so the code does not correcly set RTAX_LABEL. It makes no sense to try to compare rdoamin against if_rtlabelid since those are two different things. This should probably make 'ifconfig em0 rtlabel foo' work the way it is intended. O