svn commit: r283410 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:30:52 2015 New Revision: 283410 URL: https://svnweb.freebsd.org/changeset/base/283410 Log: Put linux_platform into the vdso to avoid copying it onto the stack at every exec. Differential Revision:https://reviews.freebsd.org/D1062 Reviewed by:

svn commit: r283417 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:45:36 2015 New Revision: 283417 URL: https://svnweb.freebsd.org/changeset/base/283417 Log: Add 64 bit support to the vdso. Differential Revision:https://reviews.freebsd.org/D1069 Reviewed by: trasz Modified:

svn commit: r283436 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:30:23 2015 New Revision: 283436 URL: https://svnweb.freebsd.org/changeset/base/283436 Log: Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known. Differential Revision:https://reviews.freebsd.org/D1086

svn commit: r283437 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:31:44 2015 New Revision: 283437 URL: https://svnweb.freebsd.org/changeset/base/283437 Log: To avoid code duplication move open/fcntl definitions to the MI header file. Differential Revision:https://reviews.freebsd.org/D1087 Reviewed by:

svn commit: r283441 - in head/sys: amd64/linux amd64/linux32 compat/linux conf i386/linux modules/linux modules/linux64

2015-05-24 Thread Dmitry Chagin
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/compat/linux/linux_event.c Sun May 24 16:41:39 2015 (r283441) @@ -0,0 +1,500 @@ +/*- + * Copyright (c) 2007 Roman Divacky + * Copyright (c) 2014 Dmitry

svn commit: r283442 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:42:49 2015 New Revision: 283442 URL: https://svnweb.freebsd.org/changeset/base/283442 Log: Regen for r283441. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283454 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:07:10 2015 New Revision: 283454 URL: https://svnweb.freebsd.org/changeset/base/283454 Log: Avoid unnecessary em zeroing in non-exec path as it already zeroed by malloc with M_ZERO flag and move zeroing to the proper place in exec path. Differential

svn commit: r283468 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:39:18 2015 New Revision: 283468 URL: https://svnweb.freebsd.org/changeset/base/283468 Log: Regen for r283467. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283469 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:40:14 2015 New Revision: 283469 URL: https://svnweb.freebsd.org/changeset/base/283469 Log: As fo_fill_kinfo() does not check fo_fill_kinfo to NULL add a fo_fill_kinfo op to eventfdops. Reported by: trinity Modified:

svn commit: r283474 - in head/sys: amd64/linux amd64/linux32 compat/linux conf i386/linux modules/linux modules/linux_common

2015-05-24 Thread Dmitry Chagin
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/compat/linux/linux.c Sun May 24 17:47:20 2015 (r283474) @@ -0,0 +1,205 @@ +/*- + * Copyright (c) 2015 Dmitry Chagin + * All rights reserved. + * + * Redistribution and use in source and binary forms

svn commit: r283475 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:48:34 2015 New Revision: 283475 URL: https://svnweb.freebsd.org/changeset/base/283475 Log: Convert Linux sigsets before showing. Linux kernel displays sigset always as 16x4 bit mask. Modified: head/sys/compat/linprocfs/linprocfs.c Modified:

svn commit: r283476 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:49:09 2015 New Revision: 283476 URL: https://svnweb.freebsd.org/changeset/base/283476 Log: Convert Linux signal number to the FreeBSD. Modified: head/sys/compat/linux/linux_timer.c Modified: head/sys/compat/linux/linux_timer.c

svn commit: r283483 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:59:17 2015 New Revision: 283483 URL: https://svnweb.freebsd.org/changeset/base/283483 Log: Convert signal number to native for VT_SETMODE ioctl and remove strange and invalid ISSIGVALID macro. The code has not been tested right way but it was originally

svn commit: r283484 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:00:14 2015 New Revision: 283484 URL: https://svnweb.freebsd.org/changeset/base/283484 Log: Implement epoll_pwait() system call. Modified: head/sys/amd64/linux/linux_dummy.c head/sys/amd64/linux32/linux32_dummy.c head/sys/amd64/linux32/syscalls.master

svn commit: r283407 - in head/sys: amd64/linux32 compat/linux conf i386/linux modules/linux

2015-05-24 Thread Dmitry Chagin
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/compat/linux/linux_vdso.c Sun May 24 15:28:17 2015 (r283407) @@ -0,0 +1,240 @@ +/*- + * Copyright (c) 2013 Dmitry Chagin + * All

svn commit: r283408 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:29:20 2015 New Revision: 283408 URL: https://svnweb.freebsd.org/changeset/base/283408 Log: Eliminate a now unused global declaration of elf_linux_sysvec. Differential Revision:https://reviews.freebsd.org/D1061 Reviewed by: trasz Modified:

svn commit: r283423 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:00:01 2015 New Revision: 283423 URL: https://svnweb.freebsd.org/changeset/base/283423 Log: Move FEATURE macros for v4l and v4l2 to the common module. Differential Revision:https://reviews.freebsd.org/D1075 Reviewed by: emaste Modified:

svn commit: r283425 - head/sys/amd64/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:11:21 2015 New Revision: 283425 URL: https://svnweb.freebsd.org/changeset/base/283425 Log: Regen for r283424. Added: head/sys/amd64/linux/linux_proto.h (contents, props changed) head/sys/amd64/linux/linux_syscall.h (contents, props changed)

svn commit: r283435 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:28:58 2015 New Revision: 283435 URL: https://svnweb.freebsd.org/changeset/base/283435 Log: Convert Linux wait options to the FreeBSD. Check wait options as a Linux do. Linux always set WEXITED option not a WUNTRACED|WNOHANG which is a strange bug.

svn commit: r283439 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:34:57 2015 New Revision: 283439 URL: https://svnweb.freebsd.org/changeset/base/283439 Log: Implement F_DUPFD_CLOEXEC fcntl flag. Differential Revision:https://reviews.freebsd.org/D1089 Reviewed by: trasz Modified:

svn commit: r283446 - head/sys/amd64/linux32

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:51:04 2015 New Revision: 283446 URL: https://svnweb.freebsd.org/changeset/base/283446 Log: Include opt_compat.h, so that COMPAT_LINUX32 is defined, and we can access to the semop structs and functions. Submitted by: cognet@ Differential Revision:

svn commit: r283447 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:52:45 2015 New Revision: 283447 URL: https://svnweb.freebsd.org/changeset/base/283447 Log: Fix linux_common module build with KTR option. Differential Revision:https://reviews.freebsd.org/D1096 Reviewed by: trasz Modified:

svn commit: r283448 - head/sys/modules

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:53:32 2015 New Revision: 283448 URL: https://svnweb.freebsd.org/changeset/base/283448 Log: Connect linux64 module to the build. Differential Revision:https://reviews.freebsd.org/D1097 Reviewed by: emaste Modified: head/sys/modules/Makefile

svn commit: r283463 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:29:18 2015 New Revision: 283463 URL: https://svnweb.freebsd.org/changeset/base/283463 Log: Do not use struct l_timespec without conversion. While here move args-timeout handling before acquiring the futex key at FUTEX_WAIT path. Differential Revision:

svn commit: r283462 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:27:59 2015 New Revision: 283462 URL: https://svnweb.freebsd.org/changeset/base/283462 Log: Add prototypes for static futex functions. Differential Revision:https://reviews.freebsd.org/D1519 Reviewed by: trasz Modified:

svn commit: r283472 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:44:42 2015 New Revision: 283472 URL: https://svnweb.freebsd.org/changeset/base/283472 Log: Add vdso and stack names to the /proc/self/maps. Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c

svn commit: r283471 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:44:08 2015 New Revision: 283471 URL: https://svnweb.freebsd.org/changeset/base/283471 Log: According to Linux man sigaltstack(3) shall return EINVAL if the ss argument is not a null pointer, and the ss_flags member pointed to by ss contains flags other

svn commit: r283482 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:58:24 2015 New Revision: 283482 URL: https://svnweb.freebsd.org/changeset/base/283482 Log: Regen for r283480. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283399 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:14:51 2015 New Revision: 283399 URL: https://svnweb.freebsd.org/changeset/base/283399 Log: Implement dup3() system call. Differential Revision:https://reviews.freebsd.org/D1049 Reviewed by: emaste Modified:

svn commit: r283398 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:13:56 2015 New Revision: 283398 URL: https://svnweb.freebsd.org/changeset/base/283398 Log: Sched_rr_get_interval returns EINVAL in case when the invalid pid specified. This silence the ltp tests. Differential Revision:

svn commit: r283432 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:25:44 2015 New Revision: 283432 URL: https://svnweb.freebsd.org/changeset/base/283432 Log: Being exported through vdso the note.Linux section used by glibc to determine the kernel version (this saves one uname call). Temporarily disable the export of a

svn commit: r283438 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:32:52 2015 New Revision: 283438 URL: https://svnweb.freebsd.org/changeset/base/283438 Log: Add several fcntl flags. Differential Revision:https://reviews.freebsd.org/D1088 Reviewed by: trasz Modified: head/sys/compat/linux/linux_file.h

svn commit: r283444 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:49:14 2015 New Revision: 283444 URL: https://svnweb.freebsd.org/changeset/base/283444 Log: Implement eventfd system call. Differential Revision:https://reviews.freebsd.org/D1094 In collaboration with:Jilles Tjoelker Modified:

svn commit: r283464 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:30:31 2015 New Revision: 283464 URL: https://svnweb.freebsd.org/changeset/base/283464 Log: Delete the duplicate of linux_to_native_clockid() function. Differential Revision:https://reviews.freebsd.org/D1521 Reviewed by: trasz Modified:

svn commit: r283473 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:46:04 2015 New Revision: 283473 URL: https://svnweb.freebsd.org/changeset/base/283473 Log: Add support for /proc/pid/auxv. Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c

svn commit: r283490 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:06:12 2015 New Revision: 283490 URL: https://svnweb.freebsd.org/changeset/base/283490 Log: Since FreeBSD supports SOCK_CLOEXEC SOCK_NONBLOCK options remove its emulation via fcntl call from Linuxulator. Modified: head/sys/compat/linux/linux_socket.c

svn commit: r283492 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:08:01 2015 New Revision: 283492 URL: https://svnweb.freebsd.org/changeset/base/283492 Log: Implement Linux specific syncfs() system call. Modified: head/sys/amd64/linux/linux_dummy.c head/sys/amd64/linux/syscalls.master

svn commit: r283491 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:06:46 2015 New Revision: 283491 URL: https://svnweb.freebsd.org/changeset/base/283491 Log: Properly check tv_nsec value. The tv_nsec field can also be one of the special value UTIME_NOW or UTIME_OMIT. Modified: head/sys/compat/linux/linux_misc.c

svn commit: r283497 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:13:21 2015 New Revision: 283497 URL: https://svnweb.freebsd.org/changeset/base/283497 Log: Convert SCM_TIMESTAMP in recvmsg(). Modified: head/sys/compat/linux/linux_socket.c head/sys/compat/linux/linux_socket.h Modified:

svn commit: r283401 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:18:19 2015 New Revision: 283401 URL: https://svnweb.freebsd.org/changeset/base/283401 Log: Implement prlimit64() system call. Differential Revision:https://reviews.freebsd.org/D1050 Reviewed by: emaste, trasz Modified:

svn commit: r283400 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:15:46 2015 New Revision: 283400 URL: https://svnweb.freebsd.org/changeset/base/283400 Log: Regen for r283399. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283412 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:39:08 2015 New Revision: 283412 URL: https://svnweb.freebsd.org/changeset/base/283412 Log: Get ready to commit x86_64 Linux emulation. All fields of type l_int in struct statfs are defined as l_long on i386 and amd64. Differential Revision:

svn commit: r283419 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:47:15 2015 New Revision: 283419 URL: https://svnweb.freebsd.org/changeset/base/283419 Log: Fix compilation with -DDEBUG option. Differential Revision:https://reviews.freebsd.org/D1070 Reviewed by: trasz Modified:

svn commit: r283420 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:48:34 2015 New Revision: 283420 URL: https://svnweb.freebsd.org/changeset/base/283420 Log: Add newfstatat system call for 64-bit Linuxulator. Differential Revision:https://reviews.freebsd.org/D1071 Reviewed by: trasz Modified:

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

2015-05-24 Thread Dmitry Chagin
+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

svn commit: r283431 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:24:24 2015 New Revision: 283431 URL: https://svnweb.freebsd.org/changeset/base/283431 Log: Add AT_RANDOM and AT_EXECFN auxiliary vector entries which are used by glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory. Differential

svn commit: r283450 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:56:32 2015 New Revision: 283450 URL: https://svnweb.freebsd.org/changeset/base/283450 Log: td_sigmask of a newly created thread copied from td. Remove excess initialization of td_sigmask. Differential Revision:https://reviews.freebsd.org/D1128

svn commit: r283456 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:09:07 2015 New Revision: 283456 URL: https://svnweb.freebsd.org/changeset/base/283456 Log: Improve ktr(9) records in thread managment code. Differential Revision:https://reviews.freebsd.org/D1464 Reviewed by: trasz Modified:

svn commit: r283455 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:08:25 2015 New Revision: 283455 URL: https://svnweb.freebsd.org/changeset/base/283455 Log: Use local struct proc * varable instead of dereferencing td-td_proc. Differential Revision:https://reviews.freebsd.org/D1463 Reviewed by: emaste

svn commit: r283459 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:23:08 2015 New Revision: 283459 URL: https://svnweb.freebsd.org/changeset/base/283459 Log: Add some clock mappings used in glibc 2.20. Differential Revision:https://reviews.freebsd.org/D1465 Reviewd by: trasz Modified:

svn commit: r283465 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:33:21 2015 New Revision: 283465 URL: https://svnweb.freebsd.org/changeset/base/283465 Log: Add preliminary fallocate system call implementation to emulate posix_fallocate() function. Differential Revision:https://reviews.freebsd.org/D1523

svn commit: r283487 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:03:14 2015 New Revision: 283487 URL: https://svnweb.freebsd.org/changeset/base/283487 Log: Reduce duplication between MD Linux code by moving msg related struct definitions out into the compat/linux/linux_socket.h Modified: head/sys/amd64/linux/linux.h

svn commit: r283486 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:02:17 2015 New Revision: 283486 URL: https://svnweb.freebsd.org/changeset/base/283486 Log: Regen for r283484. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283405 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:22:33 2015 New Revision: 283405 URL: https://svnweb.freebsd.org/changeset/base/283405 Log: Regen for r283403. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283411 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:32:52 2015 New Revision: 283411 URL: https://svnweb.freebsd.org/changeset/base/283411 Log: Remove stale comment about a signal trampoline which is moved to the shared page at r219609. Differential Revision:https://reviews.freebsd.org/D1063

svn commit: r283413 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:41:27 2015 New Revision: 283413 URL: https://svnweb.freebsd.org/changeset/base/283413 Log: 64-bit paltforms, like x86_64, do not use multiplexing on socketcall system calls. Differential Revision:https://reviews.freebsd.org/D1065 Reviewed by:

svn commit: r283414 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:42:36 2015 New Revision: 283414 URL: https://svnweb.freebsd.org/changeset/base/283414 Log: Print out proper procmap entry for 64 bit binaries. Differential Revision:https://reviews.freebsd.org/D1066 Reviewed by: trasz Modified:

svn commit: r283430 - head/usr.bin/kdump

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:22:03 2015 New Revision: 283430 URL: https://svnweb.freebsd.org/changeset/base/283430 Log: Teach kdump to understand both linux emulation. Differential Revision:https://reviews.freebsd.org/D1079 Reviewed by: emaste Added:

svn commit: r283440 - in head/sys: kern sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:36:29 2015 New Revision: 283440 URL: https://svnweb.freebsd.org/changeset/base/283440 Log: For future use in the Linuxulator: 1. Add a kern_kqueue() counterpart for kqueue() with flags parameter. 2. Be a bit secure. To avoid a double fp lookup add a

svn commit: r283449 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:55:32 2015 New Revision: 283449 URL: https://svnweb.freebsd.org/changeset/base/283449 Log: Update Linux compat revision to 32. Differential Revision:https://reviews.freebsd.org/D1122 Reviewed by: emaste Modified:

svn commit: r283453 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:05:59 2015 New Revision: 283453 URL: https://svnweb.freebsd.org/changeset/base/283453 Log: Remove the unnecessary cast. Differential Revision:https://reviews.freebsd.org/D1461 Reviewed by: emaste Modified: head/sys/compat/linux/linux_emul.c

svn commit: r283467 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:38:02 2015 New Revision: 283467 URL: https://svnweb.freebsd.org/changeset/base/283467 Log: Call nosys in case when the incorrect syscall number is specified. Reported by: trinity Modified: head/sys/amd64/linux/linux_sysvec.c

svn commit: r283494 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:10:07 2015 New Revision: 283494 URL: https://svnweb.freebsd.org/changeset/base/283494 Log: Fix an mbuf(9) leak in sendmsg() under failure condition and remove unneeded check for failed M_WAITOK allocation. Found by: Brainy Code Scanner Reported by:

svn commit: r283493 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:09:01 2015 New Revision: 283493 URL: https://svnweb.freebsd.org/changeset/base/283493 Log: Regen for r283492. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283422 - in head/sys: amd64/linux32 compat/linux modules/linux modules/linux_common

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:54:58 2015 New Revision: 283422 URL: https://svnweb.freebsd.org/changeset/base/283422 Log: Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended. As we can have both 64

svn commit: r283427 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:14:41 2015 New Revision: 283427 URL: https://svnweb.freebsd.org/changeset/base/283427 Log: Where possible we will use M_LINUX malloc(9) type. Move M_FUTEX defines to the linux_common.ko. Differential Revision:https://reviews.freebsd.org/D1077

svn commit: r283443 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:47:13 2015 New Revision: 283443 URL: https://svnweb.freebsd.org/changeset/base/283443 Log: Put the correct value for the abi_nfdbits parameter of kern_select() for all supported Linuxulators. Differential Revision:

svn commit: r283461 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:26:58 2015 New Revision: 283461 URL: https://svnweb.freebsd.org/changeset/base/283461 Log: As for now our tmpfs is no longer being considered highly experimental remove /dev/shm magic commited in r218497 and convert tmpfs type to an expected magic number.

svn commit: r283466 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:35:42 2015 New Revision: 283466 URL: https://svnweb.freebsd.org/changeset/base/283466 Log: Regen for r283465. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283480 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:57:07 2015 New Revision: 283480 URL: https://svnweb.freebsd.org/changeset/base/283480 Log: Add utimensat() system call. The patch developed by Jilles Tjoelker and Andrew Wilcox and adopted for lemul branch by me. Modified:

svn commit: r283479 - in head/sys: amd64/amd64 amd64/ia32 arm/arm i386/i386 mips/mips powerpc/powerpc sparc64/sparc64

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:56:02 2015 New Revision: 283479 URL: https://svnweb.freebsd.org/changeset/base/283479 Log: The kernel sends signals to the processes via ABI specific sv_sendsig method. Native ABI do not need signal conversion, only emulators may want this. Usually

svn commit: r283495 - in head/sys: fs/pseudofs modules/pseudofs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:11:22 2015 New Revision: 283495 URL: https://svnweb.freebsd.org/changeset/base/283495 Log: Hide vfs.pfs.trace variable if it is not used. Modified: head/sys/fs/pseudofs/pseudofs.c head/sys/modules/pseudofs/Makefile Modified:

svn commit: r283496 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:12:04 2015 New Revision: 283496 URL: https://svnweb.freebsd.org/changeset/base/283496 Log: The latest cp tool is trying to use the btrfs clone operation that is implemented via ioctl interface. First of all return ENOTSUP for this operation as a cp

svn commit: r283415 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:43:53 2015 New Revision: 283415 URL: https://svnweb.freebsd.org/changeset/base/283415 Log: Disable i386 call for x86-64 Linux. Differential Revision:https://reviews.freebsd.org/D1067 Reviewed by: trasz Modified:

svn commit: r283416 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:44:41 2015 New Revision: 283416 URL: https://svnweb.freebsd.org/changeset/base/283416 Log: x86_64 Linux do not use multiplexing on ipc system calls. Move struct ipc_perm definition to the MD path as it differs for 64 and 32 bit platform. Differential

svn commit: r283421 - in head/sys: amd64/linux32 compat/linprocfs compat/linsysfs compat/linux conf i386/linux modules modules/linprocfs modules/linsysfs modules/linux modules/linux_common

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:51:18 2015 New Revision: 283421 URL: https://svnweb.freebsd.org/changeset/base/283421 Log: Introduce a new module linux_common.ko which is intended for the following primary purposes: 1. Remove the dependency of linsysfs and linprocfs modules from

svn commit: r283429 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:19:57 2015 New Revision: 283429 URL: https://svnweb.freebsd.org/changeset/base/283429 Log: Regen for r283428. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283428 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:18:03 2015 New Revision: 283428 URL: https://svnweb.freebsd.org/changeset/base/283428 Log: Change linux faccessat syscall definition to match actual linux one. The AT_EACCESS and AT_SYMLINK_NOFOLLOW flags are actually implemented within the glibc

svn commit: r283433 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:26:55 2015 New Revision: 283433 URL: https://svnweb.freebsd.org/changeset/base/283433 Log: Rewrite linux_recvfrom. To avoid double conversion of sockaddr use kern_recvit() directly. And check fromlen parameter before sockaddr copyin and conversion.

svn commit: r283434 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:27:38 2015 New Revision: 283434 URL: https://svnweb.freebsd.org/changeset/base/283434 Log: Set WIFCONTINUED to the wait status if needed. Differential Revision:https://reviews.freebsd.org/D1083 Reviewed by: trasz Modified:

svn commit: r283445 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:50:17 2015 New Revision: 283445 URL: https://svnweb.freebsd.org/changeset/base/283445 Log: Regen for r283444. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283452 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:00:43 2015 New Revision: 283452 URL: https://svnweb.freebsd.org/changeset/base/283452 Log: Regen for r283451. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283451 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:59:25 2015 New Revision: 283451 URL: https://svnweb.freebsd.org/changeset/base/283451 Log: Implement ppoll() system call. Differential Revision:https://reviews.freebsd.org/D1105 Reviewed by: trasz Modified:

svn commit: r283460 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:25:57 2015 New Revision: 283460 URL: https://svnweb.freebsd.org/changeset/base/283460 Log: Print out unsupported futex operation message only once for the process. Differential Revision:https://reviews.freebsd.org/D1498 Modified:

svn commit: r283470 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:42:45 2015 New Revision: 283470 URL: https://svnweb.freebsd.org/changeset/base/283470 Log: Add EPOLLERR flag handling to epoll. Tested by:abi at abinet dot ru Modified: head/sys/compat/linux/linux_event.c head/sys/compat/linux/linux_event.h

svn commit: r283478 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:53:48 2015 New Revision: 283478 URL: https://svnweb.freebsd.org/changeset/base/283478 Log: Simplify linprocfs_doprocenviron(). Remove extra proc visibility checks and initialize pn_vis by well known procfs_candebug(). Modified:

svn commit: r283489 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:05:21 2015 New Revision: 283489 URL: https://svnweb.freebsd.org/changeset/base/283489 Log: Regen for r283488. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283488 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:04:04 2015 New Revision: 283488 URL: https://svnweb.freebsd.org/changeset/base/283488 Log: Implement recvmmsg() and sendmmsg() system calls. Modified: head/sys/amd64/linux/linux_dummy.c head/sys/amd64/linux/syscalls.master

svn commit: r281451 - head/sys/vm

2015-04-12 Thread Dmitry Chagin
Author: dchagin Date: Sun Apr 12 06:21:58 2015 New Revision: 281451 URL: https://svnweb.freebsd.org/changeset/base/281451 Log: Rework r281162. Indeed, the flexible array member is preferable here. Suggested by: Justin T. Gibbs MFC after:3 days Modified: head/sys/vm/uma_core.c

svn commit: r281162 - head/sys/vm

2015-04-06 Thread Dmitry Chagin
Author: dchagin Date: Mon Apr 6 18:45:41 2015 New Revision: 281162 URL: https://svnweb.freebsd.org/changeset/base/281162 Log: Properly calculate UMA Zones per cpu cache size. Avoid allocating an extra struct uma_cache since the struct uma_zone already has one. PR: 199169

svn commit: r281113 - head/sys/vm

2015-04-05 Thread Dmitry Chagin
Author: dchagin Date: Sun Apr 5 18:25:23 2015 New Revision: 281113 URL: https://svnweb.freebsd.org/changeset/base/281113 Log: Fix wrong kassert msg in uma. PR: 199172 Submitted by: luke.tw gmail com MFC after:1 week Modified: head/sys/vm/uma_core.c Modified:

svn commit: r279776 - head/share/man/man9

2015-03-08 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 8 10:52:10 2015 New Revision: 279776 URL: https://svnweb.freebsd.org/changeset/base/279776 Log: Finish r194601. Add a cred parameter to the VOP_VPTOCNP(9) manpage. While here fix igor warning about new line. Reviewed by: kib MFC after:1 Week

svn commit: r278379 - in head/sys/dev/usb: . serial

2015-02-08 Thread Dmitry Chagin
Author: dchagin Date: Sun Feb 8 11:55:29 2015 New Revision: 278379 URL: https://svnweb.freebsd.org/changeset/base/278379 Log: Add Neoway WM620 module ID. MFC after:1 Week Modified: head/sys/dev/usb/serial/u3g.c head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/serial/u3g.c

svn commit: r276906 - head/sys/kern

2015-01-09 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 10 07:22:38 2015 New Revision: 276906 URL: https://svnweb.freebsd.org/changeset/base/276906 Log: Allow clock_getcpuclockid() on the CPU-time clock for zombie process. Posix does not prohibit this. Differential Revision:

svn commit: r276758 - head/usr.bin/kdump

2015-01-06 Thread Dmitry Chagin
Author: dchagin Date: Tue Jan 6 18:53:09 2015 New Revision: 276758 URL: https://svnweb.freebsd.org/changeset/base/276758 Log: kdump: eliminate new clang warnings. MFC after:1 week Modified: head/usr.bin/kdump/Makefile head/usr.bin/kdump/kdump.c Modified:

svn commit: r276654 - in head/sys: compat/freebsd32 compat/linux kern sys

2015-01-04 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 4 10:34:02 2015 New Revision: 276654 URL: https://svnweb.freebsd.org/changeset/base/276654 Log: Indeed, instead of hiding the kern___getcwd() bug by bogus cast in r276564, change path type to char * (pathnames are always char *). And remove bogus casts of

svn commit: r276655 - in head/sys: compat/freebsd32 kern sys

2015-01-04 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 4 10:40:23 2015 New Revision: 276655 URL: https://svnweb.freebsd.org/changeset/base/276655 Log: Regen for r276654 (__getcwd()). Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h

svn commit: r276564 - head/sys/compat/linux

2015-01-02 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 2 19:29:32 2015 New Revision: 276564 URL: https://svnweb.freebsd.org/changeset/base/276564 Log: Cast *path to silence clang -Wpointer-sign warning. MFC after:1 week Modified: head/sys/compat/linux/linux_getcwd.c Modified:

svn commit: r276550 - head/sys/compat/linux

2015-01-02 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 2 18:36:08 2015 New Revision: 276550 URL: https://svnweb.freebsd.org/changeset/base/276550 Log: Remove Giant from linux_getcwd() due to VFS is MPSAFE now. Discussed with: kib MFC after:1 week Modified: head/sys/compat/linux/linux_getcwd.c

svn commit: r276509 - head/sys/i386/linux

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 18:41:34 2015 New Revision: 276509 URL: https://svnweb.freebsd.org/changeset/base/276509 Log: Correct an argument status of wait4 syscall for Linuxulator. Forgot about i386. MFC after:1 week Modified: head/sys/i386/linux/syscalls.master Modified:

<    1   2   3   4   >