Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 13:00:11 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:retrieve_ptr_limit
Proto:static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, u32 *ptr_limit, u8 opcode, bool off_is_neg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct bpf_reg_state * | ptr_reg | |
| u32 * | ptr_limit | |
| u8 | opcode | |
| bool | off_is_neg |
| 4443 | mask_to_left = opcode == BPF_ADD && off_is_neg || opcode == BPF_SUB && Not off_is_neg |
| 4453 | If mask_to_left Then ptr_limit = BPF program can access up to 512 bytes of stack space. + off |
| 4457 | Return 0 |
| 4466 | Default |
| 4467 | Return -EINVAL |
| Name | Describe |
|---|---|
| sanitize_ptr_alu |
| 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 |