[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 3/8] s390/sclp: read sccb from mem based on provided lengt
From: |
Thomas Huth |
Subject: |
Re: [PATCH v6 3/8] s390/sclp: read sccb from mem based on provided length |
Date: |
Wed, 16 Sep 2020 10:00:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
On 15/09/2020 21.44, Collin Walling wrote:
> The header contained within the SCCB passed to the SCLP service call
> contains the actual length of the SCCB. Instead of allocating a static
> 4K size for the work sccb, let's allow for a variable size determined
> by the value in the header. The proper checks are already in place to
> ensure the SCCB length is sufficent to store a full response and that
> the length does not cross any explicitly-set boundaries.
>
> Signed-off-by: Collin Walling <walling@linux.ibm.com>
> ---
> hw/s390x/event-facility.c | 2 +-
> hw/s390x/sclp.c | 55 ++++++++++++++++++++++-----------------
> include/hw/s390x/sclp.h | 2 +-
> 3 files changed, 33 insertions(+), 26 deletions(-)
Reviewed-by: Thomas Huth <thuth@redhat.com>
- [PATCH v6 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318, Collin Walling, 2020/09/15
- [PATCH v6 1/8] s390/sclp: get machine once during read scp/cpu info, Collin Walling, 2020/09/15
- [PATCH v6 4/8] s390/sclp: check sccb len before filling in data, Collin Walling, 2020/09/15
- [PATCH v6 3/8] s390/sclp: read sccb from mem based on provided length, Collin Walling, 2020/09/15
- Re: [PATCH v6 3/8] s390/sclp: read sccb from mem based on provided length,
Thomas Huth <=
- [PATCH v6 2/8] s390/sclp: rework sclp boundary checks, Collin Walling, 2020/09/15
- [PATCH v6 5/8] s390/sclp: use cpu offset to locate cpu entries, Collin Walling, 2020/09/15
- [PATCH v6 7/8] s390/kvm: header sync for diag318, Collin Walling, 2020/09/15
- [PATCH v6 6/8] s390/sclp: add extended-length sccb support for kvm guest, Collin Walling, 2020/09/15
- [PATCH v6 8/8] s390: guest support for diagnose 0x318, Collin Walling, 2020/09/15