Skip to content

Commit 8af63f3

Browse files
dpaliulis-msftbenhillis
authored andcommitted
config: enabling madvise syscalls for user mode deallocations (v6.18)
This config change includes madvise.o in the final build image, enabling madvise syscalls. This is necessary because MiMalloc (the allocator for OpenHCL) uses madvise syscalls to deallocate memory. Without this change, madvise is excluded from the final build image resulting in the syscalls for deallocating memory from the user mode being unrecognized by the kernel. This results in a major memory leak where no user mode process is able to free physical memory. OpenHCL builds with the kernel with this fix indicate steady memory usage in a reproduction scenario that would otherwise expose the memory leak. Duplicate of PR 133 for kernel version 6.18
1 parent aa7a7be commit 8af63f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Microsoft/hcl-arm64.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ CONFIG_SHMEM=y
206206
CONFIG_AIO=y
207207
CONFIG_IO_URING=y
208208
# CONFIG_IO_URING_MOCK_FILE is not set
209-
# CONFIG_ADVISE_SYSCALLS is not set
209+
CONFIG_ADVISE_SYSCALLS=y
210210
CONFIG_MEMBARRIER=y
211211
# CONFIG_KCMP is not set
212212
# CONFIG_RSEQ is not set

Microsoft/hcl-x64.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ CONFIG_SHMEM=y
229229
CONFIG_AIO=y
230230
CONFIG_IO_URING=y
231231
# CONFIG_IO_URING_MOCK_FILE is not set
232-
# CONFIG_ADVISE_SYSCALLS is not set
232+
CONFIG_ADVISE_SYSCALLS=y
233233
CONFIG_MEMBARRIER=y
234234
# CONFIG_KCMP is not set
235235
# CONFIG_RSEQ is not set

0 commit comments

Comments
 (0)