This topic describes how to obtain kernel hotfixes, enable or disable kernel hotfixes, and disable the kpatch service on Elastic Compute Service (ECS) instances that run Alibaba Cloud Linux operating systems.
Background information
- For information about how to obtain a kernel hotfix and view its details, see the Obtain a kernel hotfix section.
- For information about how to enable a kernel hotfix in an operating system, see the Enable a kernel hotfix section.
- For information about how to disable a kernel hotfix in an operating system when the hotfix is abnormal, see the Disable a kernel hotfix section.
- If the Kernel Live Patching (KLP) feature is enabled in the operating system, but you do not want the operating system to load all the kernel modules of your hotfixes when you restart your server, you can disable the kpatch service. For more information, see the Disable the kpatch service section.
Obtain a kernel hotfix
- Use the CVE announcement platform of Alibaba Cloud Linux
- Access the common vulnerabilities and exposures (CVE) announcement platform.
All the released hotfixes are displayed on CVE announcement platforms. You can visit the following websites of CVE announcement platforms for Alibaba Cloud Linux distributions:
- Click Advisory ID to re-sort the information in the list. Arrange the hotfixes in descending order
of time.
Advisory IDs starting with
HOTFIX
are kernel hotfixes, as shown in the following figure.The following table describes the information on each CVE announcement platform.Column Description Affected Packages The package name of a kernel hotfix. The name is prefixed by kernel-hotfix-
and suffixed by the minor version number of Alibaba Cloud Linux operating systems.You can determine whether a hotfix is applicable to your Alibaba Cloud Linux operating system based on the suffix of the package name of the hotfix. Example:kernel-hotfix-5928799-5.al8
is displayed in the Affected Packages column, which indicates that the hotfix is applicable to operating systems whose minor version number is 5.al8.- After you run the uname -r command in your Alibaba Cloud Linux 3 operating system,
5.10.23-5.al8.x86_64
is returned.
5.al8
. As such, the kernel-hotfix-5928799-5.al8 hotfix is applicable to your Alibaba Cloud Linux 3.Note The version number of all Alibaba Cloud Linux 2 operating systems is al7.Advisory ID The release sequential number of a hotfix. Hotfixes are classified into CVE hotfixes and Bugfix hotfixes. The following section describes the naming conventions of hotfixes: - CVE hotfixes are prefixed by
HOTFIX-SA-
. - Bugfix hotfixes are prefixed by
HOTFIX-BA-
.
CVE ID(s) The ID of the CVE to be fixed. For a Bugfix hotfix, the CVE ID(s) column is empty. - Click the release sequential number of a hotfix in the Advisory ID column to go to the details page of the hotfix.
On the details page, you can view details about the hotfix and the name of the RPM package corresponding to the hotfix.
Each RPM package name is in the following format:
kernel-hotfix-{hotfix_id}-{Minor version number of the operating system}-{Version number of the hotfix}-{Timestamp of the hotfix}.{Major version number of the operating system}.{System architecture}.rpm
.The following section describes the RPM package name in the preceding figure:- 5928799: the ID of the hotfix.
- 5.al8: the minor version number of Alibaba Cloud Linux 3. You can use this hotfix only when the kernel version of your Alibaba Cloud Linux 3 is consistent with this version. You can run the uname -r command in your ECS instance to view the kernel version of the operating system.
- 1.0: the version number of the RPM package for the hotfix.
- 20210720165816: the time when the hotfix was created. The hotfix was created at 16:58:16 on July 20, 2021. An invalid value may be displayed in this field for some hotfixes of earlier versions.
- al8: the version number of Alibaba Cloud Linux 3. The version number of all Alibaba
Cloud Linux 3 operating systems is al8.
Note The version number of all Alibaba Cloud Linux 2 operating systems is al7.
- x86_64: the architecture of the operating system.
- Access the common vulnerabilities and exposures (CVE) announcement platform.
- Use a YUM repository
You can run the yum list command to check the installation package of a kernel hotfix. For more information, see Enable a kernel hotfix.
Enable a kernel hotfix
Disable a kernel hotfix
If errors exist in your hotfix (for example, if your hotfix does not take effect), you can perform the following steps to disable the kernel hotfix: In this example, the yum commands are used.
Disable the kpatch service
If your hotfix is installed and in effect, but you do not want the operating system to load all the kernel modules of your hotfixes when you restart your server, you can perform the following steps to disable the kpatch service: