summaryrefslogtreecommitdiffstats
path: root/certs/blacklist.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-04-11 10:49:19 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-04 09:15:17 +0200
commit04198de24771f6aaf6374979db64403101d809df (patch)
treed9aa0ca7ae4f681333b9a9befef2e4974c8cca6b /certs/blacklist.h
parent2a280d881726795ae490dc45bcaa9f6d4bf43741 (diff)
downloadlinux-stable-04198de24771f6aaf6374979db64403101d809df.tar.gz
linux-stable-04198de24771f6aaf6374979db64403101d809df.tar.bz2
linux-stable-04198de24771f6aaf6374979db64403101d809df.zip
mm: prevent get_user_pages() from overflowing page refcount
commit 8fde12ca79aff9b5ba951fce1a2641901b8d8e64 upstream. If the page refcount wraps around past zero, it will be freed while there are still four billion references to it. One of the possible avenues for an attacker to try to make this happen is by doing direct IO on a page multiple times. This patch makes get_user_pages() refuse to take a new page reference if there are already more than two billion references to the page. Reported-by: Jann Horn <jannh@google.com> Acked-by: Matthew Wilcox <willy@infradead.org> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'certs/blacklist.h')
0 files changed, 0 insertions, 0 deletions