Red Hat Bugzilla – Bug 1464897
"setfacl --restore" fails due to use of uninitialized memory
Last modified: 2017-08-22 13:28:39 EDT
This bug has been copied from bug #1451801 and has been proposed to be backported to 6.9 z-stream (EUS).
Kamil, can you please provide me the Cause/Consequence/Fix/Result information in the Doc Text field? It helps me to prepare the problem description for the erratum. Thanks.
Done. Sorry for the delay.
Successfully verified by TJ#1957380. Valgrind output on old version: ==21935== Memcheck, a memory error detector ==21935== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==21935== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==21935== Command: setfacl --restore testFile.txt ==21935== ==21935== Conditional jump or move depends on uninitialised value(s) ==21935== at 0x4032FA: do_set (do_set.c:317) ==21935== by 0x4021A1: restore (setfacl.c:187) ==21935== by 0x4029E4: main (setfacl.c:575) ==21935== ==21935== ==21935== HEAP SUMMARY: ==21935== in use at exit: 0 bytes in 0 blocks ==21935== total heap usage: 91 allocs, 91 frees, 12,982 bytes allocated ==21935== ==21935== All heap blocks were freed -- no leaks are possible ==21935== ==21935== For counts of detected and suppressed errors, rerun with: -v ==21935== Use --track-origins=yes to see where uninitialised values come from ==21935== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 8 from 6) on new version: ==24193== Memcheck, a memory error detector ==24193== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==24193== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==24193== Command: setfacl --restore testFile.txt ==24193== ==24193== ==24193== HEAP SUMMARY: ==24193== in use at exit: 0 bytes in 0 blocks ==24193== total heap usage: 91 allocs, 91 frees, 12,982 bytes allocated ==24193== ==24193== All heap blocks were freed -- no leaks are possible ==24193== ==24193== For counts of detected and suppressed errors, rerun with: -v ==24193== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 8 from 6)
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-2017:2501