Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2015 13:44:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-pf@FreeBSD.org
Subject:   [Bug 200330] panic: pf_addr_cmp: unknown address family 0 when scrub fragment drop-ovl is used
Message-ID:  <bug-200330-17777-WZwODuokWB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-200330-17777@https.bugs.freebsd.org/bugzilla/>
References:  <bug-200330-17777@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200330

--- Comment #12 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kp
Date: Wed Jun 10 13:44:04 UTC 2015
New revision: 284222
URL: https://svnweb.freebsd.org/changeset/base/284222

Log:
  pf: address family must be set when creating a pf_fragment

  Fix a panic when handling fragmented ip4 packets with 'drop-ovl' set.
  In that scenario we take a different branch in pf_normalize_ip(), taking us
to
  pf_fragcache() (rather than pf_reassemble()). In pf_fragcache() we create a
  pf_fragment, but do not set the address family. This leads to a panic when we
  try to insert that into pf_frag_tree because pf_addr_cmp(), which is used to
  compare the pf_fragments doesn't know what to do if the address family is not
  set.

  Simply ensure that the address family is set correctly (always AF_INET in
this
  path).

  PR:            200330
  Differential Revision:    https://reviews.freebsd.org/D2769
  Approved by:        philip (mentor), gnn (mentor)

Changes:
  head/sys/netpfil/pf/pf_norm.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200330-17777-WZwODuokWB>