Re: [PATCH] ARC: mm: fix leakage of memory allocated for PTE

2022-10-19 Thread Pavel Kozlov
> Good catch. Curious how did you find it. KMEMCHECK or some such or just oom. I've run glibc tests with 5.16 kernel and got many oom-killer messages and even kernel panic because lack of memory. These symptoms pointed to an issue. kmemleak didn't show anything. Didn't try kmemcheck. I

Re: [PATCH] ARC: mm: fix leakage of memory allocated for PTE

2022-10-18 Thread Vineet Gupta
On 10/17/22 09:11, pavel.koz...@synopsys.com wrote: From: Pavel Kozlov Since commit d9820ff ("ARC: mm: switch pgtable_t back to struct page *") a memory leakage problem occurs. Memory allocated for page table entries not released during process termination. This issue can be reproduced by a

[PATCH] ARC: mm: fix leakage of memory allocated for PTE

2022-10-17 Thread Pavel . Kozlov
From: Pavel Kozlov Since commit d9820ff ("ARC: mm: switch pgtable_t back to struct page *") a memory leakage problem occurs. Memory allocated for page table entries not released during process termination. This issue can be reproduced by a small program that allocates a large amount of memory.