Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 13:03:26 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Return true if it's OK to have the same insn return a different type.
Proto:static bool reg_type_mismatch_ok(enum bpf_reg_type type)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum bpf_reg_type | type |
| 7703 | Case type == g points to bpf_context |
| 7704 | Case type == g points to struct bpf_sock |
| 7705 | Case type == g points to struct bpf_sock or NULL |
| 7706 | Case type == g points to sock_common |
| 7707 | Case type == g points to sock_common or NULL |
| 7708 | Case type == g points to struct tcp_sock |
| 7709 | Case type == g points to struct tcp_sock or NULL |
| 7710 | Case type == g points to struct xdp_sock |
| 7711 | Case type == g points to kernel struct |
| 7712 | Return false |
| 7713 | Default |
| 7714 | Return true |
| Name | Describe |
|---|---|
| reg_type_mismatch | If an instruction was previously used with particular pointer types, then we* need to be careful to avoid cases such as the below, where it may be ok* for one branch accessing the pointer, but not ok for the other branch:* R1 = sock_ptr* goto X;* |
| 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 |