File Page Table Linking for Secure User Mode Access

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional file systems require frequent switching between user mode and kernel mode for file access, leading to resource and time consumption, and pose security risks due to unauthorized access to file data in non-volatile memory (NVM).

Innovation Solution

A method and system that allocate user space and kernel space during process initialization, where the user space includes file system space and PGD space, allowing secure file data access by linking a file page table to a PGD entry only when needed, and disconnecting the link when access ends, to prevent unauthorized access and reduce resource usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a process in user mode accesses file data by executing file system interface functions, then file access can be performed, but the user mode switches to kernel mode twice (entry and exit), consuming resources and time

Engineering Contradiction:
Improvefile access securityVSAvoidmode switching time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the file access process into distinct phases: linking the file page table to PGD entry only when file data needs to be accessed, and disconnecting it when access ends. This segmentation allows the system to maintain security (file access only when linked) while reducing unnecessary mode switches (no switch needed during active access).

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic linking and disconnecting of the file page table to the PGD entry based on actual file access needs. The link is established when a process needs to access file data and disconnected when access ends, creating a dynamic access control mechanism that reduces overhead during active operations while maintaining security when idle.

Inventive Principle:
Principle #15Dynamics

2Productivity

If the file page table is continuously linked to the PGD entry, then file data access is fast and convenient, but unauthorized access to file data in NVM may occur

Engineering Contradiction:
Improvefile access efficiencyVSAvoidunauthorized access risk
Core Design Contradiction:
ProductivityVSObject-affected harmful factors

Solution Approach 1:

The patent applies preliminary anti-action by disconnecting the file page table from the PGD entry when file access is not needed, proactively preventing unauthorized access before it can occur. The system anticipates security risks and eliminates the access path by disconnecting the link, rather than relying on detection or correction mechanisms.

Inventive Principle:
Principle #9Preliminary anti-action

Solution Approach 2:

The patent implements dynamic control of the file page table linkage, establishing the connection only when file access is required and disconnecting it when access ends. This dynamic approach allows efficient access during active operations while eliminating unauthorized access risks during idle periods.

Inventive Principle:
Principle #15Dynamics

3Loss of energy

If mode switching is reduced for file access, then resource and time consumption decreases, but security control over file data access may be weakened

Engineering Contradiction:
Improvesystem resource consumptionVSAvoidaccess security control
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The patent segments access control into linkage state management (linking/disconnecting file page table to PGD entry) and actual data access. This segmentation allows the system to maintain strong security control through explicit linkage states while reducing resource consumption by avoiding unnecessary mode switches during active file operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic linkage management where the file page table is connected to the PGD entry only during active file access and disconnected otherwise. This dynamic control maintains security through explicit linkage states while minimizing mode switching overhead, as the linkage state itself provides the security control mechanism.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS10606769B2Time-restricted access to file data
Publication Date: 2020.03.31 HUAWEI TECH CO LTD
  • US10606769B2 patent drawing
  • US10606769B2 patent drawing
  • US10606769B2 patent drawing

AI summary

A file data access method and a computer system, where the method includes accessing a page global directory (PGD) of the process using PGD space when accessing first file data by a process, determining, based on access to the PGD and according to a first virtual address of the first file data in file system space, a first PGD entry in the PGD, linking a file page table of the process to the first PGD entry, where the file page table points to a physical address of the file data such that a processor retrieves a first physical address of the first file data in a memory according to the first virtual address using the PGD and the file page table, and accessing the first file data according to the first physical address.