Re: [PATCH] ext4: fix memory leak in ext4_fill_super

From
Alexey Makhalov <hidden>
Date
2021-05-21 07:43:53
Also in
stable
Reply to
Theodore Y. Ts'o, 2021-05-21
Hi Ted,

Good point! This paragraph can be just dropped as the next one
describes the issue with superblock re-read. Will send v2 shortly.

Thanks,
—Alexey
On May 20, 2021, at 9:43 PM, Theodore Y. Ts'o [off-list ref] wrote:

On Wed, Apr 28, 2021 at 10:19:28PM +0000, Alexey Makhalov wrote:
quoted
I've recently discovered that doing infinite loop of
 systemctl start <ext4_on_lvm>.mount, and
 systemctl stop <ext4_on_lvm>.mount
linearly increases percpu allocator memory consumption.
In several hours, it might lead to system instability by
consuming most of the memory.

Bug is not reproducible when the ext4 filesystem is on
physical partition, but it is persistent when ext4 is on
logical volume.
Why is this the case?  It sounds like we're looking a buffer for each
mount where the block size is not 1k.  It shouldn't matter whether it
is a physical partition or not.

				- Ted
  

Attachments

Thread (6 messages) 6 messages, 2 authors, last reply 2021-05-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help