powerpc/rtas: prevent suspend-related sys_rtas use on LE
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Dec 2020 21:51:33 +0000 (15:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2020 10:40:54 +0000 (21:40 +1100)
commitde0f7349a0dd072e54b5fc04c305907b22d28a5f
tree94cd64cef84e81d102377e03f16896638eaf05bd
parent475c8749d9542392d7e0855097d29ed14877ad0a
powerpc/rtas: prevent suspend-related sys_rtas use on LE

While drmgr has had work in some areas to make its RTAS syscall
interactions endian-neutral, its code for performing partition
migration via the syscall has never worked on LE. While it is able to
complete ibm,suspend-me successfully, it crashes when attempting the
subsequent ibm,update-nodes call.

drmgr is the only known (or plausible) user of ibm,suspend-me,
ibm,update-nodes, and ibm,update-properties, so allow them only in
big-endian configurations.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201207215200.1785968-2-nathanl@linux.ibm.com
arch/powerpc/kernel/rtas.c