Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 08:57:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-pf@FreeBSD.org
Subject:   [Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize
Message-ID:  <bug-209475-17777-szWYNOjEod@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209475-17777@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209475-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=3D209475

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

Author: kp
Date: Sun Feb 25 08:56:44 UTC 2018
New revision: 329950
URL: https://svnweb.freebsd.org/changeset/base/329950

Log:
  pf: Cope with overly large net.pf.states_hashsize

  If the user configures a states_hashsize or source_nodes_hashsize value we
may
  not have enough memory to allocate this. This used to lock up pf, because
these
  allocations used M_WAITOK.

  Cope with this by attempting the allocation with M_NOWAIT and falling bac=
k to
  the default sizes (with M_WAITOK) if these fail.

  PR:           209475
  Submitted by: Fehmi Noyan Isi <fnoyanisi AT yahoo.com>
  MFC after:    3 weeks
  Differential Revision:        https://reviews.freebsd.org/D14367

Changes:
  head/sys/net/pfvar.h
  head/sys/netpfil/pf/pf.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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