]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix handling of ancillary data on non-AF_UNIX Linux sockets.
authorMark Johnston <markj@FreeBSD.org>
Tue, 18 Aug 2020 14:17:14 +0000 (14:17 +0000)
committerMark Johnston <markj@FreeBSD.org>
Tue, 18 Aug 2020 14:17:14 +0000 (14:17 +0000)
commita7044c60a5c87dede146b8ef40b3c2b33bb8b218
tree022fa89b9e21f5a59a2d69fa3602635569846f7f
parentb21b022a818ad5218f54e5d1045bd75e03b9de27
Fix handling of ancillary data on non-AF_UNIX Linux sockets.

After r340674, the "continue" would restart the loop without having
updated clen, resulting in an infinite loop.  Restore the old behaviour
of simply ignoring all control messages on such sockets, since we
currently only implement handling for AF_UNIX-specific messages.

Reported by: syzkaller
Reviewed by: tijl
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26093
sys/compat/linux/linux_socket.c