Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:45:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Slot allocation for XOL

Proto:static int xol_add_vma(struct mm_struct *mm, struct xol_area *area)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
struct xol_area *area
1448  If lock for writing Then Return -EINTR
1451  If xol_area Then
1452  ret = -EALREADY
1453  Go to fail
1456  If Not Page(s) of instruction slots Then
1458  Page(s) of instruction slots = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, PAGE_SIZE, 0, 0)
1462  Go to fail
1466  vma = _install_special_mapping(mm, Page(s) of instruction slots , PAGE_SIZE, VM_EXEC | VM_MAYEXEC | Do not copy this vma on fork | Memory mapped I/O or similar , & xol_mapping)
1469  If IS_ERR(vma) Then
1470  ret = PTR_ERR(vma)
1471  Go to fail
1474  ret = 0
1476  smp_store_release( & xol_area, area)
1477  fail :
1478  lease a write lock
1480  Return ret
Caller
NameDescribe
__create_xol_area