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, Apr 17, 2:31 AM
Unknown Object (File)
Mar 25 2025, 5:09 AM
Unknown Object (File)
Mar 20 2025, 10:23 AM
Unknown Object (File)
Mar 14 2025, 3:20 PM
Unknown Object (File)
Feb 8 2025, 10:34 PM
Unknown Object (File)
Feb 5 2025, 11:12 PM
Unknown Object (File)
Jan 28 2025, 12:17 AM
Unknown Object (File)
Jan 24 2025, 5:39 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