Bug 231240 - net/ocserv: ocserv causing kernel panic in certain cases
Summary: net/ocserv: ocserv causing kernel panic in certain cases
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Carlos J. Puga Medina
URL: https://gitlab.com/openconnect/ocserv...
Keywords: crash
: 231239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-08 13:26 UTC by Ka Ho Ng
Modified: 2019-01-21 17:34 UTC (History)
2 users (show)

See Also:


Attachments
dmesg -M /var/crash/vmcore.last (39.95 KB, text/plain)
2018-09-08 13:27 UTC, Ka Ho Ng
no flags Details
pkg info ocserv (1.89 KB, text/plain)
2018-09-08 13:28 UTC, Ka Ho Ng
no flags Details
dmesg -M /var/crash/vmcore.last (FreeBSD 12.0-RELEASE) (25.44 KB, text/plain)
2019-01-10 04:11 UTC, Ka Ho Ng
no flags Details
pkg info ocserv (FreeBSD 12.0-RELEASE) (1.91 KB, text/plain)
2019-01-10 04:12 UTC, Ka Ho Ng
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ka Ho Ng 2018-09-08 13:26:46 UTC
When two clients connect to ocserv at the same time, the later one connecting to the server fails to get its IPv6 address allocation. When one of the client disconnects from the ocserv server, the kernel crashes.
Comment 1 Ka Ho Ng 2018-09-08 13:27:22 UTC
Created attachment 196961 [details]
dmesg -M /var/crash/vmcore.last
Comment 2 Ka Ho Ng 2018-09-08 13:28:01 UTC
Created attachment 196962 [details]
pkg info ocserv
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2018-09-08 17:40:24 UTC
*** Bug 231239 has been marked as a duplicate of this bug. ***
Comment 4 Carlos J. Puga Medina freebsd_committer 2018-10-29 11:05:28 UTC
(In reply to Ka Ho Ng from comment #0)

Sorry for the delay in replying. The issue has been reported upstream.

Thanks for reporting!
Comment 5 Carlos J. Puga Medina freebsd_committer 2019-01-09 18:24:42 UTC
The problem can be addressed earlier if you provide upstream more information.

https://gitlab.com/openconnect/ocserv/issues/177

Can you reproduce the issue on FreeBSD 12.0-RELEASE?
Comment 6 Ka Ho Ng 2019-01-10 00:50:23 UTC
Sorry for the delay. Seems like FreeBSD 12.0-RELEASE is not affected by this issue.
Comment 7 Ka Ho Ng 2019-01-10 00:57:17 UTC
(In reply to Ka Ho Ng from comment #6)

Oops, 12.0-RELEASE is also affected by this issue. I am going to upload the dmesg soon.
Comment 8 Ka Ho Ng 2019-01-10 04:11:32 UTC
Created attachment 200973 [details]
dmesg -M /var/crash/vmcore.last (FreeBSD 12.0-RELEASE)
Comment 9 Ka Ho Ng 2019-01-10 04:12:05 UTC
Created attachment 200974 [details]
pkg info ocserv (FreeBSD 12.0-RELEASE)
Comment 10 Carlos J. Puga Medina freebsd_committer 2019-01-11 17:16:53 UTC
(In reply to Ka Ho Ng from comment #9)

Would you mind trying again with ocserv 0.12.2?
Comment 11 Ka Ho Ng 2019-01-21 13:34:52 UTC
The problem is also reproducible after upgrading ocserv to 0.12.2