Bug 1491360
| Summary: | Syscall param epoll_pwait(sigmask) points to unaddressable byte(s) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sergey Kolosov <skolosov> |
| Component: | valgrind | Assignee: | Mark Wielaard <mjw> |
| Status: | CLOSED ERRATA | QA Contact: | Miloš Prchlík <mprchlik> |
| Severity: | unspecified | Docs Contact: | Vladimír Slávik <vslavik> |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | arjun, codonell, dj, dodji, extras-qa, fweimer, jakub, law, lslebodn, mbenitez, mcermak, mfabian, mjw, mjw, mprchlik, ohudlick, pfrankli, siddhesh, vslavik |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | valgrind-3.13.0-9.el7 | Doc Type: | No Doc Update |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | 1462258 | Environment: | |
| Last Closed: | 2018-04-10 13:14:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1462258 | ||
| Bug Blocks: | |||
|
Description
Sergey Kolosov
2017-09-13 14:54:43 UTC
Reproduced on RHEL-7.4 aarch64, valgrind-3.12.0-8.el7 [user@host ~]# valgrind --track-origins=yes ./a.out 1111 ==24396== Memcheck, a memory error detector ==24396== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==24396== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==24396== Command: ./a.out 1111 ==24396== ==24396== Syscall param epoll_pwait(sigmask) points to unaddressable byte(s) ==24396== at 0x498B7BC: epoll_pwait (in /usr/lib64/libc-2.17.so) ==24396== by 0x400EF3: main (v.c:131) ==24396== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==24396== ^C==24396== ==24396== Process terminating with default action of signal 2 (SIGINT) ==24396== at 0x498B7BC: epoll_pwait (in /usr/lib64/libc-2.17.so) ==24396== by 0x400EF3: main (v.c:131) ==24396== ==24396== HEAP SUMMARY: ==24396== in use at exit: 1,024 bytes in 1 blocks ==24396== total heap usage: 5 allocs, 4 frees, 1,876 bytes allocated ==24396== ==24396== LEAK SUMMARY: ==24396== definitely lost: 0 bytes in 0 blocks ==24396== indirectly lost: 0 bytes in 0 blocks ==24396== possibly lost: 0 bytes in 0 blocks ==24396== still reachable: 1,024 bytes in 1 blocks ==24396== suppressed: 0 bytes in 0 blocks ==24396== Rerun with --leak-check=full to see details of leaked memory ==24396== ==24396== For counts of detected and suppressed errors, rerun with: -v ==24396== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Upstream already has a fix with an easy testcase reproducer. And this fix has already been backported to the Fedora valgrind package. # KDE#381289 epoll_pwait can have a NULL sigmask. Patch5: valgrind-3.13.0-epoll_pwait.patch Verified with build valgrind-3.13.0-10.el7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0773 |