[PATCH v2 2/3] userfaultfd: selftest: generalize read and poll