* [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers
@ 2020-03-28 15:38 Matt Wilbur
2020-03-29 20:22 ` [Bug 1869497] " Matt Wilbur
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Matt Wilbur @ 2020-03-28 15:38 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray. The
buffer passed to gdb_get_reg16 ends up passing an invalid GByteArray
pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
** Affects: qemu
Importance: Undecided
Status: New
** Description changed:
When attempting to attach to the gdbstub, a segfault occurs.
- I traced this down to a problem in a call to gdb_get_reg16 where the mem_buf
- was being treated like a uint8_t* instead of a GByteArray. The buffer passed
- to gdb_get_reg16 ends up passing an invalid GByteArray pointer, which subsequently
- causes a segfault in memcpy.
+ I traced this down to a problem in a call to gdb_get_reg16 where the
+ mem_buf was being treated like a uint8_t* instead of a GByteArray. The
+ buffer passed to gdb_get_reg16 ends up passing an invalid GByteArray
+ pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1869497
Title:
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
New
Bug description:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray.
The buffer passed to gdb_get_reg16 ends up passing an invalid
GByteArray pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1869497/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers
2020-03-28 15:38 [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers Matt Wilbur
@ 2020-03-29 20:22 ` Matt Wilbur
2020-03-29 20:33 ` Peter Maydell
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Matt Wilbur @ 2020-03-29 20:22 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Assignee: (unassigned) => Matt Wilbur (mattwilbur)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1869497
Title:
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
New
Bug description:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray.
The buffer passed to gdb_get_reg16 ends up passing an invalid
GByteArray pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1869497/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers
2020-03-28 15:38 [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers Matt Wilbur
2020-03-29 20:22 ` [Bug 1869497] " Matt Wilbur
@ 2020-03-29 20:33 ` Peter Maydell
2020-04-18 13:39 ` Philippe Mathieu-Daudé
2020-08-20 15:36 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2020-03-29 20:33 UTC (permalink / raw)
To: qemu-devel
Thanks for tracking down the source of the bug. Our 'submitting patches'
policy is at https://wiki.qemu.org/Contribute/SubmitAPatch in case you
haven't already found it. (It's quite long but for a simple one-shot
bugfix patch the important stuff is just the summarized bits at the
top.)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1869497
Title:
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
New
Bug description:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray.
The buffer passed to gdb_get_reg16 ends up passing an invalid
GByteArray pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1869497/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers
2020-03-28 15:38 [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers Matt Wilbur
2020-03-29 20:22 ` [Bug 1869497] " Matt Wilbur
2020-03-29 20:33 ` Peter Maydell
@ 2020-04-18 13:39 ` Philippe Mathieu-Daudé
2020-08-20 15:36 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-18 13:39 UTC (permalink / raw)
To: qemu-devel
Fixed in commit bbc40fefcee0d69d61ceaf8c0695d2ce43cdc87b.
** Changed in: qemu
Status: New => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1869497
Title:
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
Fix Committed
Bug description:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray.
The buffer passed to gdb_get_reg16 ends up passing an invalid
GByteArray pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1869497/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers
2020-03-28 15:38 [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers Matt Wilbur
` (2 preceding siblings ...)
2020-04-18 13:39 ` Philippe Mathieu-Daudé
@ 2020-08-20 15:36 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2020-08-20 15:36 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1869497
Title:
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
Fix Released
Bug description:
When attempting to attach to the gdbstub, a segfault occurs.
I traced this down to a problem in a call to gdb_get_reg16 where the
mem_buf was being treated like a uint8_t* instead of a GByteArray.
The buffer passed to gdb_get_reg16 ends up passing an invalid
GByteArray pointer, which subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1869497/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-20 15:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 15:38 [Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers Matt Wilbur
2020-03-29 20:22 ` [Bug 1869497] " Matt Wilbur
2020-03-29 20:33 ` Peter Maydell
2020-04-18 13:39 ` Philippe Mathieu-Daudé
2020-08-20 15:36 ` Thomas Huth
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 NNTP newsgroup(s).