public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/30114] New: Add valgrind annotations to obstack
@ 2023-02-11 17:07 tromey at sourceware dot org
  2023-02-12  2:56 ` [Bug build/30114] " sam at gentoo dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-02-11 17:07 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30114
           Summary: Add valgrind annotations to obstack
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

https://sourceware.org/bugzilla/show_bug.cgi?id=25479#c7 points out
that valgrind annotations could be added to the obstack code,
and then we could detect buffer overruns there as well.

 http://valgrind.org/docs/manual/mc-manual.html#mc-manual.mempools

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

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

* [Bug build/30114] Add valgrind annotations to obstack
  2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
@ 2023-02-12  2:56 ` sam at gentoo dot org
  2023-02-12 14:41 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sam at gentoo dot org @ 2023-02-12  2:56 UTC (permalink / raw)
  To: gdb-prs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

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

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

* [Bug build/30114] Add valgrind annotations to obstack
  2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
  2023-02-12  2:56 ` [Bug build/30114] " sam at gentoo dot org
@ 2023-02-12 14:41 ` tromey at sourceware dot org
  2023-09-15 13:52 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-02-12 14:41 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I wonder though if this could be done in libc first, or maybe gnulib.
And perhaps the libiberty copy should be sync'd with one of those.

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

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

* [Bug build/30114] Add valgrind annotations to obstack
  2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
  2023-02-12  2:56 ` [Bug build/30114] " sam at gentoo dot org
  2023-02-12 14:41 ` tromey at sourceware dot org
@ 2023-09-15 13:52 ` tromey at sourceware dot org
  2023-09-15 13:54 ` simon.marchi at polymtl dot ca
  2023-09-15 15:55 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-09-15 13:52 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
There are also ASAN annotations available.

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

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

* [Bug build/30114] Add valgrind annotations to obstack
  2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
                   ` (2 preceding siblings ...)
  2023-09-15 13:52 ` tromey at sourceware dot org
@ 2023-09-15 13:54 ` simon.marchi at polymtl dot ca
  2023-09-15 15:55 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: simon.marchi at polymtl dot ca @ 2023-09-15 13:54 UTC (permalink / raw)
  To: gdb-prs

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

Simon Marchi <simon.marchi at polymtl dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.marchi at polymtl dot ca

--- Comment #3 from Simon Marchi <simon.marchi at polymtl dot ca> ---
(In reply to Tom Tromey from comment #2)
> There are also ASAN annotations available.

I suppose you are talking about:

https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning

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

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

* [Bug build/30114] Add valgrind annotations to obstack
  2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
                   ` (3 preceding siblings ...)
  2023-09-15 13:54 ` simon.marchi at polymtl dot ca
@ 2023-09-15 15:55 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-09-15 15:55 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Simon Marchi from comment #3)

> I suppose you are talking about:

Yes, thanks for the link.

It would also be good to instrument objalloc, which is used by BFD.
For that one, maybe in the sanitizer case, every allocation could
just be done in a new chunk.

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

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

end of thread, other threads:[~2023-09-15 15:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 17:07 [Bug build/30114] New: Add valgrind annotations to obstack tromey at sourceware dot org
2023-02-12  2:56 ` [Bug build/30114] " sam at gentoo dot org
2023-02-12 14:41 ` tromey at sourceware dot org
2023-09-15 13:52 ` tromey at sourceware dot org
2023-09-15 13:54 ` simon.marchi at polymtl dot ca
2023-09-15 15:55 ` 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).