summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/device/1869497
blob: c4c3aa9c7dbefb9166a10f36a0f7f3ce5f50e459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
device: 0.914
instruction: 0.886
vnc: 0.804
socket: 0.797
network: 0.777
graphic: 0.706
semantic: 0.641
boot: 0.619
other: 0.523
KVM: 0.497
mistranslation: 0.489
assembly: 0.204

x86_cpu_gdb_read_register segfaults when gdb requests registers

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 have a fix for this - just need to educate myself on how to submit a patch.

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.)


Fixed in commit bbc40fefcee0d69d61ceaf8c0695d2ce43cdc87b.