https://bugs.kde.org/show_bug.cgi?id=506970

            Bug ID: 506970
           Summary: mmap needs an EBADF fd_allowed check
    Classification: Developer tools
           Product: valgrind
      Version First 3.25.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The LTP mmap08 testcase fails with:
mmap08.c:28: TFAIL: mmap(NULL, page_sz, PROT_WRITE, MAP_FILE | MAP_SHARED, fd,
0) expected EBADF: EINVAL (22)
The test closes fd before calling mmap and expects EBADF not EINVAL.

There should probably be a fd_allowed check on arg5 in
ML_(generic_PRE_sys_mmap)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to