• C
    livepatch/arm64: support function force patched/unpatched · ba5f334e
    Cheng Jian 提交于
    euler inclusion
    category: feature
    Bugzilla: 5507
    CVE: N/A
    
    ----------------------------------------
    
    Some functions in the kernel are always on the stack of some
    thread in the system. Attempts to patch these function will
    currently always fail the activeness safety check.
    
    However, through human inspection, it can be determined that,
    for a particular function, consistency is maintained even if
    the old and new versions of the function run concurrently.
    
    commit 2e93c5e1e3dc ("support forced patching") in kpatch-build
    introduces a KPATCH_FORCE_UNSAFE() macro to define patched
    functions that such be exempted from the activeness safety
    check. now kernel implement this feature.
    Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
    Reviewed-by: NLi Bin <huawei.libin@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    ba5f334e
livepatch.c 8.1 KB