Fix for sys_munlock(2) with racct

From: Jeremie Le Hen <jlh_at_FreeBSD.org>
Date: Sat, 20 Jul 2013 13:22:18 +0200
Hi Edward, Alan,

I plan to commit the following patch:
http://people.freebsd.org/~jlh/racct_munlock.diff

This solves the following panic:

panic: racct_sub: freeing 301989888 of resource 5, which is more than allocated 73728 for pwsafe (pid 4177)

The problem is that the racct code in sys_munlock() trusts too much the
user's input.  vm_map_unwire_count() now returns how much memory has
really been unwired.

Any objection?
-- 
Jeremie Le Hen

Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.
Received on Sat Jul 20 2013 - 09:22:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:39 UTC