Always clear DF when entering the kernel
If memcpy is modified to use REP MOVSB, it's possible to crash the kernel from userspace by doing SYS_OPEN with DF set. Even then, the kernel contains REP MOVS in some B-tree code on master, so it's probably vulnerable anyway.
Edited by Jacob Lorentzon