Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\transition.c Create Date:2022-07-28 10:32:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Drop TIF_PATCH_PENDING of all tasks on admin's request. This forces an* existing transition to finish.* NOTE: klp_update_patch_state(task) requires the task to be inactive or* 'current'. This is not the case here and the consistency model could be* broken

Proto:void klp_force_transition(void)

Type:void

Parameter:Nothing

634  pr_warn("forcing remaining tasks to the patched state\n")
636  read_lock( & tasklist_lock)
637  Careful: this is a double loop, 'break' won't work as expected. (g, task)
638  Switch the patched state of the task to the set of functions in the target* patch state.* NOTE: If task is not 'current', the caller must ensure the task is inactive.* Otherwise klp_ftrace_handler() might read the wrong 'patch_state' value.
639  read_unlock( & tasklist_lock)
641  for_each_possible_cpu(cpu)
642  Switch the patched state of the task to the set of functions in the target* patch state.* NOTE: If task is not 'current', the caller must ensure the task is inactive.* Otherwise klp_ftrace_handler() might read the wrong 'patch_state' value.
644  klp_for_each_patch(patch)
645  forced = true
Caller
NameDescribe
force_store