HomeFreeBSD

netlink: fix bug with socket buffer character counter underflow

Description

netlink: fix bug with socket buffer character counter underflow

Cover case when an nb that we are now reading in full had been partially
read by previous read(2) and now has positive offset. Throw couple
assertions that helped to catch that earlier.

Details

Provenance
glebiusAuthored on Jan 11 2024, 4:51 AM
Parents
rGf75d7fac109b: netlink: avoid putting empty mbufs on the socket queue
Branches
Unknown
Tags
Unknown