Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:51:37 |
| Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:If we're handed a bigger struct than we know of, ensure all the unknown bits* are 0 - i.e. new user-space does not rely on any kernel feature extensions* we don't know about yet.* There is a ToCToU between this function call and the following
Proto:int bpf_check_uarg_tail_zero(void __user *uaddr, size_t expected_size, size_t actual_size)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void __user * | uaddr | |
| size_t | expected_size | |
| size_t | actual_size |
| 73 | If Value for the false possibility is greater at compile time(actual_size > PAGE_SIZE) Then Return -E2BIG |
| 79 | If actual_size <= expected_size Then Return 0 |
| 82 | addr = uaddr + expected_size |
| 83 | end = uaddr + actual_size |
| 93 | Return 0 |
| Name | Describe |
|---|---|
| bpf_prog_get_info_by_fd | |
| bpf_map_get_info_by_fd | |
| bpf_btf_get_info_by_fd | |
| check_btf_func | |
| check_btf_line |
| 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 |