Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 fix from Will Deacon:
"Rename and reallocate the PT_ARM_MEMTAG_MTE ELF segment type.

This is a fix to the MTE ELF ABI for a bug that was added during the
most recent merge window as part of the coredump support.

The issue is that the value assigned to the new PT_ARM_MEMTAG_MTE
segment type has already been allocated to PT_AARCH64_UNWIND by the
ELF ABI, so we've bumped the value and changed the name of the
identifier to be better aligned with the existing one"

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
elf: Fix the arm64 MTE ELF segment name and value

+4 -4
+2 -2
Documentation/arm64/memory-tagging-extension.rst
··· 228 228 ----------------- 229 229 230 230 The allocation tags for user memory mapped with ``PROT_MTE`` are dumped 231 - in the core file as additional ``PT_ARM_MEMTAG_MTE`` segments. The 231 + in the core file as additional ``PT_AARCH64_MEMTAG_MTE`` segments. The 232 232 program header for such segment is defined as: 233 233 234 - :``p_type``: ``PT_ARM_MEMTAG_MTE`` 234 + :``p_type``: ``PT_AARCH64_MEMTAG_MTE`` 235 235 :``p_flags``: 0 236 236 :``p_offset``: segment file offset 237 237 :``p_vaddr``: segment virtual address, same as the corresponding
+1 -1
arch/arm64/kernel/elfcore.c
··· 95 95 for_each_mte_vma(current, vma) { 96 96 struct elf_phdr phdr; 97 97 98 - phdr.p_type = PT_ARM_MEMTAG_MTE; 98 + phdr.p_type = PT_AARCH64_MEMTAG_MTE; 99 99 phdr.p_offset = offset; 100 100 phdr.p_vaddr = vma->vm_start; 101 101 phdr.p_paddr = 0;
+1 -1
include/uapi/linux/elf.h
··· 42 42 43 43 44 44 /* ARM MTE memory tag segment type */ 45 - #define PT_ARM_MEMTAG_MTE (PT_LOPROC + 0x1) 45 + #define PT_AARCH64_MEMTAG_MTE (PT_LOPROC + 0x2) 46 46 47 47 /* 48 48 * Extended Numbering