Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 12:58:44 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_xadd
Proto:static int check_xadd(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_env * | env | |
int | insn_idx | |
struct bpf_insn * | insn |
3071 | If ld/ldx fields ( opcode ) != 32-bit && ld/ldx fields ( opcode ) != double word (64-bit) || signed immediate constant != 0 Then |
3087 | If is_pointer_value(env, source register ) Then |
3088 | verbose(env, "R%d leaks addr into mem\n", source register ) |
3089 | Return -EACCES |
3092 | If is_ctx_reg(env, dest register ) || is_pkt_reg(env, dest register ) || is_flow_key_reg(env, dest register ) || is_sk_reg(env, dest register ) Then |
3096 | verbose(env, "BPF_XADD stores into R%d %s is not allowed\n", dest register , string representation of 'enum bpf_reg_type' [type]) |
3099 | Return -EACCES |
Name | Describe |
---|---|
do_check |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |