Re: [PATCH] perf: Fix the mlock accounting, again

From: Alexander Shishkin
Date: Fri Nov 15 2019 - 11:17:42 EST


Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> writes:

> Commit
>
> 5e6c3c7b1ec2 ("perf/aux: Fix tracking of auxiliary trace buffer allocation")
>
> tried to guess the correct combination of arithmetic operations that would
> undo the AUX buffer's mlock accounting, and failed, leaking the bottom part
> when an allocation needs to be changed partially to both user->locked_vm

s/changed/charged/