[krbdev.mit.edu #9184] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Fri Sep 19 11:57:21 EDT 2025


Fri Sep 19 11:57:21 2025: Request 9184 was acted upon.
 Transaction: Ticket created by ghudson at mit.edu
       Queue: krb5
     Subject: git commit
       Owner: ghudson at mit.edu
  Requestors: 
      Status: new
 Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9184 >



Fix profile_open_file() last_stat locking

Commit 53d6d0d64e96b84b57b7446a787e683312e2a529 changed
profile_open_file() to force a stat() when reusing a profile object,
by setting the last_stat field to 0 on the data object.  The last_stat
field is controlled by the data object mutex (unlike the refcount
field, which is controlled by g_shared_trees_mutex).  Lock the data
object before setting last_stat.

[ghudson at mit.edu: switched to using profile_update_data_file_locked()
so we don't lock and unlock the data object twice; rewrote commit
message]

https://github.com/krb5/krb5/commit/3466589de7de7e74aa53c560b83313ae7d2f8b6f
Author: Alexey Milovidov <milovidov at clickhouse.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 3466589de7de7e74aa53c560b83313ae7d2f8b6f
Branch: master
 src/util/profile/prof_file.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)



More information about the krb5-bugs mailing list