summaryrefslogtreecommitdiff
path: root/iosched.h
blob: 19ff1ff9d859eaecb6683d6a773e4802e906b4bf (plain)
1
2
3
4
5
6
7
8
#ifndef IOSCHED_H
#define IOSCHED_H

extern void ioprio_print(void);
extern void set_ioprio_rt(void);
extern void set_ioprio_be(void);

#endif /* IOSCHED_H */
a5ccc6b85dc05bbe6a091e58be896a'/>
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2016-05-16 15:16:18 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2016-05-17 14:26:52 +0800
commit4a6b27b79da5ccc6b85dc05bbe6a091e58be896a (patch)
tree3b6c2e16d410844d288165218e62c037cb0e8ca3 /Documentation/mmc/mmc-tools.txt
parent256b1cfb9a346bb4808cd27b7b8f9b120f96491e (diff)
crypto: sha1-mb - make sha1_x8_avx2() conform to C function ABI
Megha Dey reported a kernel panic in crypto code. The problem is that sha1_x8_avx2() clobbers registers r12-r15 without saving and restoring them. Before commit aec4d0e301f1 ("x86/asm/crypto: Simplify stack usage in sha-mb functions"), those registers were saved and restored by the callers of the function. I removed them with that commit because I didn't realize sha1_x8_avx2() clobbered them. Fix the potential undefined behavior associated with clobbering the registers and make the behavior less surprising by changing the registers to be callee saved/restored to conform with the C function call ABI. Also, rdx (aka RSP_SAVE) doesn't need to be saved: I verified that none of the callers rely on it being saved, and it's not a callee-saved register in the C ABI. Fixes: aec4d0e301f1 ("x86/asm/crypto: Simplify stack usage in sha-mb functions") Cc: stable@vger.kernel.org # 4.6 Reported-by: Megha Dey <megha.dey@linux.intel.com> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation/mmc/mmc-tools.txt')