Re: [PATCH 1/2] lib/strtox: introduce kstrtoull_suffix() helper

From: Alexey Dobriyan
Date: Wed Dec 20 2023 - 04:55:13 EST


> Just as mentioned in the comment of memparse(), the simple_stroull()
> usage can lead to overflow all by itself.

which is the root cause...

I don't like one char suffixes. They are easy to integrate but then the
_real_ suffixes are "MiB", "GiB", etc.

If you care only about memparse(), then using _parse_integer() can be
arranged. I don't see why not.