summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2016-09-21 15:25:04 -0700
committerAmit Pundir <amit.pundir@linaro.org>2016-10-12 17:34:22 +0530
commit7678802f665436bd92822f99f5e6cb5faaf577b1 (patch)
treee3f4e5a27492756f8e33381dca7a886734f30171 /net/ipv4/tcp_output.c
parentf79fcde0efa7a7791ef5a98782c868c6091703d4 (diff)
BACKPORT: arm64: Correctly bounds check virt_addr_valid
virt_addr_valid is supposed to return true if and only if virt_to_page returns a valid page structure. The current macro does math on whatever address is given and passes that to pfn_valid to verify. vmalloc and module addresses can happen to generate a pfn that 'happens' to be valid. Fix this by only performing the pfn_valid check on addresses that have the potential to be valid. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Bug: 31374226 Change-Id: I75cbeb3edb059f19af992b7f5d0baa283f95991b (cherry picked from commit ca219452c6b8a6cd1369b6a78b1cf069d0386865) Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions