In the Linux kernel 5.0.21, mounting a crafted btrfs filesystem image, performing some operations, and then making a syncfs system call can lead to a use-after-free in _mutexlock in kernel/locking/mutex.c. This is related to mutexcanspinonowner in kernel/locking/mutex.c, _btrfsqgroupfreemeta in fs/btrfs/qgroup.c, and btrfsinsertdelayed_items in fs/btrfs/delayed-inode.c.