diff options
author | Alexander Motin <mav@FreeBSD.org> | 2008-01-31 08:51:48 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2008-01-31 08:51:48 +0000 |
commit | 81a253a4ede94f5f284f5696da87a1394c126be5 (patch) | |
tree | e401ae1e6519d6fbdbbcd1a030ecceea296b79b8 /sys/netgraph/ng_iface.c | |
parent | 2a57ca33c742c600a5837ba32f9325b79e669f45 (diff) | |
download | src-81a253a4ede94f5f284f5696da87a1394c126be5.tar.gz src-81a253a4ede94f5f284f5696da87a1394c126be5.zip |
Implement stack protection based on GET_STACK_USAGE() macro.
This fixes system panics possible with complicated netgraph setups
and allows to avoid unneded extra queueing for stack unwrapping.
Notes
Notes:
svn path=/head/; revision=175847
Diffstat (limited to 'sys/netgraph/ng_iface.c')
-rw-r--r-- | sys/netgraph/ng_iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index b3c177a23589..fec243215d35 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -573,6 +573,7 @@ ng_iface_newhook(node_p node, hook_p hook, const char *name) if (*hookptr != NULL) return (EISCONN); *hookptr = hook; + NG_HOOK_HI_STACK(hook); return (0); } |