A method and a system for detecting a dormancy error of a kernel module in an atomic context
The invention provides a method and a system for detecting a dormancy error of a kernel module in an atomic context. The method comprises the following steps: compiling a source code of the kernel module to be detected to obtain the intermediate code of the kernel module to be detected; obtaining an...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a method and a system for detecting a dormancy error of a kernel module in an atomic context. The method comprises the following steps: compiling a source code of the kernel module to be detected to obtain the intermediate code of the kernel module to be detected; obtaining an atomic context used by the kernel module to be detected, performing static analysis on the intermediate code, obtaining functions called in the atomic context in the intermediate code, and taking each of the functions called in the atomic context as a candidate function; if it is judged that the candidate function calls the preset dormancy function according to the call diagram of each candidate function in the kernel code of the operating system, reporting a dormancy error when the candidate function calls the preset dormancy function in the atomic context. The method automatically detects the dormancy error of the kernel module in the atomic context and improves the detection efficiency and correctness, thereby |
---|