[krbdev.mit.edu #7103] SVN Commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Wed Mar 7 23:31:58 EST 2012


Back port r25723

 ------------------------------------------------------------------------
 r25723 | ghudson | 2012-03-01 15:49:17 -0500 (Thu, 01 Mar 2012) | 16 lines

 ticket: 7096
 subject: Fix KDB iteration when callback does write calls
 target_version: 1.10.1
 tags: pullup

 kdb_db2's ctx_iterate makes an convenience alias to dbc->db in order
 to call more invoke call the DB's seq method.  This alias may become
 invalidated if the callback writes to the DB, since ctx_lock() may
 re-open the DB in order to acquire a write lock.  Fix the bug by
 getting rid of the convenience alias.

 Most KDB iteration operations in the code base do not write to the DB,
 but kdb5_util update_princ_encryption does.

 Bug discovered and diagnosed by will.fiveash at oracle.com.

http://src.mit.edu/fisheye/changelog/krb5/?cs=25747
Commit By: tlyu
Revision: 25747
Changed Files:
U   branches/krb5-1-9/src/plugins/kdb/db2/kdb_db2.c



More information about the krb5-bugs mailing list