Re: [PATCH 57/82] KVM: arm64: vgic-v3: Refactor intentional wrap-around test

2024-01-24 Thread Eric Auger
On 1/23/24 01:27, Kees Cook wrote: > In an effort to separate intentional arithmetic wrap-around from > unexpected wrap-around, we need to refactor places that depend on this > kind of math. One of the most common code patterns of this is: > > VAR + value < VAR > > Notably, this is conside

Re: [PATCH 57/82] KVM: arm64: vgic-v3: Refactor intentional wrap-around test

2024-01-23 Thread Marc Zyngier
On Tue, 23 Jan 2024 00:27:32 +, Kees Cook wrote: > > In an effort to separate intentional arithmetic wrap-around from > unexpected wrap-around, we need to refactor places that depend on this > kind of math. One of the most common code patterns of this is: > > VAR + value < VAR > > Not

[PATCH 57/82] KVM: arm64: vgic-v3: Refactor intentional wrap-around test

2024-01-22 Thread Kees Cook
In an effort to separate intentional arithmetic wrap-around from unexpected wrap-around, we need to refactor places that depend on this kind of math. One of the most common code patterns of this is: VAR + value < VAR Notably, this is considered "undefined behavior" for signed and pointer