Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 639048 - broken internal linkage causes SIGSEGV within libaudit.so.1.0.0
Summary: broken internal linkage causes SIGSEGV within libaudit.so.1.0.0
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan F. Chadima
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 638978 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-30 17:06 UTC by Kamil Dudka
Modified: 2011-01-26 16:17 UTC (History)
5 users (show)

Fixed In Version: openssh-5.6p1-10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-26 16:17:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fix (deleted)
2010-09-30 17:06 UTC, Kamil Dudka
no flags Details | Diff

Description Kamil Dudka 2010-09-30 17:06:00 UTC
Created attachment 450818 [details]
fix

Description of problem:
#0  0x00007ffff7742c58 in audit_log_acct_message (audit_fd=4, type=1112, pgname=0x0, op=0x7ffff7fe4e30 "login", 
    name=0xfffffffff82107a0 <Address 0xfffffffff82107a0 out of bounds>, id=4294967295, host=0x0, 
    addr=0xfffffffff8212d80 <Address 0xfffffffff8212d80 out of bounds>, tty=0x7ffff7fdf097 "sshd", result=0) at audit_logging.c:391
#1  0x00007ffff7fb1de5 in linux_audit_record_event (uid=-1, username=<value optimized out>, hostname=0x0, 
    ip=0xfffffffff8212d80 <Address 0xfffffffff8212d80 out of bounds>, ttyn=0x7ffff7fdf097 "sshd", success=<value optimized out>)
    at audit-linux.c:54
#2  0x00007ffff7f99ad2 in userauth_finish (authctxt=0x7ffff8212180, authenticated=<value optimized out>, method=0x7ffff820f840 "none")
    at auth2.c:350
#3  0x00007ffff7f9a0a7 in input_userauth_request (type=<value optimized out>, seq=<value optimized out>, ctxt=0x7ffff8212180)
    at auth2.c:302
#4  0x00007ffff7fd22b6 in dispatch_run (mode=0, done=0x7ffff8212180, ctxt=0x7ffff8212180) at dispatch.c:98
#5  0x00007ffff7f8ddd6 in main (ac=<value optimized out>, av=<value optimized out>) at sshd.c:2041

(gdb) print canonical_host_ip
$1 = 0x7ffff8212d80 "127.0.0.1"

    0x7ffff8212d80 is the valid address
0xfffffffff8212d80 is a nonsense caused by broken linkage among openssh modules


Version-Release number of selected component (if applicable):
openssh-server-5.6p1-9.fc15.x86_64


Additional info:
Patch attached.

Comment 1 Kamil Dudka 2010-09-30 17:59:56 UTC
*** Bug 638978 has been marked as a duplicate of this bug. ***

Comment 2 Jan F. Chadima 2010-10-01 07:31:03 UTC
please test it

Comment 3 Kamil Dudka 2010-10-01 08:47:29 UTC
SCP/SFTP tests from curl's test-suite are back with openssh-server-5.6p1-10.fc15:

http://koji.fedoraproject.org/koji/getfile?taskID=2505677&name=build.log

Comment 4 Kamil Dudka 2010-10-01 09:00:59 UTC
Although the patch solves the problem, please consider moving the declaration of audit_username() to audit.h, where it correctly belongs.  I didn't read much the sources yesterday.

Comment 5 Michal Schmidt 2010-10-01 09:07:34 UTC
openssh-server-5.6p1-10.fc15 fixes the SIGSEGV for me.


Note You need to log in before you can comment on or make changes to this bug.