]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kern_copyin test.
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 4 Sep 2020 12:52:16 +0000 (12:52 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 4 Sep 2020 12:52:16 +0000 (12:52 +0000)
commit6eeccaa91b3884239efc0ad1431bb706c2326540
tree71f1edcffd7d96cf129c8f4489b8942e6d234ade
parent291124e3c06f91577777dc2ddecfa38e4de46314
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