Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2013 13:22:18 +0200
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        trasz@FreeBSD.org, alc@FreeBSD.org
Cc:        freebsd-current@FreeBSD.org
Subject:   Fix for sys_munlock(2) with racct
Message-ID:  <20130720112218.GD13628@caravan.chchile.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130720112218.GD13628>