diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2026-10-02 12:27:50 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-10-13 16:59:55 +0200 |
| commit | 4044466ff004c7ad5fd47be717cd933077e6e874 (patch) | |
| tree | 3eb091a825bd5c76565dcee96024f8322a66fa7e /tools/lib/python | |
| parent | 946b9dcff33bd4669464674ae1c00683b875be55 (diff) | |
| download | linux-next-4044466ff004c7ad5fd47be717cd933077e6e874.tar.gz linux-next-4044466ff004c7ad5fd47be717cd933077e6e874.zip | |
s390/extable: Fix mvcos instruction decoding
If either the b1 or b2 field of the mvcos instruction is zero, register
zero is not used for address computation; zero is used instead, according
to the architecture. ex_handler_ua_mvcos() incorrectly uses the real
contents of register zero. Fix this.
This shouldn't be a problem for any generated code, since the compiler
would only generate such code if it is possible to prove at compile time
that either the source or destination address is within the first 4kb of
the designated address space. Such code should not exist (also confirmed
by an allyesconfig build and decoding all ~7000 mvcos instructions).
Fixes: c488f5187a24 ("s390/uaccess: Shorten raw_copy_from_user() / raw_copy_to_user() inline assemblies")
Cc: stable@vger.kernel.org
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
