Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: firefox aarch64 pledge crashes
To:
Landry Breuil <landry@rhaalovely.net>, ports <ports@openbsd.org>
Date:
Mon, 23 Sep 2024 23:21:12 +0200

Download raw body.

Thread
In addition to what sthen posted, I ran into these, the first one smells
like a noexeconly issue. Not sure about the second one (I modified kdump
to print the trap as hexadecimal since I got tired of translating
decimal to hex)

 67550 firefox  PSIG  SIGSEGV caught handler=0x2027faaeb8 mask=0<> code=SEGV_ACCERR addr=0x202217bc26 trapno=0x9200000f

$ aarch64-esr-decoder 0x9200000f
ESR 0x0000000000000000000000009200000f:
37..63 RES0: 0x0000000 0b000000000000000000000000000
32..36 ISS2: 0x00 0b00000
26..31 EC: 0x24 0b100100
  # Data Abort from a lower Exception level
25     IL: true
  # 32-bit instruction trapped
00..24 ISS: 0x000000f 0b0000000000000000000001111
  24     ISV: false
    # No valid instruction syndrome
  14..23 RES0: 0x000 0b0000000000
  13     VNCR: false
  11..12 RES0: 0x0 0b00
  10     FnV: false
    # FAR is valid
  09     EA: false
  08     CM: false
  07     S1PTW: false
  06     WnR: false
    # Abort caused by reading from memory
  00..05 DFSC: 0x0f 0b001111
    # Permission fault, level 3.

 67550 firefox  PSIG  SIGSEGV caught handler=0x2027faaeb8 mask=0<> code=SEGV_MAPERR addr=0x0 trapno=0x82000005

$ aarch64-esr-decoder 0x82000005
ESR 0x00000000000000000000000082000005:
37..63 RES0: 0x0000000 0b000000000000000000000000000
32..36 ISS2: 0x00 0b00000
26..31 EC: 0x20 0b100000
  # Instruction Abort from a lower Exception level
25     IL: true
  # 32-bit instruction trapped
00..24 ISS: 0x0000005 0b0000000000000000000000101
  13..24 RES0: 0x000 0b000000000000
  11..12 RES0: 0x0 0b00
  10     FnV: false
    # FAR is valid
  09     EA: false
  08     RES0: false
  07     S1PTW: false
  06     RES0: false
  00..05 IFSC: 0x05 0b000101
    # Translation fault, level 1.