Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
make
mv syscallhook.kpm demo-syscallhook.kpm

cd ../demo-kconfig
make
mv kconfig.kpm demo-kconfig.kpm

- name: Upload elf
uses: actions/upload-artifact@v4
with:
Expand All @@ -79,6 +83,7 @@ jobs:
kpms/demo-hello/demo-hello.kpm
kpms/demo-inlinehook/demo-inlinehook.kpm
kpms/demo-syscallhook/demo-syscallhook.kpm
kpms/demo-kconfig/demo-kconfig.kpm
generateReleaseNotes: true
allowUpdates: true
replacesArtifacts: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
make
mv syscallhook.kpm demo-syscallhook.kpm

cd ../demo-kconfig
make
mv kconfig.kpm demo-kconfig.kpm

- name: Upload elf
uses: actions/upload-artifact@v3
with:
Expand All @@ -95,6 +99,7 @@ jobs:
kpms/demo-hello/demo-hello.kpm
kpms/demo-inlinehook/demo-inlinehook.kpm
kpms/demo-syscallhook/demo-syscallhook.kpm
kpms/demo-kconfig/demo-kconfig.kpm
generateReleaseNotes: true
allowUpdates: true
replacesArtifacts: true
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Linux 3.18 - 6.6 (theoretically)
- [vmlinux-to-elf](https://github.com/marin-m/vmlinux-to-elf): Some ideas for parsing kernel symbols.
- [android-inline-hook](https://github.com/bytedance/android-inline-hook): Some code for fixing arm64 inline hook instructions.
- [tlsf](https://github.com/mattconte/tlsf): Memory allocator used for KPM. (Need another to allocate ROX memory.)
- [puff](https://github.com/madler/zlib/tree/master/contrib/puff): Minimal inflate (zlib License) used to decompress the kernel's CONFIG_IKCONFIG data for KPM kernel config resolution.

## License

Expand Down
6 changes: 4 additions & 2 deletions kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ BASE_SRCS += base/hotpatch.c
BASE_SRCS += base/hmem.c
BASE_SRCS += base/predata.c
BASE_SRCS += base/symbol.c
BASE_SRCS += base/baselib.c
BASE_SRCS += base/sha256.c
BASE_SRCS += base/baselib.c
BASE_SRCS += base/sha256.c
BASE_SRCS += base/puff.c
BASE_SRCS += base/setjmp.S

BASE_SRCS += $(wildcard patch/*.c)
BASE_SRCS += $(wildcard patch/common/*.c)
Expand Down
Loading