Page MenuHomeFreeBSD

Enter and exit the network epoch for async IPsec callbacks.
ClosedPublic

Authored by jhb on Jun 25 2020, 12:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 9:10 PM
Unknown Object (File)
Feb 4 2024, 6:42 AM
Unknown Object (File)
Feb 3 2024, 9:31 AM
Unknown Object (File)
Dec 23 2023, 3:59 AM
Unknown Object (File)
Dec 13 2023, 2:13 AM
Unknown Object (File)
Oct 30 2023, 9:33 AM
Unknown Object (File)
Aug 4 2023, 3:52 PM
Unknown Object (File)
Aug 4 2023, 3:50 PM
Subscribers

Details

Summary

When an IPsec packet has been encrypted or decrypted, the next step in
the packet's traversal through the network stack is invoked from a
crypto worker thread, not from the original calling thread. These
threads need to enter the network epoch before passing packets down to
IP output routines or up to transport protocols.

Test Plan
  • tried IPsec with a kernel with INVARIANTS on head and it promptly fell over with assertion failures (not sure why I didn't see this previously since the assertions went in)
  • tested with IPv4 (AES-GCM, IPcomp (sort of, I was able to get a single ping reply back, but not others), AES-CBC + SHA1), and IPv6 (AES-GCM)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable