Re: _exit(2), execve(2): cancel interval timers MP-safely

2020-10-14 Thread Scott Cheloha
On Wed, Oct 14, 2020 at 08:06:52PM -0500, Scott Cheloha wrote: > _exit(2) and execve(2) need to obey the locking protocol described in > proc.h when manipulating the per-process interval timer state. > > While we're here we can also remove the now pointless splclock/splx > dance from execve(2). >

_exit(2), execve(2): cancel interval timers MP-safely

2020-10-14 Thread Scott Cheloha
_exit(2) and execve(2) need to obey the locking protocol described in proc.h when manipulating the per-process interval timer state. While we're here we can also remove the now pointless splclock/splx dance from execve(2). The easiest way to obey the locking protocol is to reuse the interface

Re: Expose touchpad sensitivity in wsconsctl

2020-10-14 Thread Ulf Brosziewski
I'm not convinced that this makes sense. While there are still a lot of touchpads around that need deceleration, modern ones tend to be larger and more precise, so maybe we want to drop it at some point in the future? Given that up to now, nobody else reported a problem with it, I'd prefer to

Re: Expose touchpad sensitivity in wsconsctl

2020-10-14 Thread Brennan Vincent
People who prefer flatter profiles are not as rare as one might think, cf similar discussions on Libinput: https://bugs.freedesktop.org/show_bug.cgi?id=89485 I found setting it to 4 gives best results (it was 16 by default) so I wouldn't want to totally remove it either. Feel free to not

Non-const basename: usr.sbin/vmd, usr.sbin/vmctl

2020-10-14 Thread Christian Weisgerber
Accommodate POSIX basename(3) that takes a non-const parameter and may in fact modify the string buffer. The file is built by vmd and vmctl. I'm uncertain if we want a truncation check here. Both in vmd and vmctl, the path has been validated by a previous open(), but given the code complexity,

Non-const basename: usr.bin/rcs

2020-10-14 Thread Christian Weisgerber
Accommodate POSIX basename(3) that takes a non-const parameter and may in fact modify the string buffer. ok? Index: usr.bin/rcs/rlog.c === RCS file: /cvs/src/usr.bin/rcs/rlog.c,v retrieving revision 1.74 diff -u -p -r1.74 rlog.c ---

smtpd: simplify codepath

2020-10-14 Thread Eric Faurot
When creating a tls session on an incoming connection, a useless roundtrip through the lka is made (see cert.c) to retreive a certificate which is not used anyway: the necessary contexts have already been set up for all pki names (in smtp.c:smtp_setup_events()). This diff makes the codepath more

Re: match on more ure(4) devices

2020-10-14 Thread Stefan Hagen
Hi Jonathan, Jonathan Gray wrote: > match on additional device ids from lenovo windows driver > https://download.lenovo.com/consumer/options/thinkpad_usb-c_dock_gen2_drivers_v1.0.3.03241.exe > and linux driver [...] > + { USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_RTL8153B_2 }, [...] This is an

Re: Expose touchpad sensitivity in wsconsctl

2020-10-14 Thread Brennan Vincent
Oops, the subject should be "Expose touchpad _decleration threshold_ in wsconsctl". Not sure why I wrote "sensitivity". On Wed, 14 Oct 2020, Brennan Vincent wrote: > > diff --git sbin/wsconsctl/mouse.c sbin/wsconsctl/mouse.c > index e04642dacbc..0f1594e17e0 100644 > --- sbin/wsconsctl/mouse.c

Re: Lenovo X1 gen 8 touchpad interrupt: pchgpio(4)

2020-10-14 Thread Mark Kettenis
> From: James Hastings > Date: Sun, 11 Oct 2020 03:49:11 -0400 (EDT) > > On Thu, 08 Oct 2020 20:29:38 + Mark Kettenis wrote: > > Diff below adds a driver for the GPIO controller found on the Intel > > 400 Series PCH as found on (for example) the Lenovo X1 gen 8 laptop. > > Since I don't have

Re: drm: avoid possible deadlock in kthread_stop

2020-10-14 Thread Mark Kettenis
> Date: Thu, 1 Oct 2020 09:09:50 +0200 > From: 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

Expose touchpad sensitivity in wsconsctl

2020-10-14 Thread Brennan Vincent
diff --git sbin/wsconsctl/mouse.c sbin/wsconsctl/mouse.c index e04642dacbc..0f1594e17e0 100644 --- sbin/wsconsctl/mouse.c +++ sbin/wsconsctl/mouse.c @@ -61,6 +61,7 @@ struct field mouse_field_tab[] = { { "tp.swapsides", _swapsides, FMT_CFG,FLG_NORDBACK }, {

[s...@spacehopper.org: Re: Remove useless line from daemon class in login.conf]

2020-10-14 Thread Stuart Henderson
Just found this in my local tree still, iirc danj liked it but there wasn't much other enthusiasm. Any other comments? Should I just drop the diff? Change 'a' to use 2^10 minimum? Change to fixed 2^10 with no auto measurement? - Forwarded message from Stuart Henderson - From: Stuart

uvm_grow(): serialize updates

2020-10-14 Thread 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 example is the uvm_map_inentry() check. uvm_grow() is another small function