From: Thomas Hellstrom <thellstrom@vmware.com>
To: <gregkh@linuxfoundation.org>, <brianp@vmware.com>,
<stable@vger.kernel.org>, <syeh@vmware.com>
Subject: Re: FAILED: patch "[PATCH] drm/vmwgfx: Fix up user_dmabuf refcounting" failed to apply to 4.2-stable tree
Date: Thu, 5 Nov 2015 08:57:51 +0100 [thread overview]
Message-ID: <563B0BFF.1040603@vmware.com> (raw)
In-Reply-To: <144511376511055@kroah.com>
Greg,
I emailed a backport as per this request. Please let me know if there is
anything additional we need to do
or something we need to do differently to get this in stable.
Thanks,
Thomas
On 10/17/2015 10:29 PM, gregkh@linuxfoundation.org wrote:
> The patch below does not apply to the 4.2-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
> thanks,
>
> greg k-h
>
> ------------------ original commit in Linus's tree ------------------
>
> From 54c12bc374408faddbff75dbf1a6167c19af39c4 Mon Sep 17 00:00:00 2001
> From: Thomas Hellstrom <thellstrom@vmware.com>
> Date: Mon, 14 Sep 2015 01:13:11 -0700
> Subject: [PATCH] drm/vmwgfx: Fix up user_dmabuf refcounting
>
> If user space calls unreference on a user_dmabuf it will typically
> kill the struct ttm_base_object member which is responsible for the
> user-space visibility. However the dmabuf part may still be alive and
> refcounted. In some situations, like for shared guest-backed surface
> referencing/opening, the driver may try to reference the
> struct ttm_base_object member again, causing an immediate kernel warning
> and a later kernel NULL pointer dereference.
>
> Fix this by always maintaining a reference on the struct
> ttm_base_object member, in situations where it might subsequently be
> referenced.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
> Reviewed-by: Brian Paul <brianp@vmware.com>
> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
>
>
prev parent reply other threads:[~2015-11-05 7:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-17 20:29 FAILED: patch "[PATCH] drm/vmwgfx: Fix up user_dmabuf refcounting" failed to apply to 4.2-stable tree gregkh
2015-11-05 7:57 ` Thomas Hellstrom [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=563B0BFF.1040603@vmware.com \
--to=thellstrom@vmware.com \
--cc=brianp@vmware.com \
--cc=gregkh@linuxfoundation.org \
--cc=stable@vger.kernel.org \
--cc=syeh@vmware.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;
as well as URLs for NNTP newsgroup(s).