From: Mukesh Rathor Subject: Re: [BUGFIX][PATCH v2 2/5] dbg_rw_guest_mem: need to call put_gfn in error path. Date: Tue, 7 Jan 2014 18:44:20 -0800 Message-ID: <20140107184420.60bbdd33@mantra.us.oracle.com> References: <1389140748-26524-1-git-send-email-dslutz@verizon.com> <1389140748-26524-3-git-send-email-dslutz@verizon.com> <52CCA204.2020601@citrix.com> <20140107174423.66106c9c@mantra.us.oracle.com> <52CCB840.80207@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52CCB840.80207@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , George Dunlap , Ian Jackson , Tim Deegan , Don Slutz , xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org On Wed, 8 Jan 2014 02:30:24 +0000 Andrew Cooper wrote: > On 08/01/2014 01:44, Mukesh Rathor wrote: > > On Wed, 8 Jan 2014 00:55:32 +0000 > > Andrew Cooper wrote: > > > >> On 08/01/2014 00:25, Don Slutz wrote: > >>> Using a 1G hvm domU (in grub) and gdbsx: > >>> > > ..... > > > >> Ian (with RM hat on): > >> This is a hypervisor reference counting error on a toolstack > >> hypercall path. Irrespective of any of the other patches in this > >> series, I think this should be included ASAP (although probably > >> subject to review from a third person), which will fix the > >> hypervisor crashes from gdbsx usage. > > I remember long ago mentioning to our packaing team to make gdbsx > > root executible only. > > > > What would be a good place to document that gdbsx should be removed > > from production systems, and/or be made root executible only? > > > > thanks > > mukesh > > > > > > [root@idol ~]# ls -la /dev/xen/privcmd > crw-rw---- 1 root root 10, 57 Jan 7 11:48 /dev/xen/privcmd > > As currently stands (Linux 3.10), only root can open privcmd and issue > ioctls, so a non-root gdbsx process would presumably not function at > all. I am not sure that any documentation needs updating. Ah, right. I remember now... thats much better. At least, currently its not compromised with anyone able to run it. thanks Mukesh