)]}'
{
  "commit": "e7b56750157ad9fcf40e58c22acc436bc4e9a9b9",
  "tree": "4d31a410dcb0c4df0118f67e1d4ad45a8ae47670",
  "parents": [
    "94634a72b1cbc327dccfefd577436576992c644e"
  ],
  "author": {
    "name": "David Benjamin",
    "email": "davidben@google.com",
    "time": "Mon Feb 22 11:06:33 2021 -0500"
  },
  "committer": {
    "name": "CQ bot account: commit-bot@chromium.org",
    "email": "commit-bot@chromium.org",
    "time": "Wed Feb 24 00:28:10 2021 +0000"
  },
  "message": "Split the FIPS mode PRNG lock in two.\n\nIn FIPS mode, we maintain a lock in order to implement clearing DRBG\nstate on process shutdown. This lock serves two purposes:\n\n1. It protects the linked list of all DRBG states, which needs to be\n   updated the first time a thread touches RAND_bytes, when a thread\n   exits, and on process exit.\n\n2. It ensures threads alive during process shutdown do not accidentally\n   touch DRBGs after they are cleared, by way of taking a ton of read\n   locks in RAND_bytes across some potentially time-consuming points.\n\nThis means that when one of the rare events in (1) happens, it must\ncontend with the flurry of read locks in (2). Split these uses into two\nlocks. The second lock now only ever sees read locks until process\nshutdown, and the first lock is only accessed in rare cases.\n\nChange-Id: Ib856c7a3bb937bbfa5d08534031dbf4ed3315cab\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/45844\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\nReviewed-by: Adam Langley \u003cagl@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "aa0f05b6198e2f688e3539c494de9c7724fc7387",
      "old_mode": 33188,
      "old_path": "crypto/fipsmodule/rand/rand.c",
      "new_id": "824efc8da136cce7b22d9b695814c8a51561e25c",
      "new_mode": 33188,
      "new_path": "crypto/fipsmodule/rand/rand.c"
    }
  ]
}
