Commit Graph
343 Commits
Author SHA1 Message Date
Dean 4a9d15ca10 Merge pull request #17885 from akkadbakkad89/feat/libkernel-export-parity
feat(libkernel): export the kernel functions libkernel_sys provided alone
2026-11-22 09:55:44 +13:00
Oleg c4a6cc64b2 docs(libkernel_sys): confirm the unnamed exports, the one-shot libc mutex init and the condattr pair on firmware 13.60 2026-11-20 15:41:33 +05:00
Petre 4e300770b9 fix(libkernel_sys): return the console's errors from the Lwfs and compression descriptor calls (#17901)
* fix(libkernel_sys): return the console's errors from the Lwfs descriptor calls
* fix(libkernel_sys): return ENOTTY from the Lwfs calls on a kqueue descriptor
* fix(libkernel_sys): answer sceKernelSetCompressionAttribute like the Lwfs calls
* fix(libkernel_sys): import the descriptor checks through extern "C" helpers
* fix(kernel): validate LWFS write buffers and cover regular files
* test(libkernel_sys): open the Lwfs test file through a path alias

Co-authored-by: Petre <90782432+kali113@users.noreply.github.com>
Co-authored-by: kali113 <90782432+kali113@users.noreply.github.com>
2026-11-19 19:00:31 +13:00
PariotandDean Galvin 7b2370120c feat(libkernel_sys): implement pthread_getstack_np (#15111)
* feat(libkernel_sys): implement pthread_getstack_np
* fix: drop duplicate merge leftovers

Co-authored-by: Dean Galvin <dean.galvin@live.com>
2026-11-19 02:27:29 +13:00
akkadbakkad89andDevin 183ea46caa docs(libkernel): keep the ByPid/Ps4 SDK getter debt entries
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-18 05:38:12 +05:30
akkadbakkad89 9295525d5e docs(libkernel): keep one sceKernelGetAppCategoryType entry with main's wording 2026-11-18 05:38:12 +05:30
akkadbakkad89andDevin bfebeb6799 feat(libkernel): move the sys-exported process, tool-memory and neo-mode getters to libkernel
The shared SysExports providers let libkernel and libkernel_sys export the same implementations. sceKernelTitleWorkaroundIsEnabled bounds the bit at 0x78, the console-measured bound that landed in 0c372df44e.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-18 05:38:12 +05:30
PetreandDean Galvin 901aa99c13 fix(libkernel_sys): answer sceKernelGetThreadName from the guest thread registry (#17920)
* fix(libkernel_sys): answer sceKernelGetThreadName from the guest thread registry
* fix(libkernel_sys): look the thread name up through an extern "C" libkernel helper
* fix(kernel): reject thread names longer than 31 characters
* docs(libkernel_sys): qualify oversized rename results
* fix(libkernel): follow a PS5 probe for the scePthreadRename name errors
* fix(libkernel): copy the rename string before taking the thread registry lock
* fix(libkernel): check the scePthreadRename thread before the name

Co-authored-by: Petre <90782432+kali113@users.noreply.github.com>
Co-authored-by: kali113 <90782432+kali113@users.noreply.github.com>
Co-authored-by: Dean Galvin <dean.galvin@live.com>
2026-11-16 09:16:51 +13:00
Dean 3d6e192081 Merge pull request #20202 from imadchaouii/feat/libkernel_sys-namedobj
feat(libkernel_sys): implement __sys_namedobj_create and __sys_namedobj_delete
2026-11-15 22:19:43 +13:00
imadchaouii d068bd4622 feat(libkernel_sys): implement __sys_namedobj_create and __sys_namedobj_delete
Keep the table of named objects that syscalls 0x22d and 0x22e manage, as
fpPS4's kernel and RPCSX both do: ids from 1 for a name of up to 31
characters, EINVAL for a null name, EFAULT for an unreadable one,
ENAMETOOLONG for a longer one, EAGAIN when no id is left and ESRCH for an id
that is not live. The table holds 65535 ids, RPCSX's bound. Deleting an
object with another type than it was created with throws, because the two
sources disagree on it.
2026-11-15 08:03:19 +01:00
Waleed Ali Tahir 6405705ef0 feat(libkernel_sys): implement pthread_get_specificarray_np 2026-11-15 10:28:52 +05:00
AdriaanandClaude Opus 5.5 f68a152df1 fix(libkernel_sys): safely probe attr and CPU set pointers in pthread_attr np getters and setters
pthread_attr_getaffinity_np, pthread_attr_setaffinity_np and
pthread_attr_getsolosched_np now read the attribute handle and the CPU
set with GuestCopyIn and write the CPU set and solosched with
GuestCopyOut. An unreadable attr returns EINVAL, an unreadable or
unwritable CPU set EFAULT and an unwritable solosched EINVAL, matching
their null forms; errno is preserved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 01:39:39 +02:00
AdriaanandClaude Opus 5.5 67292698c1 fix(libkernel_sys): safely probe the kq output of sceKernelGetKqueueFromEqueue
The descriptor was stored through the guest pointer directly, so an
unmapped kq crashed the host. Write it with GuestCopyOut; an unwritable
pointer returns EINVAL like a null one, and errno is preserved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:11:34 +02:00
xXPBSXxandDean Galvin 3475fd5da2 docs(libkernel_sys): record that a PS5 refuses symlink to a relative target (#17115)
* docs(debt): record symlink of a relative target on a PS5
* docs(debt): keep the reason symlink throws for an absolute target
* docs(libkernel_sys): fold the PS5 symlink result into main's symlink entry

Co-authored-by: Dean Galvin <dean.galvin@live.com>
2026-11-15 09:57:19 +13:00
LeandroLP23andClaude Opus 5.5 a5fa921244 feat(libkernel_sys): implement sceKernelCreateUuidV7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:14:03 +01:00
Jatin Gupta 0e0ee0ea9a feat(libkernel_sys): implement sceKernelEnableDmemAliasing2 (#11212) 2026-11-14 18:53:34 +13:00
Waleed Ali Tahirandpr-review2 30f726f467 feat(libkernel_sys): implement sceKernelGetGenuineProsperoSystemSwVersion (#17891)
* feat(libkernel_sys): implement sceKernelGetGenuineProsperoSystemSwVersion
* docs(libkernel_sys): count the stubs left after sceKernelGetGenuineProsperoSystemSwVersion is implemented

Co-authored-by: pr-review2 <pr-review2@users.noreply.github.com>
2026-11-14 01:55:49 +13:00
PetreandClaude Opus 5.5 8ce60a0b05 fix(libkernel_sys): answer sceKernelGetAppCategoryType for pid 0 and negative pids as a PS5 does
A payload process on a PS5 (firmware 13.590.001) answers pid 0 as the
calling process and returns ESRCH with errno 3 for -1, INT_MIN and an
unused pid, after the null-output EINVAL check. Other pids keep throwing:
the console answered for its other processes, which AnyPS5 does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:04:25 +01:00
Federico Marras 518c2ee370 feat(libkernel_sys): reject reboot without jail privilege (#16676) 2026-11-13 05:56:34 +13:00
Dean de303abadd Merge pull request #18659 from alvaroelpob/fix/libkernel-sys-underscore-wait4
feat(libkernel_sys): implement _wait4
2026-11-13 03:45:03 +13:00
Dean 83ffeef8e3 Merge pull request #18321 from akkadbakkad89/feat/kernel-mapper-get-param
feat(libkernel_sys): answer the full 0x38 sceKernelMapperGetParam block
2026-11-13 00:59:56 +13:00
xXPBSXx ce67663bf1 fix(libkernel_sys): uuidgen leaves the multicast bit of the node clear (#17552)
* test(libkernel_sys): pin the multicast bit of the uuidgen node as clear
* fix(libkernel_sys): clear the multicast bit of the uuidgen node
* docs(debt): record the console multicast bit of the uuidgen node
2026-11-13 00:26:19 +13:00
roboterspinne 9608b6a774 fix(libkernel_sys): read the aiocb in aio_error as FreeBSD's fuword does, returning -1 for unreadable memory (#18170) 2026-11-12 21:08:53 +13:00
Dean 964bb28836 Merge pull request #17545 from xXPBSXx/docs/kernel-sys-kenv-dump-size
docs(libkernel_sys): record the sizes a PS5 returns from kenv KENV_DUMP
2026-11-12 20:04:41 +13:00
Dean ef01a7e866 Merge pull request #17785 from xXPBSXx/fix/kernel-pthread-getconcurrency-sce
fix(libkernel_sys): scePthreadGetconcurrency returns the level as an SCE code like the console
2026-11-12 19:19:23 +13:00
Dean d314d71952 Merge pull request #17762 from xXPBSXx/fix/pthread-barrier-init-name-too-long
fix(libkernel_sys): scePthreadBarrierInit returns ENAMETOOLONG for a name of 32 or more characters
2026-11-12 18:06:47 +13:00
Alvaro b135a386b0 docs(libkernel_sys): leave the inventory totals to the PRs that rewrite them 2026-11-12 01:18:47 +01:00
Alvaro 36d1a72775 docs(libkernel_sys): move the _wait4 entry next to wait3 and wait4 2026-11-12 01:17:56 +01:00
Alvaro 6df5cce319 docs(libkernel_sys): record _wait4 2026-11-12 01:17:20 +01:00
Dean 44586eff7d Merge pull request #16602 from Zyylon/feat/libkernel-sys-get-self-auth-info
feat(libkernel_sys): implement get_self_auth_info
2026-11-12 12:34:56 +13:00
Dean 1810459668 Merge pull request #16598 from Zyylon/feat/libkernel-sys-pthread-attr-affinity
feat(libkernel_sys): implement pthread_attr_getaffinity_np and pthread_attr_setaffinity_np
2026-11-12 12:34:34 +13:00
Dean 0ffc8be0a7 Merge pull request #14304 from bipinkrish/feat/libkernel-sys-devmode
feat(libkernel_sys): implement __sys_is_development_mode export
2026-11-12 12:33:11 +13:00
Daniele GiovaneandDean Galvin 767eb1ee98 feat(libkernel_sys): implement wait3 and wait4 (#9162)
* feat(libkernel_sys): implement wait3 and wait4
* style(libkernel_sys): remove redundant wait separator
* test(relinker): report operands and flags on MULX mismatch
* fix(tests): register write-watch fault cases once
* test(relinker): print the changed flag bits when MULX lowering changes arithmetic flags

Co-authored-by: Dean Galvin <dean.galvin@live.com>
2026-11-12 11:06:11 +13:00
Dean 829019eea4 Merge pull request #16328 from Kikoarl/fix/libkernel_sys-aio-waitcomplete-fault-guards
fix(libkernel_sys): safely validate result and timeout pointers in aio_waitcomplete
2026-11-12 09:35:40 +13:00
Raj Gupta 77f3ce2d1e feat(libkernel_sys): implement sceKernelCreateUuidV1 2026-11-11 21:34:12 +05:30
Bipin 3e09be642b fix(libkernel_sys): clarify development-mode ABI and evidence 2026-11-11 17:20:28 +05:30
Bipin af1907683b feat(libkernel_sys): implement __sys_is_development_mode export 2026-11-11 17:20:08 +05:30
akkadbakkad89andDevin 7a81ef1332 feat(libkernel_sys): answer the full 0x38 sceKernelMapperGetParam block
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-11 13:42:05 +05:30
xXPBSXxandClaude Sonnet 5.5 905e9d959c Merge main into fix/kernel-sys-getprocesstype-pid-errors-v2
The one conflict is in docs/dev/debt/libkernel_sys.md, where main added the
sceKernelTitleWorkaroundIsEnabled2 entry beside the sceKernelGetProcessType entry this
branch rewrites; both stay, with the measured sceKernelGetProcessType entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 06:57:22 +01:00
DostonandClaude Opus 5.5 9ff5d15615 Merge origin/main into feat/ubsan-cfi-failure-handlers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:10:29 +05:00
Adrià 70f1560e72 Merge pull request #16578 from xXPBSXx/g/ps5-sdkver
docs(libkernel_sys): record the SDK versions a PS5 payload process reports
2026-11-10 22:43:21 +01:00
Adrià c3aa80ce32 Merge pull request #16215 from MarcZX10/docs-debt-libkernel-sema-attrs-and-anchor
docs(debt): correct sceKernelCreateSema attributes and a broken libkernel anchor
2026-11-10 22:39:17 +01:00
Faryan Rezagholi c9162f6253 feat(libkernel_sys): implement sceKernelGetAppCategoryType from param.json 2026-11-10 18:59:01 +01:00
MarcZX10 dc1fe1705d docs(debt): fix broken libkernel.md anchor in libkernel_sys.md
The nanosleep entry linked libkernel.md#short-sleeps-ended-by-gpu-and-flip-completions,
but libkernel.md has no heading with that slug. The bullet it means
("Short sleeps ended by GPU and flip completions") is under the
points to libkernel.md#functional.
2026-11-10 14:14:53 +00:00
Adrià 97fd93dd0f Merge pull request #16370 from Ragbie/fix/getcwd-syscall-errno
fix(libkernel_sys): answer raw __getcwd errors in FreeBSD's order and kinds
2026-11-10 12:55:51 +01:00
Dean 1c288270a7 Merge pull request #17737 from tablefrogpillow/feat/libkernel-sys-mqueue-supersede-9297
feat(libkernel_sys): implement POSIX message queues
2026-11-10 12:36:22 +13:00
GruzzberryandClaude Sonnet 5.5 2100dfb559 feat(libkernel_sys): implement swapon
Look the name up as FreeBSD 11.4's sys_swapon does: EFAULT, ENOENT,
ENAMETOOLONG and ENOTDIR for a bad path, and ENOTBLK for any existing
file or directory, since only a disk device can be added as swap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:23:16 +01:00
xXPBSXxandClaude Sonnet 5.5 7703853586 docs(debt): record the measured scePthreadGetconcurrency result
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:49:55 +01:00
BunnyFl 3f3dc11f84 Merge remote-tracking branch 'upstream/main' into feat/kernel-title-workaround-2
# Conflicts:
#	docs/dev/debt/libkernel_sys.md
2026-11-09 14:37:45 +01:00
xXPBSXxandClaude Sonnet 5.5 2c9784c037 Merge upstream/main into g/ps5-sdkver
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:36:10 +01:00