plan9fox/sys
cinap_lenrek fcc336b902 kernel: catch address overflow in syssegfree()
the "to" address can overflow in syssegfree() causing wrong
number of pages to be passed to mfreeseg(). with the current
implementation of mfreeseg() however, this doesnt cause any
data corruption but was just freeing an unexpected number of
pages.

this change checks for this condition in syssegfree() and
errors out instead. also mfreeseg() was changed to take
ulong argument for number of pages instead of int to keep
it consistent with other routines that work with page counts.
2015-03-07 18:59:06 +01:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: My recent incompetence is humbling. I should quit the industry. 2015-02-25 19:22:47 -05:00
include libthread: get rid of chaninit() (thanks qrstuv) 2015-03-04 10:20:31 +01:00
lib set /mail/tmp permissions world writable in cdproto 2015-03-05 10:16:17 +01:00
man col(1): add SOURCE (thanks, qrstuv) 2015-03-04 19:23:34 -05:00
src kernel: catch address overflow in syssegfree() 2015-03-07 18:59:06 +01:00