On 02.07.2025 15:18, Julien Grall wrote:
> On 02/07/2025 14:06, Jan Beulich wrote:
>> When the bumping by <nr> (instead of just 1) was introduced, a comment
>> was left untouched, and a bogus ASSERT_UNREACHABLE() was inserted. That
>> code path can in principle be taken (depending on configuration coming
>> from the outside), and we shouldn't assert anything we didn't check
>> elsewhere.
> 
> I suggested to add the ASSERT_UNREACHABLE (see [1]). My take is the 
> overflow is not something that should happen and it is good to be able 
> to catch very clearly in debug build.

But catching an anomalous entry in DT (which aiui the values come from,
even if perhaps indirectly) isn't going to depend on people using debug
builds. It depends on what DT blobs they use. And issues there shouldn't
be checked by assertions, as those blobs live outside of Xen.

> So I am reluctant to remove it at the moment.

But then some checking needs to be added elsewhere.

Jan

Reply via email to