Re: [Xen-devel] [PATCH] xen/cmdline: Fix parse_boolean() for unadorned values

2018-01-31 Thread Jan Beulich
>>> On 31.01.18 at 11:36, wrote: > A command line such as "cpuid=no-ibrsb,no-stibp" tickles a bug in > parse_boolean() because the separating comma fails the NUL case. > > Instead, check for slen == nlen which accounts for the boundary (if any) > passed via the 'e'

[Xen-devel] [PATCH] xen/cmdline: Fix parse_boolean() for unadorned values

2018-01-31 Thread Andrew Cooper
A command line such as "cpuid=no-ibrsb,no-stibp" tickles a bug in parse_boolean() because the separating comma fails the NUL case. Instead, check for slen == nlen which accounts for the boundary (if any) passed via the 'e' parameter. Signed-off-by: Andrew Cooper ---