Bug 1392893

Summary: IPA: Uninitialized variable during subdomain check
Product: Red Hat Enterprise Linux 7 Reporter: Marcel Kolaja <mkolaja>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: Steeve Goveas <sgoveas>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: enewland, grajaiya, jhrozek, ksiddiqu, lslebodn, mkolaja, mkosek, mnavrati, mzidek, pbrezina, sgoveas, sssd-maint, sumenon, tlavigne, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.14.0-43.el7_3.2 Doc Type: Bug Fix
Doc Text:
Previously, the IPA subdomain provider code contained an unitialized variable. As a consequence, the sssd_be process was at a risk of terminating unexpectedly. The underlying source code has been modified to prevent sssd_be from crashing.
Story Points: ---
Clone Of: 1382598 Environment:
Last Closed: 2016-12-06 17:11:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1382598    
Bug Blocks:    

Description Marcel Kolaja 2016-11-08 12:27:19 UTC
This bug has been copied from bug #1382598 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 4 Sudhir Menon 2016-11-09 14:35:42 UTC
Verified as per https://bugzilla.redhat.com/show_bug.cgi?id=1382598#c2 on RHEL7.3u1

ipa-server-4.4.0-14.el7_3.x86_64
sssd-1.14.0-43.el7_3.2.x86_64

[root@master ~]# valgrind /usr/libexec/sssd/sssd_be --domain ipa.test --uid 0 --gid 0
    ==6374== Memcheck, a memory error detector
    ==6374== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
    ==6374== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
    ==6374== Command: /usr/libexec/sssd/sssd_be --domain ipa.test --uid 0 --gid 0
    ==6374==
    ==6374==
    ==6374== HEAP SUMMARY:
    ==6374==     in use at exit: 37,201 bytes in 68 blocks
    ==6374==   total heap usage: 1,433 allocs, 1,365 frees, 313,770 bytes allocated
    ==6374==
    ==6374== LEAK SUMMARY:
    ==6374==    definitely lost: 245 bytes in 4 blocks
    ==6374==    indirectly lost: 0 bytes in 0 blocks
    ==6374==      possibly lost: 5,126 bytes in 19 blocks
    ==6374==    still reachable: 31,830 bytes in 45 blocks
    ==6374==         suppressed: 0 bytes in 0 blocks
    ==6374== Rerun with --leak-check=full to see details of leaked memory
    ==6374==
    ==6374== For counts of detected and suppressed errors, rerun with: -v
    ==6374== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
    ***************************************

Comment 6 errata-xmlrpc 2016-12-06 17:11:57 UTC
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://rhn.redhat.com/errata/RHBA-2016-2870.html