lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 10 Sep 2015 22:46:03 +0300
From:	Mikko Rapeli <mikko.rapeli@....fi>
To:	Andrew Cooper <andrew.cooper3@...rix.com>
Cc:	linux-kernel@...r.kernel.org, Juergen Gross <jgross@...e.com>,
	Alexander Yarygin <yarygin@...ux.vnet.ibm.com>, x86@...nel.org,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Christian Borntraeger <borntraeger@...ibm.com>,
	Ingo Molnar <mingo@...hat.com>,
	David Vrabel <david.vrabel@...rix.com>,
	"H. Peter Anvin" <hpa@...or.com>,
	Cornelia Huck <cornelia.huck@...ibm.com>,
	xen-devel@...ts.xenproject.org,
	Thomas Gleixner <tglx@...utronix.de>,
	linux-api@...r.kernel.org,
	Boris Ostrovsky <boris.ostrovsky@...cle.com>
Subject: Re: [Xen-devel] [PATCH 95/98] HACK: fix include/uapi/xen/privcmd.h
 compilation in userspace

On Sat, May 30, 2015 at 06:56:25PM +0100, Andrew Cooper wrote:
> On 30/05/15 16:39, Mikko Rapeli wrote:
> > privcmd.h depends on xen/interface/xen.h which is now exported to userspace.
> > xen/interface/xen.h then depends on asm/xen/interface.h which is now
> > exported to userspace together with its dependencies asm/xen/interface_32.h,
> > asm/xen/interface_64.h and asm/pvclock-abi.h on x86 architecture.
> >
> > Then all of these headers were fixed to use __u8 etc from linux/types.h
> > instead of custom types.
> >
> > Then define uint64_t and uint32_t if needed.
> >
> > After all these changes these header files now compile in userspace too
> > on x86.
> >
> > HACK since I have no idea if this is correct way to fix this.
> >
> > Signed-off-by: Mikko Rapeli <mikko.rapeli@....fi>
> 
> Historical reasons expect xen/interface/xen.h to be a verbatim copy of
> the master version kept in the Xen repository.
> 
> The only things privcmd.h need from interface/xen.h are domid_t
> (uint16_t), and xen_pfn_t (unsigned long, or uint64_t in arm32 iirc),
> while the majority of the rest absolutely shouldn't be in Linux’s uapi.
> 
> It would probably be best to provide just these two types and nuke the
> "#include <xen/interface/xen.h>".  Any user of privcmd needs to include
> the Xen interface themselves anyway, and will have a different copy
> which includes the toolstack half of the interface (missing from the
> kernel copy) which is the useful set of definitions for driving the
> privcmd ioctl()s.

Thanks! Doing this in the next series of the patches.

-Mikko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ