mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
x86/arch_prctl/vdso: Add ARCH_MAP_VDSO_*
Add API to change vdso blob type with arch_prctl. As this is usefull only by needs of CRIU, expose this interface under CONFIG_CHECKPOINT_RESTORE. Signed-off-by: Dmitry Safonov <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
576ebfefd3
commit
2eefd87896
6 changed files with 78 additions and 10 deletions
|
|
@ -3063,6 +3063,14 @@ out:
|
|||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
bool vma_is_special_mapping(const struct vm_area_struct *vma,
|
||||
const struct vm_special_mapping *sm)
|
||||
{
|
||||
return vma->vm_private_data == sm &&
|
||||
(vma->vm_ops == &special_mapping_vmops ||
|
||||
vma->vm_ops == &legacy_special_mapping_vmops);
|
||||
}
|
||||
|
||||
/*
|
||||
* Called with mm->mmap_sem held for writing.
|
||||
* Insert a new vma covering the given region, with the given flags.
|
||||
|
|
|
|||
Loading…
Reference in a new issue