[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] qtest: add a reproducer for LP#1878642
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] qtest: add a reproducer for LP#1878642 |
Date: |
Mon, 2 Nov 2020 19:58:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 11/2/20 7:23 PM, Paolo Bonzini wrote:
> On 02/11/20 17:33, Alexander Bulekov wrote:
>> https://bugs.launchpad.net/qemu/+bug/1878642
>>
>> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
>> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
>> ---
>>
>> Based-on: <20200717151705.18611-1-f4bug@amsat.org>
>>
>> The added testcase will fail, unless this ^^^ patch is applied.
>>
>> tests/qtest/fuzz-test.c | 15 +++++++++++++++
>> 1 file changed, 15 insertions(+)
>>
>> diff --git a/tests/qtest/fuzz-test.c b/tests/qtest/fuzz-test.c
>> index 2f38bb1ec2..9cb4c42bde 100644
>> --- a/tests/qtest/fuzz-test.c
>> +++ b/tests/qtest/fuzz-test.c
>> @@ -34,6 +34,19 @@ static void test_lp1878263_megasas_zero_iov_cnt(void)
>> qtest_quit(s);
>> }
>>
>> +static void test_lp1878642_pci_bus_get_irq_level_assert(void)
>> +{
>> + QTestState *s;
>> +
>> + s = qtest_init("-M pc-q35-5.0 "
>> + "-nographic -monitor none -serial none "
>> + "-d guest_errors -trace pci*");
>> +
>> + qtest_outl(s, 0xcf8, 0x8400f841);
>> + qtest_outl(s, 0xcfc, 0xebed205d);
>> + qtest_outl(s, 0x5d02, 0xebed205d);
>> +}
>> +
>> int main(int argc, char **argv)
>> {
>> const char *arch = qtest_get_arch();
>> @@ -43,6 +56,8 @@ int main(int argc, char **argv)
>> if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
>> qtest_add_func("fuzz/test_lp1878263_megasas_zero_iov_cnt",
>> test_lp1878263_megasas_zero_iov_cnt);
>> + qtest_add_func("fuzz/test_lp1878642_pci_bus_get_irq_level_assert",
>> + test_lp1878642_pci_bus_get_irq_level_assert);
>> }
>>
>> return g_test_run();
>>
>
> Queued, thanks.
Great, did you queued the fix too?
(https://www.mail-archive.com/qemu-devel@nongnu.org/msg725783.html)
Regards,
Phil.