RT RT/krbdev.mit.edu: Ticket #1303 thread safety in mit-krb5 libraries Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
1303
Status
resolved
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-libs
Version_reported
Version_Fixed
  • 1.4
Target_Version
  • 1.4
Tags
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
  • 2740: (lxs) No prototypes for profile_lock_global and profile_unlock_global [resolved]
  • 2755: (raeburn) push yarrow locking down into the yarrow code to reduce contention [resolved]
  • 2781: (raeburn) fix missing locking in keytab; fix stdio handling too [resolved]
  • 2782: (raeburn) fix missing mutex initialization in keytab file code [resolved]
 
 Dates  
Created: Tue Jan 7 23:10:07 2003
Starts: Not set
Started: Fri Mar 14 21:17:53 2003
Last Contact: Mon Jul 19 14:39:00 2004
Due: Not set
Updated: Mon Dec 20 15:17:43 2004 by tlyu
 

 People  
Owner
 raeburn
Requestors
 raeburn@mit.edu
Cc
 osvetlik@kerio.com
AdminCc
 
 

 More about Ken Raeburn  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Tue Jan  7 23:10:08 2003  raeburn - Ticket created    
     
Subject: thread safety in mit-krb5 libraries

Many changes are needed in the krb5 library (and others) to make the
code thread-safe.

Any non-const global variables need protection against simultaneous read
and write.  (If a static-duration object can't be updated, it should
probably be const.)

File locking is per-process (at least under UNIX); when we do file
locking, we'll want it to effectively be per-thread.

This issue has been discussed in email (on krbdev?), and people at IBM
are supposed to be writing some code based on that discussion; just
making sure it gets listed here too....


Download (untitled) 550b
      Fri Mar 14 21:17:53 2003  raeburn - Status changed from new to open    
      Mon Jul 19 05:44:58 2004  guest - Comments added    
     
This bug is a bit old and it still seems MIT Kerberos has a lot of
problems in multi-threaded environment. This is a sample backtrace:
#0  0x4207c5fc in memcpy () from /lib/tls/libc.so.6
#1  0x41dc12de in krb5_c_random_make_octets ()
from /usr/kerberos/lib/libk5crypto.so.3
#2  0x41dbdd61 in krb5_old_encrypt () from
/usr/kerberos/lib/libk5crypto.so.3
#3  0x41dbfe0f in krb5_c_encrypt () from /usr/kerberos/lib/libk5crypto.so.3
#4  0x41f37f0b in krb5_encrypt_helper () from /usr/kerberos/lib/libkrb5.so.3
#5  0x41f412ff in krb5_process_padata () from /usr/kerberos/lib/libkrb5.so.3
#6  0x41f410d6 in krb5_obtain_padata () from /usr/kerberos/lib/libkrb5.so.3
#7  0x41f3aaf3 in krb5_get_in_tkt () from /usr/kerberos/lib/libkrb5.so.3
#8  0x41f3cc1c in krb5_get_in_tkt_with_password ()
from /usr/kerberos/lib/libkrb5.so.3


Download (untitled) 819b
      Mon Jul 19 05:49:45 2004  guest - Comments added    
     
I also would like to watch this bug, is it possible to add my e-mail
(osvetlik at kerio dot com) to the bugs CC, please? I don't have
permissions to do so.


Download (untitled) 155b
      Mon Jul 19 14:36:17 2004  hartmans - Cc osvetlik@kerio.com added    
      Mon Jul 19 14:36:53 2004  hartmans - Target_Version 1.4 added    
      Mon Jul 19 14:38:58 2004  hartmans - Correspondence added    
     
To: rt@krbdev.mit.edu
Cc: 
Subject: Re: [krbdev.mit.edu #1303] thread safety in mit-krb5 libraries
From: Sam Hartman <hartmans@mit.edu>
Date: Mon, 19 Jul 2004 14:39:03 -0400
RT-Send-Cc: 

>>>>> "Public" == Public Submitter via RT <rt-comment@krbdev.mit.edu> writes:

    Public> This bug is a bit old and it still seems MIT Kerberos has
    Public> a lot of problems in multi-threaded environment. This is a
    Public> sample backtrace: #0 0x4207c5fc in memcpy () from


You should try the same test on a development snapshot taken within
the last week.  You can either do a cvs checkout or you can grab a
development checkout based on instructions at
http://web.mit.edu/kerberos/distrib/.


Ken has been doing a lot of thread support work lately and recently it
has been enabled by default.



Download (untitled) 606b
      Mon Dec 20 15:17:40 2004  tlyu - Status changed from open to resolved    
      Mon Dec 20 15:17:40 2004  tlyu - Component krb5-libs added    
      Mon Dec 20 15:17:41 2004  tlyu - Version_Fixed 1.4 added    
      Mon Dec 20 15:17:41 2004  tlyu - Comments added    
     
Closing.  Any further thread-safety issues should be new bugs.


Download (untitled) 62b