[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error expose
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once() |
Date: |
Tue, 22 Jan 2019 13:57:50 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 21/01/2019 20:35, Peter Xu wrote:
> On Mon, Jan 21, 2019 at 12:32:07AM -0800, address@hidden wrote:
>> Patchew URL: https://patchew.org/QEMU/address@hidden/
>>
>>
>>
>> Hi,
>>
>> This series failed the address@hidden build test. Please find the testing
>> commands and
>> their output below. If you have Docker installed, you can probably reproduce
>> it
>> locally.
>>
>> === TEST SCRIPT BEGIN ===
>> #!/bin/bash
>> time make address@hidden SHOW_ENV=1 J=14
>> === TEST SCRIPT END ===
>>
>> CC hw/block/pflash_cfi01.o
>> In function 'acpi_table_install',
>> inlined from 'acpi_table_add' at /tmp/qemu-test/src/hw/acpi/core.c:296:5:
>> /tmp/qemu-test/src/hw/acpi/core.c:184:9: error: 'strncpy' specified bound 4
>> equals destination size [-Werror=stringop-truncation]
>> strncpy(ext_hdr->sig, hdrs->sig, sizeof ext_hdr->sig);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /tmp/qemu-test/src/hw/acpi/core.c:203:9: error: 'strncpy' specified bound 6
>> equals destination size [-Werror=stringop-truncation]
>> strncpy(ext_hdr->oem_id, hdrs->oem_id, sizeof ext_hdr->oem_id);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /tmp/qemu-test/src/hw/acpi/core.c:207:9: error: 'strncpy' specified bound 8
>> equals destination size [-Werror=stringop-truncation]
>> strncpy(ext_hdr->oem_table_id, hdrs->oem_table_id,
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sizeof ext_hdr->oem_table_id);
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /tmp/qemu-test/src/hw/acpi/core.c:216:9: error: 'strncpy' specified bound 4
>> equals destination size [-Werror=stringop-truncation]
>> strncpy(ext_hdr->asl_compiler_id, hdrs->asl_compiler_id,
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sizeof ext_hdr->asl_compiler_id);
>> ---
>> make: *** [/tmp/qemu-test/src/rules.mak:69: hw/acpi/core.o] Error 1
>> make: *** Waiting for unfinished jobs....
>> /tmp/qemu-test/src/block/sheepdog.c: In function 'find_vdi_name':
>> /tmp/qemu-test/src/block/sheepdog.c:1239:5: error: 'strncpy' specified bound
>> 256 equals destination size [-Werror=stringop-truncation]
>> strncpy(buf + SD_MAX_VDI_LEN, tag, SD_MAX_VDI_TAG_LEN);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>> make: *** [/tmp/qemu-test/src/rules.mak:69: block/sheepdog.o] Error 1
>> /tmp/qemu-test/src/hw/acpi/aml-build.c: In function 'build_header':
>> /tmp/qemu-test/src/hw/acpi/aml-build.c:1535:9: error: 'strncpy' specified
>> bound 6 equals destination size [-Werror=stringop-truncation]
>> strncpy((char *)h->oem_id, oem_id, sizeof h->oem_id);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /tmp/qemu-test/src/hw/acpi/aml-build.c:1541:9: error: 'strncpy' specified
>> bound 8 equals destination size [-Werror=stringop-truncation]
>> strncpy((char *)h->oem_table_id, oem_table_id,
>> sizeof(h->oem_table_id));
>>
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>
> I'm uncertain about these errors but it seems to be more likely to be
> caused by some configuration or compiler change instead of the series
> itself since this series never changed either acpi or sheepdog code.
> So I'll temporarily ignore them...
I am getting these too and I do not touch the mentioned files and
folders ever.
--
Alexey
- [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once(), Peter Xu, 2019/01/15
- [Qemu-devel] [PATCH v2 4/4] i386/kvm: ignore masked irqs when update msi routes, Peter Xu, 2019/01/15
- [Qemu-devel] [PATCH v2 3/4] pci/msi: export msi_is_masked(), Peter Xu, 2019/01/15
- [Qemu-devel] [PATCH v2 2/4] intel_iommu: reset intr_enabled when system reset, Peter Xu, 2019/01/15
- [Qemu-devel] [PATCH v2 1/4] intel_iommu: fix operator in vtd_switch_address_space, Peter Xu, 2019/01/15
- Re: [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once(), no-reply, 2019/01/21