summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src
AgeCommit message (Collapse)Author
2025-06-22IPCMsg.cc0xf00sec
rt_copy_memory_safe
2025-06-22NeFS+FileSystemParser.cc0xf00sec
rt_copy_memory calls were replaced with rt_copy_memory_safe.
2025-06-22IndexableProperty.cc0xf00sec
The argument order was corrected. #include <NeKit/Utils.h> was added, and rt_copy_memory_safe is added
2025-06-22UserMgr.cc0xf00sec
rt_copy_memory calls were replaced with rt_copy_memory_safe, and #include <NeKit/Utils.h>
2025-06-22UserProcessScheduler.cc0xf00sec
rt_copy_memory calls were replaced with rt_copy_memory_safe. #include <NeKit/Utils.h> and #include <HALKit/AMD64/Processor.h>
2025-06-22rt_copy_memory_safe: PEFCodeMgr.cc0xf00sec
2025-06-22rt_copy_memory_safe: HeFS+FileSystemParser.cc0xf00sec
2025-06-22rt_copy_memory to rt_copy_memory_safe0xf00sec
2025-06-18PEF format update `5.0` and codebase refactors.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-18meta: Ran `format.sh`Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-17kernel: fix: Fix duplicates on `IPAddr.cc` and `AsciiUtils.cc`.Amlal El Mahrouss
fix: Fix dead code in `Bool USER_PROCESS::SpawnDylib()` Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-12feat: libSystem, kernel: finalizing the hash and routing system of ↵Amlal El Mahrouss
libSystem's handlers. feat: Rework TTY, and CD-ROM API too. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-11feat: `___chkstk_ms` has been implemented for AMD64 HAL.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-10security: fix: memory-leak on `ups-alloc-tree`, and mismatch inAmlal El Mahrouss
traversal. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-10fix: security: UAF on the `ups-allocation-tree`Amlal El Mahrouss
credits: - @0xf00sec who reported the issue. - @amlel-el-mahrouss who implemented the patch. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-10fix: UserProcessScheduler security patches.Amlal El Mahrouss
These patches are regarding: - Thread safety (exit code global has been removed.) - Code quality, in `SpawnDylib` - In memory allocation checks too. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-07fix/feat: NetworkKit: Better IPAddr.cc implementation for both IP6 and IP4.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-06feat: The `APM` HW protocol implementation got improvements (ARM64)Amlal El Mahrouss
fix: BootNet: be more descriptive when trying to flash from network, and it fails. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-04Merge pull request #38 from 0xf00sec/0xf00sec-patch-5Amlal El Mahrouss
# Name: Sec: FS/Kernel # Brief: Filesystem & Kernel Offset/Buffer.
2025-06-04Fixx0xf00sec
2025-06-04Fix0xf00sec
2025-06-04Sec: FS/Kernel0xf00sec
filesystem & Kernel Offset/Buffer.
2025-06-04meta: Ran `./format.sh`Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-04fix: Fix #37 compilation errors and warnings.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-04F* Macros0xf00sec
2025-06-04Fix mParser0xf00sec
2025-06-03feat: TLS: Improved its implementation, and add a user field for additional ↵Amlal El Mahrouss
checks. refactor: Reworked `open_msg`'s messaging system. refactor: Rename `Utils.cc` to `AsciiUtils.cc` Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-03feat: Last changes before `0.0.3`Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-06-02fix: hal/aarch64: aarch64 patches for ne_kernel.Amlal El Mahrouss
2025-06-02Revise rt_* mem APIs0xf00sec
2025-06-01Revise rt_* mem APIs0xf00sec
2025-06-01Heap Overflow in `rt_copy_memory`0xf00sec
To avoid directly affecting the API that relies on null-termination, this patch applies a minimal fix by removing the overflow without adding bounds checks or changing the function signature.
2025-06-01feat: Be more flexible when the OS is not SMP-aware.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-30refactor: Format codebase and fix warning in UserProcessScheduler.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-30global: architectural changes, see commit details.Amlal El Mahrouss
refactor: Refactor libSystem, user frameworks, and preparing for OpenMSG. feat: Jail info client structure (libSystem) feat: Document what the RTime is doing starting from line 504. feat: use `int 50` instead of `syscall` for now. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-30refactor: Refactor IDeviceObject to DeviceInterface and its usages.Amlal El Mahrouss
refactor: Cleanup UPS (UserProcessScheduler) implementation. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-29feat: UserProcessScheduler: reset UTime when exiting.Amlal El Mahrouss
feat: drawio: Rename OS_DESIGN to SYSTEM_DESIGN. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-29feat: Improve libSystem's architecture and implementation.Amlal El Mahrouss
fix: Fix NeKit's Ref, and ErrorOr classes. fix: Fix userland tools. next: - Finish the latest tickets and then release nekernel 0.0.3 Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-27feat: Assign ThreadID to APIC's ProcessID when initialzing APs.Amlal El Mahrouss
refactor: Cleanup copyright headers and source code. feat: Add PrinterNetworkDevice, and DBGNetworkDevice. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-27refactor: rename mm_make_ptr_flags to mm_set_ptr_flags.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-26feat!: Add IFS layer within DriveMgr, and IFS API.Amlal El Mahrouss
also: - Use ThreadID in AP system. - Refactor kernel according to new IFS layer. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-25kernel!: lots of changes, see commit details.Amlal El Mahrouss
refactor(hal): unify file naming and drop redundant architecture suffixes feat(build): rename kernel and bootloader to 'ne_kernel' and 'ne_bootz' refactor(memory): replace mm_get_phys_address with mm_get_page_addr feat(bitmap): track bitmap allocator usage and add out-of-memory error fix(heap): correct heap magic naming and alignment logic chore(fs): downgrade HeFS disk size check to warning chore(tools): clean up formatting in 'ping' and 'manual' docs(design): update OS_DESIGN.drawio to reflect Hypr86 and new layout Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-24feat(nekit)!: Change dbg_break_point to DBG_TRAP.Amlal El Mahrouss
BREAKING CHANGE: renamed symbol to match the codebase's macro style. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat(kernel/libSystem): Lots of improvements, see below.Amlal El Mahrouss
what: - Reworked NetworkDevice. - Reworked RTL8139 driver. - Don't assert fCleanup on NetworkDevice destructor. - Add new Ref types in libSystem. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23refactor(kernel): Refactor HeapMgr functions.Amlal El Mahrouss
what: - mm_new_ptr is now mm_alloc_ptr. - mm_delete_ptr is now mm_free_ptr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat!(Kernel): Improvements on the BitMapMgr, HTS, and UPS.Amlal El Mahrouss
other: - Add ZXD header file. - Reworking AMD64 interrupts. - Improved HTS's design implementation. - Improved UPS's balancing implementation. breaking changes: - Rename MemoryMgr to HeapMgr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat!(kernel): Rename NewKit to NeKit.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-21feat(kernel): Architectural changes, and introducing a kKernelVM.Amlal El Mahrouss
see code for more details. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-20wip: feat(kernel): Add stub for ring-3 switch on the AP side of theAmlal El Mahrouss
scheduling system. why? - To let the code run in user mode, as specified in the design. next: - Debug the #06 interrupt when switching to task. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-19feat(kernel, sched): Architectural improvements, and cleaned upAmlal El Mahrouss
the codebase from previous implementations that didn't work/scale well. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>