diff options
| author | Mark Rutland <[email protected]> | 2017-11-02 16:12:03 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2017-11-02 18:33:08 +0000 |
| commit | 7a7003b1da010d2b0d1dc8bf21c10f5c73b389f1 (patch) | |
| tree | 8a89f339577c823f3b0e37d0380cdbc792046150 /fs/btrfs/dev-replace.c | |
| parent | 0b07194bb55ed836c2cc7c22e866b87a14681984 (diff) | |
arm64: ensure __dump_instr() checks addr_limit
It's possible for a user to deliberately trigger __dump_instr with a
chosen kernel address.
Let's avoid problems resulting from this by using get_user() rather than
__get_user(), ensuring that we don't erroneously access kernel memory.
Where we use __dump_instr() on kernel text, we already switch to
KERNEL_DS, so this shouldn't adversely affect those cases.
Fixes: 60ffc30d5652810d ("arm64: Exception handling")
Cc: [email protected]
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions