MAP_PRIVATE to capture memfd pages before closing the fd

https://github.com/upx/upx/issues/710

	modified:   stub/src/amd64-linux.elf-so_main.c
	modified:   stub/src/i386-linux.elf-so_main.c

	modified:   stub/amd64-linux.elf-so_fold.h
	modified:   stub/arm.v4a-linux.elf-so_fold.h
	modified:   stub/arm.v5a-linux.elf-so_fold.h
	modified:   stub/arm64-linux.elf-so_fold.h
	modified:   stub/i386-linux.elf-so_fold.h
This commit is contained in:
John Reiser
2023-09-20 13:10:29 -07:00
parent d11fc71e79
commit bfeed2ab9a
7 changed files with 34 additions and 34 deletions
+5 -5
View File
@@ -32,8 +32,8 @@
#define STUB_AMD64_LINUX_ELF_SO_FOLD_SIZE 17413
#define STUB_AMD64_LINUX_ELF_SO_FOLD_ADLER32 0xfe8ef6c4
#define STUB_AMD64_LINUX_ELF_SO_FOLD_CRC32 0xbf9bb8fd
#define STUB_AMD64_LINUX_ELF_SO_FOLD_ADLER32 0xbbc8f6c7
#define STUB_AMD64_LINUX_ELF_SO_FOLD_CRC32 0xa1aa114b
unsigned char stub_amd64_linux_elf_so_fold[17413] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -71,7 +71,7 @@ unsigned char stub_amd64_linux_elf_so_fold[17413] = {
/* 0x0200 */ 235, 91,232, 4, 0, 0, 0,117,112,120, 0, 95,190, 0, 0, 0,
/* 0x0210 */ 0,232, 0, 0, 0, 0,137,195,232, 7, 0, 0, 0, 15, 5, 95,
/* 0x0220 */ 94, 90,195, 0, 94,186, 6, 0, 0, 0,137,199,232, 0, 0, 0,
/* 0x0230 */ 0, 65,185, 0, 0, 0, 0, 65,137,216,185, 1, 0, 0, 0,186,
/* 0x0230 */ 0, 65,185, 0, 0, 0, 0, 65,137,216,185, 2, 0, 0, 0,186,
/* 0x0240 */ 5, 0, 0, 0,190, 6, 0, 0, 0,191, 0, 0, 0, 0,232, 0,
/* 0x0250 */ 0, 0, 0, 72,137,197,137,223,232, 0, 0, 0, 0, 72,137,232,
/* 0x0260 */ 72,139, 92, 36, 8, 72,139,108, 36, 16, 72,131,196, 24,195, 72,
@@ -121,7 +121,7 @@ unsigned char stub_amd64_linux_elf_so_fold[17413] = {
/* 0x0520 */ 199,232, 0, 0, 0, 0,139, 84, 36, 28, 43, 85, 0,139,117, 0,
/* 0x0530 */ 76, 1,254,137,223,232, 0, 0, 0, 0,139,108, 36, 28, 72,137,
/* 0x0540 */ 238, 76,137,255,232, 0, 0, 0, 0, 76,137,231,232, 0, 0, 0,
/* 0x0550 */ 0, 65,185, 0, 0, 0, 0, 65,137,216,185, 17, 0, 0, 0,137,
/* 0x0550 */ 0, 65,185, 0, 0, 0, 0, 65,137,216,185, 18, 0, 0, 0,137,
/* 0x0560 */ 194, 72,137,238, 76,137,255,232, 0, 0, 0, 0,137,223,232, 0,
/* 0x0570 */ 0, 0, 0, 72,199, 68, 36, 16, 0, 0, 0, 0, 77, 57,244, 15,
/* 0x0580 */ 131, 9, 2, 0, 0, 65,131, 60, 36, 1, 15,133,241, 1, 0, 0,
@@ -152,7 +152,7 @@ unsigned char stub_amd64_linux_elf_so_fold[17413] = {
/* 0x0710 */ 68, 36, 16, 65,246, 68, 36, 4, 1,116, 72,137,238, 3,116, 36,
/* 0x0720 */ 80, 72,139,124, 36, 8,232, 0, 0, 0, 0, 76,137,231,232, 0,
/* 0x0730 */ 0, 0, 0,139,116, 36, 80, 72,139,124, 36, 32, 73, 3,124, 36,
/* 0x0740 */ 16, 76, 1,239, 65,185, 0, 0, 0, 0, 69,137,248,185, 17, 0,
/* 0x0740 */ 16, 76, 1,239, 65,185, 0, 0, 0, 0, 69,137,248,185, 18, 0,
/* 0x0750 */ 0, 0,137,194,232, 0, 0, 0, 0, 68,137,255,232, 0, 0, 0,
/* 0x0760 */ 0,235, 30, 76,137,231,232, 0, 0, 0, 0, 73,139,116, 36, 40,
/* 0x0770 */ 72,139,124, 36, 32, 73, 3,124, 36, 16,137,194,232, 0, 0, 0,