asm-generic: improve the nommu {get,put}_user handling
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Sep 2020 05:58:19 +0000 (07:58 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 4 Oct 2020 17:26:43 +0000 (10:26 -0700)
commit931de11f5a374748f1d620ee17810dedf13c9f69
treeac81211b04fe24c53009ded77ee3b3ec8f4639db
parent24ce66c04a06a678f156cf575128246f3d214b4a
asm-generic: improve the nommu {get,put}_user handling

Instead of reusing raw_{copy,to}_from_user implement separate handlers
using {get,put}_unaligned.  This ensures unaligned access is handled
correctly, and avoid the need for the small constant size optimization
in raw_{copy,to}_from_user.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
include/asm-generic/uaccess.h