Re: [PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-05-03 Thread Joerg Roedel
On Fri, Apr 20, 2018 at 01:29:55PM +0800, changbin...@intel.com wrote: > > Signed-off-by: Changbin Du > --- > drivers/iommu/dmar.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied and put a patch on-top to change the BUG_ON to a WARN_ON_ONCE.

Re: [PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-05-03 Thread Joerg Roedel
On Fri, Apr 20, 2018 at 01:29:55PM +0800, changbin...@intel.com wrote: > > Signed-off-by: Changbin Du > --- > drivers/iommu/dmar.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied and put a patch on-top to change the BUG_ON to a WARN_ON_ONCE.

Re: [RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-05-02 Thread Lu Baolu
Hi, On 04/28/2018 02:39 PM, changbin...@intel.com wrote: > From: Changbin Du > > It allows to flush more than 4GB of device TLBs. So the mask should be > 64bit wide. UBSAN captured this fault as below. > > [3.760024] >

Re: [RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-05-02 Thread Lu Baolu
Hi, On 04/28/2018 02:39 PM, changbin...@intel.com wrote: > From: Changbin Du > > It allows to flush more than 4GB of device TLBs. So the mask should be > 64bit wide. UBSAN captured this fault as below. > > [3.760024] >

[RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-28 Thread changbin . du
From: Changbin Du It allows to flush more than 4GB of device TLBs. So the mask should be 64bit wide. UBSAN captured this fault as below. [3.760024] [3.768440] UBSAN: Undefined

[RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-28 Thread changbin . du
From: Changbin Du It allows to flush more than 4GB of device TLBs. So the mask should be 64bit wide. UBSAN captured this fault as below. [3.760024] [3.768440] UBSAN: Undefined behaviour in

Re: [PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-26 Thread Du, Changbin
Hello, any reviewer? Thanks! On Fri, Apr 20, 2018 at 01:29:55PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > It allows to flush more than 4GB of device TLBs. So the mask should be > 64bit wide. UBSAN captured this fault as below. > > [3.760024] >

Re: [PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-26 Thread Du, Changbin
Hello, any reviewer? Thanks! On Fri, Apr 20, 2018 at 01:29:55PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > It allows to flush more than 4GB of device TLBs. So the mask should be > 64bit wide. UBSAN captured this fault as below. > > [3.760024] >

[PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-19 Thread changbin . du
From: Changbin Du It allows to flush more than 4GB of device TLBs. So the mask should be 64bit wide. UBSAN captured this fault as below. [3.760024] [3.768440] UBSAN: Undefined

[PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-19 Thread changbin . du
From: Changbin Du It allows to flush more than 4GB of device TLBs. So the mask should be 64bit wide. UBSAN captured this fault as below. [3.760024] [3.768440] UBSAN: Undefined behaviour in