[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 17/21] s390x: Fix latent query-cpu-model-FOO error handling b
From: |
David Hildenbrand |
Subject: |
Re: [PATCH 17/21] s390x: Fix latent query-cpu-model-FOO error handling bugs |
Date: |
Sat, 30 Nov 2019 16:22:42 -0500 (EST) |
> Am 30.11.2019 um 20:42 schrieb Markus Armbruster <address@hidden>:
>
> cpu_model_from_info() is a helper for qmp_query_cpu_model_expansion(),
> qmp_query_cpu_model_comparison(), qmp_query_cpu_model_baseline(). It
> crashes when the visitor or the QOM setter fails, and its @errp
> argument is null. Messed up in commit 137974cea3 's390x/cpumodel:
> implement QMP interface "query-cpu-model-expansion"'.
>
> Its three callers have the same bug. Messed up in commit 4e82ef0502
> 's390x/cpumodel: implement QMP interface "query-cpu-model-comparison"'
> and commit f1a47d08ef 's390x/cpumodel: implement QMP interface
> "query-cpu-model-baseline"'.
>
> The bugs can't bite as no caller actually passes null. Fix them
> anyway.
https://en.m.wikipedia.org/wiki/Software_bug
„ A software bug is an error, flaw or fault in a computer program or system
that causes it to produce an incorrect or unexpected result, or to behave in
unintended ways. „
Please make it clear in the descriptions that these are cleanups and not
bugfixes. It might be very confusing for people looking out for real bugs.
Also, please change the terminology „messed up“ to „introduced in“ or similar.
(applies to all s390x patches)
Thanks.
- [PATCH 07/21] tests: Clean up initialization of Error *err variables, (continued)
- [PATCH 07/21] tests: Clean up initialization of Error *err variables, Markus Armbruster, 2019/11/30
- [PATCH 15/21] s390x/cpu_models: Fix latent feature property error handling bugs, Markus Armbruster, 2019/11/30
- [PATCH 13/21] memory-device: Fix latent memory pre-plug error handling bugs, Markus Armbruster, 2019/11/30
- [PATCH 12/21] qga: Fix latent guest-get-fsinfo error handling bug, Markus Armbruster, 2019/11/30
- [PATCH 18/21] s390x: Fix latent query-cpu-definitions error handling bug, Markus Armbruster, 2019/11/30
- [PATCH 11/21] hw/ipmi: Fix latent realize() error handling bugs, Markus Armbruster, 2019/11/30
- [PATCH 09/21] hw/acpi: Fix latent legacy CPU plug error handling bug, Markus Armbruster, 2019/11/30
- [PATCH 21/21] tests-blockjob: Use error_free_or_abort(), Markus Armbruster, 2019/11/30
- [PATCH 20/21] hw/intc/s390: Simplify error handling in kvm_s390_flic_realize(), Markus Armbruster, 2019/11/30
- [PATCH 17/21] s390x: Fix latent query-cpu-model-FOO error handling bugs, Markus Armbruster, 2019/11/30
- Re: [PATCH 17/21] s390x: Fix latent query-cpu-model-FOO error handling bugs,
David Hildenbrand <=