K 10 svn:author V 7 delphij K 8 svn:date V 27 2020-03-19T06:33:06.333131Z K 7 svn:log V 502 Fix race condition in catopen(3). The current code uses a rwlock to protect the cached list, which in turn holds a list of catentry objects, and increments reference count while holding only read lock. Fix this by converting the reference counter to use atomic operations. While I'm there, also perform some clean ups around memory operations. PR: 202636 Reported by: Henry Hu Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24095 END