Re: [PATCH 1/2] xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent

2023-06-28 Thread Stefano Stabellini
On Wed, 21 Jun 2023, Oleksandr Tyshchenko wrote: > On 21.06.23 16:12, Petr Pavlu wrote: > Hello Petr > > > > When attempting to run Xen on a QEMU/KVM virtual machine with virtio > > devices (all x86_64), function xen_dt_get_node() crashes on accessing > > bus->bridge->parent->of_node because a br

Re: [PATCH 1/2] xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent

2023-06-21 Thread Oleksandr Tyshchenko
On 21.06.23 16:12, Petr Pavlu wrote: Hello Petr > When attempting to run Xen on a QEMU/KVM virtual machine with virtio > devices (all x86_64), function xen_dt_get_node() crashes on accessing > bus->bridge->parent->of_node because a bridge of the PCI root bus has no > parent set: > > [1.6

[PATCH 1/2] xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent

2023-06-21 Thread Petr Pavlu
When attempting to run Xen on a QEMU/KVM virtual machine with virtio devices (all x86_64), function xen_dt_get_node() crashes on accessing bus->bridge->parent->of_node because a bridge of the PCI root bus has no parent set: [1.694192][T1] BUG: kernel NULL pointer dereference, address: 000