|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Xenvif non-zero byte assertion error during teardown
Hello, On 06/07/2026 09:51, Durrant, Paul wrote: >> struct _XENVIF_FRONTEND (and likely other structs) are in general full >> of similar padding. So the ASSERT(IsZeroMemory(Frontend)) check is too >> strict in most cases. >> >> I think current IsZeroMemory asserts should either be removed or >> converted to a print-only warning. > > What's wrong with zeroing the struct on allocation (which is what is supposed > to happen)? > Struct padding bytes have unspecified values and compilers are free to emit code that overwrite them even if we don't access them directly. So even if a structure was zeroed on initialization, its padding can't be guaranteed to remain zero on teardown. -- Ngoc Tu Dinh | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |