aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2004-10-03 10:42:42 +0000
committerMax Laier <mlaier@FreeBSD.org>2004-10-03 10:42:42 +0000
commitf2403525f70838e4144f2c607b0edf45bfc6f2c2 (patch)
treeed5ba30d9dc3b61a861aa9c15271a76ecf57cb13 /contrib
parent893279a95640306f2e67a4bf69f519192c228362 (diff)
downloadsrc-f2403525f70838e4144f2c607b0edf45bfc6f2c2.tar.gz
src-f2403525f70838e4144f2c607b0edf45bfc6f2c2.zip
Document a problem with user/group filtering. With debug.mpsafenet=1 this
might result in a deadlock. The fix involves critical changes in the PF locking strategy (which will happen after 5.3R). For now advise users to set debug.mpsafenet=0 if they use this kind of filtering. The same problem exists for IPFW. mdoc help from: simon MFC after: 2 days
Notes
Notes: svn path=/head/; revision=136083
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pf/man/pf.conf.533
1 files changed, 32 insertions, 1 deletions
diff --git a/contrib/pf/man/pf.conf.5 b/contrib/pf/man/pf.conf.5
index 1eefeb74f074..a2455056f43a 100644
--- a/contrib/pf/man/pf.conf.5
+++ b/contrib/pf/man/pf.conf.5
@@ -28,7 +28,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd September 14, 2004
+.Dd October 3, 2004
.Dt PF.CONF 5
.Os
.Sh NAME
@@ -1316,6 +1316,17 @@ This is equivalent to "from any to any".
Similar to
.Ar user ,
this rule only applies to packets of sockets owned by the specified group.
+.Pp
+The use of
+.Ar group
+or
+.Ar user
+in
+.Va debug.mpsafenet Ns = Ns 1
+environments may result in a deadlock.
+Please see the
+.Sx BUGS
+section for details.
.It Ar user <user>
This rule only applies to packets of sockets owned by the specified user.
For outgoing connections initiated from the firewall, this is the user
@@ -2610,6 +2621,26 @@ Service name database.
.It Pa /usr/share/examples/pf
Example rulesets.
.El
+.Sh BUGS
+Due to a lock order reversal (LOR) with the socket layer, the use of the
+.Ar group
+and
+.Ar user
+filter parameter in conjuction with a Giant-free netstack
+can result in a deadlock.
+If you have to use
+.Ar group
+or
+.Ar user
+you must set
+.Va debug.mpsafenet
+to
+.Dq 0
+from the
+.Xr loader 8 ,
+for the moment.
+This workaround will still produce the LOR, but Giant will protect from the
+deadlock.
.Sh SEE ALSO
.Xr icmp 4 ,
.Xr icmp6 4 ,