mbox series

[0/3] pc-bios/s390-ccw: Fix problems related to network booting

Message ID 20250116115826.192047-1-thuth@redhat.com (mailing list archive)
Headers show
Series pc-bios/s390-ccw: Fix problems related to network booting | expand

Message

Thomas Huth Jan. 16, 2025, 11:58 a.m. UTC
The boot can currently fail after the s390-ccw bios used a network
device since we do not properly shut down the device afterwards, so
that incoming network packets can corrupt the memory. We have to make
sure to put the virtio-net device into a sane state again afterwards.

The third patch is unrelated, but I spotted this rather cosmetic
problem while working on the code in netmain.c, so I included it here,
too.

Thomas Huth (3):
  pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
  pc-bios/s390-ccw: Fix boot problem with virtio-net devices
  pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
    server

 pc-bios/s390-ccw/virtio.h     |  2 ++
 pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
 pc-bios/s390-ccw/virtio-net.c |  5 ++++
 pc-bios/s390-ccw/virtio.c     |  7 ++++-
 4 files changed, 44 insertions(+), 22 deletions(-)

Comments

Jared Rossi Jan. 16, 2025, 2:26 p.m. UTC | #1
Thanks Thomas,

Looks good to me. I've tested and verified that the problem is fixed.

Tested-by: Jared Rossi <jrossi@linux.ibm.com>

On 1/16/25 6:58 AM, Thomas Huth wrote:
> The boot can currently fail after the s390-ccw bios used a network
> device since we do not properly shut down the device afterwards, so
> that incoming network packets can corrupt the memory. We have to make
> sure to put the virtio-net device into a sane state again afterwards.
>
> The third patch is unrelated, but I spotted this rather cosmetic
> problem while working on the code in netmain.c, so I included it here,
> too.
>
> Thomas Huth (3):
>    pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
>    pc-bios/s390-ccw: Fix boot problem with virtio-net devices
>    pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
>      server
>
>   pc-bios/s390-ccw/virtio.h     |  2 ++
>   pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
>   pc-bios/s390-ccw/virtio-net.c |  5 ++++
>   pc-bios/s390-ccw/virtio.c     |  7 ++++-
>   4 files changed, 44 insertions(+), 22 deletions(-)
>
Eric Farman Jan. 16, 2025, 3:33 p.m. UTC | #2
On Thu, 2025-01-16 at 12:58 +0100, Thomas Huth wrote:
> The boot can currently fail after the s390-ccw bios used a network
> device since we do not properly shut down the device afterwards, so
> that incoming network packets can corrupt the memory. We have to make
> sure to put the virtio-net device into a sane state again afterwards.
> 
> The third patch is unrelated, but I spotted this rather cosmetic
> problem while working on the code in netmain.c, so I included it here,
> too.
> 
> Thomas Huth (3):
>   pc-bios/s390-ccw/virtio: Add a function to reset a virtio device
>   pc-bios/s390-ccw: Fix boot problem with virtio-net devices
>   pc-bios/s390-ccw/netmain: Fix error messages with regards to the TFTP
>     server

Looks good to me; Thank you, Thomas! For the series:

Reviewed-by: Eric Farman <farman@linux.ibm.com>

> 
>  pc-bios/s390-ccw/virtio.h     |  2 ++
>  pc-bios/s390-ccw/netmain.c    | 52 +++++++++++++++++++++--------------
>  pc-bios/s390-ccw/virtio-net.c |  5 ++++
>  pc-bios/s390-ccw/virtio.c     |  7 ++++-
>  4 files changed, 44 insertions(+), 22 deletions(-)
>