On Mon, Sep 28, 2020 at 9:47 PM Siddhesh Poyarekar wrote: > > (Sorry, replying to myself) > > On 29/09/20 10:15, Siddhesh Poyarekar via Libc-alpha wrote: > > There should be a check here to ensure that the bounds do not exceed > > statically set bounds. That is: > > > > if (minp != NULL && cur->type.min < *((int64_t *) minp)) > > cur->type.min = *((int64_t *) minp); > > if (maxp != NULL && cur->type.max > *((int64_t *) maxp)) > > cur->type.max = *((int64_t *) maxp); > > Also check for min > max type invalid ranges. > Here is the updated patch with TUNABLE_SET_BOUNDS_IF_VALID. OK for master? Thanks. -- H.J.