Skip to content

virtiofs dax doesn't work with the kernel 5.15.26

Cross-post from kata container project: https://github.com/kata-containers/kata-containers/issues/4230

Recently we found running tail command inside a kata containers causes containers to freeze with the linux kernel 5.15.26. It seems the virtiofs DAX feature doesn't work the kernel 5.15.26. An early kernel version (5.10.102) doesn't have this issue. Disabling DAX also fixes the issue. The guest dmesg log also shows it's related to DAX.

virtiofsd version:

root@aks-worker-24363896-vmss000000:/opt/kata/share/kata-containers# /opt/kata/libexec/kata-qemu/virtiofsd --version
virtiofsd version 6.1.0 (kata-static)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
using FUSE kernel interface version 7.33

qemu version:

root@aks-worker-24363896-vmss000000:/opt/kata/share/kata-containers# /opt/kata/bin/qemu-system-x86_64 --version
QEMU emulator version 6.1.0 (kata-static)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers