Merge "msm: adsprpc: Do length check to avoid arbitrary memory access"
This commit is contained in:
commit
d56d87abb0
1 changed files with 1 additions and 1 deletions
|
|
@ -2397,7 +2397,7 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
|
|||
}
|
||||
offset = buf_page_start(buf) - vma->vm_start;
|
||||
up_read(¤t->mm->mmap_sem);
|
||||
VERIFY(err, offset < (uintptr_t)map->size);
|
||||
VERIFY(err, offset + len <= (uintptr_t)map->size);
|
||||
if (err) {
|
||||
ADSPRPC_ERR(
|
||||
"buffer address is invalid for the fd passed for %d address 0x%llx and size %zu\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue