]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 303753,308004: Add bounds checking on addresses used with /dev/mem.
authorjhb <jhb@FreeBSD.org>
Fri, 2 Dec 2016 19:02:12 +0000 (19:02 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 2 Dec 2016 19:02:12 +0000 (19:02 +0000)
commitf264e4e233ec1083a30cb6b50d0d0ac53cc6fb86
tree640c3f7b80a315fde7c31532ac9cf3676da35285
parent5c325f007b252a394e014fef7ff608a260222247
MFC 303753,308004: Add bounds checking on addresses used with /dev/mem.

303753:
Don't permit mappings of invalid physical addresses on amd64 via /dev/mem.

308004:
MFamd64: Add bounds checks on addresses used with /dev/mem.

Reject attempts to read from or memory map offsets in /dev/mem that are
beyond the maximum-supported physical address of the current CPU.
sys/amd64/amd64/mem.c
sys/i386/i386/mem.c
sys/x86/include/x86_var.h