/* U3copy_to_user.S: UltraSparc-III optimized copy to userspace. * * Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com) */ #define EX_ST(x,y) \ 98: x; \ .section __ex_table,"a";\ .align 4; \ .word 98b, y; \ .text; \ .align 4; #define EX_ST_FP(x,y) \ 98: x; \ .section __ex_table,"a";\ .align 4; \ .word 98b, y##_fp; \ .text; \ .align 4; #define FUNC_NAME U3copy_to_user #define STORE(type,src,addr) type##a src, [addr] ASI_AIUS #define STORE_BLK(src,addr) stda src, [addr] ASI_BLK_AIUS #define EX_RETVAL(x) 0 /* Writing to %asi is _expensive_ so we hardcode it. * Reading %asi to check for KERNEL_DS is comparatively * cheap. */ #define PREAMBLE \ rd %asi, %g1; \ cmp %g1, ASI_AIUS; \ bne,pn %icc, ___copy_in_user; \ nop; \ #include "U3memcpy.S" net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-09-10 09:18:33 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-09-10 09:18:33 -0700
commit6905732c80bc7f85602abbe27f7bdc3fe81f56d0 (patch)
tree8d181da54cd9e57e1004553a0e76f30606bf6142
parentd0acc7dfd90eb97e90ccd42a567034017ec60fb8 (diff)
parentba63f23d69a3a10e7e527a02702023da68ef8a6d (diff)
Merge tag 'for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull fscrypto fixes fromTed Ts'o: "Fix some brown-paper-bag bugs for fscrypto, including one one which allows a malicious user to set an encryption policy on an empty directory which they do not own" * tag 'for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: fscrypto: require write access to mount to set encryption policy fscrypto: only allow setting encryption policy on directories fscrypto: add authorization check for setting encryption policy
Diffstat