Skip to content

kernel: release seccomp filter#3077

Merged
5ec1cff merged 2 commits into
mainfrom
seccomp
Dec 19, 2025
Merged

kernel: release seccomp filter#3077
5ec1cff merged 2 commits into
mainfrom
seccomp

Conversation

@5ec1cff

@5ec1cff 5ec1cff commented Dec 19, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for properly releasing seccomp filters when disabling seccomp in the kernel module. The main change involves calling seccomp_filter_release() with a fake task_struct to clean up filter references before clearing the seccomp state.

Key changes:

  • Creates a fake task_struct copied from current to pass to seccomp_filter_release()
  • Moves lock acquisition into disable_seccomp() for better encapsulation
  • Adds version-specific handling for different kernel versions (5.11.0 and 6.11.0)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel/app_profile.c
Comment thread kernel/app_profile.c
Comment thread kernel/app_profile.c
@5ec1cff 5ec1cff marked this pull request as draft December 19, 2025 09:30
@5ec1cff 5ec1cff marked this pull request as ready for review December 19, 2025 12:07
@5ec1cff 5ec1cff merged commit f70dee8 into main Dec 19, 2025
17 checks passed
@5ec1cff 5ec1cff deleted the seccomp branch December 19, 2025 14:03
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 19, 2025
larpedd pushed a commit to larpedd/KernelSU that referenced this pull request Dec 20, 2025
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants