K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-10-04T14:19:03.601063Z K 7 svn:log V 621 rman: fix overflow in rman_reserve_resource_bound() If the default range of [0, ~0] is given, then (~0 - 0) + 1 == 0. This in turn will cause any allocation of non-zero size to fail. Zero-sized allocations are prohibited, so add a KASSERT to this effect. History indicates it is part of the original rman code. This bug may in fact be older than some contributors. Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30280 (cherry picked from commit bcddaadbef5850ed9f040836d3f25ff57138ae28) Git Hash: a3acb379bdea033ce08b4800cbb5a9c46a673ce1 Git Author: ehem+freebsd@m5p.com END