This is a kernel/dash issue. In kernel 4.0, the md sysfs implementation does not work with partial reads from /sys/block/md0/md/sync_action; the read syscall returns the entire contents of the file even if you try to read less. Dash has an inefficient implementation which reads input one byte at a time, and fails when it hits the kernel misbehavior.
-- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org