From: Keir Fraser Subject: Re: [PATCH] proper bounds check in do_set_gdt entry point Date: Mon, 27 Jun 2005 20:21:32 +0100 Message-ID: <97f95b5ed2852e5d2385e36c03a37e64@cl.cam.ac.uk> References: <20050627184157.GM9157@shell0.pdx.osdl.net> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050627184157.GM9157@shell0.pdx.osdl.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Wright Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27 Jun 2005, at 19:41, Chris Wright wrote: > Unless I missed something, not bounds checking entries in do_set_gdt is > a security hole. > > Signed-off-by: Chris Wright The check happens in set_gdt(). do_set_gdt is just a wrapper with a copy_from_user plus conditional tlb flush. -- Keir