Re: [PATCH v2] net: xfrm: Fix xfrm_address_filter OOB read

From: Alexey Dobriyan
Date: Sun Jun 25 2023 - 10:07:37 EST


> + if (filter->splen >= (sizeof(xfrm_address_t) << 3) ||
> + filter->dplen >= (sizeof(xfrm_address_t) << 3)) {

Please multiply by 8 if you want to multiply by 8.

Should it be "splen > 8 * sizeof()" ?