Konstantin Belousov 63cdcaaead Properly handle possible underflow in vm_fault_prefault().
In vm_fault_prefault(), if backward count causes underflow in
calculation of
	starta = addra - backward * PAGE_SIZE;
then starta must be clipped to entry->start, instead of zero.
Clipping to zero allowed mapping outside of the map entries address
ranges, in particular, map at zero.

Submitted by:	Yanko Yankulov <yanko.yankulov@gmail.com>
Reviewed by:	alc
MFC after:	1 week
2017-02-24 08:09:16 +00:00
..
2016-09-10 16:49:25 +00:00
2017-02-13 09:04:38 +00:00
2017-01-05 03:13:45 +00:00
2017-01-01 18:49:46 +00:00
2016-12-26 19:29:04 +00:00
2017-02-13 09:04:38 +00:00
2017-02-14 13:54:05 +00:00
2015-06-10 10:48:12 +00:00
2017-01-12 20:26:02 +00:00