Kernel Module Loading via Identifier Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing kernel module loading methods require recompilation or remodification for each kernel version, limiting the applicability of kernel modules across different versions of the same operating system.

Innovation Solution

A method and apparatus that detect and utilize identifier information within the kernel module to determine compatibility and perform security or loading verification, allowing the kernel module to be loaded into a target kernel without the need for repeated verifications across different versions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If recompilation or remodification is performed on the kernel module for each kernel version, then the kernel module can pass the verification mechanism of the kernel, but the applicability of the kernel module across different kernel versions is limited

Engineering Contradiction:
Improveverification mechanismVSAvoidapplicability across kernel versions
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent applies universality by making the kernel module compatible with multiple kernel versions through a unified loading method. Instead of creating version-specific modules, the system uses a universal loading approach that works across different kernel versions by detecting version information and applying appropriate verification dynamically, allowing one kernel module to serve multiple kernel versions.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent changes the verification parameter from static (fixed for each kernel version) to dynamic (adapted based on detected kernel version). The loading method detects the target kernel version and adjusts the verification process accordingly, changing the parameters of verification to match the specific kernel version while maintaining a single universal module.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If multiple recompilations or remodifications are performed on the kernel module for different kernel versions, then the kernel module can be loaded into different kernel versions, but the maintenance cost and complexity increase

Engineering Contradiction:
Improvecompatibility with different kernel versionsVSAvoidmaintenance cost
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent creates a universal kernel module loading system that works across multiple kernel versions without requiring separate compiled versions. The loading method itself becomes multi-functional, handling verification and loading for different kernel versions through a single unified process, thereby reducing the number of module variants needed.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

Instead of creating multiple modified copies of the kernel module for different versions, the patent uses a single original module copy that is loaded into different kernel versions. The system copies the verification logic rather than the module itself, allowing one module to be reused across multiple targets.

Inventive Principle:
Principle #26Copying

3Reliability

If recompilation or remodification is performed on the kernel module for each kernel version, then the kernel module can be loaded into the corresponding kernel, but the time and resources required for maintenance increase

Engineering Contradiction:
Improveloading verificationVSAvoidrecompilation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary detection of the target kernel version before the loading verification process. By detecting the kernel version in advance, the system can prepare the appropriate verification parameters beforehand, avoiding time-consuming recompilation or remodification steps during the actual loading process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes verification parameters dynamically based on detected kernel version information rather than performing static recompilation. This allows the system to adapt verification settings in real-time based on the target kernel, eliminating the need for time-consuming recompilation for each version.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11237844B2Method and apparatus for loading kernel module
Publication Date: 2022.02.01 BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
  • US11237844B2 patent drawing
  • US11237844B2 patent drawing
  • US11237844B2 patent drawing

AI summary

The present disclosure discloses a method and apparatus for loading a kernel module. A specific embodiment of the method comprises: detecting an instruction for loading a to-be-loaded kernel module into a target kernel; determining, in response to detecting the instruction, whether identifier information is included in the to-be-loaded kernel module, the identifier information being used to represent loading the to-be-loaded kernel module into the target kernel; and loading, in response to determining the identifier information being included in the to-be-loaded kernel module, the to-be-loaded kernel module into the target kernel. This embodiment improves the applicability of the to-be-loaded kernel module.