aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lockref.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2019-06-02 01:15:58 +0000
committerLinus Torvalds <[email protected]>2019-06-07 18:11:06 +0000
commitde9f869616dd95e95c00bdd6b0fcd3421e8a4323 (patch)
treec02e26f4be0788d39acc12b0399b36d902b9cd53 /lib/lockref.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadkernel-de9f869616dd95e95c00bdd6b0fcd3421e8a4323.tar.gz
kernel-de9f869616dd95e95c00bdd6b0fcd3421e8a4323.zip
x86/insn-eval: Fix use-after-free access to LDT entry
get_desc() computes a pointer into the LDT while holding a lock that protects the LDT from being freed, but then drops the lock and returns the (now potentially dangling) pointer to its caller. Fix it by giving the caller a copy of the LDT entry instead. Fixes: 670f928ba09b ("x86/insn-eval: Add utility function to get segment descriptor") Cc: [email protected] Signed-off-by: Jann Horn <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions