Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 12:57:47 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:heck read/write into map element returned by bpf_map_lookup_elem()
Proto:static int __check_map_access(struct bpf_verifier_env *env, u32 regno, int off, int size, bool zero_size_allowed)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_verifier_env * | env | |
| u32 | regno | |
| int | off | |
| int | size | |
| bool | zero_size_allowed |
| 2224 | If off < 0 || size < 0 || size == 0 && Not zero_size_allowed || off + size > value_size Then |
| 2226 | verbose(env, "invalid access to map value, value_size=%d off=%d size=%d\n", value_size, off, size) |
| 2228 | Return -EACCES |
| 2230 | Return 0 |
| Name | Describe |
|---|---|
| check_map_access | heck read/write into a map element with possible variable offset |
| 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 |