|
@@ -884,7 +884,7 @@ static int userfaultfd_api(struct userfaultfd_ctx *ctx,
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
/* careful not to leak info, we only read the first 8 bytes */
|
|
/* careful not to leak info, we only read the first 8 bytes */
|
|
- uffdio_api.bits = UFFD_API_BITS;
|
|
|
|
|
|
+ uffdio_api.features = UFFD_API_FEATURES;
|
|
uffdio_api.ioctls = UFFD_API_IOCTLS;
|
|
uffdio_api.ioctls = UFFD_API_IOCTLS;
|
|
ret = -EFAULT;
|
|
ret = -EFAULT;
|
|
if (copy_to_user(buf, &uffdio_api, sizeof(uffdio_api)))
|
|
if (copy_to_user(buf, &uffdio_api, sizeof(uffdio_api)))
|
|
@@ -941,7 +941,7 @@ static void userfaultfd_show_fdinfo(struct seq_file *m, struct file *f)
|
|
* protocols: aa:... bb:...
|
|
* protocols: aa:... bb:...
|
|
*/
|
|
*/
|
|
seq_printf(m, "pending:\t%lu\ntotal:\t%lu\nAPI:\t%Lx:%x:%Lx\n",
|
|
seq_printf(m, "pending:\t%lu\ntotal:\t%lu\nAPI:\t%Lx:%x:%Lx\n",
|
|
- pending, total, UFFD_API, UFFD_API_BITS,
|
|
|
|
|
|
+ pending, total, UFFD_API, UFFD_API_FEATURES,
|
|
UFFD_API_IOCTLS|UFFD_API_RANGE_IOCTLS);
|
|
UFFD_API_IOCTLS|UFFD_API_RANGE_IOCTLS);
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|