parisc: Prevent booting 64-bit kernels on PA1.x machines
authorHelge Deller <deller@gmx.de>
Fri, 10 Nov 2023 15:13:15 +0000 (16:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:20:08 +0000 (17:20 +0000)
commite5f12229d9541c38a813002a0a8faaf637430b77
tree7796d5a9c792333d58c14de2871c65fe0521b2df
parent7989f7ad1f0a94bf47ab9d2bf0e96e1b974b6529
parisc: Prevent booting 64-bit kernels on PA1.x machines

commit a406b8b424fa01f244c1aab02ba186258448c36b upstream.

Bail out early with error message when trying to boot a 64-bit kernel on
32-bit machines. This fixes the previous commit to include the check for
true 64-bit kernels as well.

Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: 591d2108f3abc ("parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines")
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/head.S