Page MenuHomeFreeBSD

udp: Do not recursively enter net epoch
ClosedPublic

Authored by zlei on Tue, Mar 4, 9:51 AM.
Tags
None
Referenced Files
F112719814: D49227.diff
Fri, Mar 21, 9:59 PM
F112680712: D49227.id151834.diff
Fri, Mar 21, 9:07 AM
Unknown Object (File)
Fri, Mar 14, 10:57 AM
Unknown Object (File)
Sat, Mar 8, 12:44 AM
Unknown Object (File)
Fri, Mar 7, 9:43 AM
Unknown Object (File)
Fri, Mar 7, 5:17 AM
Unknown Object (File)
Fri, Mar 7, 5:03 AM
Unknown Object (File)
Fri, Mar 7, 3:52 AM
Subscribers

Details

Summary

The only caller udp_send() has already entered net epoch before invoking
udp_v4mapped_pktinfo().

No functional change intended.

This partially reverts commit d74b7baeb0d4 (ifnet_byindex() actually
requires network epoch).

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei requested review of this revision.Tue, Mar 4, 9:51 AM

Didn't do a full examination of all stacks, the change by itself should be correct. If any code path triggers the new assertion, that path needs to be fixed.

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Mar 5, 5:01 AM
This revision was automatically updated to reflect the committed changes.

Didn't do a full examination of all stacks, the change by itself should be correct. If any code path triggers the new assertion, that path needs to be fixed.

I noticed this while checking the usage of IN6_IS_ADDR_UNSPECIFIED().

There're still some, notably bpf(4). Well that has been in WIP for quite a long time. I started that when I was working on D39275. I'll post when ready.