Re: [PATCH 1/1] iommu/vt-d: Fix NULL pointer dereference in dev_iommu_priv_set()

2020-09-04 Thread Joerg Roedel
On Thu, Sep 03, 2020 at 02:51:32PM +0800, Lu Baolu wrote: > --- > drivers/iommu/intel/iommu.c | 100 > 1 file changed, 55 insertions(+), 45 deletions(-) Applied for v5.9, thanks.

Re: [PATCH 1/1] iommu/vt-d: Fix NULL pointer dereference in dev_iommu_priv_set()

2020-09-03 Thread Torsten Hilbrich
On 03.09.20 08:51, Lu Baolu wrote: > The dev_iommu_priv_set() must be called after probe_device(). This fixes > a NULL pointer deference bug when booting a system with kernel cmdline > "intel_iommu=on,igfx_off", where the dev_iommu_priv_set() is abused. [...] > > Fixes: 01b9d4e21148c

[PATCH 1/1] iommu/vt-d: Fix NULL pointer dereference in dev_iommu_priv_set()

2020-09-03 Thread Lu Baolu
The dev_iommu_priv_set() must be called after probe_device(). This fixes a NULL pointer deference bug when booting a system with kernel cmdline "intel_iommu=on,igfx_off", where the dev_iommu_priv_set() is abused. The following stacktrace was produced: [0.00] Command line: