lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 30 Dec 2022 19:27:26 +0800 From: Zhen Lei <thunder.leizhen@...wei.com> To: Josh Poimboeuf <jpoimboe@...nel.org>, Jiri Kosina <jikos@...nel.org>, Miroslav Benes <mbenes@...e.cz>, Petr Mladek <pmladek@...e.com>, Joe Lawrence <joe.lawrence@...hat.com>, Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann <daniel@...earbox.net>, Andrii Nakryiko <andrii@...nel.org>, Martin KaFai Lau <martin.lau@...ux.dev>, Song Liu <song@...nel.org>, Yonghong Song <yhs@...com>, John Fastabend <john.fastabend@...il.com>, KP Singh <kpsingh@...nel.org>, Stanislav Fomichev <sdf@...gle.com>, Hao Luo <haoluo@...gle.com>, Jiri Olsa <jolsa@...nel.org>, Steven Rostedt <rostedt@...dmis.org>, Masami Hiramatsu <mhiramat@...nel.org>, Mark Rutland <mark.rutland@....com>, <bpf@...r.kernel.org>, <linux-trace-kernel@...r.kernel.org>, <live-patching@...r.kernel.org>, <linux-kernel@...r.kernel.org>, Luis Chamberlain <mcgrof@...nel.org>, <linux-modules@...r.kernel.org> CC: Zhen Lei <thunder.leizhen@...wei.com> Subject: [PATCH 0/3] kallsyms: Optimize the search for module symbols by livepatch and bpf Patches 7-8 in [1] have been delayed until now due to merge conflicts. The current patch 1/3 corresponds to patch 7/9 in [1], and the current patch 3/3 corresponds to patch 8/9 in [1]. But there are some changes. Originally, only livepatch uses function module_kallsyms_on_each_symbol(), it find the specified function for the specified module. Now, bpf also uses function module_kallsyms_on_each_symbol(), it needs to traverse all the modules. So for the new parameter 'modname' of module_kallsyms_on_each_symbol(), if it's NULL, the symbols of all modules are still traversed for compatibility with the case of bpf. Patch 2/3 is new, as I understand it, it should be fine. If it doesn't work, then patch 3/3 should be dropped. [1] https://lkml.org/lkml/2022/11/2/225 Zhen Lei (3): livepatch: Improve the search performance of module_kallsyms_on_each_symbol() bpf: Optimize get_modules_for_addrs() kallsyms: Delete an unused parameter related to {module_}kallsyms_on_each_symbol() include/linux/kallsyms.h | 3 +- include/linux/module.h | 8 +-- kernel/kallsyms.c | 5 +- kernel/kallsyms_selftest.c | 6 +-- kernel/livepatch/core.c | 13 +---- kernel/module/kallsyms.c | 16 ++++-- kernel/trace/bpf_trace.c | 101 +++++++++++++++---------------------- kernel/trace/ftrace.c | 5 +- 8 files changed, 67 insertions(+), 90 deletions(-) -- 2.25.1
Powered by blists - more mailing lists