Commit 6d1d8891 authored by Sidath Senanayake's avatar Sidath Senanayake
Browse files

mali_kbase: mem: Prevent vma splits



When a subset of a vma region is unmapped, the kernel
attempts to split the vma region such that subset that
wasn't explicitly unmapped remains active. Due to the
way that kbase handles vma regions, they should never
be partially unmapped. A split therefore should only
be encounterd as a result of a bug in map or unmap
in the UMD.

This change implements the split callback and returns
-EINVAL to inform the kernel that it should not attempt
a split, and instead unmap the entire range instead.

It also raises a warning to indicate that there is
likely to be a bug in the upper levels of the driver
that should be investigated.

Bug: 190183863
Signed-off-by: default avatarSidath Senanayake <sidaths@google.com>
Change-Id: Ieb0825667c43aaf517aa9e786553d03cd2ffe341
parent 5a274f2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment