mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 vdso updates from Ingo Molnar:
"The main changes in this cycle centered around adding support for
32-bit compatible C/R of the vDSO on 64-bit kernels, by Dmitry
Safonov"
* 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/vdso: Use CONFIG_X86_X32_ABI to enable vdso prctl
x86/vdso: Only define map_vdso_randomized() if CONFIG_X86_64
x86/vdso: Only define prctl_map_vdso() if CONFIG_CHECKPOINT_RESTORE
x86/signal: Add SA_{X32,IA32}_ABI sa_flags
x86/ptrace: Down with test_thread_flag(TIF_IA32)
x86/coredump: Use pr_reg size, rather that TIF_IA32 flag
x86/arch_prctl/vdso: Add ARCH_MAP_VDSO_*
x86/vdso: Replace calculate_addr in map_vdso() with addr
x86/vdso: Unmap vdso blob on vvar mapping failure
This commit is contained in:
commit
8e4ef63867
15 changed files with 220 additions and 106 deletions
|
|
@ -3068,6 +3068,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