Solving method of breaking version control of kernel module

A kernel module and version control technology, which is applied in the computer field, can solve problems such as limited versatility of driver modules, unsuccessful loading, etc., and achieve the effects of easy promotion, wide application range, and strong practicability

Inactive Publication Date: 2014-09-03
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It verifies the module when loading the kernel module. If the module is inconsistent with some environments of the host, it will fail to load, which greatly limits the versatility of the

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Solving method of breaking version control of kernel module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0035] In actual application, the module version structure is as follows:

[0036] struct modversion_info

[0037] {

[0038] unsigned long crc;

[0039] char name[MODULE_NAME_LEN];

[0040]}.

[0041] When the elf data structure uses 32 bits:

[0042] typedef struct

[0043] {

[0044] unsigned char e_ident[EI_NIDENT]; / * Magic number and other info * /

[0045] Elf32_Half e_type; / * Object file type * /

[0046] Elf32_Half e_machine; / * Architecture * /

[0047] Elf32_Word e_version; / * Object file version * /

[0048] Elf32_Addr e_entry; / * Entry point virtual address * /

[0049] Elf32_Off e_phoff; / * Program header table file offset * /

[0050] Elf32_Off e_shoff; / * Section header table file offset * /

[0051] Elf32_Word e_flags; / * Processor-specific flags * /

[0052] Elf32_Half e_ehsize; / * ELF header size in bytes * /

[0053] Elf32_Half e_phentsize; / * Program header table entry size * /

[0054] Elf32_Half e_phnum; / * Program header t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a solving method of breaking version control of a kernel module. Header information of an elf kernel module is corrected according to an environment of a to-be-loaded kernel module by adopting a particular realizing process comprising the steps: firstly, opening an elf document, mapping the elf document in a memory through an mmap, searching a function symbol table in a segment structure through an index, searching a field of '_ versions', wherein the field comprises values of a symbol table of all referencing functions, and enabling the module to be legalized through correcting a value in current kernel symvers. Compared with the prior art, the solving method of breaking the version control of the kernel module has the advantages of supporting a plurality of versions, breaking the limitation caused by kernel detection, breaking the limitation of the versions, and being strong in practicability, wide in application range and easy to popularize.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for breaking through version control of kernel modules. Background technique [0002] With the vigorous development and popularization of Linux, there are more and more technicians who deeply develop the kernel, which makes the Linux kernel technology develop rapidly and upgrade quickly. There are many versions of the Linux kernel, and the definitions of kernel functions in the two small kernel versions may be different. , in order to ensure that inconsistent drivers cause kernel oops, the developers have added a module verification mechanism. It verifies the module when loading the kernel module. If the module is inconsistent with some environments of the host, it will fail to load, which greatly limits the versatility of the driver module, and every time the kernel version is inconsistent, it must be recompiled. , this is a very trivial matter, which instead brings...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
Inventor 黄玉龙
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products