]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348323:
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 16 Sep 2019 14:25:51 +0000 (14:25 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 16 Sep 2019 14:25:51 +0000 (14:25 +0000)
commitaddde23907b6e1cd1ce63706cf9221e7d06957ef
tree233b001b16f3537dd4fdfb9afb96110933c98ae6
parente0e4fb80a22623d204469d35d7e0a03c50d593ec
MFC r348323:

The alignment is passed into contigmalloc_domainset in the 7th argument.

KUBSAN was complaining the pointer contigmalloc_domainset returned was
misaligned. Fix this by using the correct argument to find the alignment
in the function signature.

Reported by: KUBSAN
Sponsored by: DARPA, AFRL
sys/sys/malloc.h