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, Mar 7, 3:22 PM
Unknown Object (File)
Feb 17 2024, 3:02 AM
Unknown Object (File)
Dec 20 2023, 6:23 AM
Unknown Object (File)
Dec 11 2023, 5:06 AM
Unknown Object (File)
Dec 2 2023, 9:27 AM
Unknown Object (File)
Oct 18 2023, 5:49 AM
Unknown Object (File)
Oct 4 2023, 11:40 AM
Unknown Object (File)
Sep 16 2023, 8:02 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