]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: also set iaoq_b in instruction_pointer_set()
authorSven Schnelle <svens@stackframe.org>
Thu, 4 Apr 2019 16:16:04 +0000 (18:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:39:48 +0000 (08:39 +0200)
commitb4dfbd47a494b634801f6186def12705926bce6b
treeaac479e96c84b3424938564a3c7a6fe910e6caaa
parent97ba69f226653e8818c424f9cbeaeae1bc58d332
parisc: also set iaoq_b in instruction_pointer_set()

commit f324fa58327791b2696628b31480e7e21c745706 upstream.

When setting the instruction pointer on PA-RISC we also need
to set the back of the instruction queue to the new offset, otherwise
we will execute on instruction from the new location, and jumping
back to the old location stored in iaoq_b.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: 75ebedf1d263 ("parisc: Add HAVE_REGS_AND_STACK_ACCESS_API feature")
Cc: stable@vger.kernel.org # 4.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/ptrace.h