diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-11-27 11:13:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-27 17:21:56 +0100 |
commit | 070e76cb3ffe43f6855492e77c96680c562598f0 (patch) | |
tree | a873e8a0d4424ab18274d7b6ecc32537f5f8cccc /sound/soc/cirrus | |
parent | b4da18b3714a35c1123522810cc5ec0cd2ee4101 (diff) | |
download | linux-070e76cb3ffe43f6855492e77c96680c562598f0.tar.gz linux-070e76cb3ffe43f6855492e77c96680c562598f0.tar.bz2 linux-070e76cb3ffe43f6855492e77c96680c562598f0.zip |
MIPS: tlbex: Fix potential HTW race on TLBL/M/S handlers
There is a potential race when probing the TLB in TLBL/M/S exception
handlers for a matching entry. Between the time we hit a TLBL/S/M
exception and the time we get to execute the TLBP instruction, the
HTW may have replaced the TLB entry we are interested in hence the TLB
probe may fail. However, in the existing handlers, we never checked the
status of the TLBP (ie check the result in the C0/Index register). We
fix this by adding such a check when the core implements the HTW. If
we couldn't find a matching entry, we return back and try again.
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.17+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8599/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'sound/soc/cirrus')
0 files changed, 0 insertions, 0 deletions