[PATCH v2 RESEND] mtd: afs: validate v2 image info bounds

Miquel Raynal miquel.raynal at bootlin.com
Mon Jul 13 10:03:07 PDT 2026


Hi Linus,

> I don't know if this is stable material. No-one is running into any
> regressions, I think this was discovered by code analysis and
> is mostly theoretical problems.

Thanks for the detailed analysis, I also feel like many of these patches
do not fix actual regression, but I am inclined to take them as long as
they do not darken too much the code. In this case, except the very last
change, I am hesitating.

Shall Pengeng extract the last bit (which is useful) and drop the rest?

Thanks,
Miquèl



More information about the linux-mtd mailing list