Development discussion of WireGuard
 help / color / mirror / Atom feed
* FreeBSD current socket-src changed. Wireguard not compiling.
@ 2022-08-23  9:26 Michael Pro
  2022-08-29 16:16 ` Jason A. Donenfeld
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Pro @ 2022-08-23  9:26 UTC (permalink / raw)
  To: wireguard

Tonight after updating kernel freebsd current I got coredump with
wireguard enabled kernel module.

As is
https://reviews.freebsd.org/D36232
 D36232 protosw: refactor protosw and domain static declaration and
load (freebsd.org)
in wireguard-freebsd/src/support.h
...
error = (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, nam);
...
replace to
...
error = solisten_proto_check(so);
...
Recompile - no more core dumps. All works now, perhaps...

Is this the right way to fix the problem? Is this enough or should we
wait for a full-scale refactoring of the code?

Thanks in advance for your reply.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FreeBSD current socket-src changed. Wireguard not compiling.
  2022-08-23  9:26 FreeBSD current socket-src changed. Wireguard not compiling Michael Pro
@ 2022-08-29 16:16 ` Jason A. Donenfeld
  2022-08-31 18:18   ` Ed Maste
  0 siblings, 1 reply; 6+ messages in thread
From: Jason A. Donenfeld @ 2022-08-29 16:16 UTC (permalink / raw)
  To: Michael Pro; +Cc: wireguard, kevans

On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote:
> Tonight after updating kernel freebsd current I got coredump with
> wireguard enabled kernel module.
> 
> As is
> https://reviews.freebsd.org/D36232
>  D36232 protosw: refactor protosw and domain static declaration and
> load (freebsd.org)
> in wireguard-freebsd/src/support.h
> ...
> error = (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, nam);
> ...
> replace to
> ...
> error = solisten_proto_check(so);
> ...
> Recompile - no more core dumps. All works now, perhaps...
> 
> Is this the right way to fix the problem? Is this enough or should we
> wait for a full-scale refactoring of the code?
> 
> Thanks in advance for your reply.

Thanks. Is there a __FreeBSD_version__ change that corresponds?

Jason

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FreeBSD current socket-src changed. Wireguard not compiling.
  2022-08-29 16:16 ` Jason A. Donenfeld
@ 2022-08-31 18:18   ` Ed Maste
  2022-09-01  5:40     ` Michael Pro
  2022-09-04 17:07     ` Jason A. Donenfeld
  0 siblings, 2 replies; 6+ messages in thread
From: Ed Maste @ 2022-08-31 18:18 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: Michael Pro, wireguard, kevans

On Mon, 29 Aug 2022 at 12:18, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
> On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote:
> > Tonight after updating kernel freebsd current I got coredump with
> > wireguard enabled kernel module.
> > ...
> Thanks. Is there a __FreeBSD_version__ change that corresponds?

It is not an exact match, but was bumped to 1400066 shortly after and
should be a suitable value to check.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FreeBSD current socket-src changed. Wireguard not compiling.
  2022-08-31 18:18   ` Ed Maste
@ 2022-09-01  5:40     ` Michael Pro
  2022-09-04 17:07     ` Jason A. Donenfeld
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Pro @ 2022-09-01  5:40 UTC (permalink / raw)
  To: Ed Maste; +Cc: Jason A. Donenfeld, wireguard, kevans

FreeBSD Current (14.0)
http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.0/
sources from iso or github - no matther
Changes to src are made by commit e7d02be19d40063783d6b8f1ff2bc4c7170fd434
Author Gleb Smirnoff <glebius@FreeBSD.org> Wed, 17 Aug 2022 21:50:32
+0300 (11:50 -0700)

ср, 31 авг. 2022 г. в 21:18, Ed Maste <emaste@freebsd.org>:
>
> On Mon, 29 Aug 2022 at 12:18, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
> > On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote:
> > > Tonight after updating kernel freebsd current I got coredump with
> > > wireguard enabled kernel module.
> > > ...
> > Thanks. Is there a __FreeBSD_version__ change that corresponds?
>
> It is not an exact match, but was bumped to 1400066 shortly after and
> should be a suitable value to check.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FreeBSD current socket-src changed. Wireguard not compiling.
  2022-08-31 18:18   ` Ed Maste
  2022-09-01  5:40     ` Michael Pro
@ 2022-09-04 17:07     ` Jason A. Donenfeld
  2022-09-04 17:20       ` Jason A. Donenfeld
  1 sibling, 1 reply; 6+ messages in thread
From: Jason A. Donenfeld @ 2022-09-04 17:07 UTC (permalink / raw)
  To: Ed Maste; +Cc: Michael Pro, WireGuard mailing list, Kyle Evans

Hi Ed,

On Wed, Aug 31, 2022 at 8:18 PM Ed Maste <emaste@freebsd.org> wrote:
>
> On Mon, 29 Aug 2022 at 12:18, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
> > On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote:
> > > Tonight after updating kernel freebsd current I got coredump with
> > > wireguard enabled kernel module.
> > > ...
> > Thanks. Is there a __FreeBSD_version__ change that corresponds?
>
> It is not an exact match, but was bumped to 1400066 shortly after and
> should be a suitable value to check.

Thanks.

Michael - could you give this a try?
https://git.zx2c4.com/wireguard-freebsd/commit/?id=89b7292797c17449e24f5b8b08cb2412a51d2484

Jason

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FreeBSD current socket-src changed. Wireguard not compiling.
  2022-09-04 17:07     ` Jason A. Donenfeld
@ 2022-09-04 17:20       ` Jason A. Donenfeld
  0 siblings, 0 replies; 6+ messages in thread
From: Jason A. Donenfeld @ 2022-09-04 17:20 UTC (permalink / raw)
  To: Ed Maste; +Cc: Michael Pro, WireGuard mailing list, Kyle Evans

On Sun, Sep 4, 2022 at 7:07 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>
> Hi Ed,
>
> On Wed, Aug 31, 2022 at 8:18 PM Ed Maste <emaste@freebsd.org> wrote:
> >
> > On Mon, 29 Aug 2022 at 12:18, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
> > > On Tue, Aug 23, 2022 at 12:26:21PM +0300, Michael Pro wrote:
> > > > Tonight after updating kernel freebsd current I got coredump with
> > > > wireguard enabled kernel module.
> > > > ...
> > > Thanks. Is there a __FreeBSD_version__ change that corresponds?
> >
> > It is not an exact match, but was bumped to 1400066 shortly after and
> > should be a suitable value to check.
>
> Thanks.
>
> Michael - could you give this a try?
> https://git.zx2c4.com/wireguard-freebsd/commit/?id=89b7292797c17449e24f5b8b08cb2412a51d2484

Err, that would be the wrong code copy&paste. This, I meant:
https://git.zx2c4.com/wireguard-freebsd/commit/?id=20584d1c329ed2a71893375fa11ca4c56ed9f642

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-04 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23  9:26 FreeBSD current socket-src changed. Wireguard not compiling Michael Pro
2022-08-29 16:16 ` Jason A. Donenfeld
2022-08-31 18:18   ` Ed Maste
2022-09-01  5:40     ` Michael Pro
2022-09-04 17:07     ` Jason A. Donenfeld
2022-09-04 17:20       ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).