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)
Sun, May 17, 1:02 AM
Unknown Object (File)
Sun, May 10, 7:08 PM
Unknown Object (File)
Thu, Apr 30, 5:36 AM
Unknown Object (File)
Tue, Apr 28, 11:57 PM
Unknown Object (File)
Fri, Apr 24, 8:09 PM
Unknown Object (File)
Thu, Apr 23, 11:22 PM
Unknown Object (File)
Tue, Apr 21, 12:02 PM
Unknown Object (File)
Mon, Apr 20, 1:21 AM
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