From: Mike Snitzer <snitzer@redhat.com>
To: Heinz Mauelshagen <heinzm@redhat.com>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH v2] dm raid: fix parse_raid_params() variable range issue
Date: Mon, 26 Mar 2018 19:23:42 -0400 [thread overview]
Message-ID: <20180326232342.GA23449@redhat.com> (raw)
In-Reply-To: <20180326181651.GA22251@redhat.com>
On Mon, Mar 26 2018 at 2:16pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> On Thu, Mar 22 2018 at 5:13pm -0400,
> Heinz Mauelshagen <heinzm@redhat.com> wrote:
>
> > On 03/22/2018 08:41 PM, Mike Snitzer wrote:
> > >On Thu, Mar 22 2018 at 1:21pm -0400,
> > >Heinz Mauelshagen <heinzm@redhat.com> wrote:
> > >
> > >>This v2 addresses Mikulas' point about the variable range and folds in
> > >>"[PATCH] dm raid: use __within_range() more in parse_raid_params()":
> > >>
> > >>parse_raid_parames() compared variable "int value" with
> > >>INT_MAX to prevent overflow of mddev variables set.
> > >>
> > >>Change type to "long long value".
> > >Can you elaborate on the risk/issue that is being fixed here?
> >
> > Fix addresses a coverity finding supporting the full,
> > positive range of the "struct mddev" int members
> > set here. I.e. the "int" cast is compared with INT_MAX.
>
> Can you cut and paste the relevant portions of the coverity report?
I've dropped this patch for now. Until I get more insight on what the
problem is I'm not appreciating why changing to a larger data type is
the right way forward (especially if MD is just using int anyway).
Mike
prev parent reply other threads:[~2018-03-26 23:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-22 17:21 [PATCH v2] dm raid: fix parse_raid_params() variable range issue Heinz Mauelshagen
2018-03-22 19:41 ` Mike Snitzer
2018-03-22 21:13 ` Heinz Mauelshagen
2018-03-26 18:16 ` Mike Snitzer
2018-03-26 23:23 ` Mike Snitzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180326232342.GA23449@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=heinzm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox