函数逻辑报告 |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-27 14:19:17 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:opt_subreg_zext_lo32_rnd_hi32
函数原型:static int opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, const union bpf_attr *attr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bpf_verifier_env * | env | |
const union bpf_attr * | attr |
8666 | struct bpf_insn * patch, zext_patch[2], rnd_hi32_patch[4] |
8667 | aux等于array of per-insn state |
8668 | delta等于0, len等于 Number of filter blocks |
8675 | rnd_hi32_patch[1]等于ALU ops on immediates, bpf_add|sub|...: dst_reg += imm32 (mov reg to reg , Kernel hidden auxiliary/helper register. , 0) |
8676 | rnd_hi32_patch[2]等于ALU ops on immediates, bpf_add|sub|...: dst_reg += imm32 (BPF_LSH, Kernel hidden auxiliary/helper register. , 32) |
8677 | rnd_hi32_patch[3]等于ALU ops on registers, bpf_add|sub|...: dst_reg += src_reg (BPF_OR, 0, Kernel hidden auxiliary/helper register. ) |
8683 | 如果非 this insn zero extends dst reg 则 |
8687 | 如果非rnd_hi32则继续下一循环 |
8691 | class等于Instruction classes (code) |
8692 | 如果Return TRUE if INSN doesn't have explicit value define. 则继续下一循环 |
8707 | 如果class恒等于BPF_LDX且 pointer type for load/store insns 恒等于g points to bpf_context 则继续下一循环 |
8711 | imm_rnd等于get_random_int() |
8712 | rnd_hi32_patch[0]等于insn |
8713 | signed immediate constant 等于imm_rnd |
8714 | dest register 等于 dest register |
8715 | patch等于rnd_hi32_patch |
8716 | patch_len等于4 |
8717 | 转到:apply_patch_buffer |
8723 | zext_patch[0]等于insn |
8724 | dest register 等于 dest register |
8725 | source register 等于 dest register |
8726 | patch等于zext_patch |
8727 | patch_len等于2 |
8728 | apply_patch_buffer : |
8734 | aux等于array of per-insn state |
8738 | 返回:0 |
名称 | 描述 |
---|---|
bpf_check |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |