public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv"
@ 2023-06-12  7:36 vries at gcc dot gnu.org
  2023-09-19 17:52 ` [Bug tdep/30540] " tromey at sourceware dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-06-12  7:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30540

            Bug ID: 30540
           Summary: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN
                    support missing in "info auxv"
           Product: gdb
           Version: 13.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With a 13.2 based packaged, on openSUSE Tumbleweed x86_64, I run into:
...
(gdb) info auxv^M
33   AT_SYSINFO_EHDR      System-supplied DSO's ELF header 0x7ffff7fc7000^M
51   AT_MINSIGSTKSZ       Minimum stack size for signal delivery 0x6f0^M
16   AT_HWCAP             Machine-dependent CPU capability hints 0x178bfbff^M
6    AT_PAGESZ            System page size               4096^M
17   AT_CLKTCK            Frequency of times()           100^M
3    AT_PHDR              Program headers for program    0x400040^M
4    AT_PHENT             Size of program header entry   56^M
5    AT_PHNUM             Number of program headers      13^M
7    AT_BASE              Base address of interpreter    0x7ffff7fc9000^M
8    AT_FLAGS             Flags                          0x0^M
9    AT_ENTRY             Entry point of program         0x40105e^M
11   AT_UID               Real user ID                   399^M
12   AT_EUID              Effective user ID              399^M
13   AT_GID               Real group ID                  399^M
14   AT_EGID              Effective group ID             399^M
23   AT_SECURE            Boolean, was exec setuid-like? 0^M
25   AT_RANDOM            Address of 16 random bytes     0x7fffffffdaa9^M
26   AT_HWCAP2            Extension of AT_HWCAP          0x0^M
31   AT_EXECFN            File name of executable        0x7fffffffef77
"/home/abuild/rpmbuild/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite.unix.-m64.-fno-PIE.-no-pie/outputs/gdb.base/auxv/auxv"^M
15   AT_PLATFORM          String identifying platform    0x7fffffffdab9
"x86_64"^M
27   ???                                                 0x1c^M
28   ???                                                 0x20^M
0    AT_NULL              End of vector                  0x0^M
(gdb) WARNING: Unrecognized tag value: 27   ???                                
                0x1c^M

WARNING: Unrecognized tag value: 28   ???                                      
          0x20^M

FAIL: gdb.base/auxv.exp: info auxv on live process
...

Grepping in the kernel sources gets me:
...
$ find -name auxvec.h | xargs grep 27
./include/uapi/linux/auxvec.h:#define AT_RSEQ_FEATURE_SIZE      27      /* rseq
supported feature size */
$ find -name auxvec.h | xargs grep 28
./include/uapi/linux/auxvec.h:#define AT_RSEQ_ALIGN             28      /* rseq
allocation alignment */
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tdep/30540] [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv"
  2023-06-12  7:36 [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv" vries at gcc dot gnu.org
@ 2023-09-19 17:52 ` tromey at sourceware dot org
  2023-10-03 20:34 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2023-09-19 17:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30540

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Hit this on Fedora 38 as well.
Found this:
https://lore.kernel.org/lkml/20220218210633.23345-2-mathieu.desnoyers@efficios.com/

rseq seems to be "restartable sequences".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tdep/30540] [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv"
  2023-06-12  7:36 [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv" vries at gcc dot gnu.org
  2023-09-19 17:52 ` [Bug tdep/30540] " tromey at sourceware dot org
@ 2023-10-03 20:34 ` vries at gcc dot gnu.org
  2023-10-07  1:29 ` cvs-commit at gcc dot gnu.org
  2023-10-07 13:42 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-10-03 20:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30540

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2023-June/200435.html .

Also just approved.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tdep/30540] [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv"
  2023-06-12  7:36 [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv" vries at gcc dot gnu.org
  2023-09-19 17:52 ` [Bug tdep/30540] " tromey at sourceware dot org
  2023-10-03 20:34 ` vries at gcc dot gnu.org
@ 2023-10-07  1:29 ` cvs-commit at gcc dot gnu.org
  2023-10-07 13:42 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-10-07  1:29 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30540

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Simon Marchi <simark@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7a3bb62d82631ff042525b7115d9e03a7329e7be

commit 7a3bb62d82631ff042525b7115d9e03a7329e7be
Author: Ilya Leoshkevich <iii@linux.ibm.com>
Date:   Thu Jun 22 01:03:04 2023 +0200

    gdb: support rseq auxvs

    Linux kernel commit commit 317c8194e6ae ("rseq: Introduce feature size
    and alignment ELF auxiliary vector entries") introduced two new auxvs:
    AT_RSEQ_FEATURE_SIZE and AT_RSEQ_ALIGN.  Support them in GDB.  This
    fixes auxv.exp on kernels >= v6.3.

    Change-Id: I8966c4d5c73eb7b45de6d410a9b28a6628edad2e
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30540
    Approved-By: Tom Tromey <tom@tromey.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tdep/30540] [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv"
  2023-06-12  7:36 [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv" vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-10-07  1:29 ` cvs-commit at gcc dot gnu.org
@ 2023-10-07 13:42 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2023-10-07 13:42 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30540

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |14.1

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-07 13:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12  7:36 [Bug tdep/30540] New: [gdb/tdep] AT_RSEQ_FEATURE_SIZE / AT_RSEQ_ALIGN support missing in "info auxv" vries at gcc dot gnu.org
2023-09-19 17:52 ` [Bug tdep/30540] " tromey at sourceware dot org
2023-10-03 20:34 ` vries at gcc dot gnu.org
2023-10-07  1:29 ` cvs-commit at gcc dot gnu.org
2023-10-07 13:42 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).