lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250908162220.480d7014cc6c6ad2e14748c5@linux-foundation.org>
Date: Mon, 8 Sep 2025 16:22:20 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Vernon Yang <vernon2gm@...il.com>
Cc: hughd@...gle.com, baolin.wang@...ux.alibaba.com, da.gomez@...sung.com,
 linux-mm@...ck.org, linux-kernel@...r.kernel.org, Vernon Yang
 <yanglincheng@...inos.cn>
Subject: Re: [PATCH] mm: shmem: fix too little space for tmpfs only fallback
 4KB

On Mon,  8 Sep 2025 20:31:28 +0800 Vernon Yang <vernon2gm@...il.com> wrote:

> From: Vernon Yang <yanglincheng@...inos.cn>
> 
> When the system memory is sufficient, allocating memory is always
> successful, but when tmpfs size is low (e.g. 1MB), it falls back
> directly from 2MB to 4KB, and other small granularity (8KB ~ 1024KB)
> will not be tried.
> 
> Therefore add check whether the remaining space of tmpfs is sufficient
> for allocation. If there is too little space left, try smaller large
> folio.

Thanks.

What are the effects of this change?  I'm assuming it's an
*improvement*, rather than a fix for some misbehavior?


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ