Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called in context of a new clone/fork from copy_process.

Proto:void uprobe_copy_process(struct task_struct *t, unsigned long flags)

Type:void

Parameter:

TypeParameterName
struct task_struct *t
unsigned longflags
1802  utask = utask
1803  mm = mm
1806  utask = NULL
1808  If Not utask || Not return_instances Then Return
1811  If mm == mm && Not (flags & set if the parent wants the child to wake it up on mm_release ) Then Return
1814  If dup_utask(t, utask) Then Return uprobe_warn(t, "dup ret instances")
1818  area = xol_area
1819  If Not area Then Return uprobe_warn(t, "dup xol area")
1822  If mm == mm Then Return
1825  dup_xol_addr = Page(s) of instruction slots
1826  init_task_work( & dup_xol_work, dup_xol_work)
1827  ask_work_add - ask the @task to execute @work->func()*@task: the task which should run the callback*@work: the callback to run*@notify: send the notification if true* Queue @work for task_work_run() below and notify the @task if @notify.