From: Jason Gunthorpe <jgg@mellanox.com>
To: "Michel Dänzer" <michel@daenzer.net>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"Jérôme Glisse" <jglisse@redhat.com>,
"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: HMM related use-after-free with amdgpu
Date: Tue, 16 Jul 2019 17:20:50 +0000 [thread overview]
Message-ID: <20190716172045.GG29741@mellanox.com> (raw)
In-Reply-To: <cc010b8d-0018-783a-648f-01099fc63352@daenzer.net>
On Tue, Jul 16, 2019 at 07:04:52PM +0200, Michel Dänzer wrote:
> On 2019-07-16 6:35 p.m., Jason Gunthorpe wrote:
> > On Tue, Jul 16, 2019 at 06:31:09PM +0200, Michel Dänzer wrote:
> >> On 2019-07-15 7:25 p.m., Jason Gunthorpe wrote:
> >>> On Mon, Jul 15, 2019 at 06:51:06PM +0200, Michel Dänzer wrote:
> >>>>
> >>>> With a KASAN enabled kernel built from amd-staging-drm-next, the
> >>>> attached use-after-free is pretty reliably detected during a piglit gpu run.
> >>>
> >>> Does this branch you are testing have the hmm.git merged? I think from
> >>> the name it does not?
> >>
> >> Indeed, no.
> >>
> >>
> >>> Use after free's of this nature were something that was fixed in
> >>> hmm.git..
> >>>
> >>> I don't see an obvious way you can hit something like this with the
> >>> new code arrangement..
> >>
> >> I tried merging the hmm-devmem-cleanup.4 changes[0] into my 5.2.y +
> >> drm-next for 5.3 kernel. While the result didn't hit the problem, all
> >> GL_AMD_pinned_memory piglit tests failed, so I suspect the problem was
> >> simply avoided by not actually hitting the HMM related functionality.
> >>
> >> It's possible that I made a mistake in merging the changes, or that I
> >> missed some other required changes. But it's also possible that the HMM
> >> changes broke the corresponding user-pointer functionality in amdgpu.
> >
> > Not sure, this was all Tested by the AMD team so it should work, I
> > hope.
>
> It can't, due to the issue pointed out by Linus in the "drm pull for
> 5.3-rc1" thread: DRM_AMDGPU_USERPTR still depends on ARCH_HAS_HMM, which
> no longer exists, so it can't be enabled.
Somehow that merge resolution got missed, but I think the AMD folks
must have included it when they did their merge & test.
Jason
next prev parent reply other threads:[~2019-07-16 17:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 16:51 Michel Dänzer
2019-07-15 17:25 ` Jason Gunthorpe
2019-07-16 16:31 ` Michel Dänzer
2019-07-16 16:35 ` Jason Gunthorpe
2019-07-16 17:04 ` Michel Dänzer
2019-07-16 17:20 ` Jason Gunthorpe [this message]
2019-07-16 22:10 ` Kuehling, Felix
2019-07-17 7:47 ` Michel Dänzer
2019-07-17 11:34 ` Jason Gunthorpe
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=20190716172045.GG29741@mellanox.com \
--to=jgg@mellanox.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=jglisse@redhat.com \
--cc=linux-mm@kvack.org \
--cc=michel@daenzer.net \
/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