]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kern_copyin test.
authorkib <kib@FreeBSD.org>
Fri, 4 Sep 2020 12:52:16 +0000 (12:52 +0000)
committerkib <kib@FreeBSD.org>
Fri, 4 Sep 2020 12:52:16 +0000 (12:52 +0000)
commitbd93b268ec2395759186368630906cf2390cc5eb
tree71f1edcffd7d96cf129c8f4489b8942e6d234ade
parent6b4ba85de7f511813ba8bc3725162bc2994d2639
Fix kern_copyin test.

Main part is that kern_copyin on amd64 after LA57 should query the top
of UVA for correct operations. In fact it should started doing that
after the workaround for AMD bug with IRET in the last user page was
fixed by reducing UVA by a page.

Also since we started calculating top of UVA, fix MIPS according to
the comment.

Reported by: lwhsu
PR: 248933
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D26312
tests/sys/kern/kern_copyin.c