Controlling access permissions for memory in a processing core of a computing device
A hardware-assisted mechanism with page table entries and a guarded call stack provides fine-grained memory access control, addressing the limitations of conventional systems by enabling automatic permission inheritance across nested calls with low latency and minimal performance overhead.
Patent Information
- Application Number
- PCT/EP2025/063941
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional memory protection mechanisms in operating systems lack fine-grained control over memory access permissions, leading to performance overhead and complexity in enforcing isolation and access control, especially in nested call scenarios, and do not allow automatic permission inheritance across nested calls.
A hardware-assisted mechanism that encodes a permission index and inheritance bit in each page table entry, combined with a guarded call stack, enables automatic permission inheritance without privilege transfers, allowing fine-grained memory access control within a single privilege level.
Enables secure, low-latency memory access control with minimal performance impact by automatically inheriting and enforcing permissions across nested calls, reducing the need for costly TLB flushes and privilege-level traps.
Smart Images

Figure EP2025063941_26112026_PF_FP_ABST
Abstract
Description
[0001] CONTROLLE G ACCESS PERMISSIONS FOR MEMORY IN A PROCESSING CORE OF A COMPUTING DEVICE
[0002] TECHNICAL FIELD
[0003] The present disclosure relates, in general, to intra-process memory isolation and access control in modem processor architectures. Aspects of the disclosure relate to mechanisms for one-dimensional permission inheritance within virtual memory permission overlays, enabling fine-grained enforcement of read, write and execute rights without relying on privilege-level context switches.
[0004] BACKGROUND
[0005] Conventional operating systems enforce memory protection at the granularity of processes and privilege levels, such that isolation and access control are tied to separate address spaces or elevated execution modes. More fine-grained approaches (such as microkernels or language-based sandboxes) often incur significant performance overhead or require extensive software re-engineering. Software fault isolation (SFI) techniques virtualise the memory management unit within a single address space, but still face challenges in guaranteeing the absence of unsafe instructions in large or legacy code -bases.
[0006] Recent hardware extensions, including Intel’s memory protection keys and ARM’s page-table permission indirection (APRR / POE), allow rapid switching between permission overlays without a full TLB flush. Shadow-stack features such as ARM’s guarded control stack (GCS) provide secure call-return integrity. However, existing solutions do not natively constrain entry into protected domains based on call origin, nor do they allow permission rights to propagate automatically through nested calls. As a result, many practical enclave or domain-switching implementations must resort to privilege-level traps, binary rewriting, or elaborate software trampolines, all of which introduce non-trivial latency or complexity.
[0007] SUMMARY
[0008] An objective of the present disclosure is to provide a hardware-assisted mechanism for one-dimensional permission inheritance within virtual memory overlays, so that a called code segment may automatically inherit the memory access permissions of its caller without additional software instrumentation or privilege transfers.
[0009] The foregoing and other objectives are achieved by the features of the independent claims.
[0010] Further implementation forms are apparent from the dependent claims, the description and the Figures.
[0011] A first aspect of the present disclosure provides a computer-implemented method of controlling access permissions for memory in a processing core of a computing device, the method comprising storing, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page, maintaining a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit, in response to execution of a call instruction, pushing onto the guarded stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry, during execution of an instruction at a current program-counter location, determining an effective source permission index value by inspecting the multiple records in the guarded stack from top to bottom, and applying a permission overlay based on the effective source permission index value to select a one-dimensional permission profile, whereby to control read, write and / or execute permissions for memory operations.Accordingly, by encoding both a permission index and an inheritance bit directly in each page-table entry and leveraging a hardware-enforced guarded call stack, the claimed method may achieve true fine-grained isolation entirely within a single privilege level. At each call, only a minimal record push is required, and permission overlays may switch in zero or near-zero cycles without costly TLB flushes or privilege-level traps. The dynamic resolution of an effective source permission index through simple top-down inspection of the shadow stack enables secure, least-privilege delegation of rights across arbitrary nested invocations, ensuring that shared libraries and in-process components inherit only the permissions of their caller and never retain elevated access on return. Because all domain transfers and permission computations are performed in hardware, existing code-bases require only lightweight compiler annotations to demarcate secure regions, resulting in negligible performance impact while providing robust memory-access confinement and resistance to control-flow and code -reuse attacks. The permission index may comprise a numeric identifier that maps to one of multiple read, write or execute permission profiles for the corresponding virtual memory page.
[0012] The inheritance bit may comprise a binary flag that, when enabled in a page table entry, causes a function invoked at that entry to inherit the source permission index value stored in the guarded call stack for its calling function, until a record with a disabled inheritance bit is encountered in the guarded call stack.
[0013] The guarded call stack may be implemented using specialised guarded control stack instructions provided by the processing core.
[0014] The call instruction may comprise a branch and link instruction in an ARM compliant instruction set.
[0015] Applying the permission overlay may comprise retrieving a permission profile based on both the effective source permission index value inherited from the call site and a target permission index stored in the page table entry corresponding to a memory reference or branch target.
[0016] The processing core may be a standardised ARM core supporting page table permission indirection and overlay.
[0017] The method may further comprise, in response to execution of a return instruction, popping a record from the guarded call stack and updating the effective source permission index value accordingly.
[0018] A second aspect of the present disclosure provides a computing device comprising a processor, a memory coupled to the processor, the memory configured to store program code executable by the processor, the program code comprising one or more instructions, whereby to cause the computing device to store, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page, maintain a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit, in response to execution of a call instruction, push onto the guarded stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry, during execution of an instruction at a current program-counter location, determine an effective source permission index value by inspecting the multiple records in the guarded stack from top to bottom, and apply a permission overlay based on the effective source permission index value to select a one-dimensional permission profile, whereby to control read, write and / or execute permissions for memory operations.
[0019] The permission index may comprise a numeric identifier that maps to one of multiple read, write or execute permission profiles for the corresponding virtual memory page.
[0020] The guarded call stack may be implemented using specialised guarded-control-stack instructions of an ARM architecture.The call instruction may comprise a branch-and-link instruction and the program code, when executed, pushes the corresponding record onto the guarded call stack.
[0021] To apply the permission overlay, the program code may comprise one or more instructions, whereby to cause the computing device to write a value derived from the effective source permission index value to a dedicated permission-indirection register. The processor may utilise a standardised ARM page-table permission overlay architecture.
[0022] A third aspect of the present disclosure provides a non-transitory computer readable medium storing instructions which, when executed by one or more processors of a computing device, cause the computing device to perform the method as described herein.
[0023] These and other aspects of the invention will be apparent from the embodiments) described below.
[0024] BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order that the present invention may be more readily understood, embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings, in which:
[0026] Figure 1 is a schematic representation of a layout of a program to aid understanding of the invention;
[0027] Figure 2 is a flow chart of a method of controlling access permissions for memory in a processing core of a computing device according to an example;
[0028] Figures 3a-3e are schematic representations of use cases of the invention according to an example; and
[0029] Figure 4 is a schematic representation of a computing device according to an example.
[0030] DETAILED DESCRIPTION
[0031] Example embodiments are described below in sufficient detail to enable those of ordinary skill in the art to embody and implement the systems and processes herein described. It is important to understand that embodiments can be provided in many alternate forms and should not be construed as limited to the examples set forth herein.
[0032] Accordingly, while embodiments can be modified in various ways and take on various alternative forms, specific embodiments thereof are shown in the drawings and described in detail below as examples. There is no intent to limit to the particular forms disclosed. On the contrary, all modifications, equivalents, and alternatives falling within the scope of the appended claims should be included. Elements of the example embodiments are consistently denoted by the same reference numerals throughout the drawings and detailed description where appropriate.
[0033] The terminology used herein to describe embodiments is not intended to limit the scope. The articles “a,” “an,” and ‘The” are singular in that they have a single referent, however the use of the singular form in the present document should not preclude the presence of more than one referent. In other words, elements referred to in the singular can number one or more, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes,” and / or “including,” when used herein, specify the presence of stated features, items, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, items, steps, operations, elements, components, and / or groups thereof.Unless otherwise defined, all terms (including technical and scientific terms) used herein are to be interpreted as is customary in the art. It will be further understood that terms in common usage should also be interpreted as is customary in the relevant art and not in an idealized or overly formal sense unless expressly so defined herein.
[0034] In conventional operating systems, the principal mechanism for workload isolation and access control is provided by separate process address spaces and hierarchical privilege levels. While micro-kernel architectures can offer more fine-grained compartmentalisation, they incur significant performance penalties and require extensive refactoring of existing software stacks. As an alternative, software-only in-context isolation (I CI) techniques have been developed to enforce domain separation within a single privilege level and linear address space. An early commercial example is the nested-kernel approach (circa 2015), which virtualises MMU control to construct a protected enclave inside a monolithic kernel. Similarly, software fault isolation (SFI) frameworks (e.g., early 2000s Java library sandboxes) concentrate all untrusted operations within a small “monitor” module, preventing faults in isolated sections from compromising the remainder of the program. However, these solutions depend on precise binary or source-level analyses to guarantee the absence of unsafe instructions, i.e., analyses that are difficult to scale across large or legacy code bases.
[0035] More recently, hardware-assisted ICI primitives have been introduced in commodity processors. Intel’s memory protection keys (MPK) allow a thread to switch the access permissions of a set of pages with a single, low-cost instruction, avoiding expensive TLB flushes. In parallel, ARM’s page-table permission indirection and overlay extensions decouple metadata bits in each PTE from their conventional read / write / execute semantics. By indexing into a small, software-configured register file, the processor can effect zero-cycle domain transfers. ARM’s guarded call stack (GCS) feature further strengthens protection against return-oriented programming by maintaining a write-protected stack of return addresses. Combined with pointer-authentication (PAC), these enhancements underpin security features such as kernel enclaves and isolation related to JIT. Although these mechanisms dramatically reduce the cost of enforcing memory permissions and control-flow integrity, they do not inherently restrict entry into protected domains based on the dynamic call origin nor enable permission rights to flow automatically through nested invocations.
[0036] To address entry gating, prior art has explored two-dimensional overlays in which both the caller’s and callee’s domain identifiers jointly index into a permission matrix. While this achieves constant- time domain switches, managing dual indices increases complexity and does not resolve permission inheritance across arbitrary call chains. As a result, existing approaches must still rely on higher-privilege traps or elaborate software trampolines to approximate least-privilege semantics.
[0037] Examples in the present disclosure can be provided as methods, systems or machine-readable instructions, such as any combination of software, hardware, firmware or the like. Such machine-readable instructions may be included on a computer readable storage medium (including but not limited to disc storage, CD-ROM, optical storage, etc.) having computer readable program codes therein or thereon.
[0038] The present disclosure is described with reference to flow charts and / or block diagrams of the method, devices and systems according to examples of the present disclosure. Although the flow diagrams described above show a specific order of execution, the order of execution may differ from that which is depicted. Blocks described in relation to one flow chart may be combined with those of another flow chart. In some examples, some blocks of the flow diagrams may not be necessary and / or additional blocks may be added. It shall be understood that each flow and / or block in the flow charts and / or block diagrams, as well as combinations of the flows and / or diagrams in the flow charts and / or block diagrams can be realized by machine readable instructions.
[0039] The machine-readable instructions may, for example, be executed by a machine such as a general-purpose computer, user equipment such as a smart device, e.g., a smart phone, a special purpose computer, an embedded processor or processors ofother programmable data processing devices to realize the functions described in the description and diagrams. In particular, a processor or processing apparatus may execute the machine-readable instructions. Thus, modules of apparatus (for example, a module implementing a comparator unit, or a firewall structure and so on) may be implemented by a processor executing machine readable instructions stored in a memory, or a processor operating in accordance with instructions embedded in logic circuitry. The term 'processor' is to be interpreted broadly to include a CPU, processing unit, ASIC, logic unit, or programmable gate set etc. The methods and modules may all be performed by a single processor or divided amongst several processors.
[0040] Such machine-readable instructions may also be stored in a computer readable storage that can guide the computer or other programmable data processing devices to operate in a specific mode. For example, the instructions may be provided on a non-transitory computer readable storage medium encoded with instructions, executable by a processor.
[0041] Figure 1 illustrates a schematic memory layout of a program partitioned into three isolation domains according to the permission-based inheritance (PBI) concept, to aid understanding of the invention. Domain 0, shown at reference numeral 101, corresponds to a shared library (e.g., libc) that provides common services to all other code. Domain 1, at numeral 102, represents untrusted code and its associated data, such as third-party plugins or user-supplied modules. Domain2, atnumeral 103, contains sensitive data reserved for a trusted component of the application.
[0042] In operation, each domain occupies a contiguous virtual address range and is associated with a permission index and an inheritance bit in its page-table entries. When code in domain 1 102 invokes a function in domain 0 101, the guarded call stack records the source permission index and inheritance bit of the calling location. Under PBI, domain 0’s 101 effective permissions dynamically inherit those of domain 1 102 for the duration of that call, allowing safe access to data passed from domain 1 102 without granting domainO 101 permanent elevated rights. Conversely, when domainO 101 calls into domain2 103, the inheritance bit controls whether domain 2 may assume domain 0’s 101 permissions or retain its default, more restrictive rights. This dynamic permission inheritance mechanism ensures least-privilege enforcement across nested invocations without requiring privilege-level transitions or extensive code rewrites.
[0043] Figure 2 is a flow chart of a method of controlling access permissions for memory in a processing core of a computing device according to an example.
[0044] In block 201, the method comprises storing, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page. The page table entries may correspond to the mappings between virtual memory pages and physical frames and may store the conventional read / write / execute protection bits alongside the added permission index and inheritance bit. In this context, permission inheritance may refer to permitting a called code segment to inherit the permission profile of its caller across nested invocations until a disabled inheritance bit is encountered.
[0045] The permission index may comprise a numeric identifier that maps to one of multiple read, write or execute permission profiles for the corresponding virtual memory page. Each permission profile may define a distinct set of allowed memory operations for that page, and the index may enable rapid selection of the appropriate profile at runtime.
[0046] In block 202, the method comprises maintaining a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit. The guarded call stack may be implemented using dedicated hardware-enforced shadow-stack instructions that push, on each call, the calling function’s program-counter value and its inheritance bit into a write-protected region. The source permission index value may be obtained by reading the permission index from the page table entry corresponding to that program-counter address.The associated inheritance bit may comprise a binary flag that, when enabled in a page table entry, causes a function invoked at that entry to inherit the source permission index value stored in the guarded call stack for its calling function, until a record with a disabled inheritance bit is encountered in the guarded call stack.
[0047] The guarded call stack may be maintained entirely in hardware, ensuring that only authorised call-and-retum instructions can modify its contents.
[0048] In block 203, the method comprises in response to execution of a call instruction, pushing onto the guarded call stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry. A call instruction may comprise an architectural branch-and-link (BL) or equivalent in an ARM-compliant instruction set, which may automatically trigger the hardware shadow-stack push operation.
[0049] In block 204, the method comprises during execution of an instruction at a current program-counter location, determining an effective source permission index value by inspecting the multiple records in the guarded call stack from top to bottom. The current program-counter location may refer to the virtual address of the instruction being executed, and the effective source permission index value may be determined by iteratively examining each record’s inheritance bit (starting with the most recent call) until encountering the first disabled inheritance bit, whose associated index is then selected. This ensures that nested calls correctly inherit or terminate inheritance as specified.
[0050] In block 205, the method comprises applying a permission overlay based on the effective source permission index value to select a one-dimensional permission profile, whereby to control read, write and / or execute permissions for memory operations. A permission overlay may refer to writing the selected profile index into a dedicated permission-indirection register, which the memory management unit may consult on each load, store or instruction-fetch to enforce the chosen rights.
[0051] Applying the permission overlay may comprise retrieving a permission profile based on both the effective source permission index value inherited from the call site and a target permission index stored in the page table entry corresponding to a memory reference or branch target.
[0052] The processing core may be a standardised ARM core supporting page table permission indirection and overlay.
[0053] The method may further comprise, in response to execution of a return instruction, popping a record from the guarded call stack and updating the effective source permission index value accordingly.
[0054] Figures 3a-3e are schematic representations of use cases of the invention according to an example. In the descriptions below, the same reference numerals are used to denote the same domains: domain 0 at reference numeral 301 , domain 1 at 302, and domain 2 at 303.
[0055] Figure 3a illustrates how untrusted code may be sandboxed within its own isolation domain. Domain 1 302 may contain sandboxed code and associated data, while domain 0 301 and domain 2 303 host other components or services. Any code executing in domain 1 302 may be constrained to access only the virtual memory pages assigned to that domain, with its permission index and inheritance bit ensuring that no extraneous read, write or execute rights are granted. When execution transitions from trusted code in domain 0301 into the sandboxed environment, no page-table modifications may be required, as the permission overlays may automatically switch based on the effective source permission index inherited at the call site. Even in a multithreaded scenario, each thread’s guarded call stack may independently track inheritance bits, so that correct sandbox permissions are applied per-thread without global context switches.Figure 3b shows a pair of domains configured for JIT compilation. Domain 0301 may serve as the JIT engine, and domain 1 302 may contain the JIT output buffer. Pages in domain 1 302 may be marked writable only when code executes in domain 0 301 (i.e., when the effective source permission index equals domain 0’s 301 index), and may become non-writable when executed elsewhere. By leveraging the inheritance bit and guarded call stack, switching between compiling and executing JIT-generated code may incur no explicit page-table updates — permission overlays may automatically adjust based on the inherited index. Multiple JIT engine / output pairs may co-exist in a single process, each tracked by its own inheritance records, and correct permissions may be maintained across threads without additional synchronisation.
[0056] Figure 3c depicts the isolation of an untrusted user-space library within domain 1 302, distinct from trusted application code in domain 0 301 and sensitive data in domain 2 303. Under the principle of least privilege, the untrusted library code may only receive rights to specific page ranges (e.g., a shared data buffer), while any attempt to access other pages may be blocked by the one-dimensional overlay. Calls into the library may be handled by pushing the caller’s permission index onto the guarded call stack and inheriting it only for the duration of the library invocation. That is, no page-table scanning or dynamic permission-bit rewriting is required. After return, the inheritance mechanism may automatically restore the caller’s original permissions.
[0057] Figure 3d illustrates how kernel-level modules such as eBPF programs or device drivers may be isolated within domain 1 302 of an EL 1 execution environment, with the rest of the kernel in domain 0301 and reserved data structures in domain 2303. At boot time, the kernel may configure each module’s page-table entries with a distinct permission index and inheritance bit. During runtime, calls into the module may inherit only the minimal access rights needed to service requests, and no further permission updates may be necessary. This statically configured inheritance overlay may reduce the kernel’s attack surface by minimising both the number and complexity of permission-changing instructions in module code.
[0058] Figure 3e shows a scenario where a secret handler resides in domain 0301, a shared communication buffer in domain 1 302, and one or more untrusted consumers in domain 2303. The secret data may be stored exclusively within pages assigned to the secret handler 301 , protected by a permission index that prohibits read access by other domains. When an untrusted component in domain2 303 needs to process the secret (e.g., perform encryption), it may invoke the handler via a call that pushes domain 2’s index onto the guarded stack. The handler code may then execute with inherited access rights to the secret pages, perform the operation, and return — after which the inheritance bit may ensure that domain 2 never retains elevated access. This delegation pattern may “may” enforce strict confidentiality without requiring bespoke trapping or page-table rewriting by user code.
[0059] Figure 4 is a schematic representation of a computing device according to an example. The computing device 400 comprises a processor 401 and a memory 402 coupled to the processor 401, the memory 402 configured to store program code 403 executable by the processor 401, the program code 403 comprising one or more instructions, whereby to cause the computing device 400 to store, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page, maintain a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit, in response to execution of a call instruction, push onto the guarded stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry, during execution of an instruction at a current program-counter location, determine an effective source permission index value by inspecting the multiple records in the guarded stack from top to bottom, and apply a permission overlay based on the effective source permission index value to select a one-dimensionalpermission profile, whereby to control read, write and / or execute permissions for memory operations. In other words, the computing device 400 is configured to perform the method described in relation to Figures 2-3.
[0060] According to an example, machine-readable instructions can be loaded onto a computer or other programmable data processing devices, so that the computer or other programmable data processing devices perform a series of operations to produce computer-implemented processing, thus the instructions executed on the computer or other programmable devices provide an operation for realizing functions specified by flow(s) in the flow charts and / or block(s) in the block diagrams.
[0061] Further, the teachings herein may be implemented in the form of a computer or software product, such as a non-transitory machine-readable storage medium, the computer software or product being stored in a storage medium and comprising a plurality of instructions, e.g., machine readable instructions, for making a computer device implement the methods recited in the examples of the present disclosure.
[0062] In some examples, some methods can be performed in a cloud-computing or network-based environment. Cloud-computing environments may provide various services and applications via the Internet. These cloud-based services (e.g., software as a service, platform as a service, infrastructure as a service, etc.) may be accessible through a web browser or other remote interface of the user equipment for example. Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.
[0063] While various embodiments have been described and / or illustrated herein in the context of fully functional computing systems, one or more of these exemplary embodiments may be distributed as a program product in a variety of forms, regardless of the particular type of computer-readable-storage media used to actually carry out the distribution. The embodiments disclosed herein may also be implemented using software modules that perform certain tasks. These software modules may include script, batch, or other executable files that may be stored on a computer-readable storage medium or in a computing system. In some embodiments, these software modules may configure a computing system to perform one or more of the exemplary embodiments disclosed herein. In addition, one or more of the modules described herein may transform data, physical devices, and / or representations of physical devices from one form to another.
[0064] The preceding description has been provided to enable others skilled in the art to best utilize various aspects of the exemplary embodiments disclosed herein. This exemplary description is not intended to be exhaustive or to be limited to any precise form disclosed. Many modifications and variations are possible without departing from the spirit and scope of the instant disclosure. The embodiments disclosed herein should be considered in all respects illustrative and not restrictive. Reference should be made to the appended claims and their equivalents in determining the scope of the instant disclosure.
Claims
CLAIMS1. A computer-implemented method of controlling access permissions for memory in a processing core of a computing device, the method comprising:storing, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page (201);maintaining a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit (202);in response to execution of a call instruction, pushing onto the guarded stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry (203);during execution of an instruction at a current program-counter location, determining an effective source permission index value by inspecting the multiple records in the guarded stack from top to bottom (204); andapplying a permission overlay based on the effective source permission index value to select a one-dimensional permission profile, whereby to control read, write and / or execute permissions for memory operations (205).
2. The method of claim 1 , wherein the permission index comprises a numeric identifier that maps to one of multiple read, write or execute permission profiles for the corresponding virtual memory page.
3. The method of claim 1 or 2, wherein the inheritance bit comprises a binary flag that, when enabled in a page table entry, causes a function invoked at that entry to inherit the source permission index value stored in the guarded call stack for its calling function, until a record with a disabled inheritance bit is encountered in the guarded call stack.
4. The method of claim 1, 2 or 3, wherein the guarded call stack is implemented using specialised guarded control stack instructions provided by the processing core.
5. The method of any one of claims 1 to 4, wherein the call instruction comprises a branch and link instruction in an ARM compliant instruction set.
6. The method of any one of claims 1 to 5, wherein applying the permission overlay (205) comprises retrieving a permission profile based on both the effective source permission index value inherited from the call site and a target permission index stored in the page table entry corresponding to a memory reference or branch target.
7. The method of any one of claims 1 to 6, wherein the processing core is a standardised ARM core supporting page table permission indirection and overlay.
98. The method of any one of claims 1 to 7, further comprising, in response to execution of a return instruction, popping a record from the guarded call stack and updating the effective source permission index value accordingly.
9. A computing device (400) comprising:a processor (401);a memory (402) coupled to the processor (401), the memory (402) configured to store program code (403) executable by the processor (401), the program code (403) comprising one or more instructions, whereby to cause the computing device (400) to:store, in each page table entry, a permission index and an associated inheritance bit, the associated inheritance bit comprising a binary flag stored in that same page table entry indicating whether permission inheritance is enabled or disabled for code executing within that page;maintain a guarded call stack for the processing core, the guarded call stack storing multiple records, wherein the multiple records comprise a record for each function call, wherein each record comprises a source permission index value corresponding to a virtual memory address of the calling function and the inheritance bit;in response to execution of a call instruction, push onto the guarded stack a record comprising the source permission index value and the associated inheritance bit retrieved from the page table entry; during execution of an instruction at a current program-counter location, determine an effective source permission index value by inspecting the multiple records in the guarded stack from top to bottom; and apply a permission overlay based on the effective source permission index value to select a one-dimensional permission profile, whereby to control read, write and / or execute permissions for memory operations.
10. The computing device (400) of claim 9, wherein the permission index comprises a numeric identifier that maps to one of multiple read, write or execute permission profiles for the corresponding virtual memory page.
11. The computing device (400) of claim 9 or 10, wherein the guarded call stack is implemented using specialised guarded-control-stack instructions of an ARM architecture.
12. The computing device (400) of claim 9, 10 or 11, wherein the call instruction comprises a branch-and-link instruction and the program code, when executed, pushes the corresponding record onto the guarded call stack.
13. The computing device (400) of any one of claims 9 to 12, wherein, to apply the permission overlay, the program code (403) comprises one or more instructions, whereby to cause the computing device (400) to write a value derived from the effective source permission index value to a dedicated permission-indirection register.
14. The computing device (400) of any one of claims 9 to 13, wherein the processor (401) utilises a standardised ARM page-table permission overlay architecture.
15. A non- transitory computer readable medium storing instructions which, when executed by one or more processors of a computing device, cause the computing device to perform the method of any one of claims 1 to 8.
