]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netlink: fix bug with socket buffer character counter underflow
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 11 Jan 2024 04:51:53 +0000 (20:51 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 11 Jan 2024 04:51:53 +0000 (20:51 -0800)
commitd9b1f6fbf9935a9d54c78987a04af7cda3740c56
treeb2f0e116432f0ce774190556d71a0dacc878771f
parentf75d7fac109bf8e322b07456c5361ee62f5635c2
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.
sys/netlink/netlink_domain.c