Comparing m68k with mips, we are missing the tests for disabled interrupts present in the low level kernel preemption code for mips. Adding that test results in no more 'table already freed' messages when running stress-ng --zombie (on ARAnyM). Needs testing on qemu / Mac as this test result may be Atari specific due to the hsync interrupt disable scheme there. Signed-off-by: Michael Schmitz <schmitzmic@xxxxxxxxx> Link: https://lore.kernel.org/all/7858a184cda66e0991fd295c711dfed7e4d1248c.1696603287.git.geert@xxxxxxxxxxxxxx/ Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Finn Thain <fthain@xxxxxxxxxxxxxx> --- arch/m68k/kernel/entry.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S index 9933679ea28b..f2cdea3cbc93 100644 --- a/arch/m68k/kernel/entry.S +++ b/arch/m68k/kernel/entry.S @@ -249,6 +249,10 @@ ENTRY(ret_from_exception) jpl 1f movel %a0@(TINFO_PREEMPT),%d1 + jne 1f + + | check if interrupts disabled + bfextu %sp@(PT_OFF_SR){#0,#3},%d1 jne 1f pea 1f -- 2.17.1