From: Greg KH <gregkh@linuxfoundation.org>
To: "Марк Коренберг" <socketpair@gmail.com>
Cc: Mike Christie <mchristi@redhat.com>,
stable@vger.kernel.org, Nicholas Bellinger <nab@linux-iscsi.org>
Subject: Re: Integer overflow in target_core_device.c in Linux Kernel
Date: Fri, 22 Apr 2016 11:08:14 +0900 [thread overview]
Message-ID: <20160422020814.GA14159@kroah.com> (raw)
In-Reply-To: <CAEmTpZGWqmSgxxExd7e-VSQeCvsF=EKz_7EWQ0nuju7N+yG2Fw@mail.gmail.com>
On Fri, Apr 22, 2016 at 03:13:58AM +0500, Марк Коренберг wrote:
> Linux kernel commit 8a9ebe717a133ba7bc90b06047f43cc6b8bcb8b3
>
> attrib->max_unmap_lba_count = (q->limits.max_discard_sectors << 9)
>
> Since max_discard_sectors is 32-bit, there may be integer overflow,
> making wrong max_unmap_lba_count.
>
> For example, LVM Thin provisioning reports that it have 16 GB maximal
> discard block.
>
> Exactly the same bug in DRBD9, I have already reported.
Please report this to the mailing list for the subsystem, stable@
doesn't care about stuff like this until it is resolved.
thanks,
greg k-h
prev parent reply other threads:[~2016-04-22 2:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 22:13 Integer overflow in target_core_device.c in Linux Kernel Марк Коренберг
2016-04-22 2:08 ` Greg KH [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=20160422020814.GA14159@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=mchristi@redhat.com \
--cc=nab@linux-iscsi.org \
--cc=socketpair@gmail.com \
--cc=stable@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.