mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
Xtensa updates for v7.0
- fix unhandled case in the load/store fault handler on configurations with MMU -----BEGIN PGP SIGNATURE----- iQJHBAABCgAxFiEEK2eFS5jlMn3N6xfYUfnMkfg/oEQFAmmW96gTHGpjbXZia2Jj QGdtYWlsLmNvbQAKCRBR+cyR+D+gRLY6EAClQsfI1/4ujZLz1uFBhnN1o5dAJu41 AVNXCtBgvm126Jnzp+q+eMgnDEUemNfkB6eVjrGUFGmfkqsnpB8pc/sH0cPdSmUr AmLe73DQFphoDCXqEZ1DlZiVDUepmRJcqHwY/rF3hJoUrjtrOPeSQndcgzY20bzs KbHthZ0yk0655JhE+AlIw3hxINtluG7QjbpEyvYwn8Jsee250ILsum242oekGa8c kd0YGhSvN4PTsi0y2NmhxAwOMPEll91fuutfQjamxHakoHFuD+3Vmwz3QXexDI1Z Z9nR44Mtj/7feHnoX0W2U1QwaWCadln87AXKo5An2PF0ra7DYZZtbBJa+ZWtEbG4 6Zs+7Vy4B1Da5D1q80TJTG3a3pyFgCeR1aeYrAPXFFM2j3lQOsfQUkDMV7BSxehM Zc9cSa3vxCfvvvEt0k2FygKModSECjKX7R1eAkGJwlxeiyhikFU4bRKuHerOTNoD /t5PLXw1HRW029YHBUMkh1CdAggVYP7DfIAv8OXT9ov7GMlCvkwBykDJvMBzr3U7 awmT8Aog7zQdqSj6VGIa7aHBXK8Ga9h0yME+391wy0rBq5oT+Cj1nlEMAl7f0P7u PmQMejGW/9xsdSlL6BS3zmzFPIUIYJ2doThlPHZDGx9Yx9DmqR+vNbC4W5Qtp9Jn lU91x+7ldvrtFg== =xsx3 -----END PGP SIGNATURE----- Merge tag 'xtensa-20260219' of https://github.com/jcmvbkbc/linux-xtensa Pull Xtensa update from Max Filippov: - fix unhandled case in the load/store fault handler in configurations with MMU * tag 'xtensa-20260219' of https://github.com/jcmvbkbc/linux-xtensa: xtensa: align: validate access in fast_load_store
This commit is contained in:
commit
9abf79529f
|
|
@ -21,6 +21,9 @@
|
|||
#include <asm/asm-offsets.h>
|
||||
#include <asm/asmmacro.h>
|
||||
#include <asm/processor.h>
|
||||
#ifdef CONFIG_MMU
|
||||
#include <asm/asm-uaccess.h>
|
||||
#endif
|
||||
|
||||
#if XCHAL_UNALIGNED_LOAD_EXCEPTION || defined CONFIG_XTENSA_LOAD_STORE
|
||||
#define LOAD_EXCEPTION_HANDLER
|
||||
|
|
@ -185,8 +188,11 @@ ENTRY(fast_load_store)
|
|||
|
||||
#ifdef CONFIG_MMU
|
||||
/* l32e can't be used here even when it's available. */
|
||||
/* TODO access_ok(a3) could be used here */
|
||||
j .Linvalid_instruction
|
||||
rsr a6, ps
|
||||
bbci.l a6, PS_UM_BIT, 1f # kernel mode
|
||||
movi a5, 8
|
||||
access_ok a3, a5, a6, a2, .Linvalid_instruction
|
||||
1:
|
||||
#endif
|
||||
l32i a5, a3, 0
|
||||
l32i a6, a3, 4
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user