Page MenuHomeFreeBSD

netipsec: Fix handling of unmapped mbufs
AbandonedPublic

Authored by markj on Jan 14 2021, 4:36 PM.
Tags
None
Referenced Files
F133210546: D28160.id82271.diff
Fri, Oct 24, 12:19 AM
Unknown Object (File)
Thu, Oct 16, 1:35 AM
Unknown Object (File)
Thu, Oct 16, 1:35 AM
Unknown Object (File)
Wed, Oct 15, 2:50 PM
Unknown Object (File)
Wed, Oct 15, 4:01 AM
Unknown Object (File)
Sep 19 2025, 8:41 PM
Unknown Object (File)
Sep 8 2025, 7:36 PM
Unknown Object (File)
Sep 4 2025, 4:28 PM
Subscribers

Details

Reviewers
jhb
gallatin
Summary

sendfile over an encrypted ESP tunnel triggers a panic because we fail
to map packet data before trying to compute a checksum. Add the same
mb_unmapped_to_ext() call that we have in other places.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36203
Build 33092: arc lint + arc unit

Event Timeline

Thank you for catching this.

This revision is now accepted and ready to land.Jan 14 2021, 6:13 PM

I think the patch in D28187 is better. You need to release reference to SP when error occurs before ipsec4_process_packet().

In D28160#630053, @ae wrote:

I think the patch in D28187 is better. You need to release reference to SP when error occurs before ipsec4_process_packet().

Oops, thanks. :(