mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] get rid of leak in compat_execve()
Even though copy_compat_strings() doesn't cache the pages, copy_strings_kernel() and stuff indirectly called by e.g. ->load_binary() is doing that, so we need to drop the cache contents in the end. [found by WANG Cong <[email protected]>] Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
5f719558ed
commit
08a6fac1c6
3 changed files with 11 additions and 6 deletions
|
|
@ -1405,7 +1405,7 @@ int compat_do_execve(char * filename,
|
|||
/* execve success */
|
||||
security_bprm_free(bprm);
|
||||
acct_update_integrals(current);
|
||||
kfree(bprm);
|
||||
free_bprm(bprm);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
@ -1424,7 +1424,7 @@ out_file:
|
|||
}
|
||||
|
||||
out_kfree:
|
||||
kfree(bprm);
|
||||
free_bprm(bprm);
|
||||
|
||||
out_ret:
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Reference in a new issue