Operating system starting method and device and server

Through the dual verification mechanism of out-of-band processor and in-band processor, the operating system is ensured at the start of the server, the problem of malware tampering is solved, secure booting is achieved and the overall security of the server is improved.

CN119003005APending Publication Date: 2024-11-22XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889718.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

During the server startup phase, tampering of the operating system by malware and attacks seriously reduces the security of the server, and the existing technology has failed to effectively solve the security boot problem of the operating system.

Method used

The core of the operating system is verified by an out-of-band processor, and after the verification is passed, the operating system kernel and components are loaded by the in-band processor. Combined with the dual verification mechanism, the operating system is ensured to be safely started and prevent tampering.

Benefits of technology

It realizes secure booting of the operating system, improves server security, and avoids booting the operating system when the kernel and components are tampered with, thereby enhancing overall security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003005A_ABST
    Figure CN119003005A_ABST
Patent Text Reader

Abstract

The invention provides an operating system starting method and a server. In the embodiment, the method comprises the steps that target software is determined, the target software is used for guiding and loading an operating system, and the target software comprises a kernel of the operating system and components of the operating system; checking the kernel of the operating system based on the out-of-band processor; under the condition that the kernel of the operating system passes verification, guiding and loading the kernel of the operating system and a component of the operating system based on the target software through an in-band processor; checking the components in the operating system through the in-band processor; and running the operating system through the in-band processor under the condition that the component verification in the operating system is passed. In this way, the operation system is safely started, and the safety of the server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to an operating system startup method, device and server. Background Art

[0002] With the current large-scale development and application of servers, server security is of vital importance.

[0003] During the server startup phase, the server has more and more running components. Malware and malware tampering and attacking the startup program greatly reduce the security of the server. The server's operating system (OS) plays multiple important roles in the server, such as resource management, service provision, and security assurance. It is a key component to ensure the normal operation of the server. OS startup is a prerequisite for server operation, and it is crucial to boot the OS securely.

[0004] Therefore, how to securely boot the OS is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The embodiments of the present application provide an operating system startup method, device, and server, which can securely start the operating system of the server and improve the security of the server.

[0006] In a first aspect, an embodiment of the present application provides a method for starting an operating system, the method comprising:

[0007] Determine target software, where the target software is used to boot and load an operating system, and the target software includes a kernel of the operating system and components of the operating system;

[0008] Verifying the kernel of the operating system based on an out-of-band processor;

[0009] In the case where the kernel of the operating system passes the verification, booting and loading the kernel of the operating system and components of the operating system based on the target software through an in-band processor;

[0010] Verifying components in the operating system by the in-band processor;

[0011] In the case where the components in the operating system pass the verification, the operating system is run by the in-band processor.

[0012] According to this solution, the kernel of the operating system is verified by an out-of-band processor, thereby verifying whether the kernel of the operating system in the target software has been tampered with. And when the kernel of the operating system passes the verification, the kernel of the operating system and the components of the operating system are boot-loaded by the in-band processor. After booting and loading the operating system, the components in the operating system are verified by the in-band processor, and when the component verification passes, the in-band processor runs the boot loader in the target software to start the operating system of the server. In this way, by combining the in-band processor and the out-of-band processor to verify the operating system, it is possible to avoid booting and loading the operating system when the kernel of the operating system and the components of the operating system have been tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0013] In a possible implementation, the verifying the kernel of the operating system based on the out-of-band processor includes:

[0014] In the case where the out-of-band processor obtains first information of the in-band processor, the target software is verified based on the out-of-band processor, wherein the first information is used to indicate that the in-band processor requests to call the target software.

[0015] In this way, when the in-band processor requests to call the target software, the out-of-band processor verifies the kernel of the operating system, thereby enabling the in-band processor to safely start the operating system.

[0016] In a possible implementation, determining target software, where the target software is used to boot and load an operating system, includes:

[0017] The target software is determined based on an out-of-band processor, and second information is sent to the in-band processor through the out-of-band processor, where the second information is used to indicate an identifier of the target software.

[0018] In this way, by notifying the in-band processor of the software for booting and loading the operating system, the in-band processor can call the software, thereby ensuring that the software for booting and loading the operating system is consistent with the software called by the in-band processor, thereby achieving secure startup of the operating system and improving the security of the server.

[0019] In a possible implementation manner, determining the target software based on the out-of-band processor includes:

[0020] determining, based on the out-of-band processor, whether the in-band processor has completed initialization;

[0021] When the in-band processor completes initialization, the target software is determined based on the out-of-band processor.

[0022] In this way, when the in-band processor completes initialization, the target software is determined, thereby achieving a normal startup environment for the operating system, and then achieving secure startup of the operating system, thereby improving the security of the server.

[0023] In a possible implementation, before booting and loading the operating system kernel based on the target software by the in-band processor, the method further includes:

[0024] The target software is mounted to the in-band processor.

[0025] In this way, by mounting the target software to the in-band processor, the in-band processor can call the target software, thereby booting and loading the operating system based on the target software, thereby achieving secure startup of the operating system and improving the security of the server.

[0026] In a possible implementation, the target software is a smart deployment SP.

[0027] In a possible implementation manner, it is characterized in that the verifying the kernel of the operating system based on the out-of-band processor includes:

[0028] Obtaining a signature file, wherein the signature file includes a digital signature of the operating system kernel;

[0029] verifying the digital signature;

[0030] When the digital signature verification passes, the kernel verification of the operating system passes.

[0031] In this way, after the security check is performed on the kernel of the operating system, the kernel file of the operating system can be prevented from being tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0032] In a second aspect, an embodiment of the present application provides an operating system startup device, including:

[0033] A determination module, used to determine target software, where the target software is used to boot and load an operating system;

[0034] An out-of-band processing module, used for verifying the kernel of the operating system based on an out-of-band processor;

[0035] An in-band processing module, configured to boot and load the operating system kernel based on the target software through an in-band processor if the kernel verification of the operating system passes;

[0036] The in-band processing module is also used to verify the components in the operating system through the in-band processor;

[0037] The in-band processing module is further configured to run the operating system if the components in the operating system pass verification.

[0038] According to this solution, the kernel of the operating system is verified by an out-of-band processor, thereby verifying whether the kernel of the operating system in the target software has been tampered with. And when the kernel of the operating system passes the verification, the kernel of the operating system and the components of the operating system are boot-loaded by the in-band processor. After booting and loading the operating system, the components in the operating system are verified by the in-band processor, and when the component verification passes, the in-band processor runs the boot loader in the target software to start the operating system of the server. In this way, by combining the in-band processor and the out-of-band processor to verify the operating system, it is possible to avoid booting and loading the operating system when the kernel of the operating system and the components of the operating system have been tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0039] In a possible implementation, the out-of-band processing module is used to verify the target software based on the out-of-band processor when the out-of-band processor obtains first information of the in-band processor, where the first information is used to indicate that the in-band processor requests to call the target software.

[0040] In this way, when the in-band processor requests to call the target software, the out-of-band processor verifies the kernel of the operating system, thereby enabling the in-band processor to safely start the operating system.

[0041] In a possible implementation, the determination module is used to determine the target software based on an out-of-band processor, and send second information to the in-band processor through the out-of-band processor, where the second information is used to indicate an identifier of the target software.

[0042] In this way, by notifying the in-band processor of the software for booting and loading the operating system, the in-band processor can call the software, thereby ensuring that the software for booting and loading the operating system is consistent with the software called by the in-band processor, thereby achieving secure startup of the operating system and improving the security of the server.

[0043] In a possible implementation, the determination module is used to determine whether the in-band processor has completed initialization based on the out-of-band processor;

[0044] When the in-band processor completes initialization, the target software is determined based on the out-of-band processor.

[0045] In this way, when the in-band processor completes initialization, the target software is determined, thereby achieving a normal startup environment for the operating system, and then achieving secure startup of the operating system, thereby improving the security of the server.

[0046] In a possible implementation manner, the device further includes:

[0047] A mounting module is used to mount the target software to the in-band processor.

[0048] In this way, by mounting the target software to the in-band processor, the in-band processor can call the target software, thereby booting and loading the operating system based on the target software, thereby achieving secure startup of the operating system and improving the security of the server.

[0049] In a possible implementation, the target software is a smart deployment SP.

[0050] In a possible implementation, the out-of-band processing module is used to:

[0051] Obtaining a signature file, wherein the signature file includes a digital signature of the operating system kernel;

[0052] verifying the digital signature;

[0053] When the digital signature verification passes, the kernel verification of the operating system passes.

[0054] In this way, after the security check is performed on the kernel of the operating system, the kernel file of the operating system can be prevented from being tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0055] In a third aspect, an embodiment of the present application provides a server, including: an in-band processor, an out-of-band processor, and at least one memory;

[0056] The at least one memory is used to store programs, and the server is used to store programs; the server is used to execute the programs stored in the memory based on the in-band processor and the out-of-band processor, and when the programs stored in the memory are executed, the method described in the first aspect is performed.

[0057] In a fourth aspect, an embodiment of the present application provides a server, wherein the device runs computer program instructions to execute the method provided in the first aspect. Exemplarily, the device may be an in-band processor and / or an out-of-band processor.

[0058] In a fifth aspect, an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method provided in the first aspect.

[0059] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0061] Figure 2 It is a structural diagram of a server provided in an embodiment of the present application;

[0062] Figure 3 It is a flowchart of an operating system startup method provided in an embodiment of the present application;

[0063] Figure 4 It is a flowchart of another operating system startup method provided in an embodiment of the present application;

[0064] Figure 5 It is a structural diagram of an operating system startup device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0066] In the description of the embodiments of the present application, words such as "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a concrete way.

[0067] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refers to two or more systems, and multiple terminals refers to two or more terminals.

[0068] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0069] Below, some terms in this embodiment are explained. It should be noted that these explanations are for the convenience of understanding by those skilled in the art and do not constitute a limitation on the scope of protection claimed in this application.

[0070] BMC software refers to the software program of the baseboard management controller (BMC) embedded on the server motherboard. It is software specially designed to monitor, manage and control server hardware. BMC software is usually stored in the BMC chip.

[0071] Smart Provisioning (SP): A function used for server deployment and management. SP can automate the initial setup and configuration of the server, including operating system installation, driver installation, network setup, etc., thus saving administrators time and effort. Through SP, administrators can remotely manage servers, monitor hardware health status, perform remote restarts, diagnose problems, etc. SP usually also includes software management functions, which can help administrators easily update server software, including BIOS software, to improve system security and stability.

[0072] SP (Smart Provisioning) is an abbreviation for server intelligent deployment tool software. It is a tool software. SP provides a graphical interface for implementing operating system installation and deployment, software upgrades, fault diagnosis, configuration import and export, and hard disk erasure. It supports the installation of operating systems using UEFI and Legacy modes, and supports the installation of multiple mainstream operating systems including Windows, RHEL, CentOS, SLES, VMware, Ubuntu, etc.

[0073] BIOS (Basic Input Output System): is a set of programs fixed on a ROM chip on the server motherboard. As the most basic and direct hardware setting and control manager of the server motherboard, it can provide more simple and easy-to-use functions for the computer. BIOS stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. Its main function is to provide the most basic and direct hardware setting and control for the server. The changes of the system hardware are hidden by BIOS, and the program uses the BIOS function instead of directly controlling the hardware.

[0074] BIOS software: refers to the BIOS software program embedded on the computer motherboard.

[0075] PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard): a peripheral component interconnect standard.

[0076] In order to ensure the security of the server, during the server startup process, the software deployed in the server (such as BMC software, BIOS software) is security checked to verify whether the software has been tampered with or attacked, thereby ensuring the security of the server. Figure 1 This is an application scenario diagram provided by the embodiment of the present application. Figure 1 As shown, the server includes a BMC and a CPU. Among them, the BMC software is deployed in the BMC, and the CPU can run the BIOS. The BIOS includes the BIOS software. After the server is powered on, the BMC starts to perform a security check on the BMC software. After the security check of the BMC software passes, the CPU runs the BIOS to perform a security check on the BIOS software. After the security checks of the BMC software and the BIOS software pass, the server performs subsequent startup operations, such as loading the operating system, hardware configuration detection, and network startup.

[0077] As an important part of server operation, the security of the operating system is of vital importance. However, currently, during the process of starting the server, the boot loader of the operating system is not checked for security. Therefore, how to safely start the server's operating system is a technical problem that needs to be solved urgently.

[0078] Based on this, an embodiment of the present application provides an operating system startup method and a server. In the method, before the operating system is loaded, the target software is verified by an out-of-band processor to verify whether the component package in the target software has been tampered with. And when the component package in the target software has not been tampered with, the in-band processor is enabled to access the target software, so that the in-band processor runs the boot loader in the target software and starts the operating system of the server. In this way, it is possible to avoid starting the operating system when the boot loader of the operating system has been tampered with, realize secure startup of the operating system, and improve the security of the server.

[0079] Before describing in detail the operating system startup method provided in the embodiment of the present application, the server provided in the embodiment of the present application is first described in detail.

[0080] Figure 2 is a server provided in the embodiment of the present application. Figure 2As shown, the server provided by the embodiment of the present application includes an in-band processor 101, an out-band processor 102 and a flash memory 103. The in-band processor 101 can be communicatively connected with the out-band processor 102. The in-band processor 101 and the out-band processor 102 are communicatively connected with the flash memory 103.

[0081] The BIOS can be run in the in-band processor 101, thereby booting and loading the operating system through the BIOS. Here, the BIOS can be stored in a non-volatile memory (such as a flash memory or a read-only memory ROM) in the server.

[0082] The flash memory 103 stores an intelligent management system (iBMC) and target software. The out-of-band processor 102 can call the intelligent management system to manage the secure boot of the operating system. The out-of-band processor 102 calls the intelligent management system to determine whether to boot the operating system from the target software. If it is determined that the operating system is booted from the target software, a security check is performed on the boot loader of the operating system in the target software. The target software refers to software that can be loaded into the in-band server and can boot the operating system. In this way, the secure boot of the operating system can be guaranteed and the security of the server can be improved.

[0083] The server provided in the embodiment of the present application can execute the operating system startup method provided in the embodiment of the present application. In addition, computing devices other than the server, such as supercomputers, etc., can also execute the operating system startup method provided in the embodiment of the present application. Figure 2 Taking the server shown as an example, the operating system startup method provided in the embodiment of the present application is described in detail.

[0084] Figure 3 Schematic diagram of a method for starting an operating system provided in an embodiment of the present application. Figure 3 As shown, the operating system startup method provided in the embodiment of the present application includes S301 to S305.

[0085] S301, determining target software, where the target software is used to boot and load an operating system, and the target software includes a kernel of the operating system and components of the operating system.

[0086] The target software can be used to boot and load the operating system, wherein the target software includes components related to the startup of the operating system, such as the kernel of the operating system and components of the operating system. The kernel of the operating system includes the Euler image boot startup file (such as vml inuz, in itrd.img and other files). The components of the operating system include programs and tools that the operating system needs to run, such as fault diagnosis programs, configuration management programs, log mobile phone programs, software upgrade programs, CPU pressure diagnosis tools, memory pressure diagnosis tools, etc.

[0087] In the embodiment of the present application, both the in-band processor and the out-of-band processor need to determine the target software.

[0088] In some embodiments, the out-of-band processor needs to determine the software used to boot and load the operating system, so the out-of-band processor can read the identity of the software used to boot and load the operating system pre-configured in the server to determine the target software.

[0089] In other embodiments, the in-band processor needs to determine the software for booting the operating system. The out-of-band processor can send second information to the in-band processor, wherein the second information is used to indicate the software that can boot the operating system. For example, the second information can include the identity of the software that boots the operating system.

[0090] As a possible implementation, the second information includes a flag bit. When the flag bit is the first character, the operating system is booted and loaded by the target software. When the flag bit is the second character, the operating system is booted and loaded from the hard disk of the server. For example, the flag bit in the second information is "1", and the operating system is booted and loaded by the target software. The flag bit in the second information is "0", and the operating system is booted and loaded from the hard disk of the server.

[0091] After receiving the second information, the in-band processor parses the second information to obtain the flag bit, and determines the software for booting and loading the operating system according to the flag bit.

[0092] As another possible implementation, if the second information includes the identity of the target software, the operating system is booted and loaded by the target software. If the second information does not include the identity, the operating system is booted and loaded from the hard disk by default. After receiving the second information, the in-band processor parses the second information to obtain the identity of the software. According to the identity of the software, the software used to boot and load the operating system is determined.

[0093] In the embodiment of the present application, in the out-of-band processor, the target software is pre-configured. Exemplarily, the target software may be a SP.

[0094] In some embodiments, before the out-of-band processor sends the second information to the in-band processor, the out-of-band processor needs to determine whether the server is in the BIOS stage. When the server is in the BIOS stage, the out-of-band processor sends the second information to the in-band processor. When the server is in the BIOS stage, the server has not yet started the operating system. Therefore, the out-of-band processor needs to determine the software that can guide the operating system to start, and the software can automate the initial settings and configurations of the server, including operating system installation, driver installation, network settings, etc.

[0095] Exemplarily, the in-band processor can send notification information to the out-of-band processor, where the notification information is used to indicate that the server is in the BIOS stage.

[0096] As a possible implementation, the notification information may be the third information. Specifically, the in-band processor can send the third information to the out-of-band processor. The third information is used to indicate that the server has completed initialization. After the server completes initialization, the in-band processor sends the third information to the out-of-band processor. In this way, after completing initialization, the server requests to call the target software to start the operating system.

[0097] For example, Figure 4 As shown, before the in-band processor sends the third information to the out-of-band processor, steps S104 and S402 may be included.

[0098] S401: The out-of-band processor sends a power-on instruction to the in-band processor.

[0099] The power-on instruction is used to instruct the in-band processor to start powering on the server. Optionally, in order to improve the security of operating system startup, after the BMC software security check passes, the out-of-band processor sends a power-on instruction to the in-band processor.

[0100] S402, after the in-band processor is powered on, the BIOS is run for initialization.

[0101] Running BIOS for initialization means initializing the hardware and related configurations of the system in the server. BIOS initialization includes identifying and configuring various hardware devices connected to the system, setting default boot options, etc. For example, checking the system clock, configuring PCI devices, initializing memory mapping, etc.

[0102] S403: The in-band processor sends third information to the out-of-band processor.

[0103] The third information is used to indicate that the server has completed initialization. After the server completes initialization, the in-band processor sends the third information to the out-of-band processor. In this way, after completing initialization, the server requests to call the target software to start the operating system.

[0104] S302: Verify the kernel of the operating system based on the out-of-band processor.

[0105] After the target software for booting and loading the operating system is determined, the kernel of the operating system can be verified based on the out-of-band processor.

[0106] In order to ensure that the operating system can be started securely, the out-of-band processor needs to verify the kernel of the operating system in the target software to prevent the operating system from being started when the kernel file of the operating system is maliciously tampered with or damaged, causing the server to be unable to run or to pose risks.

[0107] The out-of-band processor can copy the kernel file of the operating system in the target software to the memory of the out-of-band processor, thereby verifying the kernel of the operating system.

[0108] Specifically, the out-of-band processor can obtain the signature file of the kernel file of the operating system, and the signature file includes the digital signature of the kernel file of the operating system. Here, the digital signature is generated by encrypting the kernel file of the operating system with a private key. In this way, the out-of-band processor can verify the digital signature according to the public key. And when the digital signature verification passes, the integrity check of the kernel file of the operating system passes.

[0109] S303: When the kernel of the operating system passes the verification, the kernel of the operating system and components of the operating system are booted and loaded based on the target software by the in-band processor.

[0110] In some embodiments, the in-band processor can call the target software. As a possible implementation, the target software is located in the out-of-band processor. The out-of-band processor can mount the target software to the in-band processor, so that the in-band processor can call the target software. Specifically, the out-of-band processor can read the file system structure in the flash memory, so as to determine the metadata of the file system where the target software is located, such as the index node, directory structure and permission settings. The out-of-band processor sends the metadata to the in-band processor, so that the in-band processor can access the file system where the target software is located according to the metadata, and then run the target software. Among them, the in-band processor can access the file system of the target software according to the serial bus interface (USB interface).

[0111] S304, verifying components in the operating system through the in-band processor.

[0112] In order to further achieve secure booting of the operating system, it is also necessary to perform security verification on the components of the operating system before running the operating system. Specifically, the out-of-band processor can obtain the signature file of the components of the operating system, which includes the digital signature of the components of the operating system. Here, the digital signature is generated by encrypting the components of the operating system with a private key. In this way, the out-of-band processor can verify the digital signature according to the public key. And when the digital signature verification passes, the security verification of the components of the operating system passes.

[0113] S305: When the components in the operating system pass verification, the operating system is run through the in-band processor.

[0114] In this way, when the in-band processor and the out-of-band processor are combined, the operating system is double-checked, which can prevent the operating system from being booted and loaded when the operating system kernel and operating system components are tampered with, realize secure startup of the operating system, and improve the security of the server.

[0115] Based on the same concept as the embodiment of the method of the present application, the embodiment of the present application also provides an out-of-band processor. The out-of-band processor includes several modules, each of which is used to execute each step in the operating system startup method provided in the embodiment of the present application, and the division of the modules is not limited here. The technicians in the relevant field can clearly understand that in practical applications, the various steps in the operating system startup method provided in the embodiment of the present application can be assigned to different modules as needed, that is, the internal structure of the device is divided into different modules to complete all or part of the functions described above. Each module in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more modules can be integrated in one unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of each module are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present application. The specific working process of the module in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0116] Figure 5 is a schematic diagram of the structure of an out-of-band processor provided in an embodiment of the present application, such as Figure 5 As shown, the out-of-band processor provided in the embodiment of the present application includes:

[0117] A determination module 501 is used to determine target software, where the target software is used to boot and load an operating system;

[0118] An out-of-band processing module 502, configured to verify the kernel of the operating system based on an out-of-band processor;

[0119] The in-band processing module 503 is used to boot and load the operating system kernel based on the target software through an in-band processor if the kernel verification of the operating system passes;

[0120] The in-band processing module 503 is also used to verify the components in the operating system through the in-band processor;

[0121] The in-band processing module 503 is further configured to run the operating system if the components in the operating system pass verification.

[0122] According to this solution, the kernel of the operating system is verified by an out-of-band processor, thereby verifying whether the kernel of the operating system in the target software has been tampered with. And when the kernel of the operating system passes the verification, the kernel of the operating system and the components of the operating system are boot-loaded by the in-band processor. After booting and loading the operating system, the components in the operating system are verified by the in-band processor, and when the component verification passes, the in-band processor runs the boot loader in the target software to start the operating system of the server. In this way, by combining the in-band processor and the out-of-band processor to verify the operating system, it is possible to avoid booting and loading the operating system when the kernel of the operating system and the components of the operating system have been tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0123] In a possible implementation, the out-of-band processing module is used to verify the target software based on the out-of-band processor when the out-of-band processor obtains first information of the in-band processor, where the first information is used to indicate that the in-band processor requests to call the target software.

[0124] In this way, when the in-band processor requests to call the target software, the out-of-band processor verifies the kernel of the operating system, thereby enabling the in-band processor to safely start the operating system.

[0125] In a possible implementation, the determination module is used to determine the target software based on an out-of-band processor, and send second information to the in-band processor through the out-of-band processor, where the second information is used to indicate an identifier of the target software.

[0126] In this way, by notifying the in-band processor of the software for booting and loading the operating system, the in-band processor can call the software, thereby ensuring that the software for booting and loading the operating system is consistent with the software called by the in-band processor, thereby achieving secure startup of the operating system and improving the security of the server.

[0127] In a possible implementation, the determination module is used to determine whether the in-band processor has completed initialization based on the out-of-band processor;

[0128] When the in-band processor completes initialization, the target software is determined based on the out-of-band processor.

[0129] In this way, when the in-band processor completes initialization, the target software is determined, thereby achieving a normal startup environment for the operating system, and then achieving secure startup of the operating system, thereby improving the security of the server.

[0130] In a possible implementation manner, the device further includes:

[0131] A mounting module is used to mount the target software to the in-band processor.

[0132] In this way, by mounting the target software to the in-band processor, the in-band processor can call the target software, thereby booting and loading the operating system based on the target software, thereby achieving secure startup of the operating system and improving the security of the server.

[0133] In a possible implementation, the target software is a smart deployment SP.

[0134] In a possible implementation, the out-of-band processing module is used to:

[0135] Obtaining a signature file, wherein the signature file includes a digital signature of the operating system kernel;

[0136] verifying the digital signature;

[0137] When the digital signature verification passes, the kernel verification of the operating system passes.

[0138] In this way, after the security check is performed on the kernel of the operating system, the kernel file of the operating system can be prevented from being tampered with, thereby achieving secure startup of the operating system and improving the security of the server.

[0139] It is understandable that the processor in the embodiments of the present application can be a central processing unit (CPU), or other general-purpose processors, baseboard management controllers (BMC), digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor. The out-of-band controller has an independent processor, which can be a processor other than the central processing unit, and the out-of-band controller can independently process program execution instructions.

[0140] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor or a management controller executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0141] In the above embodiments, it can be implemented in whole or in part by software, hardware, software or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a processor or an out-of-band controller, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0142] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0143] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0144] It should also be noted that in the device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0145] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

[0146] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

Claims

1. A method for starting an operating system, characterized in that: include: Determine target software, where the target software is used to boot and load an operating system, and the target software includes a kernel of the operating system and components of the operating system; Verifying the kernel of the operating system based on an out-of-band processor; In the case where the kernel of the operating system passes the verification, booting and loading the kernel of the operating system and components of the operating system based on the target software through an in-band processor; Verifying components in the operating system by the in-band processor; In the case where the components in the operating system pass the verification, the operating system is run by the in-band processor.

2. The method according to claim 1, characterized in that The checking of the kernel of the operating system based on the out-of-band processor includes: In the case where the out-of-band processor obtains first information of the in-band processor, the target software is verified based on the out-of-band processor, wherein the first information is used to indicate that the in-band processor requests to call the target software.

3. The method according to claim 1, characterized in that The determining of the target software comprises: The target software is determined based on an out-of-band processor, and second information is sent to the in-band processor through the out-of-band processor, where the second information is used to indicate an identifier of the target software.

4. The method according to claim 3, characterized in that Determining the target software based on the out-of-band processor comprises: determining, based on the out-of-band processor, whether the in-band processor has completed initialization; When the in-band processor completes initialization, the target software is determined based on the out-of-band processor.

5. The method according to claim 1, characterized in that Before booting and loading the operating system kernel based on the target software through the in-band processor, the method further includes: The target software is mounted to the in-band processor.

6. The method according to any one of claims 1 to 5, characterized in that: The target software is the intelligent deployment SP.

7. The method according to any one of claims 1 to 5, characterized in that: The checking of the kernel of the operating system based on the out-of-band processor includes: Obtaining a signature file, wherein the signature file includes a digital signature of the operating system kernel; verifying the digital signature; When the digital signature verification passes, the kernel verification of the operating system passes.

8. An operating system startup device, characterized in that: include: A determination module, used to determine target software, where the target software is used to boot and load an operating system; An out-of-band processing module, used for verifying the kernel of the operating system based on an out-of-band processor; An in-band processing module, configured to, if the kernel of the operating system passes verification, boot and load the kernel of the operating system based on the target software through an in-band processor; The in-band processing module is also used to verify the components in the operating system through the in-band processor; The in-band processing module is further configured to run the operating system if the components in the operating system pass verification.

9. A server, comprising: an in-band processor, an out-of-band processor, and at least one memory; The at least one memory is used to store a program, and the server is used to store a program; The server is used to execute a program stored in a memory based on the in-band processor and the out-of-band processor, and when the program stored in the memory is executed, the method according to any one of claims 1 to 7 is performed.

10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on the server, the server executes the method according to any one of claims 1 to 7.