[lustre-devel] [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv
Dan Carpenter
dan.carpenter at oracle.com
Sat May 5 01:29:13 PDT 2018
On Fri, May 04, 2018 at 10:01:44AM -0500, Kangjie Lu wrote:
> > There is nothing preventing the user from using struct lov_mds_md_v3 but
> > filling in lmm_magic = LOV_MAGIC_V1 from the beginning, no need for a race.
> >
>
> Right. No need for users to race. There might be a type confusion issue
> though if V1
> object is used as V3 or the other way.
>
It's a bit confusing for someone reading the code, but in terms of the
kernel it's straightforward.
It's like if someone is typing with their toes, that's sort of confusing
but it's not a security issue. And here we're implementing a no typing
with your toes policy just to make things more higienic (static checkers
in this metaphor).
regards,
dan carpenter
More information about the lustre-devel
mailing list