Skip to content

Add support for 32-bit processes to call supercall#256

Open
ThePedroo wants to merge 2 commits intobmax121:mainfrom
ThePedroo:32bit-supercall-support
Open

Add support for 32-bit processes to call supercall#256
ThePedroo wants to merge 2 commits intobmax121:mainfrom
ThePedroo:32bit-supercall-support

Conversation

@ThePedroo
Copy link
Copy Markdown

Calling supercall from 32-bit process leads to numerous issues, rendering it practically impossible. By using hook_compat_syscalln, we allow that to be possible.

Other hooks also include their 32-bit counterparts, so it is only reasonable that supercall does too.

This commit allows 32-bit processes to take advantage of the supercall by calling the 32-bit truncate, without issues due to integer size difference.
This commit adds support for 32-bit processes in userspace to be able to write to kstorage with KernelPatch by using structures instead of relying on 64-bit integers which can't be passed to kernel space from userspace, since they're emulated.
ThePedroo added a commit to ThePedroo/APatch that referenced this pull request May 1, 2026
This commit is an extension of bmax121/KernelPatch#256 which also update the "kstorage" methods to allow 32-bit userspace processes to utilize them.
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.

1 participant