Module Name: src Committed By: ozaki-r Date: Wed Jul 19 10:26:09 UTC 2017
Modified Files: src/sys/netipsec: xform_ah.c xform_esp.c xform_ipcomp.c Log Message: Hold a reference to an SP during opencrypto processing An SP has a list of isr (ipsecrequest) that represents a sequence of IPsec encryption/authentication processing. One isr corresponds to one opencrypto processing. The lifetime of an isr follows its SP. We pass an isr to a callback function of opencrypto to continue to a next encryption/authentication processing. However nobody guaranteed that the isr wasn't freed, i.e., its SP wasn't destroyed. In order to avoid such unexpected destruction of isr, hold a reference to its SP during opencrypto processing. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/netipsec/xform_ah.c \ src/sys/netipsec/xform_esp.c cvs rdiff -u -r1.45 -r1.46 src/sys/netipsec/xform_ipcomp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.