Non-const basename: usr.bin/cvs

2020-10-16 Thread Christian Weisgerber
Accommodate POSIX basename(3) that takes a non-const parameter and may modify the string buffer. There were only two compiler warnings about discarded const, but there are numerous instances where the code assumes non-POSIX semantics for basename() and dirname(). Given that there is at least a Fr

Re: uvm_grow(): serialize updates

2020-10-16 Thread Theo de Raadt
Mark Kettenis wrote: > > /* For user defined stacks (from sendsig). */ > > if (sp < (vaddr_t)vm->vm_maxsaddr) > > - return; > > + goto out; > > Since vm_maxsaddr is ummutable, this check can be done without holding > the lock. I think that's worth it as it will preve

Re: uvm_grow(): serialize updates

2020-10-16 Thread Mark Kettenis
> Date: Wed, 14 Oct 2020 12:01:10 +0200 > From: Martin Pieuchot > > Getting uvm_fault() out of the KERNEL_LOCK() alone is not enough to > reduce the contention due to page faults. A single part of the handler > spinning on the lock is enough to hide bugs and increase latency. One > recent examp

[PATCH ssh] VisualHostKey: unknown keys

2020-10-16 Thread Lapshin Dmitry
I've sent this patch some time ago, but I haven't got any replies and have received a bunch of email delivery problems. Hopefully this time it works well, sorry if you receive the same patch twice. After using VisualHostKey ssh client option for some time, I've found out that for me it's quite use

push NET_LOCK() down in pf_ioctl.c

2020-10-16 Thread Alexandr Nedvedicky
Hello, I've just found a forgotten diff in my tree. The diff pushes the NET_LCOK() further down in PF driver ioctl() path. The idea is to avoid sleeping while holding a NET_LOCK(). this typically may happen when we need to allocate memory. The diff is the first step as it takes care of easy/stra

Re: Typo Diffs

2020-10-16 Thread Jason McIntyre
On Fri, Oct 16, 2020 at 02:36:39AM +, Varik Valefor wrote: > Sir or Madam: > > Included within this message should be some diffs which can be applied to > fix some typographical errors and general wording problems which exist > within the OpenBSD manual pages, as well as some other files. > >

Re: Typo Diffs

2020-10-16 Thread Stuart Henderson
On 2020/10/16 02:36, Varik Valefor wrote: > Sir or Madam: > > Included within this message should be some diffs which can be applied to > fix some typographical errors and general wording problems which exist > within the OpenBSD manual pages, as well as some other files. > > These changes are pr

Typo Diffs

2020-10-16 Thread Varik Valefor
Sir or Madam: Included within this message should be some diffs which can be applied to fix some typographical errors and general wording problems which exist within the OpenBSD manual pages, as well as some other files. These changes are proposed because typographical errors look bad and can lea