A study of persistent memory bugs in the Linux kernel