pipex(4): prevent `state_list' corruption

2020-06-18 Thread Vitaliy Makkoveev
While pppac(4) destroy sessions by pipex_iface_fini() or by pipex_ioctl() with PIPEXSMODE command, some sessions can be linked to `state_list'. This case is not checked and sessions will never be unlinked and `state_list' will be broken after session's memory freeing. Diff below adds session

Re: improve pkg_add bandwidth usage with some mirrors

2020-06-18 Thread Marc Espie
On Wed, Jun 17, 2020 at 11:34:20AM +0200, Solene Rapenne wrote: > I propose a small diff for pkg_add when using http/https mirrors. > Don't wait 30 seconds for the ftp process to stop when closing > file handler, send SIGHUP immediately after closing the file handler. > > Running pkg_add -u

unveil(2) relayd(8)'s main proc, now for real

2020-06-18 Thread Ricardo Mestre
Hi, Yes, this is a really broad permission to give but it's needed in order to read the config file (and those ones included from it) and also to exec the "check script(s)" which I missed in my last attempt to unveil(2) relayd(8). The reason it cannot be pledge(2)d is due to forbidden ioctls(2)s

pppx(4): remove panics

2020-06-18 Thread Vitaliy Makkoveev
Now pipex(4) session can't be grabbed while going to be destroyed. So `pppx_ifs' tree can't be broken by NET_LOCK() dances in pppx_if_destroy() and I guess it's time to remove panic()'s from pppx(4). claudio@ pointed in [1] we can avoid two lookups while inserting `pxi' into `pppx_ifs' so I

unveil(2) login_chpass(8)

2020-06-18 Thread Ricardo Mestre
Hi, login_chpass(8) only needs access to exec login_lchpass(8), so the below unveils it accordingly. Comments? OK? Index: login_chpass.c === RCS file: /cvs/src/libexec/login_chpass/login_chpass.c,v retrieving revision 1.21 diff -u

Re: New EVFILT_EXCEPT for POLLPRI & POLLRDBAND

2020-06-18 Thread Martin Pieuchot
On 18/06/20(Thu) 09:03, Martin Pieuchot wrote: > On 17/06/20(Wed) 11:50, Martin Pieuchot wrote: > > On 16/06/20(Tue) 06:18, Todd C. Miller wrote: > > > On Tue, 16 Jun 2020 12:48:58 +0200, Martin Pieuchot wrote: > > > > > > > The diff below implements DragonFly's approach of adding a new kind of >

Enable virtual consoles on armv7

2020-06-18 Thread Frederic Cambus
Hi tech@, Here is a diff to enable virtual consoles on armv7, the same way it is done on arm64. Also see the diff I sent earlier to sync fbtab. Tested on a Cubieboard2. Comments? OK? Index: etc/etc.armv7/ttys === RCS file:

add and use stoeplitz_hash_n32()

2020-06-18 Thread Theo Buehler
As discussed in the previous mail, this is the last simplification of the hash_ip* functions that I have in mind. Index: toeplitz.c === RCS file: /cvs/src/sys/net/toeplitz.c,v retrieving revision 1.5 diff -u -p -r1.5 toeplitz.c ---

Re: stoeplitz_hash_ip*: rename lo & simplify further

2020-06-18 Thread David Gwynne
> On 18 Jun 2020, at 7:49 pm, Theo Buehler wrote: > > The same trick as in the previous diff can be used a second time: > widen the type, accumulate before folding. > > I've also shuffled things into an order where the introduction of > a stoeplitz_hash_n32(scache, n32) suggests itself as a

stoeplitz_hash_ip*: rename lo & simplify further

2020-06-18 Thread Theo Buehler
The same trick as in the previous diff can be used a second time: widen the type, accumulate before folding. I've also shuffled things into an order where the introduction of a stoeplitz_hash_n32(scache, n32) suggests itself as a next step. It would just call stoeplitz_hash_n16(scache, n32 ^ (n32

Re: obsd 6.7 - ntpd error msg

2020-06-18 Thread Otto Moerbeek
On Thu, Jun 18, 2020 at 09:57:34AM +0200, Salvatore Cuzzilla wrote: > Perfect, tnx! > > On 18.06.2020 07:58, Otto Moerbeek wrote: > > On Wed, Jun 17, 2020 at 10:53:54PM +0200, Salvatore Cuzzilla wrote: > > > > > Hi Otto here the logs (multitail) - @22:49:15 I restarted ntpd: > > >

Re: obsd 6.7 - ntpd error msg

2020-06-18 Thread Salvatore Cuzzilla
Perfect, tnx! On 18.06.2020 07:58, Otto Moerbeek wrote: On Wed, Jun 17, 2020 at 10:53:54PM +0200, Salvatore Cuzzilla wrote: Hi Otto here the logs (multitail) - @22:49:15 I restarted ntpd: - Jun 17 22:49:23

Re: New EVFILT_EXCEPT for POLLPRI & POLLRDBAND

2020-06-18 Thread Martin Pieuchot
On 17/06/20(Wed) 11:50, Martin Pieuchot wrote: > On 16/06/20(Tue) 06:18, Todd C. Miller wrote: > > On Tue, 16 Jun 2020 12:48:58 +0200, Martin Pieuchot wrote: > > > > > The diff below implements DragonFly's approach of adding a new kind of > > > filter, EVFILT_EXCEPT, to report such conditions.