login crashed with SIGSEGV in __flockfile()

Bug #403011 reported by Martin Pitt
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
Fix Released
Critical
James Westby

Bug Description

ecryptfs 77-0ubuntu1 introduces a segfault in the PAM module which causes login, sudo, etc. to crash.

ProblemType: Crash
Architecture: amd64
Date: Wed Jul 22 14:06:05 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /bin/login
Package: login 1:4.1.4.1-1ubuntu1
ProcCmdline: /bin/login --
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SegvAnalysis:
 Segfault happened at: 0x7f083f39cc11 <__flockfile+1>: mov 0x88(%rdi),%r10
 PC (0x7f083f39cc11) ok
 source "0x88(%rdi)" (0x00000088) not located in a known VMA region (needed readable region)!
 destination "%r10" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: shadow
StacktraceTop:
 __flockfile (stream=0x0) at ../nptl/sysdeps/pthread/flockfile.c:30
 ecryptfs_fetch_private_mnt ()
 pam_sm_authenticate ()
 ?? ()
 ?? ()
Title: login crashed with SIGSEGV in __flockfile()
Uname: Linux 2.6.31-3-generic x86_64
UserGroups:

Revision history for this message
Martin Pitt (pitti) wrote :
affects: shadow (Ubuntu) → ecryptfs-utils (Ubuntu)
Changed in ecryptfs-utils (Ubuntu):
importance: Undecided → Critical
tags: added: regression-potential
Revision history for this message
Martin Pitt (pitti) wrote :

#0 __flockfile (stream=0x0) at ../nptl/sysdeps/pthread/flockfile.c:30
30 ../nptl/sysdeps/pthread/flockfile.c: No such file or directory.
 in ../nptl/sysdeps/pthread/flockfile.c
(gdb) bt
#0 __flockfile (stream=0x0) at ../nptl/sysdeps/pthread/flockfile.c:30
#1 0x00007f083d46380c in ecryptfs_fetch_private_mnt ()
   from /usr/lib/libecryptfs.so.0
#2 0x00007f083d682d38 in pam_sm_authenticate (pamh=0x1298460,
    flags=<value optimized out>, argc=1, argv=0x129f920) at pam_ecryptfs.c:135
#3 0x00007f083f8b9b70 in ?? () from /lib/libpam.so.0
#4 0x00007f083f8b9498 in pam_authenticate () from /lib/libpam.so.0
#5 0x00000000004033ca in ?? ()
#6 0x00007f083f362606 in __libc_start_main (
    main=0x402ce0 <getgrnam_r@plt+952>, argc=3, ubp_av=0x7fff5b81eda8,
    init=0x407f50 <getgrnam_r@plt+22056>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7fff5b81ed98)
    at libc-start.c:220

Revision history for this message
Martin Pitt (pitti) wrote :

bt full:

#0 __flockfile (stream=0x0) at ../nptl/sysdeps/pthread/flockfile.c:30
No locals.
#1 0x00007f083d46380c in ecryptfs_fetch_private_mnt ()
   from /usr/lib/libecryptfs.so.0
No symbol table info available.
#2 0x00007f083d682d38 in pam_sm_authenticate (pamh=0x1298460,
    flags=<value optimized out>, argc=1, argv=0x129f920) at pam_ecryptfs.c:135
        uid = 1000
        homedir = 0x12aebb2 "/home/martin"
        saved_uid = 1041103611
        username = 0x12985e0 "martin"
        passphrase = 0x0
        salt = "\0\0\0\0\0\0\0"
        salt_hex = ""\340Ɓ[\377\177\0\0\220\245)\1\0\0\0
        private_mnt = <value optimized out>
        tmp_pid = <value optimized out>
        rc = <value optimized out>
        version = 32520
        __FUNCTION__ = "pam_sm_authenticate"
#3 0x00007f083f8b9b70 in ?? () from /lib/libpam.so.0
No symbol table info available.
#4 0x00007f083f8b9498 in pam_authenticate () from /lib/libpam.so.0
No symbol table info available.
#5 0x00000000004033ca in ?? ()
#6 0x00007f083f362606 in __libc_start_main (
    main=0x402ce0 <getgrnam_r@plt+952>, argc=3, ubp_av=0x7fff5b81eda8,
    init=0x407f50 <getgrnam_r@plt+22056>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7fff5b81ed98)
    at libc-start.c:220
        result = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {4226896,
                -5134769356078350032, 4204864, 140734728629664, 0, 0,
                5134971614242505008, 5092968738607694128},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x3, 0x402ce0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 3}}}
        not_first_call = <value optimized out>

visibility: private → public
Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in ecryptfs-utils (Ubuntu):
status: New → Triaged
assignee: nobody → James Westby (james-w)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ecryptfs-utils - 77-0ubuntu2

---------------
ecryptfs-utils (77-0ubuntu2) karmic; urgency=low

  * flockfile the filehandle after checking that we were able to successfully
    open if (LP: #403011)

 -- James Westby <email address hidden> Wed, 22 Jul 2009 13:35:11 +0100

Changed in ecryptfs-utils (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.