From: Keir Fraser Subject: Re: [PATCH] proper bounds check in do_set_gdt entry point Date: Mon, 27 Jun 2005 21:09:32 +0100 Message-ID: <853a47aecba3d8053c944b4e0f435f9f@cl.cam.ac.uk> References: <20050627184157.GM9157@shell0.pdx.osdl.net> <97f95b5ed2852e5d2385e36c03a37e64@cl.cam.ac.uk> <20050627200053.GC9046@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: <20050627200053.GC9046@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 21:00, Chris Wright wrote: >> The check happens in set_gdt(). do_set_gdt is just a wrapper with a >> copy_from_user plus conditional tlb flush. > > I know, but copy_from_user has no sane limits. This is stack smash. > -chris Good point. -- Keir