diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-01-16 10:08:13 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-01-16 10:08:13 +0200 |
commit | 77dbd72b982ca648b42b4feac5f8b2ea55e4ed09 (patch) | |
tree | d85f5f036b2416ec9c0136954a3a52e69ceb887d /kernel/kallsyms.c | |
parent | d0a231f01e5b25bacd23e6edc7c979a18a517b2b (diff) | |
parent | b2dfc3fe73b5b305b13467e39386f77133590ea8 (diff) | |
download | linux-stable-77dbd72b982ca648b42b4feac5f8b2ea55e4ed09.tar.gz linux-stable-77dbd72b982ca648b42b4feac5f8b2ea55e4ed09.tar.bz2 linux-stable-77dbd72b982ca648b42b4feac5f8b2ea55e4ed09.zip |
Merge tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
Pull livepatching updates from Petr Mladek:
- Correctly handle kobjects when a livepatch init fails
- Avoid CPU hogging when searching for many livepatched symbols
- Add livepatch API page into documentation
* tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
livepatch: Avoid CPU hogging with cond_resched
livepatch: Fix missing unlock on error in klp_enable_patch()
livepatch: Fix kobject refcount bug on klp_init_patch_early failure path
Documentation: livepatch: Add livepatch API page
Diffstat (limited to 'kernel/kallsyms.c')
-rw-r--r-- | kernel/kallsyms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 3011bc33a5ba..951c93216fc4 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -243,6 +243,7 @@ int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, ret = fn(data, namebuf, NULL, kallsyms_sym_address(i)); if (ret != 0) return ret; + cond_resched(); } return 0; } |