diff options
| author | Anshuman Khandual <khandual@linux.vnet.ibm.com> | 2018-03-29 11:53:37 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-30 07:52:23 +0200 |
| commit | 6689a4c7b9ed838821c72c976896eb74457f665f (patch) | |
| tree | 1d96320367d8037eec0bc10e38f8035d01a256a4 /tools/perf/util/c++/clang.cpp | |
| parent | 96fdc64d8eda887ae1a290b4f11f67a4a942d949 (diff) | |
powerpc/fscr: Enable interrupts earlier before calling get_user()
[ Upstream commit 709b973c844c0b4d115ac3a227a2e5a68722c912 ]
The function get_user() can sleep while trying to fetch instruction
from user address space and causes the following warning from the
scheduler.
BUG: sleeping function called from invalid context
Though interrupts get enabled back but it happens bit later after
get_user() is called. This change moves enabling these interrupts
earlier covering the function get_user(). While at this, lets check
for kernel mode and crash as this interrupt should not have been
triggered from the kernel context.
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions
