Re: pipex(4) fix: check session existence before creation

2020-04-06 Thread Claudio Jeker
On Mon, Apr 06, 2020 at 07:54:20PM +0300, Vitaliy Makkoveev wrote: > Deny to create pipex_session which is already exist. Newly created > session will be placed to list head so the caller of > pipex_*_lookup_session() will receive wrong session. I think in the pppx(4) case the code is already

[PATCH v2] gostr341001: support unwrapped private keys support

2020-04-06 Thread Dmitry Baryshkov
GOST private keys can be wrapped in OCTET STRING, INTEGER or come unwrapped. Support the latter format. Sponsored by ROSA Linux Signed-off-by: Dmitry Baryshkov --- src/lib/libcrypto/gost/gost_asn1.c | 52 ++ src/lib/libcrypto/gost/gost_asn1.h | 11 ++

pipex(4) fix: check session existence before creation

2020-04-06 Thread Vitaliy Makkoveev
Deny to create pipex_session which is already exist. Newly created session will be placed to list head so the caller of pipex_*_lookup_session() will receive wrong session. Index: sys/net/if_pppx.c === RCS file:

Re: pipex(4) fix: check session existence before creation

2020-04-06 Thread Vitaliy Makkoveev
> On 6 Apr 2020, at 17:37, Claudio Jeker wrote: > > On Mon, Apr 06, 2020 at 07:54:20PM +0300, Vitaliy Makkoveev wrote: >> Deny to create pipex_session which is already exist. Newly created >> session will be placed to list head so the caller of >> pipex_*_lookup_session() will receive wrong

Re: iwn: fix tx result reporting

2020-04-06 Thread Stefan Sperling
On Mon, Apr 06, 2020 at 05:02:00PM +0200, Stefan Sperling wrote: > On Thu, Apr 02, 2020 at 03:52:11PM +0200, Stefan Sperling wrote: > > While working on iwm Tx aggregation and revisiting some parts of MiRA, > > I have noticed a rate-control problem in iwm and iwx (this also affects > > iwn, but I

iwn: fix tx result reporting

2020-04-06 Thread Stefan Sperling
On Thu, Apr 02, 2020 at 03:52:11PM +0200, Stefan Sperling wrote: > While working on iwm Tx aggregation and revisiting some parts of MiRA, > I have noticed a rate-control problem in iwm and iwx (this also affects > iwn, but I am leaving that for later since iwn already does Tx aggregation > and

Re: wi(4): tsleep(9) -> tsleep_nsec(9)

2020-04-06 Thread Stefan Sperling
On Mon, Apr 06, 2020 at 02:03:36PM -0500, Scott Cheloha wrote: > Ticks to seconds. Trivial. > > ok? ok stsp@ > Index: if_wi.c > === > RCS file: /cvs/src/sys/dev/ic/if_wi.c,v > retrieving revision 1.171 > diff -u -p -r1.171 if_wi.c

Re: pipex(4) fix: check session existence before creation

2020-04-06 Thread Claudio Jeker
On Mon, Apr 06, 2020 at 06:32:01PM +0300, Vitaliy Makkoveev wrote: > > > > On 6 Apr 2020, at 17:37, Claudio Jeker wrote: > > > > On Mon, Apr 06, 2020 at 07:54:20PM +0300, Vitaliy Makkoveev wrote: > >> Deny to create pipex_session which is already exist. Newly created > >> session will be

wi(4): tsleep(9) -> tsleep_nsec(9)

2020-04-06 Thread Scott Cheloha
Ticks to seconds. Trivial. ok? Index: if_wi.c === RCS file: /cvs/src/sys/dev/ic/if_wi.c,v retrieving revision 1.171 diff -u -p -r1.171 if_wi.c --- if_wi.c 31 Dec 2019 10:05:32 - 1.171 +++ if_wi.c 6 Apr 2020

pppx(4): kill needless check

2020-04-06 Thread Vitaliy Makkoveev
Just quick cleanup. Index: sys/net/if_pppx.c === RCS file: /cvs/src/sys/net/if_pppx.c,v retrieving revision 1.79 diff -u -p -r1.79 if_pppx.c --- sys/net/if_pppx.c 6 Apr 2020 12:31:30 - 1.79 +++ sys/net/if_pppx.c 6 Apr

Re: [PLEASE TEST] acpi(4): acpi_sleep(): tsleep(9) -> tsleep_nsec(9)

2020-04-06 Thread Scott Cheloha
On Tue, Mar 24, 2020 at 09:02:38PM +0100, Mark Kettenis wrote: > > Date: Tue, 24 Mar 2020 12:52:55 -0500 > > From: Scott Cheloha > > > > On Tue, Mar 24, 2020 at 09:17:34AM +0100, Mark Kettenis wrote: > > > > Date: Mon, 23 Mar 2020 21:57:46 -0500 > > > > From: Scott Cheloha > > > > > > > > On

Re: [PLEASE TEST] acpi(4): acpi_sleep(): tsleep(9) -> tsleep_nsec(9)

2020-04-06 Thread Mark Kettenis
> Date: Mon, 6 Apr 2020 15:32:09 -0500 > From: Scott Cheloha > > On Tue, Mar 24, 2020 at 09:02:38PM +0100, Mark Kettenis wrote: > > > Date: Tue, 24 Mar 2020 12:52:55 -0500 > > > From: Scott Cheloha > > > > > > On Tue, Mar 24, 2020 at 09:17:34AM +0100, Mark Kettenis wrote: > > > > > Date: Mon,

sysupgrade: add BUILDINFO file to fetched files

2020-04-06 Thread Mikolaj Kucharski
Hi, When I'm upgrading my machines, I find it useful to have BUILDINFO file around. Tested on RPi3. Please carbon-copy me in any replies. Thank you. openbsd-rpi# sysupgrade -s -n Fetching from https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/ SHA256.sig 100%

pipex(4) cleanup: use LIST_FOERACH_SAFE() instead of manual rolling

2020-04-06 Thread Vitaliy Makkoveev
Index: sys/net/pipex.c === RCS file: /cvs/src/sys/net/pipex.c,v retrieving revision 1.111 diff -u -p -r1.111 pipex.c --- sys/net/pipex.c 6 Apr 2020 12:31:30 - 1.111 +++ sys/net/pipex.c 6 Apr 2020 12:58:31 - @@

Re: Fix pipex(4) pipex_ioctl() access to not owned sessions (kernel crash too)

2020-04-06 Thread Claudio Jeker
On Thu, Apr 02, 2020 at 01:44:50PM +0300, Vitaliy Makkoveev wrote: > pipex(4) has pipex_ioctl() interface for pipex_session related routines. > pipex_ioctl() calls should be done with pipex_iface_contex, so any > operations should be done with pipex_sessions owned by passed > pipex_iface_contex.

[patch] ps.c mark usage() as __dead

2020-04-06 Thread Martin Vahlensieck
Hi I'm not sure this is worth a diff, but here it is anyway. Best, Martin Index: ps.c === RCS file: /cvs/src/bin/ps/ps.c,v retrieving revision 1.76 diff -u -p -r1.76 ps.c --- ps.c16 Dec 2019 19:21:16 - 1.76 +++

SMR_TAILQ implementation

2020-04-06 Thread Claudio Jeker
To make signal delivery not require the kernel lock I need a basic TAILQ implementation that is SMR safe. This diff implements this TAILQ. Without the write lock only SMR_TAILQ_FOREACH() (including SMR_TAIL_FIRST and SMR_TAILQ_NEXT) can be used. No other traversals are supported. For the locked