https://bugs.kde.org/show_bug.cgi?id=381556

            Bug ID: 381556
           Summary: Handle feature registers access on 4.11 Linux kernel
                    or later
           Product: valgrind
           Version: 3.13 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: siddh...@sourceware.org
  Target Milestone: ---

Since linux 4.11, the arm64 kernel now emulates the mrs instruction for
userspace and exposes some feature registers, namely:

- ID_AA64ISAR0_EL1
- ID_AA64PFR0_EL1
- MIDR_EL1

glibc 2.26 (releasing in August) uses MIDR_EL1 to select its multiarch routines
and binaries running under valgrind on a 4.11 arm64 kernel will fail with an
unhandled instruction error.  This was reported by Florian Weimer of Red Hat on
Fedora rawhide:

ARM64 front end: branch_etc
disInstr(arm64): unhandled instruction 0xD5380000
disInstr(arm64): 1101'0101 0011'1000 0000'0000 0000'0000
==924== valgrind: Unrecognised instruction at address 0x11f548.
==924==    at 0x11F548: init_cpu_features (cpu-features.c:32)
==924==    by 0x11F548: dl_platform_init (dl-machine.h:241)
==924==    by 0x11F548: _dl_sysdep_start (dl-sysdep.c:231)
==924==    by 0x10981B: _dl_start_final (rtld.c:412)
==924==    by 0x109AAB: _dl_start (rtld.c:520)
==924==    by 0x108F47: ??? (in

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to