| * User address space access functions. |
| * For licencing details see kernel-base/COPYING |
| #include <linux/highmem.h> |
| #include <linux/module.h> |
| #include <asm/word-at-a-time.h> |
| * We rely on the nested NMI work to allow atomic faults from the NMI path; the |
| * nested NMI paths are careful to preserve CR2. |
| copy_from_user_nmi(void *to, const void __user *from, unsigned long n) |
| if (__range_not_ok(from, n, TASK_SIZE)) |
| * Even though this function is typically called from NMI/IRQ context |
| * disable pagefaults so that its behaviour is consistent even when |
| * called form other contexts. |
| ret = __copy_from_user_inatomic(to, from, n); |
| EXPORT_SYMBOL_GPL(copy_from_user_nmi); |