On Sat, Feb 20, 2021 at 1:57 PM Ben Widawsky <ben.widawsky(a)intel.com> wrote:
When submitting a command for userspace, input and output payload bounce
buffers are allocated. For a given command, both input and output
buffers may exist and so when allocation of the input buffer fails, the
output buffer must be freed. As far as I can tell, userspace can't
easily exploit the leak to OOM a machine unless the machine was already
near OOM state.
This bug was introduced in v5 of the patch and did not exist in prior
Thanks for the quick turnaround, but I think that speed introduced
While here, adjust the variable 'j' found in patch review by
Please split this pure cleanup to its own patch. The subject says
"Fixes", but it's only the one fix.
Cc: Al Viro <viro(a)zeniv.linux.org.uk>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk(a)oracle.com>
Since the commit is upstream add a "Fixes" line:
Fixes: 583fa5e71cae ('cxl/mem: Add basic IOCTL interface")
Signed-off-by: Ben Widawsky <ben.widawsky(a)intel.com>
Reviewed-by: Dan Williams <dan.j.williams(a)intel.com> (v2)
Reviewed-by: Jonathan Cameron <Jonathan.Cameron(a)huawei.com>
Jonathan and I didn't pre-review this.