Re: [PULL 2/2] s390x/s390-virtio-ccw: fix loadparm property getter

2020-07-28 Thread Halil Pasic
On Tue, 28 Jul 2020 17:14:38 +0200 Cornelia Huck wrote: > On Tue, 28 Jul 2020 14:52:36 +0100 > Peter Maydell wrote: > > > On Mon, 27 Jul 2020 at 15:05, Cornelia Huck wrote: > > > > > > From: Halil Pasic > > > > > > The function machine_get_loadparm() is supposed to produce a C-string, > > >

Re: [PULL 2/2] s390x/s390-virtio-ccw: fix loadparm property getter

2020-07-28 Thread Cornelia Huck
On Tue, 28 Jul 2020 14:52:36 +0100 Peter Maydell wrote: > On Mon, 27 Jul 2020 at 15:05, Cornelia Huck wrote: > > > > From: Halil Pasic > > > > The function machine_get_loadparm() is supposed to produce a C-string, > > that is a NUL-terminated one, but it does not. ElectricFence can detect > >

Re: [PULL 2/2] s390x/s390-virtio-ccw: fix loadparm property getter

2020-07-28 Thread Peter Maydell
On Mon, 27 Jul 2020 at 15:05, Cornelia Huck wrote: > > From: Halil Pasic > > The function machine_get_loadparm() is supposed to produce a C-string, > that is a NUL-terminated one, but it does not. ElectricFence can detect > this problem if the loadparm machine property is used. > > Let us make

[PULL 2/2] s390x/s390-virtio-ccw: fix loadparm property getter

2020-07-27 Thread Cornelia Huck
From: Halil Pasic The function machine_get_loadparm() is supposed to produce a C-string, that is a NUL-terminated one, but it does not. ElectricFence can detect this problem if the loadparm machine property is used. Let us make the returned string a NUL-terminated one. Fixes: 7104bae9de