Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2018 13:16:18 +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-bWdYNGirQA@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 #25 from Kristof Provost <kp@freebsd.org> ---
(In reply to fehmi noyan isi from comment #24)
I'd change the error message ('invalid states hashtable size(%lu)', and
friends) to say there's not enough memory. It's not so much that the value =
is
incorrect, just that it's more than we have memory for.

What crash are you seeing? Note that mallocarray() will panic if you trigge=
r an
integer overflow, which could well happen with 2147483648 on a 32-bit machi=
ne.

--=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-bWdYNGirQA>