diff --git a/.ARCB.ko.cmd b/.ARCB.ko.cmd index e48e0ad..7703a4e 100644 --- a/.ARCB.ko.cmd +++ b/.ARCB.ko.cmd @@ -1 +1 @@ -cmd_/home/elimin8/Work/Repos/ARCB/ARCB.ko := ld -r -m elf_x86_64 --build-id=sha1 -T scripts/module.lds -o /home/elimin8/Work/Repos/ARCB/ARCB.ko /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o /home/elimin8/Work/Repos/ARCB/ARCB.mod.o; true +cmd_/home/atoumia/Repos/ARCB/ARCB.ko := ld -r -m elf_x86_64 --build-id=sha1 -T scripts/module.lds -o /home/atoumia/Repos/ARCB/ARCB.ko /home/atoumia/Repos/ARCB/ARCB.prelink.o /home/atoumia/Repos/ARCB/ARCB.mod.o; true diff --git a/.ARCB.mod.cmd b/.ARCB.mod.cmd index e456138..9dbf27e 100644 --- a/.ARCB.mod.cmd +++ b/.ARCB.mod.cmd @@ -1 +1 @@ -cmd_/home/elimin8/Work/Repos/ARCB/ARCB.mod := { echo /home/elimin8/Work/Repos/ARCB/ARCB.o; echo; } > /home/elimin8/Work/Repos/ARCB/ARCB.mod +cmd_/home/atoumia/Repos/ARCB/ARCB.mod := { echo /home/atoumia/Repos/ARCB/ARCB.o; echo; } > /home/atoumia/Repos/ARCB/ARCB.mod diff --git a/.ARCB.mod.o.cmd b/.ARCB.mod.o.cmd index 7376925..d488b31 100644 --- a/.ARCB.mod.o.cmd +++ b/.ARCB.mod.o.cmd @@ -1,8 +1,8 @@ -cmd_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := gcc -Wp,-MMD,/home/elimin8/Work/Repos/ARCB/.ARCB.mod.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB.mod"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/elimin8/Work/Repos/ARCB/ARCB.mod.o /home/elimin8/Work/Repos/ARCB/ARCB.mod.c +cmd_/home/atoumia/Repos/ARCB/ARCB.mod.o := gcc -Wp,-MMD,/home/atoumia/Repos/ARCB/.ARCB.mod.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB.mod"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/atoumia/Repos/ARCB/ARCB.mod.o /home/atoumia/Repos/ARCB/ARCB.mod.c -source_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := /home/elimin8/Work/Repos/ARCB/ARCB.mod.c +source_/home/atoumia/Repos/ARCB/ARCB.mod.o := /home/atoumia/Repos/ARCB/ARCB.mod.c -deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := \ +deps_/home/atoumia/Repos/ARCB/ARCB.mod.o := \ $(wildcard include/config/MODULE_UNLOAD) \ $(wildcard include/config/RETPOLINE) \ include/linux/compiler-version.h \ @@ -707,6 +707,6 @@ deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := \ $(wildcard include/config/MGEODEGX1) \ $(wildcard include/config/MGEODE_LX) \ -/home/elimin8/Work/Repos/ARCB/ARCB.mod.o: $(deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o) +/home/atoumia/Repos/ARCB/ARCB.mod.o: $(deps_/home/atoumia/Repos/ARCB/ARCB.mod.o) -$(deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o): +$(deps_/home/atoumia/Repos/ARCB/ARCB.mod.o): diff --git a/.ARCB.o.cmd b/.ARCB.o.cmd index f2d3ecc..8561d97 100644 --- a/.ARCB.o.cmd +++ b/.ARCB.o.cmd @@ -1,8 +1,8 @@ -cmd_/home/elimin8/Work/Repos/ARCB/ARCB.o := gcc -Wp,-MMD,/home/elimin8/Work/Repos/ARCB/.ARCB.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/elimin8/Work/Repos/ARCB/ARCB.o /home/elimin8/Work/Repos/ARCB/ARCB.c +cmd_/home/atoumia/Repos/ARCB/ARCB.o := gcc -Wp,-MMD,/home/atoumia/Repos/ARCB/.ARCB.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/atoumia/Repos/ARCB/ARCB.o /home/atoumia/Repos/ARCB/ARCB.c -source_/home/elimin8/Work/Repos/ARCB/ARCB.o := /home/elimin8/Work/Repos/ARCB/ARCB.c +source_/home/atoumia/Repos/ARCB/ARCB.o := /home/atoumia/Repos/ARCB/ARCB.c -deps_/home/elimin8/Work/Repos/ARCB/ARCB.o := \ +deps_/home/atoumia/Repos/ARCB/ARCB.o := \ include/linux/compiler-version.h \ $(wildcard include/config/CC_VERSION_TEXT) \ include/linux/kconfig.h \ @@ -674,6 +674,6 @@ deps_/home/elimin8/Work/Repos/ARCB/ARCB.o := \ $(wildcard include/config/MODULES_USE_ELF_RELA) \ arch/x86/include/asm/orc_types.h \ -/home/elimin8/Work/Repos/ARCB/ARCB.o: $(deps_/home/elimin8/Work/Repos/ARCB/ARCB.o) +/home/atoumia/Repos/ARCB/ARCB.o: $(deps_/home/atoumia/Repos/ARCB/ARCB.o) -$(deps_/home/elimin8/Work/Repos/ARCB/ARCB.o): +$(deps_/home/atoumia/Repos/ARCB/ARCB.o): diff --git a/.ARCB.prelink.o.cmd b/.ARCB.prelink.o.cmd index 58e8d57..183330b 100644 --- a/.ARCB.prelink.o.cmd +++ b/.ARCB.prelink.o.cmd @@ -1 +1 @@ -cmd_/home/elimin8/Work/Repos/ARCB/ARCB.prelink.o := ld -m elf_x86_64 -r -o /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o --whole-archive /home/elimin8/Work/Repos/ARCB/ARCB.o ; ./tools/objtool/objtool orc generate --module --lto --ibt --no-fp --retpoline --uaccess --sls /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o +cmd_/home/atoumia/Repos/ARCB/ARCB.prelink.o := ld -m elf_x86_64 -r -o /home/atoumia/Repos/ARCB/ARCB.prelink.o --whole-archive /home/atoumia/Repos/ARCB/ARCB.o ; ./tools/objtool/objtool orc generate --module --lto --ibt --no-fp --retpoline --uaccess --sls /home/atoumia/Repos/ARCB/ARCB.prelink.o diff --git a/.Module.symvers.cmd b/.Module.symvers.cmd index 5000dd4..d17429f 100755 --- a/.Module.symvers.cmd +++ b/.Module.symvers.cmd @@ -1 +1 @@ -cmd_/home/elimin8/Work/Repos/ARCB/Module.symvers := sed 's/\.ko$$/.prelink\.o/' /home/elimin8/Work/Repos/ARCB/modules.order | scripts/mod/modpost -a -o /home/elimin8/Work/Repos/ARCB/Module.symvers -e -i Module.symvers -N -T - +cmd_/home/atoumia/Repos/ARCB/Module.symvers := sed 's/\.ko$$/.prelink\.o/' /home/atoumia/Repos/ARCB/modules.order | scripts/mod/modpost -a -o /home/atoumia/Repos/ARCB/Module.symvers -e -i Module.symvers -N -T - diff --git a/.modules.order.cmd b/.modules.order.cmd index 9ac8eea..7a2448d 100755 --- a/.modules.order.cmd +++ b/.modules.order.cmd @@ -1 +1 @@ -cmd_/home/elimin8/Work/Repos/ARCB/modules.order := { echo /home/elimin8/Work/Repos/ARCB/ARCB.ko; :; } | awk '!x[$$0]++' - > /home/elimin8/Work/Repos/ARCB/modules.order +cmd_/home/atoumia/Repos/ARCB/modules.order := { echo /home/atoumia/Repos/ARCB/ARCB.ko; :; } | awk '!x[$$0]++' - > /home/atoumia/Repos/ARCB/modules.order diff --git a/ARCB.mod b/ARCB.mod deleted file mode 100644 index 21a0f03..0000000 --- a/ARCB.mod +++ /dev/null @@ -1,2 +0,0 @@ -/home/elimin8/Work/Repos/ARCB/ARCB.o - diff --git a/ARCB.mod.c b/ARCB.mod.c deleted file mode 100644 index 0bf2dde..0000000 --- a/ARCB.mod.c +++ /dev/null @@ -1,31 +0,0 @@ -#include -#define INCLUDE_VERMAGIC -#include -#include -#include -#include - -BUILD_SALT; -BUILD_LTO_INFO; - -MODULE_INFO(vermagic, VERMAGIC_STRING); -MODULE_INFO(name, KBUILD_MODNAME); - -__visible struct module __this_module -__section(".gnu.linkonce.this_module") = { - .name = KBUILD_MODNAME, - .init = init_module, -#ifdef CONFIG_MODULE_UNLOAD - .exit = cleanup_module, -#endif - .arch = MODULE_ARCH_INIT, -}; - -#ifdef CONFIG_RETPOLINE -MODULE_INFO(retpoline, "Y"); -#endif - -MODULE_INFO(depends, ""); - - -MODULE_INFO(srcversion, "FB11FBFF1A01E059FE76C13"); diff --git a/ARCB.mod.o b/ARCB.mod.o deleted file mode 100644 index ea5480e..0000000 Binary files a/ARCB.mod.o and /dev/null differ diff --git a/ARCB.o b/ARCB.o deleted file mode 100644 index f570690..0000000 Binary files a/ARCB.o and /dev/null differ diff --git a/ARCB.prelink.o b/ARCB.prelink.o deleted file mode 100644 index 673a868..0000000 Binary files a/ARCB.prelink.o and /dev/null differ diff --git a/Makefile b/Makefile index 2949b62..472b4dd 100755 --- a/Makefile +++ b/Makefile @@ -2,7 +2,9 @@ obj-m += ARCB.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules + rm -f *.o *.mod* *.order *.symvers + mv ARCB.ko bin clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean - rm -rf *.o *.mod* *.ko + rm -f *.o *.mod* *.ko diff --git a/Module.symvers b/Module.symvers deleted file mode 100755 index e69de29..0000000 diff --git a/ARCB.ko b/bin/ARCB.ko similarity index 87% rename from ARCB.ko rename to bin/ARCB.ko index 2e08344..03d093f 100644 Binary files a/ARCB.ko and b/bin/ARCB.ko differ diff --git a/king.ko b/king.ko deleted file mode 100755 index 14e9a2b..0000000 Binary files a/king.ko and /dev/null differ diff --git a/king.mod b/king.mod deleted file mode 100755 index ce68ce3..0000000 --- a/king.mod +++ /dev/null @@ -1,2 +0,0 @@ -/home/x00010/Work/Repos/EmperorClientKing/king.o - diff --git a/king.mod.c b/king.mod.c deleted file mode 100755 index 0bf2dde..0000000 --- a/king.mod.c +++ /dev/null @@ -1,31 +0,0 @@ -#include -#define INCLUDE_VERMAGIC -#include -#include -#include -#include - -BUILD_SALT; -BUILD_LTO_INFO; - -MODULE_INFO(vermagic, VERMAGIC_STRING); -MODULE_INFO(name, KBUILD_MODNAME); - -__visible struct module __this_module -__section(".gnu.linkonce.this_module") = { - .name = KBUILD_MODNAME, - .init = init_module, -#ifdef CONFIG_MODULE_UNLOAD - .exit = cleanup_module, -#endif - .arch = MODULE_ARCH_INIT, -}; - -#ifdef CONFIG_RETPOLINE -MODULE_INFO(retpoline, "Y"); -#endif - -MODULE_INFO(depends, ""); - - -MODULE_INFO(srcversion, "FB11FBFF1A01E059FE76C13"); diff --git a/king.mod.o b/king.mod.o deleted file mode 100755 index b62447c..0000000 Binary files a/king.mod.o and /dev/null differ diff --git a/king.o b/king.o deleted file mode 100755 index c9a8e94..0000000 Binary files a/king.o and /dev/null differ diff --git a/modules.order b/modules.order deleted file mode 100755 index 9a2ae60..0000000 --- a/modules.order +++ /dev/null @@ -1 +0,0 @@ -/home/elimin8/Work/Repos/ARCB/ARCB.ko