f089869fa5
network stack when reentering the inbound path from netgraph, and force queueing of mbufs at the outbound netgraph node. The mechanism relies on two components. First, in netgraph nodes where outbound path of the network stack calls into netgraph, the current thread has to be appropriately marked using the new NG_OUTBOUND_THREAD_REF() macro before proceeding to call further into the netgraph topology, and unmarked using the NG_OUTBOUND_THREAD_UNREF() macro before returning to the caller. Second, netgraph nodes which can potentially reenter the network stack in the inbound path have to mark their inbound hooks using NG_HOOK_SET_TO_INBOUND() macro. The netgraph framework will then detect when there is a danger of a call graph looping back from outbound to inbound path via netgraph, and defer handing off the mbufs to the "inbound" node to a worker thread with a clean stack. In this first pass only the most obvious netgraph nodes have been updated to ensure no outbound to inbound calls can occur. Nodes such as ng_ipfw, ng_gif etc. should be further examined whether a potential for outbound to inbound call looping exists. This commit changes the layout of struct thread, but due to __FreeBSD_version number shortage a version bump has been omitted at this time, nevertheless kernel and modules have to be rebuilt. Reviewed by: julian, rwatson, bz Approved by: julian (mentor) |
||
---|---|---|
.. | ||
atm | ||
bluetooth | ||
netflow | ||
netgraph.h | ||
ng_async.c | ||
ng_async.h | ||
ng_atmllc.c | ||
ng_atmllc.h | ||
ng_base.c | ||
ng_bpf.c | ||
ng_bpf.h | ||
ng_bridge.c | ||
ng_bridge.h | ||
ng_car.c | ||
ng_car.h | ||
ng_cisco.c | ||
ng_cisco.h | ||
ng_deflate.c | ||
ng_deflate.h | ||
ng_device.c | ||
ng_device.h | ||
ng_echo.c | ||
ng_echo.h | ||
ng_eiface.c | ||
ng_eiface.h | ||
ng_etf.c | ||
ng_etf.h | ||
ng_ether_echo.c | ||
ng_ether_echo.h | ||
ng_ether.c | ||
ng_ether.h | ||
ng_fec.c | ||
ng_fec.h | ||
ng_frame_relay.c | ||
ng_frame_relay.h | ||
ng_gif_demux.c | ||
ng_gif_demux.h | ||
ng_gif.c | ||
ng_gif.h | ||
ng_hole.c | ||
ng_hole.h | ||
ng_hub.c | ||
ng_hub.h | ||
ng_iface.c | ||
ng_iface.h | ||
ng_ip_input.c | ||
ng_ip_input.h | ||
ng_ipfw.c | ||
ng_ipfw.h | ||
ng_ksocket.c | ||
ng_ksocket.h | ||
ng_l2tp.c | ||
ng_l2tp.h | ||
ng_lmi.c | ||
ng_lmi.h | ||
ng_message.h | ||
ng_mppc.c | ||
ng_mppc.h | ||
ng_nat.c | ||
ng_nat.h | ||
ng_one2many.c | ||
ng_one2many.h | ||
ng_parse.c | ||
ng_parse.h | ||
ng_pipe.c | ||
ng_pipe.h | ||
ng_ppp.c | ||
ng_ppp.h | ||
ng_pppoe.c | ||
ng_pppoe.h | ||
ng_pptpgre.c | ||
ng_pptpgre.h | ||
ng_pred1.c | ||
ng_pred1.h | ||
ng_rfc1490.c | ||
ng_rfc1490.h | ||
ng_sample.c | ||
ng_sample.h | ||
ng_socket.c | ||
ng_socket.h | ||
ng_socketvar.h | ||
ng_source.c | ||
ng_source.h | ||
ng_split.c | ||
ng_split.h | ||
ng_sppp.c | ||
ng_sppp.h | ||
ng_tag.c | ||
ng_tag.h | ||
ng_tcpmss.c | ||
ng_tcpmss.h | ||
ng_tee.c | ||
ng_tee.h | ||
ng_tty.c | ||
ng_tty.h | ||
ng_UI.c | ||
ng_UI.h | ||
ng_vjc.c | ||
ng_vjc.h | ||
ng_vlan.c | ||
ng_vlan.h | ||
NOTES |