Page MenuHomeFreeBSD

In udp_input() validate inp before use after epoch(9).
ClosedPublic

Authored by bz on Oct 12 2018, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 2:45 PM
Unknown Object (File)
Tue, Dec 10, 1:37 PM
Unknown Object (File)
Nov 25 2024, 1:12 AM
Unknown Object (File)
Nov 17 2024, 4:11 AM
Unknown Object (File)
Nov 7 2024, 2:17 PM
Unknown Object (File)
Nov 5 2024, 7:44 AM
Unknown Object (File)
Oct 29 2024, 12:21 PM
Unknown Object (File)
Oct 28 2024, 10:13 PM
Subscribers

Details

Summary

In udp_input() when walking the pcblist we can come across
an inp marked FREED after the epoch(9) changes.
Check once we hold the lock and skip the inp if it is the case.

Contrary to IPv6 the locking of the inp outside the multicast
section and hence a single check seems to suffice. Harmonization
should happen at some point but currently keep the code changes
to a minimum before stable/12 happens.

PR: 232192

Diff Detail

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