]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tmpfs: restore missing clear_highpage (CVE-2007-6417)
authorHugh Dickins <hugh@veritas.com>
Sun, 6 Jan 2008 02:18:21 +0000 (04:18 +0200)
committerAdrian Bunk <bunk@kernel.org>
Sun, 6 Jan 2008 02:18:21 +0000 (04:18 +0200)
commitd808e724a4f4b8531c7fb8722e0e60100b3cb1c2
tree3cf54b5207c2b51fe5080f5b25669550c7273560
parent86c4424d0a676b9d6dea8fb64e21c3d263aa88bb
tmpfs: restore missing clear_highpage (CVE-2007-6417)

tmpfs was misconverted to __GFP_ZERO in 2.6.11.  There's an unusual case in
which shmem_getpage receives the page from its caller instead of allocating.
We must cover this case by clear_highpage before SetPageUptodate, as before.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
mm/shmem.c