libhugetlbfs uses fixed size buffer to read from /proc/mounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libhugetlbfs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Some applications (Kubernetes/Docker) create rather long lines in /proc/mounts, and libhugetlbfs emits an error when it attempts to read one of lines with a size greater than 2048.
See the method find_mounts starting near line 619 in hugeutils.c (https:/
Error message: libhugetlbfs: ERROR: Line too long when parsing mounts
From strace of the process emitting that error:
read(3, "overlay /var/lib/
write(2, "libhugetlbfs", 12) = 12
write(2, ": ERROR: Line too long when pars"..., 43) = 43
close(3) = 0
Example line:
overlay /var/lib/
---
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
AudioDevicesInUse:
Cannot stat file /proc/13951/fd/12: Permission denied
Cannot stat file /proc/20309/fd/12: Permission denied
Cannot stat file /proc/20309/fd/14: Permission denied
/dev/snd/
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2017-04-12 (512 days ago)
InstallationMedia: Kubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.157.20
RfKill:
Tags: xenial xenial
Uname: Linux 4.15.0-33-generic x86_64
UnreportableReason: The report belongs to a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
_MarkForUpload: False
dmi.bios.date: 05/05/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P2.10
dmi.board.name: B250M Pro4
dmi.board.vendor: ASRock
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.
affects: | linux (Ubuntu) → libhugetlbfs (Ubuntu) |
Changed in libhugetlbfs (Ubuntu): | |
status: | Confirmed → New |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1791320
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.