Bug 682807

Summary: sssd_nss core dumps with certain lookups
Product: Red Hat Enterprise Linux 6 Reporter: Guil Barros <gbarros>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: benl, dpal, grajaiya, jgalipea, kbanerje, pbatkowski, prc
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.5.1-11.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 682808 (view as bug list) Environment:
Last Closed: 2011-05-19 11:40:29 UTC Type: ---
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:    
Bug Blocks: 682808    

Description Guil Barros 2011-03-07 16:05:25 UTC
Description of problem:
sssd_nss is segfaulting with certain netgroups lookups when using sudo.


Version-Release number of selected component (if applicable):
sssd-1.5.1-5.el6.x86_64
libdhash-0.4.2-6.el6.x86_64

How reproducible:
always?

Steps to Reproduce:
unknown trigger

# time sudo -l
Matching Defaults entries for root on this host:
always_set_home, env_reset, listpw=always, logfile=/var/log/sudo.log, logfile=/var/adm/sudo.log, always_set_home

Runas and Command-specific defaults for root:

User root may run the following commands on this host:
(ALL) ALL
(root) (ALL) ALL

real 0m16.969s
user 0m0.016s
sys 0m0.116s 

  
Actual results:
Syslog message: KERN.INFO: Mar  3 12:21:25 <host> kernel: sssd_nss[3002]: segfault at 0 ip 00000033bea00a5c sp 00007fff1f42e738 error 4 in libdhash.so.1.0.0[33bea00000+3000]


Expected results:
no segfault and sudo return in 1~2s

Comment 4 Stephen Gallagher 2011-03-07 16:10:33 UTC
Tracked upstream by https://fedorahosted.org/sssd/ticket/817

Comment 6 Kaushik Banerjee 2011-04-29 18:47:17 UTC
In 1.5.1-10:
"getent -s sss netgroup non-existant-group" has sssd_nss crashing at the end of cache lifetime.

In 1.5.1-32:
"getent -s sss netgroup non-existant-group" doesn't crash sssd at the end of cache lifetime anymore.


Verified in version:
# rpm -qi sssd | head
Name        : sssd                         Relocations: (not relocatable)
Version     : 1.5.1                             Vendor: Red Hat, Inc.
Release     : 32.el6                        Build Date: Fri 29 Apr 2011 09:24:02 PM IST
Install Date: Fri 29 Apr 2011 11:49:07 PM IST      Build Host: hs20-bc2-4.build.redhat.com
Group       : Applications/System           Source RPM: sssd-1.5.1-32.el6.src.rpm
Size        : 3464087                          License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://fedorahosted.org/sssd/
Summary     : System Security Services Daemon

Comment 7 errata-xmlrpc 2011-05-19 11:40:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0560.html

Comment 8 errata-xmlrpc 2011-05-19 13:09:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0560.html