diff options
author | Peter Zijlstra <[email protected]> | 2013-06-04 10:44:21 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-06-19 12:44:13 +0200 |
commit | 9bb5d40cd93c9dd4be74834b1dcb1ba03629716b (patch) | |
tree | 28226bb0f9c0e8f43e2680f4ca34d76068b88ceb /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 26cb63ad11e04047a64309362674bcbbd6a6f246 (diff) |
perf: Fix mmap() accounting hole
Vince's fuzzer once again found holes. This time it spotted a leak in
the locked page accounting.
When an event had redirected output and its close() was the last
reference to the buffer we didn't have a vm context to undo accounting.
Change the code to destroy the buffer on the last munmap() and detach
all redirected events at that time. This provides us the right context
to undo the vm accounting.
Reported-and-tested-by: Vince Weaver <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions