This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/25383] New: where_is_shmfs/__shm_directory/SHM_GET_NAME may cause shm_open to pick wrong directory


https://sourceware.org/bugzilla/show_bug.cgi?id=25383

            Bug ID: 25383
           Summary: where_is_shmfs/__shm_directory/SHM_GET_NAME may cause
                    shm_open to pick wrong directory
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

If /dev/shm does not exist, where_is_shmfs picks an arbitrary tmpfs mount point
from /proc/mounts. It does not even check if the permissions are 1777 as
expected. This wrong decision is cached and used even if /dev/shm becomes
available later.

I think we should hard-code /dev/shm instead.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]