A followup to
849c14e04844a2f0e1f7e42886c2cef083563f35
Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1009242
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13389
AC_MSG_CHECKING([whether __copy_from_user_inatomic is available])
ZFS_LINUX_TEST_RESULT([__copy_from_user_inatomic_license], [
AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE___COPY_FROM_USER_INATOMIC, 1,
- [__copy_from_user_inatomic is available])
], [
AC_MSG_RESULT(no)
+ AC_MSG_ERROR([
+ *** The `__copy_from_user_inatomic()` Linux kernel function is
+ *** incompatible with the CDDL license and will prevent the module
+ *** linking stage from succeeding. OpenZFS cannot be compiled.
+ ])
])
])
} else {
unsigned long b_left = 0;
if (uio->uio_fault_disable) {
-#if defined(HAVE___COPY_FROM_USER_INATOMIC)
if (!zfs_access_ok(VERIFY_READ,
(iov->iov_base + skip), cnt)) {
return (EFAULT);
__copy_from_user_inatomic(p,
(iov->iov_base + skip), cnt);
pagefault_enable();
-#else
- return (EFAULT);
-#endif
} else {
b_left =
copy_from_user(p,