Re: [PATCH v2] fix bit fields extraction and prevent overflow

2024-04-30 Thread Peter Maydell
On Sun, 28 Apr 2024 at 19:11, Alexandra Diupina wrote: > > Add a type cast and use extract64() instead of extract32() > to avoid integer overflow on addition. Fix bit fields > extraction according to documentation. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes:

[PATCH v2] fix bit fields extraction and prevent overflow

2024-04-28 Thread Alexandra Diupina
Add a type cast and use extract64() instead of extract32() to avoid integer overflow on addition. Fix bit fields extraction according to documentation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: d3c6369a96 ("introduce xlnx-dpdma") Signed-off-by: Alexandra Diupina