powerpc: copy_thread fill in interrupt frame marker and back chain
authorNicholas Piggin <npiggin@gmail.com>
Sun, 27 Nov 2022 12:49:37 +0000 (22:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:08 +0000 (17:54 +1100)
commit6895dfc0474170c492191c126fcfc420f7771a09
tree9ec46c9a349e97e9d7d09c28c1edd1c79692c2b4
parent6f291a03819e4051ebc870471d26915ef2e6ba31
powerpc: copy_thread fill in interrupt frame marker and back chain

Backtraces will not recognise the fork system call interrupt without
the regs marker. And regular interrupt entry from userspace creates
the back chain to the user stack, so do this for the initial fork
frame too, to be consistent.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221127124942.1665522-13-npiggin@gmail.com
arch/powerpc/kernel/process.c