diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2019-07-25 15:29:57 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-08-09 23:13:25 +0200 |
commit | e6a9522ac3ff59980ea00e070b6b8573aface36a (patch) | |
tree | 85815a2008c3817968ef0c0abca5eac9f4f72a55 /scripts/gcc-ld | |
parent | 33920f1ec5bf47c5c0a1d2113989bdd9dfb3fae9 (diff) | |
download | linux-e6a9522ac3ff59980ea00e070b6b8573aface36a.tar.gz linux-e6a9522ac3ff59980ea00e070b6b8573aface36a.tar.bz2 linux-e6a9522ac3ff59980ea00e070b6b8573aface36a.zip |
drm/i915: Remove redundant user_access_end() from __copy_from_user() error path
Objtool reports:
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x36: redundant UACCESS disable
__copy_from_user() already does both STAC and CLAC, so the
user_access_end() in its error path adds an extra unnecessary CLAC.
Fixes: 0b2c8f8b6b0c ("i915: fix missing user_access_end() in page fault exception case")
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://github.com/ClangBuiltLinux/linux/issues/617
Link: https://lkml.kernel.org/r/51a4155c5bc2ca847a9cbe85c1c11918bb193141.1564086017.git.jpoimboe@redhat.com
Diffstat (limited to 'scripts/gcc-ld')
0 files changed, 0 insertions, 0 deletions