]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
After r338257 is was possible to trigger a KASSERT() in ud6_output()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 2 Oct 2018 17:29:56 +0000 (17:29 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 2 Oct 2018 17:29:56 +0000 (17:29 +0000)
commit9cffbc68bdc8ce5f3ab4b33314b34ffe3e1a9696
tree3fe06cd82bd54ba0403dd98c5813882199ec2c34
parentc6a3ec2b9f50eaac9e0b312b0f5f868714e368c3
After r338257 is was possible to trigger a KASSERT() in ud6_output()
using an application trying to use a v4mapped destination address on a
kernel without INET support or on a v6only socket.
Catch this case and prevent the packet from going anywhere;
else, without the KASSERT() armed, a v4mapped destination
address might go out on the wire or other undefined behaviour
might happen, while with the KASSERT() we panic.

PR: 231728
Reported by: Jeremy Faulkner (gldisater gmail.com)
Approved by: re (kib)
sys/netinet6/udp6_usrreq.c