module: Move livepatch support to a separate file
authorAaron Tomlin <atomlin@redhat.com>
Tue, 22 Mar 2022 14:03:34 +0000 (14:03 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 5 Apr 2022 15:43:04 +0000 (08:43 -0700)
commit1be9473e31ab87ad1b6ecf9fd11df461930ede85
tree51ef0bbbe121d1094fa87c5bd5ea46c52ea406f1
parent5aff4dfdb4ae2741cfff759d917f597f2c7f70aa
module: Move livepatch support to a separate file

No functional change.

This patch migrates livepatch support (i.e. used during module
add/or load and remove/or deletion) from core module code into
kernel/module/livepatch.c. At the moment it contains code to
persist Elf information about a given livepatch module, only.
The new file was added to MAINTAINERS.

Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
MAINTAINERS
include/linux/module.h
kernel/module/Makefile
kernel/module/internal.h
kernel/module/livepatch.c [new file with mode: 0644]
kernel/module/main.c