lkml.org 
[lkml]   [2015]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] Fix the bug that function never be patched, if the name is larger than KSYM_NAME_LEN-1
Date
For now, the kallsyms will only store the first (KSYM_NAME_LEN-1). The
kallsyms name is same for the function which first (KSYM_NAME_LEN-1) is
same, but the rest is not.

Livepatch will verify the function name to confirm the patch is
validation or not for extra module. Once the function name is larger
than (KSYM_NAME_LEN-1), the function never be patched, although
function name and address provided both, according to above verification.

Now, livepatch will verify the function name with first (KSYM_NAME_LEN-1)
and address, if provided. Once they are matched, we can confirm that the
patched function is found.

Minfei Huang (2):
livepatch: Add a new function to verify the address and name match for
patched module
livepatch: Fix the bug if the function name is larger than
KSYM_NAME_LEN-1

kernel/livepatch/core.c | 55 ++++++++++++++++++++++++++++++++++---------------
1 file changed, 38 insertions(+), 17 deletions(-)

--
2.2.2



\
 
 \ /
  Last update: 2015-04-12 16:01    [W:0.030 / U:5.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site