Re: [PATCH 2/2] userfaultfd: selftests: modify selftest to use /dev/userfaultfd

From: Andrew Morton
Date: Tue Apr 12 2022 - 16:56:12 EST


On Tue, 12 Apr 2022 13:29:42 -0700 Axel Rasmussen <axelrasmussen@xxxxxxxxxx> wrote:

> Prefer this new interface, but if using it fails for any reason just
> fall back to using userfaultfd(2) as before.

This seems a poor idea - the old interface will henceforth be untested.

Why not tweak the code to test both interfaces?