[Buildroot] [Bug 6428] New: util-linux libmount segfaults with patch from buildroot

bugzilla at busybox.net bugzilla at busybox.net
Sun Aug 11 20:37:59 UTC 2013


           Summary: util-linux libmount segfaults with patch from
           Product: buildroot
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: daniel at exxm.de
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0

Created attachment 5012
  --> https://bugs.busybox.net/attachment.cgi?id=5012

The patch file package/util-linux/util-linux-001-sscanf-no-ms-as.patch
introduces a bug in libmount that causes /bin/mount to segfault most of the
time. As a result, the root filesystem does not get remounted read/write.
The reason it segfaults is that it passes a (char **) where sscanf expects a
(char *).

You could also use a different patch from
If you do so, be careful! It's against 2.21.1. 2.22 introduced the function
mnt_parse_swaps_line() which also makes use of the %a modifier. You'd need to
enhance the patch to fix mnt_parse_swaps_line() as well.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the buildroot mailing list