Skip to content

Conversation

@aviraxp
Copy link
Collaborator

@aviraxp aviraxp commented Jun 10, 2025

No description provided.

Copy link
Collaborator Author

@aviraxp aviraxp left a comment

Choose a reason for hiding this comment

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

Let's use prepare_creds() instead, as per doc recommends.

backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
we remove that get_cred_rcu requirement by adding a hacky fallback to
get_cred with smp_mb. YES, IT IS HACKY but it works well.

Unlock earlier to reduce lock holding time.

- !! EDIT this once tiann#2628 is merged
Also properly reset refcount as said by cred.h by calling put_cred
where the original unlock was.

Signed-off-by: backslashxx <[email protected]>
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 10, 2025
we remove that get_cred_rcu requirement by adding a hacky fallback to
get_cred with smp_mb. YES, IT IS HACKY but it works well.

Unlock earlier to reduce lock holding time.

- !! EDIT this once tiann#2628 is merged
Also properly reset refcount as said by cred.h by calling put_cred
where the original unlock was.

Signed-off-by: backslashxx <[email protected]>
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Jun 10, 2025
@aviraxp aviraxp closed this Jun 10, 2025
@aviraxp aviraxp deleted the aviraxp-patch-2 branch June 10, 2025 14:44
luyanci pushed a commit to luyanci/KernelSU that referenced this pull request Jun 10, 2025
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 11, 2025
we remove that get_cred_rcu requirement by adding a hacky fallback to
get_cred with smp_mb. YES, IT IS HACKY but it works well.

Unlock earlier to reduce lock holding time.

- !! EDIT this once tiann#2628 is merged
Also properly reset refcount as said by cred.h by calling put_cred
where the original unlock was.

Signed-off-by: backslashxx <[email protected]>
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Jun 11, 2025
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Jun 11, 2025
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Jun 11, 2025
luyanci pushed a commit to luyanci/SukiSU-Ultra that referenced this pull request Jun 11, 2025
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Jun 12, 2025
we remove that get_cred_rcu requirement by adding a hacky fallback to
get_cred with smp_mb. YES, IT IS HACKY but it works well.

Unlock earlier to reduce lock holding time.

- !! EDIT this once tiann#2628 is merged
Also properly reset refcount as said by cred.h by calling put_cred
where the original unlock was.

Signed-off-by: backslashxx <[email protected]>
ShirkNeko pushed a commit to SukiSU-Ultra/SukiSU-Ultra that referenced this pull request Jun 12, 2025
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