[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <m3myl9hf0o.fsf@gravicappa.englab.brq.redhat.com>
Date: Wed, 25 Jun 2008 14:31:51 +0200
From: Vitaly Mayatskikh <v.mayatskih@...il.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] Fix copy_user on x86_64
Bug in copy_user can be used from userspace on RHEL-4 and other
distributions with similar kernel base (CVE-2008-0598). Patch with fixed
copy_user attached, it falls into byte copy loop on faults and returns
correct count for uncopied bytes. Patch also fixes incorrect passing of
zero flag in copy_to_user (%eax was used instead of %ecx).
Also there's script for systemtap, it tests corner cases in both
copy_user realizations (unrolled and string).
View attachment "copy_user.patch" of type "text/plain" (9097 bytes)
View attachment "copy.gen" of type "text/plain" (7260 bytes)
View attachment "Makefile" of type "text/plain" (560 bytes)
--
wbr, Vitaly
Powered by blists - more mailing lists