2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-04-06 14:10:30 +08:00
glibc/include
Adhemerval Zanella 5624d626db linux: Add support for PT_GNU_MUTABLE
The section mark a memory region that should not be sealed if
GNU_PROPERTY_MEMORY_SEAL attribute is present.  PT_GNU_MUTABLE
section names start with ".gnu.mutable" and are maximum page
aligned and have a size of maximum page size.

For instance the code:

  #define GNU_MUTABLE_SECTION_NAME       ".gnu.mutable"

  unsigned char mutable_array1[64]
    __attribute__ ((section (GNU_MUTABLE_SECTION_NAME)))
       = { 0 };
  unsigned char mutable_array2[32]
    __attribute__ ((section (GNU_MUTABLE_SECTION_NAME)))
       = { 0 };

places both 'mutable_array1' and 'mutable_array2' on a page
aligned memory region in a size of a page (the alignment and size
can be change with -Wl,-z,max-page-size= linker option).

The linker sets the alignment and size to make it easier to
loader to avoid sealing the area (since mseal only work on
multiple of page size areas), and to simplify the userland
process to change protection of either seal the area after
initialization.
2025-03-07 08:46:49 -03:00
..
2021-06-22 12:09:52 -03:00
2023-05-01 19:33:21 +02:00
2025-01-28 18:25:13 +01:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2025-03-07 08:46:49 -03:00
2021-07-22 18:38:04 +05:30
2021-06-30 08:43:37 +02:00
2023-10-24 12:30:59 +02:00
2023-05-01 09:08:59 -04:00
2019-05-02 11:42:51 +02:00
2023-10-24 12:30:59 +02:00
2019-10-09 17:48:41 -03:00
2024-01-03 12:07:14 +00:00
2024-04-10 14:53:39 -03:00
2021-06-30 08:43:37 +02:00
2019-11-06 09:20:52 -03:00
2024-02-01 11:02:01 +00:00