Re: [PATCH 1/2] vfs: parse: deal with zero length string value

From: Christian Brauner
Date: Tue Jun 28 2022 - 09:04:12 EST


On Fri, Jun 17, 2022 at 01:09:03PM +0800, Ian Kent wrote:
> Parsing an fs string that has zero length should result in the parameter
> being set to NULL so that downstream processing handles it correctly.
> For example, the proc mount table processing should print "(none)" in
> this case to preserve mount record field count, but if the value points
> to the NULL string this doesn't happen.
>
> Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
> ---

Makes sense. Though I feel this is might be one of those instances where
we detect that some code isn't prepared for param.string to be NULL at
some point...
Reviewed-by: Christian Brauner (Microsoft) <brauner@xxxxxxxxxx>