diff options
author | Stafford Horne <[email protected]> | 2020-06-25 20:29:17 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-06-26 00:27:36 -0700 |
commit | 313a5257b84c26b7f080c5d294aabe7d38ca439c (patch) | |
tree | c8fbf539166e30ae59f4257d74cf8bf88ac58a89 /arch/openrisc/kernel/time.c | |
parent | 908f7d12d3ba51dfe0449b9723199b423f97ca9a (diff) |
openrisc: fix boot oops when DEBUG_VM is enabled
Since v5.8-rc1 OpenRISC Linux fails to boot when DEBUG_VM is enabled.
This has been bisected to commit 42fc541404f2 ("mmap locking API: add
mmap_assert_locked() and mmap_assert_write_locked()").
The added locking checks exposed the issue that OpenRISC was not taking
this mmap lock when during page walks for DMA operations. This patch
locks and unlocks the mmap lock for page walking.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 42fc541404f2 ("mmap locking API: add mmap_assert_locked() and mmap_assert_write_locked()"
Signed-off-by: Stafford Horne <[email protected]>
Reviewed-by: Michel Lespinasse <[email protected]>
Cc: Jonas Bonn <[email protected]>
Cc: Stefan Kristiansson <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: Steven Price <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Robin Murphy <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Daniel Jordan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/openrisc/kernel/time.c')
0 files changed, 0 insertions, 0 deletions