+8
−0
+13
−0
+24
−1
+14
−0
+61
−1
Loading
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9R2TB -------------------------------- Kprobe and livepatch_wo may modify the first several instructions of a function at the same time which causing a conflict. Since dynamic ftrace reserve instructions at non-notrace functions, we can allow kprobe works on the reserved instructions and livepatch_wo work on other instructions so as to avoid the conflict. But note that we also do not allow both modify the same instruction when a function is marked as 'notrace' and without the reserved instructions. Determining the order of locks to prevent deadlocks: kprobe_mutex -> klp_mutex -> cpus_read_lock -> text_mutex Signed-off-by:Zheng Yejian <zhengyejian1@huawei.com>