Hi! > I am not yet sure if we should simply allow either -EFAULT or -ENOENT for > the "nothing mapped" case in the check (below). > > Alternatively, I agree, wee need to have this in the kernel so we can > check for versions. > > What would be your preference? If we are going to stick to ENOENT for page that wasn't faulted in the kernel from now on we should stick to it in the test as well. Also I think there is a third case that we do not cover either, what happens when we pass an address that is not mapped at all, e.g. NULL? Do we get EFAULT as well? -- Cyril Hrubis chrubis@xxxxxxx