On Thu, Nov 02, 2017 at 04:12:03PM +0000, Mark Rutland wrote: > 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. > > Signed-off-by: Mark Rutland <mark.rutland@xxxxxxx> > Fixes: 60ffc30d5652810d ("arm64: Exception handling") > Cc: Catalin Marinas <catalin.marinas@xxxxxxx> > Cc: Will Deacon <will.deacon@xxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx Queued for 4.14. Thanks. -- Catalin