[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190718.144336.350349509076783997.davem@davemloft.net>
Date: Thu, 18 Jul 2019 14:43:36 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: torvalds@...ux-foundation.org
Cc: ldv@...linux.org, hch@....de, khalid.aziz@...cle.com,
akpm@...ux-foundation.org, matorola@...il.com,
sparclinux@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 09/16] sparc64: use the generic get_user_pages_fast code
From: Linus Torvalds <torvalds@...ux-foundation.org>
Date: Wed, 17 Jul 2019 17:17:16 -0700
> From the oops, I assume that the problem is that get_user_pages_fast()
> returned an invalid page, causing the bad access later in
> get_futex_key().
That's correct. It's the first deref of page that oops's.
> But that's odd too, considering that get_user_pages_fast() had
> already accessed the page (both for looking up the head, and for
> then doing things like SetPageReferenced(page)).
Even the huge page cases all do that dereference as well, so it is
indeed a mystery how the pointer works inside of get_user_pages_fast()
but becomes garbage in the caller.
This page pointer sits on the stack, so maybe something stores garbage
there meanwhile. Maybe the issue is even compiler dependent.
I'll keep looking over the changes made here for clues.
Powered by blists - more mailing lists