mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: thunder.leizhen@huawei.com, swboyd@chromium.org,
	yang.lee@linux.alibaba.com, linux@rasmusvillemoes.dk,
	petr.pavlu@suse.com, mwilck@suse.com, pmladek@suse.com,
	mcgrof@kernel.org, linux-modules@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [GIT PULL] modules changes for v6.2-rc1
Date: Mon, 12 Dec 2022 18:53:27 -0800	[thread overview]
Message-ID: <Y5fpJ6MOxf9PD8Vh@bombadil.infradead.org> (raw)

The following changes since commit eb037f16f7e843722db5f0275d84b3f738d5649d:

  Merge tag 'perf-tools-fixes-for-v6.1-2-2022-11-10' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux (2022-11-11 09:45:30 -0800)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/ tags/modules-6.2-rc1

for you to fetch changes up to 4f1354d5c6a3264c91238962d1597eef40c40419:

  livepatch: Call klp_match_callback() in klp_find_callback() to avoid code duplication (2022-12-12 18:30:58 -0800)

----------------------------------------------------------------
modules changes for v6.2-rc1

Tux gets for xmass improving the average lookup performance of
kallsyms_lookup_name() by 715x thanks to the work by Zhen Lei, which
upgraded our old implementation from being O(n) to O(log(n)), while also
retaining the old implementation support on /proc/kallsyms. The only
penalty was increasing the memory footprint by 3 * kallsyms_num_syms.
Folks who want to improve this further now also have a dedicated selftest
facility through KALLSYMS_SELFTEST. Since I had to start reviewing other
future kallsyms / modules enhancements by Nick Alcock (his stuff is not
merged, it requires more work) I carefully reviewed and merged Zhen Lei's
kallsyms changes through modules-next tree a bit less than a month ago.
So this has been exposed on linux-next for about a month now with no
reported regressions.

Stephen Boyd added zstd in-kernel decompression support, but the only
users of this would be folks using the load-pin LSM because otherwise
we do module docompression in userspace. This is the newest code and
was merged last week on modules-next.

We spent a lot of time analyzing and coming to grips with a proper
fix to an old modules regression which only recently came to light
(since v5.3-rc1, May 2019) but even though I merged that fix onto
modules-next last week I'm having second thoughts about it now as I was
writing about that fix in this git tag message for you, as I found a few
things we cannot quite justify there yet. So I'm going to push back to the
drawing board again there until all i's are properly dotted. Yes, it's a
regression but the issue has been there for 2 years now and it came up
because of high end CPU count, it can wait a *tiny* bit more for a proper
fix.

The only other thing with mentioning is a minor boot time optimization by
Rasmus Villemoes which deferes param_sysfs_init() to late init. The rest
is cleanups and minor fixes.

----------------------------------------------------------------
Chen Zhongjin (1):
      module: Remove unused macros module_addr_min/max

Miaoqian Lin (1):
      module: Fix NULL vs IS_ERR checking for module_get_next_page

Rasmus Villemoes (2):
      module: remove redundant module_sysfs_initialized variable
      kernel/params.c: defer most of param_sysfs_init() to late_initcall time

Stephen Boyd (1):
      module/decompress: Support zstd in-kernel decompression

Yang Li (1):
      kallsyms: Remove unneeded semicolon

Zhen Lei (8):
      scripts/kallsyms: rename build_initial_tok_table()
      kallsyms: Improve the performance of kallsyms_lookup_name()
      kallsyms: Correctly sequence symbols when CONFIG_LTO_CLANG=y
      kallsyms: Reduce the memory occupied by kallsyms_seqs_of_names[]
      kallsyms: Add helper kallsyms_on_each_match_symbol()
      livepatch: Use kallsyms_on_each_match_symbol() to improve performance
      kallsyms: Add self-test facility
      livepatch: Call klp_match_callback() in klp_find_callback() to avoid code duplication

 include/linux/kallsyms.h   |   9 +
 include/linux/module.h     |   1 -
 init/Kconfig               |  13 ++
 kernel/Makefile            |   1 +
 kernel/kallsyms.c          | 116 +++++++++--
 kernel/kallsyms_internal.h |   1 +
 kernel/kallsyms_selftest.c | 485 +++++++++++++++++++++++++++++++++++++++++++++
 kernel/kallsyms_selftest.h |  13 ++
 kernel/livepatch/core.c    |  31 +--
 kernel/module/Kconfig      |   3 +-
 kernel/module/decompress.c | 100 +++++++++-
 kernel/module/main.c       |   3 -
 kernel/module/sysfs.c      |   2 +-
 kernel/params.c            |  23 ++-
 scripts/kallsyms.c         |  78 +++++++-
 scripts/link-vmlinux.sh    |   4 +
 16 files changed, 840 insertions(+), 43 deletions(-)
 create mode 100644 kernel/kallsyms_selftest.c
 create mode 100644 kernel/kallsyms_selftest.h

             reply	other threads:[~2022-12-13  2:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-13  2:53 Luis Chamberlain [this message]
2022-12-13 22:35 ` pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y5fpJ6MOxf9PD8Vh@bombadil.infradead.org \
    --to=mcgrof@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mwilck@suse.com \
    --cc=petr.pavlu@suse.com \
    --cc=pmladek@suse.com \
    --cc=swboyd@chromium.org \
    --cc=thunder.leizhen@huawei.com \
    --cc=torvalds@linux-foundation.org \
    --cc=yang.lee@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®