diff options
author | Oleg Nesterov <oleg@redhat.com> | 2018-05-18 19:27:39 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-06-21 18:11:02 +0300 |
commit | 90718e32e1dcc2479acfa208ccfc6442850b594c (patch) | |
tree | dd662e5d1d39c6909e1ebe033bc2fa3e2018350b /arch/x86/mm/mem_encrypt_boot.S | |
parent | a89d0c2acff952935cb37d501eaa702db5a63a05 (diff) | |
download | linux-90718e32e1dcc2479acfa208ccfc6442850b594c.tar.xz |
uprobes/x86: Remove incorrect WARN_ON() in uprobe_init_insn()
insn_get_length() has the side-effect of processing the entire instruction
but only if it was decoded successfully, otherwise insn_complete() can fail
and in this case we need to just return an error without warning.
Reported-by: syzbot+30d675e3ca03c1c351e7@syzkaller.appspotmail.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: syzkaller-bugs@googlegroups.com
Link: https://lkml.kernel.org/lkml/20180518162739.GA5559@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/mem_encrypt_boot.S')
0 files changed, 0 insertions, 0 deletions