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

LLEXT - security aspects #76700

Open
Tracked by #69805
ceolin opened this issue Aug 5, 2024 · 3 comments
Open
Tracked by #69805

LLEXT - security aspects #76700

ceolin opened this issue Aug 5, 2024 · 3 comments
Assignees
Labels
area: llext Linkable Loadable Extensions area: Security Security Enhancement Changes/Updates/Additions to existing features

Comments

@ceolin
Copy link
Member

ceolin commented Aug 5, 2024

LLEXT has emerged as a popular and powerful feature, enabling greater flexibility and
modularity in embedded systems. This functionality allows the dynamic
loading and unloading of code at runtime, without the need to
reboot the system or recompile the entire kernel.

While it offers significant advantages in flexibility and modularity, it also introduces
several security implications that must be carefully managed.

  • Code authenticity and integrity
    Malicious extension could be loaded
    compromising the system. We need to verify the authenticity and
    integrity of extensions before they are loaded.

  • Access control and permission
    Avoid excessive or unintended access to critical system resources. Usermode address
    this, but we need a proper way to setup kobjects and how to access them.
    Is dynamically creating kobjects needed ?

    Is there anything can be done without usermode ?

  • Logging / auditing
    Logs and audits of extension activities related to loading and unloading

  • Resource management
    Protection against DoS ?

  • Legal considerations
    Extension licensing ?

@ceolin ceolin added Enhancement Changes/Updates/Additions to existing features area: Security Security area: llext Linkable Loadable Extensions labels Aug 5, 2024
@ceolin
Copy link
Member Author

ceolin commented Aug 5, 2024

Some of these items are in the roadmap #71584

@teburd
Copy link
Collaborator

teburd commented Aug 6, 2024

Relevant to this discussion are initializer functions seemingly from C++, see #76724

@marc-hb
Copy link
Collaborator

marc-hb commented Aug 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: llext Linkable Loadable Extensions area: Security Security Enhancement Changes/Updates/Additions to existing features
Projects
Status: Todo
Development

No branches or pull requests

3 participants