linux/arch/i386/oprofile
Hugh Dickins c34d1b4d16 [PATCH] mm: kill check_user_page_readable
check_user_page_readable is a problematic variant of follow_page.  It's used
only by oprofile's i386 and arm backtrace code, at interrupt time, to
establish whether a userspace stackframe is currently readable.

This is problematic, because we want to push the page_table_lock down inside
follow_page, and later split it; whereas oprofile is doing a spin_trylock on
it (in the i386 case, forgotten in the arm case), and needs that to pin
perhaps two pages spanned by the stackframe (which might be covered by
different locks when we split).

I think oprofile is going about this in the wrong way: it doesn't need to know
the area is readable (neither i386 nor arm uses read protection of user
pages), it doesn't need to pin the memory, it should simply
__copy_from_user_inatomic, and see if that succeeds or not.  Sorry, but I've
not got around to devising the sparse __user annotations for this.

Then we can eliminate check_user_page_readable, and return to a single
follow_page without the __follow_page variants.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:41 -07:00
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
backtrace.c [PATCH] mm: kill check_user_page_readable 2005-10-29 21:40:41 -07:00
init.c [PATCH] Fix function/macro name collision on i386 oprofile 2005-09-07 16:57:29 -07:00
nmi_int.c [PATCH] Fix function/macro name collision on i386 oprofile 2005-09-07 16:57:29 -07:00
nmi_timer_int.c [PATCH] useless includes of linux/irq.h in arch/i386 2005-09-26 18:29:50 -07:00
op_counter.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_athlon.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_p4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_ppro.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_x86_model.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00