Date: Fri, 9 Jan 2009 21:02:54 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netgraph ng_base.c Message-ID: <200901092103.n09L31Wn020788@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mav 2009-01-09 21:02:54 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/netgraph ng_base.c
Log:
SVN rev 186976 on 2009-01-09 21:02:54Z by mav
MFC rev. 182995
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.
Revision Changes Path
1.135.2.12 +14 -6 src/sys/netgraph/ng_base.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901092103.n09L31Wn020788>
