]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SPARC64: Loosen checks in exception table handling.
authorDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2008 22:47:20 +0000 (14:47 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:03 +0000 (11:47 -0700)
commit68b498d251d97de9adda518fda42cfe1451063b7
tree76bc073519a1588d9857bed973a8a7352dd7f14f
parent5c2699a0d511a78ae8692ab08f4a332a634b0d67
SPARC64: Loosen checks in exception table handling.

Upstream commits: 622eaec613130e6ea78f2a5d5070e3278b21cd8f
                  be71716e464f4ea38f08034dc666f2feb55535d9

Some parts of the kernel now do things like do *_user() accesses while
set_fs(KERNEL_DS) that fault on purpose.

See, for example, the code added by changeset
a0c1e9073ef7428a14309cba010633a6cd6719ea ("futex: runtime enable pi
and robust functionality").

That trips up the ASI sanity checking we make in do_kernel_fault().

Just remove it for now.  Maybe we can add it back later with an added
conditional which looks at the current get_fs() value.

Also, because of the new futex validation init handler, we have
to accept faults in init section text as well as the normal
kernel text.

Thanks to Tom Callaway for the bug report.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/sparc64/mm/fault.c