]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
parisc/unaligned: Fix ldw() and stw() unalignment handlers
authorHelge Deller <deller@gmx.de>
Fri, 18 Feb 2022 22:40:14 +0000 (23:40 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:45:52 +0000 (11:45 +0100)
commitd5201fe2aba70267cb4fbfd689fb75a013bf6e17
tree69570ba5d7a2a9e04a965b3545248404e92a4da9
parentaacb54e8a31afca557393274e4bf4687f4faa62c
parisc/unaligned: Fix ldw() and stw() unalignment handlers

BugLink: https://bugs.launchpad.net/bugs/1963891
commit a97279836867b1cb50a3d4f0b1bf60e0abe6d46c upstream.

Fix 3 bugs:

a) emulate_stw() doesn't return the error code value, so faulting
instructions are not reported and aborted.

b) Tell emulate_ldw() to handle fldw_l as floating point instruction

c) Tell emulate_ldw() to handle ldw_m as integer instruction

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/parisc/kernel/unaligned.c