Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0a1da2dd authored by Linus Torvalds's avatar Linus Torvalds Committed by Greg Kroah-Hartman
Browse files

sparc32: fix lock_mm_and_find_vma() conversion

commit 0b26eadb upstream.

The sparc32 conversion to lock_mm_and_find_vma() in commit a050ba1e


("mm/fault: convert remaining simple cases to lock_mm_and_find_vma()")
missed the fact that we didn't actually have a 'regs' pointer available
in the 'force_user_fault()' case.

It's there in the regular page fault path ("do_sparc_fault()"), but not
the window underflow/overflow paths.

Which is all fine - we can just pass in a NULL pointer.  The register
state is only used to avoid deadlock with kernel faults, which is not
the case for any of these register window faults.

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: a050ba1e

 ("mm/fault: convert remaining simple cases to lock_mm_and_find_vma()")
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 00f04a33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment