Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues: https://github.com/iovisor/ubpf/issues/609 #613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions vm/ubpf_jit_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ struct patchable_relative
};

/* Special values for target_pc in struct jump */
#define TARGET_PC_EXIT ~UINT32_C(0)
#define TARGET_PC_ENTER (~UINT32_C(0) & 0x01)
#define TARGET_PC_RETPOLINE (~UINT32_C(0) & 0x0101)
#define TARGET_PC_EXTERNAL_DISPATCHER (~UINT32_C(0) & 0x010101)
#define TARGET_LOAD_HELPER_TABLE (~UINT32_C(0) & 0x01010101)
#define TARGET_PC_EXIT (~UINT32_C(0) & 0xF0000000)
#define TARGET_PC_ENTER (~UINT32_C(0) & 0xF0000001)
#define TARGET_PC_RETPOLINE (~UINT32_C(0) & 0xF0000101)
#define TARGET_PC_EXTERNAL_DISPATCHER (~UINT32_C(0) & 0xF0010101)
#define TARGET_LOAD_HELPER_TABLE (~UINT32_C(0) & 0xF1010101)

struct jit_state
{
Expand Down