Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 13:02:58 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns true if (rold safe implies rcur safe)
Proto:static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur, struct idpair *idmap)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_reg_state * | rold | |
struct bpf_reg_state * | rcur | |
struct idpair * | idmap |
7086 | If Not (live & REG_LIVE_READ) Then Return true |
7090 | equal = memcmp(rold, rcur, offsetof(structbpf_reg_state, SPDX-License-Identifier: GPL-2.0-only)) == 0 |
7098 | If equal Then Return true |
7101 | If Ordering of fields matters. See states_equal() == hing was written into register Then Return true |
7104 | If Ordering of fields matters. See states_equal() == hing was written into register Then Return false |
7109 | If Not if (!precise && SCALAR_VALUE) min/max/tnum don't affect safety && Not if (!precise && SCALAR_VALUE) min/max/tnum don't affect safety Then Return true |
7114 | Else |
7122 | Return false |
7133 | Return memcmp(rold, rcur, offsetof(structbpf_reg_state, id)) == 0 && heck %cur's range satisfies %old's && Returns true if @b represents a subset of @a. |
7144 | If Ordering of fields matters. See states_equal() != points to map elem value or NULL Then Return false |
7152 | If Ordering of fields matters. See states_equal() != Ordering of fields matters. See states_equal() Then Return false |
7160 | If valid when type == PTR_TO_PACKET > valid when type == PTR_TO_PACKET Then Return false |
7165 | If Fixed part of pointer offset, pointer types only != Fixed part of pointer offset, pointer types only Then Return false |
7187 | Default |
7189 | Return false |
7193 | WARN_ON_ONCE(1) |
7194 | Return false |
Name | Describe |
---|---|
stacksafe | |
func_states_equal | mpare two verifier states* all states stored in state_list are known to be valid, since* verifier reached 'bpf_exit' instruction through them* this function is called when verifier exploring different branches of* execution popped from the state stack |
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 |