From: Greg KH <gregkh@linuxfoundation.org>
To: Stefano Garzarella <sgarzare@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
stable@vger.kernel.org, Jason Wang <jasowang@redhat.com>,
virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH for 5.10 v2 0/5] vdpa_sim: fix param validation in vdpasim_get_config()
Date: Wed, 17 Feb 2021 11:58:53 +0100 [thread overview]
Message-ID: <YCz27cywSabiGgDz@kroah.com> (raw)
In-Reply-To: <20210216142439.258713-1-sgarzare@redhat.com>
On Tue, Feb 16, 2021 at 03:24:34PM +0100, Stefano Garzarella wrote:
> v1: https://lore.kernel.org/stable/20210211162519.215418-1-sgarzare@redhat.com/
>
> v2:
> - backport the upstream patch and related patches needed
>
> Commit 65b709586e22 ("vdpa_sim: add get_config callback in
> vdpasim_dev_attr") unintentionally solved an issue in vdpasim_get_config()
> upstream while refactoring vdpa_sim.c to support multiple devices.
>
> Before that patch, if 'offset + len' was equal to
> sizeof(struct virtio_net_config), the entire buffer wasn't filled,
> returning incorrect values to the caller.
>
> Since 'vdpasim->config' type is 'struct virtio_net_config', we can
> safely copy its content under this condition.
>
> The minimum set of patches to backport the patch that fixes the issue, is the
> following:
>
> 423248d60d2b vdpa_sim: remove hard-coded virtq count
> 6c6e28fe4579 vdpa_sim: add struct vdpasim_dev_attr for device attributes
> cf1a3b35382c vdpa_sim: store parsed MAC address in a buffer
> f37cbbc65178 vdpa_sim: make 'config' generic and usable for any device type
> 65b709586e22 vdpa_sim: add get_config callback in vdpasim_dev_attr
>
> The patches apply fairly cleanly. There are a few contextual differences
> due to the lack of the other patches:
>
> $ git backport-diff -u master -r linux-5.10.y..HEAD
Cool, where is 'backport-diff' from?
> Key:
> [----] : patches are identical
> [####] : number of functional differences between upstream/downstream patch
> [down] : patch is downstream-only
> The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively
>
> 001/5:[----] [--] 'vdpa_sim: remove hard-coded virtq count'
> 002/5:[----] [-C] 'vdpa_sim: add struct vdpasim_dev_attr for device attributes'
> 003/5:[----] [--] 'vdpa_sim: store parsed MAC address in a buffer'
> 004/5:[----] [-C] 'vdpa_sim: make 'config' generic and usable for any device type'
> 005/5:[----] [-C] 'vdpa_sim: add get_config callback in vdpasim_dev_attr'
Now all applied, thanks.
greg k-h
next prev parent reply other threads:[~2021-02-17 11:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-16 14:24 [PATCH for 5.10 v2 0/5] vdpa_sim: fix param validation in vdpasim_get_config() Stefano Garzarella
2021-02-16 14:24 ` [PATCH for 5.10 v2 1/5] vdpa_sim: remove hard-coded virtq count Stefano Garzarella
2021-02-16 14:24 ` [PATCH for 5.10 v2 2/5] vdpa_sim: add struct vdpasim_dev_attr for device attributes Stefano Garzarella
2021-02-16 14:24 ` [PATCH for 5.10 v2 3/5] vdpa_sim: store parsed MAC address in a buffer Stefano Garzarella
2021-02-16 14:24 ` [PATCH for 5.10 v2 4/5] vdpa_sim: make 'config' generic and usable for any device type Stefano Garzarella
2021-02-16 14:24 ` [PATCH for 5.10 v2 5/5] vdpa_sim: add get_config callback in vdpasim_dev_attr Stefano Garzarella
2021-02-17 10:58 ` Greg KH [this message]
2021-02-17 11:10 ` [PATCH for 5.10 v2 0/5] vdpa_sim: fix param validation in vdpasim_get_config() Stefano Garzarella
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=YCz27cywSabiGgDz@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=sgarzare@redhat.com \
--cc=stable@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox