powerpc/64: mark irqs hard disabled in boot paca
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:43:00 +0000 (15:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:11 +0000 (19:22 +1000)
commit799f7063c7645f9a751d17f5dfd73b952f962cd2
tree45b446bc2ddbb948a69b2dd92c4e2d46b99595ae
parent56adbb7a8b6cc7fc9b940829c38494e53c9e57d1
powerpc/64: mark irqs hard disabled in boot paca

This prevents interrupts in early boot (e.g., program check) from
enabling MSR[EE], potentially causing endian mismatch or other
crashes when reporting early boot traps.

Fixes: 4423eb5ae32ec ("powerpc/64/interrupt: make normal synchronous interrupts enable MSR[EE] if possible")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926054305.2671436-3-npiggin@gmail.com
arch/powerpc/kernel/setup_64.c