Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 12:57:54 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__check_packet_access
Proto:static int __check_packet_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 |
2351 | If off < 0 || size < 0 || size == 0 && Not zero_size_allowed || off + size > valid when type == PTR_TO_PACKET Then |
2353 | verbose(env, "invalid access to packet, off=%d size=%d, R%d(id=%d,off=%d,r=%d)\n", off, size, regno, For PTR_TO_PACKET, used to find other pointers with the same variable * offset, so they can share range knowledge. * For PTR_TO_MAP_VALUE_OR_NULL this is used to share which map value we * came from, when one is tested for != NULL. * For PTR_TO_SOCKET thi, Fixed part of pointer offset, pointer types only , valid when type == PTR_TO_PACKET ) |
2355 | Return -EACCES |
2357 | Return 0 |
Name | Describe |
---|---|
check_packet_access |
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 |