]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/memory.c
x86: some lock annotations for user copy paths, v2
authorNick Piggin <npiggin@suse.de>
Wed, 10 Sep 2008 11:37:17 +0000 (13:37 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Sep 2008 07:44:21 +0000 (09:44 +0200)
commit3ee1afa308f2a38e5d1e2ad3752ad7abcf480da1
tree914e0f3bbd32a387cf6095c6955369fa8da7ebf6
parentc10d38dda1774ed4540380333cabd229eff37094
x86: some lock annotations for user copy paths, v2

 - introduce might_fault()
 - handle the atomic user copy paths correctly

[ mingo@elte.hu: move might_sleep() outside of in_atomic(). ]
Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/lib/usercopy_32.c
arch/x86/lib/usercopy_64.c
include/asm-x86/uaccess.h
include/asm-x86/uaccess_32.h
include/asm-x86/uaccess_64.h
include/linux/kernel.h
mm/memory.c