libkrunfw
libkrunfw copied to clipboard
Locking issue in `tsi_release`
I don't see anywhere to acquire lock in tsi_release, but the lock is released in the end. Is it right?
static int tsi_release(struct socket *sock)
{
// ...
release_sock(sk);
}
Another issue is that sock_alloc() allocates socket and inode, calling sock->ops->release() is not enough to release all resources, calling sock_release() instead.