Bug 1216576 - libhugetlbfs; ERROR: Line too long when parsing mounts
Summary: libhugetlbfs; ERROR: Line too long when parsing mounts
Status: IN_PROGRESS
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Thomas Abraham
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 18:20 UTC by Thomas Abraham
Modified: 2024-07-12 16:31 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (255 bytes, patch)
2023-10-25 18:21 UTC, Thomas Abraham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Abraham 2023-10-25 18:20:52 UTC
The buffer used for parsing the mount list is not large enough.

The buffer is artificially set at 2046, and will trigger this error when encountering a line that exceeds this.

In container environments using overlay filesystems, the use of a large number of layers can easily result in valid entries which exceed this buffer size resulting in the error and the mount list not being processed completely.
Comment 1 Thomas Abraham 2023-10-25 18:21:55 UTC
Created attachment 870457 [details]
proposed patch

This is a simple patch to increase the buffer size to resolve the problem.
Comment 2 Thomas Abraham 2023-10-25 18:23:21 UTC
I proposed a more involved fix has been proposed upstream
https://github.com/libhugetlbfs/libhugetlbfs/pull/77/commits/

The proposed patch attached here is a more conservative approach to resolving the issue.
Comment 5 Maintenance Automation 2023-11-30 12:30:02 UTC
SUSE-RU-2023:4620-1: An update that has two fixes can now be installed.

Category: recommended (moderate)
Bug References: 1213639, 1216576
Sources used:
openSUSE Leap Micro 5.3 (src): libhugetlbfs-2.20-150000.3.8.1
openSUSE Leap Micro 5.4 (src): libhugetlbfs-2.20-150000.3.8.1
openSUSE Leap 15.4 (src): libhugetlbfs-2.20-150000.3.8.1
openSUSE Leap 15.5 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro 5.3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro 5.4 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro 5.5 (src): libhugetlbfs-2.20-150000.3.8.1
Basesystem Module 15-SP4 (src): libhugetlbfs-2.20-150000.3.8.1
Basesystem Module 15-SP5 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Enterprise Storage 7.1 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE CaaS Platform 4.0 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro 5.1 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro 5.2 (src): libhugetlbfs-2.20-150000.3.8.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): libhugetlbfs-2.20-150000.3.8.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Maintenance Automation 2024-07-12 16:31:34 UTC
SUSE-RU-2024:2465-1: An update that has two fixes can now be installed.

Category: recommended (moderate)
Bug References: 1213639, 1216576
Maintenance Incident: [SUSE:Maintenance:31456](https://smelt.suse.de/incident/31456/)
Sources used:
SUSE Linux Enterprise Micro 5.5 (src):
 libhugetlbfs-2.20-150000.3.8.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.