fix: ospf6d(8): wrong intra area announcement

2020-10-01 Thread Jan Klemkow
Hi, The new intra area db entry has to be saved into the tree before orig_intra_area_prefix_lsas() is called. If not, the ospf6d will not announce the new intra area db for a newly learned link from another ospf router of the broadcast domain. This bug is triggered, if you add new addresses an

Make df output more human friendly in daily(8)

2020-10-01 Thread Daniel Jakots
Hi, Currently daily(8) runs `df -ikl`. I find reading daily(8) emails hard because in today's disk size, kilobyte counts are not sensible. I'd like to replace -k by -h so the output is more human friendly. I doubt anyone parses daily(8) so this shouldn't break anyone setup. It seems that

[httpd] Fix issues related to tls/ssl

2020-10-01 Thread Joshua Sing
Hello there, I was adding a site to httpd when I experienced a bug that would cause httpd to crash whenever someone accessed the site while the TLS cert of the first server entry was missing. Steps to reproduce: (httpd.conf provided at bottom of email)  - Have a server entry at the top of the

Re: mmap: Do not push KERNEL_LOCK() too far

2020-10-01 Thread Mark Kettenis
> Date: Thu, 1 Oct 2020 14:10:56 +0200 > From: Martin Pieuchot > > While studying a bug report from naddy@ in 2017 when testing guenther@'s > amap/anon locking diff I figured out that we have been too optimistic in > the !MAP_ANON case. > > The reported panic involves, I'd guess, a race between

[diff] Allow preferred source IP selection

2020-10-01 Thread Denis Fondras
This updated diff unbreak P2P links where local address was not the same as preferred source address. Sending to tech@ may help get more feedback on what I broke. Example usage : Set 2001:db8::1 as source : route source 2001:db8::1 Unset previously set IPv6 address on rdomain 10 : route -T10

ifconfig: consistent display of P2P link

2020-10-01 Thread Denis Fondras
All tunnels & point-to-point addresses are separated by "->" but inet. Denis Index: ifconfig.c === RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v retrieving revision 1.426 diff -u -p -r1.426 ifconfig.c --- ifconfig.c 15 Sep 2020

Re: KASSERT() for VOP_*

2020-10-01 Thread Martin Pieuchot
On 09/09/20(Wed) 08:41, Martin Pieuchot wrote: > This is mostly the same diff that has been backed out months ago with > the VOP_CLOSE() case fixed. VOP_CLOSE() can accept a NULL argument > instead of `curproc' when garbage collecting passed FDs. > > The intent is to stop passing a "struct proc

amap: KASSERT()s and local variables

2020-10-01 Thread Martin Pieuchot
Use more KASSERT()s instead of the "if (x) panic()" idiom for sanity checks and add a couple of local variables to reduce the difference with NetBSD and help for upcoming locking. ok? Index: uvm/uvm_amap.c === RCS file:

mmap: Do not push KERNEL_LOCK() too far

2020-10-01 Thread Martin Pieuchot
While studying a bug report from naddy@ in 2017 when testing guenther@'s amap/anon locking diff I figured out that we have been too optimistic in the !MAP_ANON case. The reported panic involves, I'd guess, a race between fd_getfile() and vref(): panic: vref used where vget required

drm: avoid possible deadlock in kthread_stop

2020-10-01 Thread Sebastien Marie
Hi, Currently, when a process is calling kthread_stop(), it sets a flag asking the thread to stop, and enters in sleep mode, but the code doing the stop doesn't wakeup the caller of kthread_stop(). The thread should also be unparked as else it will not seen the KTHREAD_SHOULDSTOP flag. it

Re: diff: pfctl: error message for nonexisting rtable

2020-10-01 Thread Alexandr Nedvedicky
Hello, On Wed, Sep 30, 2020 at 11:02:28PM +0200, Klemens Nanni wrote: > On Sun, Sep 20, 2020 at 07:29:38PM +0200, Klemens Nanni wrote: > > Rebased diff after yasouka's pfctl commit; it still takes care of > > rdomains only, but I'd appreciate folks using `on rdomain' in their > > pf.conf test