Hey Hector, thanks for reaching out. The Resolute kernel from ppa:canonical-kernel-team/ppa2 indeed fixes it, I see no more IO errors, just invalid arg as it should:
``` $ uname -a Linux sinkpad 7.0.0-42-generic #42-Ubuntu SMP PREEMPT_DYNAMIC Thu Oct 15 08:06:44 UTC 2026 x86_64 GNU/Linux $ python3 dio-align.py /var/tmp/dio-test buffer offset 0x0: 4096 buffer offset 0x1: errno 22 (Invalid argument) buffer offset 0x200: errno 22 (Invalid argument) buffer offset 0x400: errno 22 (Invalid argument) buffer offset 0x800: errno 22 (Invalid argument) buffer offset 0xe00: errno 22 (Invalid argument) buffer offset 0x1000: 4096 $ sudo python3 dio-align.py /dev/dm-1 # use the dm-N that backs the LV (readlink -f /dev/mapper/ubuntu--vg-ubuntu--lv) buffer offset 0x0: 4096 buffer offset 0x1: errno 22 (Invalid argument) buffer offset 0x200: errno 22 (Invalid argument) buffer offset 0x400: errno 22 (Invalid argument) buffer offset 0x800: errno 22 (Invalid argument) buffer offset 0xe00: errno 22 (Invalid argument) buffer offset 0x1000: 4096 ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2172145 Title: `O_DIRECT` read into a 512-aligned (not 4096-aligned) buffer returns `EIO` instead of `EINVAL` on a 4096-byte-sector LUKS volume (`dm- crypt`) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2172145/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
