public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/29283] assert when ptrace(PTRACE_POKEDATA) on allocated buffer
Date: Fri, 24 Jun 2022 07:22:59 +0000 [thread overview]
Message-ID: <bug-29283-131-tQMDY5SYR5@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29283-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=29283
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
Flags| |security-
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to russkubik from comment #0)
> $ BUFSIZ=72 ./tracer 0x5555555592a0 ./tracee
This is a 64-bit address, suggesting a 64-bit process.
But your code does this:
#define WORD uint32_t
src = (WORD *)buf;
dst = (WORD *)tracee_addr;
for (size_t i = 0; i < buf_size / sizeof(WORD); i++) {
if (ptrace(PTRACE_POKEDATA, child, dst, *src) == -1) {
handle_error("ptrace(PTRACE_POKEDATA)");
}
src++;
dst++;
}
WORD needs to be 64 bits.
--
You are receiving this mail because:
You are on the CC list for the bug.
prev parent reply other threads:[~2022-06-24 7:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 1:26 [Bug malloc/29283] New: " russkubik at gmail dot com
2022-06-24 1:26 ` [Bug malloc/29283] " russkubik at gmail dot com
2022-06-24 7:22 ` fweimer at redhat dot com [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-29283-131-tQMDY5SYR5@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=glibc-bugs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).