Page MenuHomeFreeBSD

sys/netipsec: ensure sah stability during input callback processing
Needs ReviewPublic

Authored by kib on Sat, Dec 20, 12:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 20, 1:32 PM
Unknown Object (File)
Sat, Dec 20, 1:31 PM

Details

Reviewers
ae
Summary
Reported by:    ae
Tested by:      ae, Daniel Dubnikov <ddaniel@nvidia.com>
Reviewed by:    Ariel Ehrenberg <aehrenberg@nvidia.com>
Sponsored by:   NVidia networking

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.EditedSat, Dec 20, 12:06 PM

I have to keep sah tree rlocked much deeper, right until the if_input is called finally, but drop it right before going up to stack. Otherwise, we might recurse on the sah tree lock, since input sometimes needs to send packet, which also enters the ipsec for output. Also, the same problem exists for all ESP/AH/IPCOMP processing callbacks.