Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

112 results about "Os kernel" patented technology

Linux access control system based on attributes

The invention provides a Linux access control system based on attributes, and relates to the technical field of data access control. The system comprises a system monitor module, a data interaction module and a decision unit. The system monitor module collects attributes from a kernel and a user space and writes the attributes into the data interaction module; the access decision unit compiles the access control strategy into an eBPF program and mounts the eBPF program to a corresponding hook; executing the kernel to the hook, and triggering an eBPF program; an eBPF program queries a Flow rule; matching the attribute with the Flow rule, and if the matching is successful, executing a corresponding action; if all the Flow rules fail to match, executing a default action; the system can be expanded during operation, and can be loaded or unloaded based on dynamic loading characteristics and strategies of the eBPF program and the eBPF program during operation of the system, so that the problem that a kernel needs to be compiled in a traditional LSM scheme is solved; the method does not intrude the kernel, is completely based on an eBPF program, does not modify a kernel source code, and can guarantee the stability and compatibility.
Owner:SICHUAN UNIV

System kernel fuzzy test seed generation method and system based on large language model

The invention relates to the technical field of data processing, and discloses a system kernel fuzzy test seed generation method and system based on a large language model. The method comprises the following steps: performing feature extraction on Linux kernel system calling on a Host host machine to obtain a feature data set; performing CFG analysis on the feature data set to obtain a system call sequence diagram and extracting a state transition table; constructing a test scene for the state transition table, and performing Syzkaller verification to obtain an effective scene library; generating an initial seed case set for the effective scene library, and executing a test in the QEMU to obtain result data; and performing coverage analysis on the result data to obtain a coverage rate report, and optimizing to generate a target test case set. According to the invention, the test coverage rate and the defect discovery capability are improved.
Owner:TIANJIN NORMAL UNIVERSITY

Kernel fuzzy testing method and system based on large language model

The invention discloses a kernel fuzz testing method and system based on a large language model, and belongs to the technical field of kernel fuzz testing. The method comprises the following steps: constructing a mapping relationship between system calling of a target operating system and a kernel object; based on the mapping relationship between the system call and the kernel object, generating a test case by using a large language model; and under the condition that the test case passes the verification, obtaining a fuzzy test result of the target operating system based on the test case. According to the method, the reasoning generalization ability of the LLM is utilized to generate a large number of effective system call sequences which conform to the dependency relationship and are wide in coverage range, so that the ability of a fuzzy test tool to generate test cases is enhanced, and potential vulnerabilities are mined.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Deep learning reasoning service performance analysis method based on kernel function trajectory

The invention provides a kernel function trajectory-based deep learning inference service performance analysis method, which comprises the following steps of: based on service indexes and hardware theoretical computing power acquired from a production cluster, defining floating point operation times per request (FPR) index to quantify service resource efficiency, and identifying high FPR hotspot services; positioning a reasoning iteration candidate boundary based on a GPU kernel function trajectory, verifying iteration integrity through fingerprint matching and chi-square test, and calculating a second reasoning iteration number IIPS and a model reasoning efficiency MIE; aiming at calculation-intensive operators on the key path, combining a dynamic Roofline model to estimate an operator theoretical performance upper limit, and based on actual execution time, calculating efficiency and a BottleScore index to identify a key bottleneck operator; and outputting targeted optimization suggestions according to analysis results of service efficiency analysis, model efficiency analysis and operator efficiency analysis. According to the method, the inference behavior pattern can be automatically identified from massive kernel trajectories, and the efficiency loss of each level is quantified.
Owner:UNIV OF SHANGHAI FOR SCI & TECH +1

Kernel probe generation method and device, computer equipment and storage medium

The invention discloses a kernel probe generation method and device, computer equipment and a storage medium, and relates to the technical field of operating system kernel monitoring, and the kernel probe generation method comprises the steps of obtaining a target metadata file corresponding to a current operating system kernel in response to a kernel probe generation request; determining a target declarative strategy file; and determining a target program logic file corresponding to the target declarative strategy file, and generating a probe code according to the target program logic file and the target metadata file to obtain a kernel probe program. The probe program source code adaptive to the current kernel version can be dynamically generated in combination with the target metadata file and the target declarative strategy file, kernel probe development logic and underlying kernel knowledge can be decoupled through the source code generation function, and developers do not need to deeply understand kernel internal data structures and version differences; the development threshold is lower, a specific operating system or probe type is supported, and a universal Linux kernel and multiple probe types are also supported.
Owner:BEIJING LINX SOFTWARE CORP

Unified programming model compiling and runtime system oriented to Shenwei supercomputing platform

The invention discloses a unified programming model compiling and runtime system oriented to a Shenwei supercomputing platform, which comprises a compiling module used for compiling SYCL programming model codes and detecting kernel functions to generate equipment end intermediate representation; processing the equipment end intermediate representation to obtain a kernel function dynamic link library and an executable code of a host end; and the public runtime module is used for calling the kernel function dynamic link library when the executable code at the host side runs. Based on a compiling module and a public runtime module, a vertical optimization system from a compiler to runtime is constructed, efficient operation of SYCL in a domestic supercomputing system is realized, a semantic gap between a domestic many-core architecture and a universal programming model is overcome, and the development of the system is facilitated. The SYCL programming model is processed by a host end and an equipment end respectively after being extracted by a kernel during compiling, and is dynamically called by a common runtime module, so that the cooperative computing capability of the host end and the equipment end is fully exerted.
Owner:XI AN JIAOTONG UNIV

Fuzzy test input generation method based on characteristic unification and related equipment

The invention relates to the technical field of kernel fuzz testing, and provides a fuzz test input generation method based on characteristic unification and related equipment, the method comprises the following steps: generating a function call graph and a plurality of control flow graphs of a target system, and integrating the function call graph and all the control flow graphs to obtain an inter-program control flow graph; constructing a kernel code calling chain based on the inter-program control flow diagram; carrying out characteristic unified representation modeling based on the kernel configuration file and the kernel code call chain of the target system, and generating a configuration code relation mapping table; extracting related information of the characteristic related interface function according to the kernel code call chain, and performing grammar conversion based on the related information to generate a system call test protocol template of the characteristic related interface function; and generating fuzzy test input of the target system based on the system call test protocol template and the configuration code relation mapping table. According to the method provided by the invention, the correlation between kernel characteristic configuration and fuzzy test input can be improved.
Owner:CENT SOUTH UNIV

Systems and methods for testing sandboxed in-kernel programs

Systems and methods for testing sandboxed in-kernel programs are provided. A method of testing a program includes: obtaining a Berkeley Packet Filter (BPF) program to test; obtaining a test to run on the BPF program; performing the test on the BPF program for a plurality of Linux kernels and reporting a result of performing the test on the BPF program for a plurality of Linux kernels. This enables a generic testing solution for black box testing of BPF programs. The embodiments can integrate with existing testing suites and frameworks and can integrate into CI / CD pipelines. Some embodiments allow testing using any kernel from user space. Host kernel testing of BPF programs is enabled by a developer using the developer's own workstation and version of the Linux kernel. Guest kernel testing of BPF programs is enabled using specific kernel versions by providing the framework a specification of the target kernel environment.
Owner:TELEFONAKTIEBOLAGET LM ERICSSON (PUBL)

Testing of operating system (OS) kernel help functions accessible by extended BPF (EBPF) filters

A method of testing an OS kernel interface, such as an eBPF assistant function. The interface has a grammar defining a kernel interface. The test is performed using eBPF code that calls and tests the interface using a fuzzy engine. To facilitate the process, the additional user space code is configured to generate at least one kernel event that triggers execution of the eBPF code, and transform input from the fuzzy engine according to syntax defining a kernel interface. After loading the eBPF code into the OS kernel, the user space code issues a kernel event that causes the eBPF code to run. In response, and when the obfuscation engine is executed, the eBPF code records parameters sent to the OS kernel through the kernel interface. The parameters are communicated over a data structure shared by the eBPF code and the user space code. And evaluating the security of the kernel interface by recording parameters and other diagnostic information.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Linux operating system drive fuzzy test system based on kernel device model

The invention provides an improved scheme of a fuzzy testing system of a Linux operating system. According to the scheme, fuzzy testing is guided by integrating device attributes, driving attributes and topological relations among devices. Specifically, a new syzlang description is generated by deeply analyzing a Linux kernel source code, so that a test case can introduce modification operation of equipment and drive attributes. Meanwhile, according to the scheme, the depth and the breadth of the fuzzy test are improved based on the corresponding relation between the equipment attribute file and the equipment file, so that the behavior of the kernel driver is more effectively explored. In addition, according to the scheme, concurrent testing is guided through the topological relation between the devices, testing cases related to device attributes and drive attributes are increased, the testing efficiency is further improved, the coverage rate of fuzzy testing is increased, and finally the testing process can reveal vulnerabilities caused by memory errors of a kernel of the Linux operating system in different states.
Owner:INST OF COMPUTING TECH CHINESE ACAD OF SCI

Generation scheduling method for kernel fuzzy test configuration related seeds

The invention discloses a generation scheduling method for kernel fuzzy test configuration related seeds. The generation scheduling method comprises the following steps: 1, calling, classifying and generating a configuration system based on a large language model; 2, test execution scheduling and generation based on behavior association; and 3, test efficiency optimization based on configuration code association driving. Compared with the prior art, the method has the advantages that in the theoretical aspect, a configuration-sensitive fuzzy test theory in a kernel test scene is explored, a kernel fuzzy test framework based on configuration sensitivity is constructed, and kernel defect detection capacity and efficiency are improved; in the technical aspect, a large language model, relation learning and a dynamic analysis technology are deeply fused, and technical features and innovativeness are achieved; in the application aspect, a kernel configuration code detection tool is realized, a code related configuration detection service oriented to a Linux main line kernel and a domestic open source operating system kernel is planned to be constructed, and the kernel defect detection capability and the automation level are improved.
Owner:CENT SOUTH UNIV

Operating system IO processing method supporting random IO merging, operating system and storage system

The invention discloses an operating system IO processing method supporting random IO merging, an operating system and a storage system, and belongs to the field of computer operating systems. The method comprises the steps that in a user mode, only one parameter copy is reserved for the same parameters of a plurality of random IO requests and recorded in a shared structure A, respectively recording different parameters of each random IO request into the shared structure body B to obtain a pseudo sequence request; the pseudo-sequence requests are issued to a system kernel, corresponding operations are executed on the pseudo-sequence requests in all layers of the system kernel in sequence, the batch operations are only executed once, and the non-batch operations are executed once for all the random IO requests respectively; the batch operation and the non-batch operation are operations executed for parameters in the shared structure body A and the shared structure body B respectively; and splitting the pseudo sequence request into random IO requests in an equipment driving layer of the kernel system, generating a corresponding equipment command, and submitting the equipment command to storage equipment. According to the invention, kernel overhead under the condition of high throughput can be relieved, so that the throughput is improved.
Owner:HUAZHONG UNIV OF SCI & TECH

End-to-end compiling method of coarse-grained reconfigurable array based on hierarchical data stream

The invention provides an end-to-end compiling method of a coarse-grained reconfigurable array based on hierarchical data streams, and relates to the technical field of automatic compilation, and the method comprises the following steps: converting a to-be-compiled programming code into an optimized intermediate representation of an MLIR, converting the optimized intermediate representation into a front-end data stream of a plurality of hierarchical data streams, converting the front-end data stream into a CGRA rear-end data stream according to a preset unloading strategy, and storing the CGRA rear-end data stream in the optimized intermediate representation; and unloading the Kernel kernel code to obtain a target kernel code so as to generate CGRA mapping configuration information of the kernel code data flow diagram. And finally, constructing and obtaining an executable file in combination with a host object file generated by the host side code. Through the method and the device, the problems that during CGRA end-to-end compiling, the accelerated kernel code is labeled through manual proma labeling, so that code editing is time-consuming and labor-consuming, data transmission and link of a host side code and a CGRA kernel side code are ignored, and the CGRA acceleration performance cannot be effectively exerted are solved.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Work graph-based sparse linear algebra operations for parallel processors

A processor includes a plurality of processing elements. The processor is configured to execute a work graph including a plurality of nodes representing kernels executable by one or more processing elements of the plurality of processing elements. A first processing element of the one or more of the processing elements associated with a first node of the plurality of nodes is configured to assign each logical division of a sparse input matrix to a bin of a plurality of bins. Responsive to a dispatch condition associated with a bin of the plurality of bins, the processor is configured to dispatch a workgroup to at least a second processing element associated with at least a second node of the plurality of nodes corresponding to the bin. The workgroup includes a plurality of work items based on one or more logical divisions of the sparse input matrix assigned to the bin.
Owner:ADVANCED MICRO DEVICES INC

Kernel selection method and device during general matrix multiplication operation, equipment and storage medium

The embodiment of the invention provides a kernel selection method and device during general matrix multiplication operation, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring general matrix multiplication problem size data; preprocessing the general matrix multiplication problem size data to obtain general matrix multiplication problem size features; based on a pre-trained problem size encoder, mapping the general matrix multiplication problem size feature into a problem size embedded vector of a preset dimension; taking the problem size embedded vector as a query vector, and performing nearest neighbor vector search in a pre-configured vector database to obtain a kernel configuration feature with the highest similarity; and outputting the kernel configuration feature as a selection result. The method is used for improving the kernel selection efficiency and precision during the operation of the general matrix multiplication.
Owner:DAWNING INT INFORMATION IND CO LTD +1

A Linux host command auditing method, system and device based on ftrace

The present invention relates to the technical field of command line auditing, and provides a Linux host command auditing method, system and device based on ftrace, including: sending a control message to a user-state Agent deployed on a Linux host through a control module; when the control message contains an instruction to turn on command line auditing, the user-state Agent sets a plug-in in the Linux kernel and the bash binary program of the Linux host; when the user executes a command in the Linux system, the command line operation log is written into the ringbuffer of the Linux kernel according to the set plug-in; the user-state Agent continuously receives the command line operation log from the ringbuffer of the Linux kernel, enriches the command line operation log, and sends the command line operation log after data enrichment to the audit module for auditing; when the control message contains an instruction to turn off command line auditing, the user-state Agent clears the plug-in set in the Linux kernel and the bash binary program of the Linux host. The present invention can provide a highly efficient, real-time, difficult to bypass and highly customized security monitoring solution for the Linux system.
Owner:CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD

Automatic generation of computation kernels for approximating elementary functions

An apparatus for computing functions using polynomial-based approximation, comprising one or more processing circuitries configured for computing a polynomial-based approximant approximating a function by executing one or more iterations. Each iteration comprising computing the polynomial-based approximant using scaled fixed-point unit(s) according to a constructed set of coefficients, minimizing an approximation error of the computed polynomial-based approximant compared to the function while complying with one or more constraints selected from a group comprising at least: an accuracy, a compute graph size, a computation complexity, and a hardware utilization of the processing circuitry(s), adjusting one or more of the coefficients in case the approximation error is incompliant with the constraint(s) and initiating another iteration. The polynomial-based approximant and its adjusted set of coefficients for which the computed polynomial-based approximant complies with the constraint(s) may be output to one or more processing circuitries configured to approximate the function by computing the polynomial-based approximant.
Owner:NEXTSILICON LTD

A linux kernel module cross-version binary compatibility method

PendingCN122363701ANo additional overheadGuaranteed accuracyLoad timeLinux kernel
This invention relates to a method for cross-version binary compatibility of Linux kernel modules, belonging to the field of computer operating system kernels. It includes the following steps: During the compilation phase, the compiler identifies specific keywords (__kabi_reloc_member, __kabi_check_member, __kabi_sizeof) and records instruction offsets, type identifiers, member variable name offsets, and relocation types, generating a .kabi_relocs segment. During the loading phase, the loader parses the .kabi_relocs segment, combines it with module BTF and kernel BTF information, and dynamically repairs instructions based on the relocation type. This invention achieves "compile once, run anywhere" binary compatibility for kernel modules, with the repair operation completed at load time, having no impact on runtime performance.
Owner:KYLIN CORP

Model Inference Optimization Method, Apparatus, Device, Medium, and Program Product

The present application discloses a method, device, equipment, medium and program product for optimizing model inference, relating to the field of computer technology, including: obtaining the network characteristics of at least one network layer included in the target model; generating kernel code adapted to the at least one network layer according to the network characteristics; the kernel code represents the calculation method of the network layer in the current inference process of the target model; configuring kernel parameters based on the hardware resources of the target device to be used for inferring the target model; the kernel parameters refer to the relevant parameters for the execution of the kernel code on the target device; compiling the kernel code to generate an executable kernel file; and invoking the kernel file to perform inference on the target model. By generating kernel code adapted to each network layer based on the network characteristics and flexibly setting the kernel parameters according to the hardware resources, the technical problems of poor flexibility of fixed code and low utilization rate of hardware resources are solved, and the technical effects of improving the model inference efficiency and resource utilization rate are achieved.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

Static Ftrace adaptation method and dynamic Ftrace adaptation method based on SW processor

The invention discloses a static Ftrace adaptation method and a dynamic Ftrace adaptation method based on a SW processor, and belongs to the technical field of computer system structures.In the process that a first kernel function calls a second kernel function, the static Ftrace adaptation method comprises the step that a static jump pile is inserted in front of an entry address of the second kernel function. The dynamic Ftrace adaptation method comprises the steps that a dynamic jump pile is inserted in front of an entry address of a second kernel function, an ftracemakecalall function is called to modify the dynamic jump pile into a null instruction, the null instruction is dynamically processed in response to user configuration processing, and if the second function is set as a tracking target, the null instruction is modified into the dynamic jump pile and executed; and if the second function is not set as the tracking target, executing the null instruction. The problem that an existing SW processor cannot track a kernel function and perform kernel debugging analysis is solved.
Owner:WUXI ADVANCED TECH RES INST

Industrial control network flow intrusion detection method combining deep learning and multi-kernel learning

The invention belongs to the field of industrial network security, and particularly relates to an industrial control network traffic intrusion detection method combining deep learning and multi-kernel learning, which comprises the following steps of: firstly, acquiring an industrial control traffic data sample and performing feature cleaning, and then establishing a multilayer deep neural network DNN model; and the optimal parameter configuration of the model is obtained through iterative training. Then extracting a middle layer representation result of the DNN as a kernel matrix of mapping; the kernel matrixes obtain respective weights through a multi-kernel learning MKL process, and linear combination is carried out. And finally, the combined kernel matrix replaces the original shallow kernel function of the kernel extreme learning machine KELM, and a multi-depth kernel extreme learning machine MDKELM model for detecting the traffic sample type is formed. The model is deployed at the edge of a device and a network, external access traffic is detected, whether the external access traffic belongs to normal traffic is judged, and if not, early warning is given out in time.
Owner:SHENYANG AEROSPACE UNIVERSITY

Automatic reconstruction kernel code generation method

The invention relates to the technical field of kernel code generation, and discloses an automatic reconstruction kernel code generation method, which comprises the following steps: collecting example code data of a kernel part, and carrying out structured processing on example codes to obtain a logic transfer diagram of the example codes; constructing an example code feature extraction model to perform embedded representation on the logic transfer diagram of the example code, and converting an embedded representation result into structural features of the example code; semantic features of the function description text are extracted; and receiving the kernel demand description text by using the automatic reconstruction model of the depth kernel code obtained by optimization solution, and reconstructing the kernel code to generate the kernel code meeting the kernel demand description text. According to the method, feature extraction is carried out on structural features representing a logic sequence and a logic structure of an example code and semantic features representing semantic information of a function description text, and the example code similar to semantic of a kernel demand description text is selected to carry out code structure reconstruction and kernel code generation.
Owner:WUXI INSTITUTE OF TECHNOLOGY

Accelerating linear algebra kernels for any processor architecture

Systems and methods for obtaining a set of instructions for executing a computer program and generating executable code for the computer program based, at least in part, on scheduling operations associated with the executable code according to a polyhedral representation of a directed acyclic graph. The set of instructions may be represented as a domain-specific language. The executable code may be executable code for a specific processor architecture.
Owner:NVIDIA CORP

Vulnerability risk level determination method, related system and computer storage medium

The invention discloses a kernel vulnerability detection method, a related system and a computer storage medium. The method can comprise the steps of obtaining to-be-detected information of a target kernel layer; inputting the to-be-tested information of the target kernel layer into a vulnerability risk model to obtain a compiling vulnerability and a running vulnerability of the target kernel layer; and determining a vulnerability risk level of the target kernel layer based on the compiling vulnerability of the target kernel layer and the operation vulnerability of the target kernel layer. Therefore, the method adopts a mode of inputting the to-be-tested information of the target kernel layer into the vulnerability risk model to firstly determine the compiling vulnerability and the running vulnerability of the target kernel layer, and then determines the vulnerability risk level of the target kernel layer through the compiling vulnerability of the target kernel layer and the running vulnerability of the target kernel layer. Vulnerabilities generated during compiling and vulnerabilities generated during running are fully considered, so that the two methods can mutually compensate for the limitation of self detection, and the false alarm rate is reduced.
Owner:WUHAN ANTIY MOBILE SECURITY

Automatic system call specification generation method and system for kernel fuzz testing

The invention relates to the technical field of software testing, and provides an automatic system call specification generation method and system for kernel fuzz testing. The method comprises the following steps: a static analysis stage: compiling a Linux kernel source code to be tested into an LLVM byte code, and performing deep static analysis on the LLVM byte code to identify and reconstruct an interface and a parameter type called by a system; a symbol execution and specification generation stage: adopting a constraint extraction and solution algorithm to extract constraints under different paths, carrying out constraint solution, and generating an initialized calling specification template in combination with an interface called by the system, the parameter type and the constraints; a standard test and verification stage: constructing an evaluation system of a multi-dimensional index to verify the initialized calling standard template and generate corresponding error information; in the large language model auxiliary correction stage, the initialized calling standard template and the error information serve as input, and a high-quality calling standard template is obtained after a large model iteration repair algorithm is conducted.
Owner:Chinese People's Liberation Army Cyberspace Force Information Engineering University

Docker-based linux kernel compiling method and system

The invention discloses a docker-based linux kernel compiling method and a docker-based linux kernel compiling system, which are characterized in that standardized kernel compiling environment docker mirror images are respectively constructed for server operating systems and desktop operating systems of different target architectures, uploading environment docker mirror images are constructed for different target kernel architectures, two types of compiling environment mirror images and uploading mirror images of corresponding architectures are pre-deployed by compiling nodes, and the docker-based linux kernel compiling method comprises the following steps of: constructing standard kernel compiling environment docker mirror images and uploading mirror images of corresponding architectures; the first compiling node is selected according to the compiling node scheduling rule, and the first compiling node calls the adaptive compiling environment mirror image according to the task type to perform kernel compiling, so that the consistency of the task environments with the same framework and the same type is ensured, the result certainty can be improved, and the resource reuse rate is increased; the kernel file selects the second compiling node according to the preset publishing node screening rule to start the kernel uploading environment mirror image to automatically publish the kernel file, so that the global consistency of a GPG signature algorithm and key configuration is ensured, and the stability and efficiency of a kernel delivery link are ensured.
Owner:KYLIN CORP

Method, computer equipment and medium for shared binding port unloading

The present application relates to the field of computer technology and provides a method, computer device and medium for sharing binding port unloading. In order to cope with the difference between the binding port configuration schemes in kernel state and user state, the method optimizes the implementation of the binding port configuration scheme in kernel state and the implementation of the binding port configuration scheme in user state, and only needs to set the binding port configuration scheme once, that is, determine the first kernel state binding port configuration, and then set the first user state binding port configuration accordingly according to the set first kernel state binding port configuration, so that the identification of the first link aggregation group is used to realize the sharing of the binding port configuration scheme and the shared binding port unloading between the kernel state and the user state, which helps to reduce the system burden, improve the forwarding performance, improve the user software processing efficiency, and reduce the complexity of the user state code.
Owner:ZHUHAI XINGYUN ZHILIAN TECH CO LTD

Linux kernel vulnerability mining method based on diversity guidance

The invention belongs to the technical field of computer software testing, and particularly relates to a Linux kernel vulnerability mining method based on diversity guidance. According to the method, firstly, collected PoCs are expressed by using a customized abstract syntax tree, clustering is carried out on the PoCs based on a Louvain community discovery algorithm, an initial diversity seed bank is constructed, and seeds are divided into a plurality of communities with different functions; in order to quantify seed diversity, a community prevalence rate index (CPR) is introduced; designing a double-layer multi-arm tiger machine scheduling framework based on the CPR, wherein the framework is used for efficiently allocating variable resources between communities and in the communities; a CPR-guided seed variation strategy is adopted to preferentially carry out rapid variation and expansion on high-diversity seeds, so that the coverage speed and efficiency of vulnerability triggering are improved. Experimental results show that compared with a current most advanced kernel fuzzy test tool, the method has the advantages that the code coverage rate is averagely increased by 17.4%, and the vulnerability discovery number is averagely increased by 9.1 times.
Owner:FUDAN UNIVERSITY

Code generation method and electronic equipment

The invention discloses a code generation method and electronic equipment, and relates to the technical field of artificial intelligence. The method comprises the following steps: generating a knowledge base according to an operation form of performing data operation on task data by an operator and an implementation demand; according to the hardware architecture data of the operator running target hardware and the knowledge base, generating a cue word of a kernel code supporting execution of a corresponding task on the target hardware; inputting the kernel code generation cue word into a code generation language model, and obtaining a kernel code generation result output by the language model; and if the kernel code generation result does not pass the test verification, adding error information in the test verification process to a kernel code generation prompt word, and re-inputting the kernel code generation prompt word to the language model until the kernel code generation result passes the test verification. According to the method and the device, the problem that hardware adaptation is difficult in the kernel code optimization process in the prior art can be solved, the kernel codes are automatically generated in the whole process, and the kernel code generation quality and the kernel code generation efficiency are improved.
Owner:INSPUR (BEIJING) ELECTRONICS INFORMATION IND CO LTD

Model compilation security evaluation method and system based on structure detection and differential analysis

The present disclosure provides a model compilation security evaluation method and system based on structural detection and differential analysis, relating to the technical field of compilation security evaluation, comprising: calling a compiler for compilation to generate intermediate representations and compilation products in each stage; performing single-file static detection on the intermediate representation graph file to identify neural network backdoor patterns embedded in the form of mathematical calculation structures in the graph; reading the intermediate representation graph file before and after operator fusion, performing differential analysis on the intermediate representation graph file before and after fusion, and identifying abnormal operators or data streams injected in the fusion stage; performing differential analysis on the kernel source code file and the machine code disassembly file to identify malicious tampering injected in the code generation or binary compilation stage; and synthesizing the detection results of multiple identification processes to perform final security evaluation on the model compilation process and generate a structured evaluation report. The present disclosure improves the identification capability of abnormal structures or potential backdoor logic hidden in the model compilation stage.
Owner:SHANDONG UNIV