ANDROID: mm: page_pinner: use put_user_page at copy_string
copy_string calls __get_user_pages by copy_strings. Thus, let's use put_user_page to close the false positive. Page pinned via pid 905, ts 13725666111 ns PFN 104188 Block 203 type Movable Flags 0xfffffc0080036(referenced|uptodate|lru|active|swapbacked) try_grab_page+0x144/0x160 follow_page_mask+0x4a1/0x630 __get_user_pages+0x24e/0x760 __get_user_pages_remote+0xd4/0x320 get_arg_page+0x3e/0xa0 copy_strings.isra.0+0x201/0x380 do_execveat_common+0x17a/0x1c0 __x64_sys_execve+0x39/0x50 do_syscall_64+0x33/0x80 entry_SYSCALL_64_after_hwframe+0x44/0xae Bug: 183414571 Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I4c515d12f75496741cd80a24cf6ea971006f0bce
This commit is contained in:
parent
df9a9d821c
commit
d3b077bc15
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
|
|||
|
||||
static void put_arg_page(struct page *page)
|
||||
{
|
||||
put_page(page);
|
||||
put_user_page(page);
|
||||
}
|
||||
|
||||
static void free_arg_pages(struct linux_binprm *bprm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue