Re: [SPARC32] NULL pointer derefference

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mark@...>
Cc: <aaw@...>, <akpm@...>, <linux-arch@...>, <sparclinux@...>, <wli@...>, <linux-mm@...>, <linux-kernel@...>
Date: Tuesday, July 31, 2007 - 2:42 am

From: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Date: Tue, 31 Jul 2007 06:35:29 +0100 (BST)


get_user_pages() essentially walks through the requested user address
space, faults in pages if necessary, and returns references to those
pages.

The logic of get_user_pages() you need to be concerned about is
this inner loop:

			while (!(page = follow_page(vma, start, foll_flags))) {
				int ret;
				ret = handle_mm_fault(mm, vma, start,
						foll_flags & FOLL_WRITE);
 ...
			}

handle_mm_fault() does all the dirty work of a page fault, and
is how we get to update_mmu_cache(), the sun4c implementation of
which is where you see the crash.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SPARC32] NULL pointer derefference, Mark Fortescue, (Sun Jul 29, 10:18 pm)
Re: [SPARC32] NULL pointer derefference, Ollie Wild, (Tue Jul 31, 1:10 am)
Re: [SPARC32] NULL pointer derefference, David Miller, (Mon Jul 30, 12:19 am)
Re: [SPARC32] NULL pointer derefference, Mark Fortescue, (Tue Jul 31, 1:35 am)
Re: [SPARC32] NULL pointer derefference, David Miller, (Tue Jul 31, 2:42 am)
[PATCH] Re: [SPARC32] NULL pointer derefference, Mark Fortescue, (Tue Jul 31, 3:55 am)
Re: [PATCH] Re: [SPARC32] NULL pointer derefference, David Miller, (Tue Jul 31, 5:02 am)
Re: [SPARC32] NULL pointer derefference, Mark Fortescue, (Mon Jul 30, 6:39 am)