Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-26 Thread Pedro Giffuni



On 25/05/2015 09:04 a.m., Chagin Dmitry wrote:

On Mon, May 25, 2015 at 07:48:49AM -0400, John Baldwin wrote:

On Sunday, May 24, 2015 04:07:12 PM Dmitry Chagin wrote:

Author: dchagin
Date: Sun May 24 16:07:11 2015
New Revision: 283424
URL: https://svnweb.freebsd.org/changeset/base/283424

Log:
   Add preliminary support for x86-64 Linux binaries.
   
   Differential Revision:	https://reviews.freebsd.org/D1076


Added:
   head/sys/amd64/linux/
   head/sys/amd64/linux/Makefile   (contents, props changed)
   head/sys/amd64/linux/linux.h   (contents, props changed)
   head/sys/amd64/linux/linux_dummy.c   (contents, props changed)
   head/sys/amd64/linux/linux_genassym.c   (contents, props changed)
   head/sys/amd64/linux/linux_ipc64.h   (contents, props changed)
   head/sys/amd64/linux/linux_locore.s   (contents, props changed)
   head/sys/amd64/linux/linux_machdep.c   (contents, props changed)
   head/sys/amd64/linux/linux_support.s   (contents, props changed)
   head/sys/amd64/linux/linux_sysvec.c   (contents, props changed)
   head/sys/amd64/linux/linux_vdso.lds.s   (contents, props changed)
   head/sys/amd64/linux/syscalls.conf   (contents, props changed)
   head/sys/amd64/linux/syscalls.master   (contents, props changed)
   head/sys/modules/linux64/
   head/sys/modules/linux64/Makefile   (contents, props changed)

First, I'm really happy to see this land in HEAD!

Thanks!


Indeed ... HUGE congratulations and thanks to Dmitry .. Great Job!

Pedro.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-26 Thread Slawa Olhovchenkov
On Tue, May 26, 2015 at 01:18:01AM +0100, Bruce Simpson wrote:

> All,
> 
> The enhancements to the Linux runtime are probably of more interest to 
> folk porting server applications; I am particularly happy to see 
> recvmmsg() and sendmmsg() go in.
> 
> It might also be wise to emulate the getrandom() API, even if this is 
> only in terms of wrapping the relevant sysctl for now.

What about skype4.3?
Do you collaborate with Baptiste Daroussin to allow install linux32 on
amd64 (some iKVM have linux binyary .so for Java plugin and don't work
[w/o tricks] on linux64)
Do you plan to MFC?

> On 25/05/2015 18:27, Slawa Olhovchenkov wrote:
> > Currenly I don't see any linux in Acrobat Reader support OS: 
> > https://get.adobe.com/reader/otherversions/ 
> 
> It got pulled. Of course, support for PDF's forms varies greatly outside 
> of official Adobe product.
> 
> A better alternative might be the MuPDF backend for KDE Okular, or for 
> Zathura, neither of which are packaged  anywhere in the Linux world yet. 
> Of course, this could be built natively, without needing the Linux 
> runtime support.
> 
> I've noticed that rendering performance seems disappointing in the open 
> source Linux PDF readers, as compared to OS X Preview.app on similar 
> hardware.

I am just restore from SVN latest working print/acroread9 and continue
to use.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Dmitry Sivachenko

> On 25 мая 2015 г., at 17:40, John Baldwin  wrote:
> 
> Some other related questions are: can we revive print/acroread now and or
> use a 64-bit flash plugin after these changes?


I also wonder if it is possible to run 64bit Oracle JDK  (Linux version) now?
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Bruce Simpson

All,

The enhancements to the Linux runtime are probably of more interest to 
folk porting server applications; I am particularly happy to see 
recvmmsg() and sendmmsg() go in.


It might also be wise to emulate the getrandom() API, even if this is 
only in terms of wrapping the relevant sysctl for now.


On 25/05/2015 18:27, Slawa Olhovchenkov wrote:
Currenly I don't see any linux in Acrobat Reader support OS: 
https://get.adobe.com/reader/otherversions/ 


It got pulled. Of course, support for PDF's forms varies greatly outside 
of official Adobe product.


A better alternative might be the MuPDF backend for KDE Okular, or for 
Zathura, neither of which are packaged  anywhere in the Linux world yet. 
Of course, this could be built natively, without needing the Linux 
runtime support.


I've noticed that rendering performance seems disappointing in the open 
source Linux PDF readers, as compared to OS X Preview.app on similar 
hardware.


Bruce
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread John Baldwin
On Monday, May 25, 2015 08:27:34 PM Slawa Olhovchenkov wrote:
> On Mon, May 25, 2015 at 12:32:41PM -0400, John Baldwin wrote:
> 
> > On Monday, May 25, 2015 06:13:39 PM Slawa Olhovchenkov wrote:
> > > On Mon, May 25, 2015 at 10:40:09AM -0400, John Baldwin wrote:
> > > 
> > > > Some other related questions are: can we revive print/acroread now and 
> > > > or
> > > > use a 64-bit flash plugin after these changes?
> > > 
> > > I am still use print/acroread.
> > > As I know removing print/acroread irrelevant to linuxator.
> > > This is will by security reasson.
> > > I am don't open suspicious pdf from suspicious source and just ignore
> > > this removing.
> > 
> > I mean more if these updates allow us to update to a newer version of
> > print/acroread that would no longer be vulnerable (if such a thing exists)
> > whether 32- or 64-bit.
> 
> Currenly I don't see any linux in Acrobat Reader support OS: 
> https://get.adobe.com/reader/otherversions/

Humm, it seems it was pulled last year. :-/

-- 
John Baldwin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Slawa Olhovchenkov
On Mon, May 25, 2015 at 12:32:41PM -0400, John Baldwin wrote:

> On Monday, May 25, 2015 06:13:39 PM Slawa Olhovchenkov wrote:
> > On Mon, May 25, 2015 at 10:40:09AM -0400, John Baldwin wrote:
> > 
> > > Some other related questions are: can we revive print/acroread now and or
> > > use a 64-bit flash plugin after these changes?
> > 
> > I am still use print/acroread.
> > As I know removing print/acroread irrelevant to linuxator.
> > This is will by security reasson.
> > I am don't open suspicious pdf from suspicious source and just ignore
> > this removing.
> 
> I mean more if these updates allow us to update to a newer version of
> print/acroread that would no longer be vulnerable (if such a thing exists)
> whether 32- or 64-bit.

Currenly I don't see any linux in Acrobat Reader support OS: 
https://get.adobe.com/reader/otherversions/
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread John Baldwin
On Monday, May 25, 2015 06:13:39 PM Slawa Olhovchenkov wrote:
> On Mon, May 25, 2015 at 10:40:09AM -0400, John Baldwin wrote:
> 
> > Some other related questions are: can we revive print/acroread now and or
> > use a 64-bit flash plugin after these changes?
> 
> I am still use print/acroread.
> As I know removing print/acroread irrelevant to linuxator.
> This is will by security reasson.
> I am don't open suspicious pdf from suspicious source and just ignore
> this removing.

I mean more if these updates allow us to update to a newer version of
print/acroread that would no longer be vulnerable (if such a thing exists)
whether 32- or 64-bit.

-- 
John Baldwin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Slawa Olhovchenkov
On Mon, May 25, 2015 at 10:40:09AM -0400, John Baldwin wrote:

> Some other related questions are: can we revive print/acroread now and or
> use a 64-bit flash plugin after these changes?

I am still use print/acroread.
As I know removing print/acroread irrelevant to linuxator.
This is will by security reasson.
I am don't open suspicious pdf from suspicious source and just ignore
this removing.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread John Baldwin
On Monday, May 25, 2015 10:40:09 AM John Baldwin wrote:
> On Monday, May 25, 2015 05:04:21 PM Chagin Dmitry wrote:
> That is fine to reuse, but it should probably be explicitly noted in the
> comments for that version that it is both for clang 3.6.1 and for x86-64
> Linux support.  I imagine the ports tree will know which versions include
    want to
> your changes.

-- 
John Baldwin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread John Baldwin
On Monday, May 25, 2015 05:04:21 PM Chagin Dmitry wrote:
> On Mon, May 25, 2015 at 07:48:49AM -0400, John Baldwin wrote:
> > On Sunday, May 24, 2015 04:07:12 PM Dmitry Chagin wrote:
> > > Author: dchagin
> > > Date: Sun May 24 16:07:11 2015
> > > New Revision: 283424
> > > URL: https://svnweb.freebsd.org/changeset/base/283424
> > > 
> > > Log:
> > >   Add preliminary support for x86-64 Linux binaries.
> > >   
> > >   Differential Revision:  https://reviews.freebsd.org/D1076
> > > 
> > > Added:
> > >   head/sys/amd64/linux/
> > >   head/sys/amd64/linux/Makefile   (contents, props changed)
> > >   head/sys/amd64/linux/linux.h   (contents, props changed)
> > >   head/sys/amd64/linux/linux_dummy.c   (contents, props changed)
> > >   head/sys/amd64/linux/linux_genassym.c   (contents, props changed)
> > >   head/sys/amd64/linux/linux_ipc64.h   (contents, props changed)
> > >   head/sys/amd64/linux/linux_locore.s   (contents, props changed)
> > >   head/sys/amd64/linux/linux_machdep.c   (contents, props changed)
> > >   head/sys/amd64/linux/linux_support.s   (contents, props changed)
> > >   head/sys/amd64/linux/linux_sysvec.c   (contents, props changed)
> > >   head/sys/amd64/linux/linux_vdso.lds.s   (contents, props changed)
> > >   head/sys/amd64/linux/syscalls.conf   (contents, props changed)
> > >   head/sys/amd64/linux/syscalls.master   (contents, props changed)
> > >   head/sys/modules/linux64/
> > >   head/sys/modules/linux64/Makefile   (contents, props changed)
> > 
> > First, I'm really happy to see this land in HEAD!
> Thanks!
> 
> > 
> > Second, __FreeBSD_version bump perhaps?
> dim@ bumped, is that enough?

That is fine to reuse, but it should probably be explicitly noted in the
comments for that version that it is both for clang 3.6.1 and for x86-64
Linux support.  I imagine the ports tree will know which versions include
your changes.

Also, I don't read ports commits since src is enough of a firehouse, so I
have a naive question: is the ports tree updated to supply a 64-bit
linux-base?  Maybe a mail to current@ on how to use a 64-bit base, etc.?

Some other related questions are: can we revive print/acroread now and or
use a 64-bit flash plugin after these changes?

-- 
John Baldwin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Dimitry Andric
On 25 May 2015, at 16:04, Chagin Dmitry  wrote:
> 
> On Mon, May 25, 2015 at 07:48:49AM -0400, John Baldwin wrote:
>> On Sunday, May 24, 2015 04:07:12 PM Dmitry Chagin wrote:
>>> Author: dchagin
>>> Date: Sun May 24 16:07:11 2015
>>> New Revision: 283424
>>> URL: https://svnweb.freebsd.org/changeset/base/283424
>>> 
>>> Log:
>>>  Add preliminary support for x86-64 Linux binaries.
...
>> Second, __FreeBSD_version bump perhaps?
> dim@ bumped, is that enough?

I've added notes for both r283424 and r283526 to the porter's handbook:

https://svnweb.freebsd.org/doc?view=revision&revision=46725

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread Chagin Dmitry
On Mon, May 25, 2015 at 07:48:49AM -0400, John Baldwin wrote:
> On Sunday, May 24, 2015 04:07:12 PM Dmitry Chagin wrote:
> > Author: dchagin
> > Date: Sun May 24 16:07:11 2015
> > New Revision: 283424
> > URL: https://svnweb.freebsd.org/changeset/base/283424
> > 
> > Log:
> >   Add preliminary support for x86-64 Linux binaries.
> >   
> >   Differential Revision:https://reviews.freebsd.org/D1076
> > 
> > Added:
> >   head/sys/amd64/linux/
> >   head/sys/amd64/linux/Makefile   (contents, props changed)
> >   head/sys/amd64/linux/linux.h   (contents, props changed)
> >   head/sys/amd64/linux/linux_dummy.c   (contents, props changed)
> >   head/sys/amd64/linux/linux_genassym.c   (contents, props changed)
> >   head/sys/amd64/linux/linux_ipc64.h   (contents, props changed)
> >   head/sys/amd64/linux/linux_locore.s   (contents, props changed)
> >   head/sys/amd64/linux/linux_machdep.c   (contents, props changed)
> >   head/sys/amd64/linux/linux_support.s   (contents, props changed)
> >   head/sys/amd64/linux/linux_sysvec.c   (contents, props changed)
> >   head/sys/amd64/linux/linux_vdso.lds.s   (contents, props changed)
> >   head/sys/amd64/linux/syscalls.conf   (contents, props changed)
> >   head/sys/amd64/linux/syscalls.master   (contents, props changed)
> >   head/sys/modules/linux64/
> >   head/sys/modules/linux64/Makefile   (contents, props changed)
> 
> First, I'm really happy to see this land in HEAD!
Thanks!

> 
> Second, __FreeBSD_version bump perhaps?
dim@ bumped, is that enough?

-- 
Have fun!
chd
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-25 Thread John Baldwin
On Sunday, May 24, 2015 04:07:12 PM Dmitry Chagin wrote:
> Author: dchagin
> Date: Sun May 24 16:07:11 2015
> New Revision: 283424
> URL: https://svnweb.freebsd.org/changeset/base/283424
> 
> Log:
>   Add preliminary support for x86-64 Linux binaries.
>   
>   Differential Revision:  https://reviews.freebsd.org/D1076
> 
> Added:
>   head/sys/amd64/linux/
>   head/sys/amd64/linux/Makefile   (contents, props changed)
>   head/sys/amd64/linux/linux.h   (contents, props changed)
>   head/sys/amd64/linux/linux_dummy.c   (contents, props changed)
>   head/sys/amd64/linux/linux_genassym.c   (contents, props changed)
>   head/sys/amd64/linux/linux_ipc64.h   (contents, props changed)
>   head/sys/amd64/linux/linux_locore.s   (contents, props changed)
>   head/sys/amd64/linux/linux_machdep.c   (contents, props changed)
>   head/sys/amd64/linux/linux_support.s   (contents, props changed)
>   head/sys/amd64/linux/linux_sysvec.c   (contents, props changed)
>   head/sys/amd64/linux/linux_vdso.lds.s   (contents, props changed)
>   head/sys/amd64/linux/syscalls.conf   (contents, props changed)
>   head/sys/amd64/linux/syscalls.master   (contents, props changed)
>   head/sys/modules/linux64/
>   head/sys/modules/linux64/Makefile   (contents, props changed)

First, I'm really happy to see this land in HEAD!

Second, __FreeBSD_version bump perhaps?

-- 
John Baldwin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-24 Thread Dmitry Chagin
Author: dchagin
Date: Sun May 24 16:07:11 2015
New Revision: 283424
URL: https://svnweb.freebsd.org/changeset/base/283424

Log:
  Add preliminary support for x86-64 Linux binaries.
  
  Differential Revision:https://reviews.freebsd.org/D1076

Added:
  head/sys/amd64/linux/
  head/sys/amd64/linux/Makefile   (contents, props changed)
  head/sys/amd64/linux/linux.h   (contents, props changed)
  head/sys/amd64/linux/linux_dummy.c   (contents, props changed)
  head/sys/amd64/linux/linux_genassym.c   (contents, props changed)
  head/sys/amd64/linux/linux_ipc64.h   (contents, props changed)
  head/sys/amd64/linux/linux_locore.s   (contents, props changed)
  head/sys/amd64/linux/linux_machdep.c   (contents, props changed)
  head/sys/amd64/linux/linux_support.s   (contents, props changed)
  head/sys/amd64/linux/linux_sysvec.c   (contents, props changed)
  head/sys/amd64/linux/linux_vdso.lds.s   (contents, props changed)
  head/sys/amd64/linux/syscalls.conf   (contents, props changed)
  head/sys/amd64/linux/syscalls.master   (contents, props changed)
  head/sys/modules/linux64/
  head/sys/modules/linux64/Makefile   (contents, props changed)

Added: head/sys/amd64/linux/Makefile
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/amd64/linux/Makefile   Sun May 24 16:07:11 2015
(r283424)
@@ -0,0 +1,17 @@
+# Makefile for syscall tables
+#
+# $FreeBSD$
+
+all:
+   @echo "make sysent only"
+
+sysent:  linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c 
linux_systrace_args.c
+
+linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c 
linux_systrace_args.c: \
+   ../../kern/makesyscalls.sh syscalls.master syscalls.conf
+   -mv -f linux_sysent.c linux_sysent.c.bak
+   -mv -f linux_syscall.h linux_syscall.h.bak
+   -mv -f linux_proto.h linux_proto.h.bak
+   -mv -f linux_syscalls.c linux_syscalls.c.bak
+   -mv -f linux_systrace_args.c linux_systrace_args.c.bak
+   sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

Added: head/sys/amd64/linux/linux.h
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/amd64/linux/linux.hSun May 24 16:07:11 2015
(r283424)
@@ -0,0 +1,666 @@
+/*-
+ * Copyright (c) 2013 Dmitry Chagin
+ * Copyright (c) 1994-1996 Søren Schmidt
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer
+ *in this position and unchanged.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _AMD64_LINUX_H_
+#define_AMD64_LINUX_H_
+
+#include 
+
+/*
+ * debugging support
+ */
+extern u_char linux_debug_map[];
+#defineldebug(name)isclr(linux_debug_map, LINUX_SYS_linux_ ## name)
+#defineARGS(nm, fmt)   "linux(%ld/%ld): "#nm"("fmt")\n",   
\
+   (long)td->td_proc->p_pid, (long)td->td_tid
+#defineLMSG(fmt)   "linux(%ld/%ld): "fmt"\n",  
\
+   (long)td->td_proc->p_pid, (long)td->td_tid
+#defineLINUX_DTRACElinuxulator
+
+#definePTRIN(v)(void *)(v)
+#definePTROUT(v)   (uintptr_t)(v)
+
+#defineCP(src,dst,fld) do { (dst).fld = (src).fld; } while (0)
+#defineCP2(src,dst,sfld,dfld) do { (dst).dfld = (src).sfld; } while (0)
+#definePTRIN_CP(src,dst,fld) \
+   do { (dst).fld = PTRIN((src).fld); } while (0)
+
+/*
+ * Provide a separate set of types for the Linux types.
+ */
+typed