]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
We can't implicitly trust the hook on NGQF_FN/NGQF_FN2 processing in
authormav <mav@FreeBSD.org>
Sat, 13 Sep 2008 09:17:02 +0000 (09:17 +0000)
committermav <mav@FreeBSD.org>
Sat, 13 Sep 2008 09:17:02 +0000 (09:17 +0000)
commitac69cb023f4b131046c72575f65acf53c2604b55
treec152f620d259d537de1b38daa97ab72b77b6ba29
parent00ea27d0c331940182820ddeb2343bb738ac8e4a
We can't implicitly trust the hook on NGQF_FN/NGQF_FN2 processing in
ng_apply_item(). There are possible (and I have got one) use-after-free
class panics because of it.

If hook is specified, require it to be valid at the apply time. The only
exceptions are the internal ng_con_part2(), ng_con_part3() and
ng_rmhook_part2() functions which are specially made to work with invalid
hooks.
sys/netgraph/ng_base.c