Skip to content

Commit

Permalink
runtime: track_memory_map: treat several pkru values seen in program …
Browse files Browse the repository at this point in the history
…startup as compartment 0
  • Loading branch information
fw-immunant committed Sep 12, 2023
1 parent 46d35f1 commit ee6f14c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/track_memory_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ unsigned char pkey_for_pkru(uint32_t pkru) {
CHECK(13);
CHECK(14);
CHECK(15);
case 0x55555550:
return 0;
case 0x55555554:
return 0;
case 0:
return 0;
default:
return PKEY_INVALID;
}
Expand Down

0 comments on commit ee6f14c

Please sign in to comment.