The patch titled uaccess: fix parameters inversion for __copy_from_user_inatomic() has been added to the -mm tree. Its filename is uaccess-fix-parameters-inversion-for-__copy_from_user_inatomic.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: uaccess: fix parameters inversion for __copy_from_user_inatomic() From: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx> The following patch changes to use __copy_from_user_inatomic(), but the passing parameters incorrect. x86: some lock annotations for user copy paths, v3 - add annotation back to clear_user() - change probe_kernel_address() to _inatomic*() method Signed-off-by: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/uaccess.h~uaccess-fix-parameters-inversion-for-__copy_from_user_inatomic include/linux/uaccess.h --- a/include/linux/uaccess.h~uaccess-fix-parameters-inversion-for-__copy_from_user_inatomic +++ a/include/linux/uaccess.h @@ -78,7 +78,7 @@ static inline unsigned long __copy_from_ \ set_fs(KERNEL_DS); \ pagefault_disable(); \ - ret = __copy_from_user_inatomic((__force typeof(retval) __user *)(addr), &(retval), sizeof(retval)); \ + ret = __copy_from_user_inatomic(&(retval), (__force typeof(retval) __user *)(addr), sizeof(retval)); \ pagefault_enable(); \ set_fs(old_fs); \ ret; \ _ Patches currently in -mm which might be from h-shimamoto@xxxxxxxxxxxxx are linux-next.patch uaccess-fix-parameters-inversion-for-__copy_from_user_inatomic.patch net-fix-compilation-ng-when-config_module.patch unevictable-lru-page-statistics.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html