Skip to content

kernel: Install manager fd in task work#3057

Merged
aviraxp merged 3 commits into
mainfrom
aviraxp-patch-1
Dec 8, 2025
Merged

kernel: Install manager fd in task work#3057
aviraxp merged 3 commits into
mainfrom
aviraxp-patch-1

Conversation

@aviraxp

@aviraxp aviraxp commented Dec 8, 2025

Copy link
Copy Markdown
Collaborator

Tracepoint context disables preemption, so we cannot install fd which can sleep.

Tracepoint context disables preemption, so we cannot install fd which can sleep. Let manager use ioctl to install fd itself.
Copilot AI review requested due to automatic review settings December 8, 2025 12:00

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 addresses a critical concurrency issue by removing fd installation from a tracepoint context where preemption is disabled. The manager will now use ioctl to install the fd itself, avoiding potential sleeping in atomic context.

  • Removed ksu_install_fd() call from ksu_handle_setresuid() function
  • Updated log message to reflect that the code now handles manager start without fd installation

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

@aviraxp aviraxp changed the title kernel: Remove fd installation for manager kernel: Install manager fd in task work Dec 8, 2025
@aviraxp aviraxp requested a review from tiann December 8, 2025 14:05
@aviraxp aviraxp merged commit 17a7a6f into main Dec 8, 2025
16 checks passed
@aviraxp aviraxp deleted the aviraxp-patch-1 branch December 8, 2025 15:19
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 9, 2025
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
selfmusing pushed a commit to selfmusing/USlenreK that referenced this pull request Dec 11, 2025
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
larpedd pushed a commit to larpedd/KernelSU that referenced this pull request Dec 20, 2025
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 2026
Tracepoint context disables preemption, so we cannot install fd which
can sleep.
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