Bug 82202 - [patch] solve security/stunnel's ucontext(3) issue
Summary: [patch] solve security/stunnel's ucontext(3) issue
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Peter Pentchev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 18:10 UTC by Vasil Dimov
Modified: 2005-06-14 10:10 UTC (History)
1 user (show)

See Also:


Attachments
stunnel_ucontext.diff (2.37 KB, patch)
2005-06-13 18:10 UTC, Vasil Dimov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vasil Dimov 2005-06-13 18:10:23 UTC
This patch fixes the ucontext(3) issue in security/stunnel, described
and discussed in:

http://lists.FreeBSD.org/pipermail/freebsd-ports/2005-May/023344.html
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=81001
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=81162
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=81289

The actual problem is that stunnel tries to reuse its initially
prepared cleanup context. This technique does not work with FreeBSD.
The fix introduced in this patch reinitializes the cleanup context every
time it is going to be used.
Comment 1 Florent Thoumie freebsd_committer freebsd_triage 2005-06-13 20:07:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->roam

Over to maintainer.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2005-06-14 10:09:37 UTC
State Changed
From-To: open->closed

I've committed Michael Trojnara's patch.  Still, thanks A LOT for all 
the time you've spent tracking this down!