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

2016-01-17 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 17 19:28:13 2016 New Revision: 294233 URL: https://svnweb.freebsd.org/changeset/base/294233 Log: Prevent double free of control in common sendmsg path as sosend already freeing it. Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/

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

2016-01-23 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 23 08:04:29 2016 New Revision: 294620 URL: https://svnweb.freebsd.org/changeset/base/294620 Log: Fix a typo. MFC after:3 days Modified: head/sys/amd64/linux/linux.h Modified: head/sys/amd64/linux/linux.h =

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

2016-01-23 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 23 08:08:06 2016 New Revision: 294621 URL: https://svnweb.freebsd.org/changeset/base/294621 Log: Remove obsolete comment. MFC after:3 days Modified: head/sys/amd64/linux/linux_machdep.c Modified: head/sys/amd64/linux/linux_machdep.c

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

2015-12-26 Thread Dmitry Chagin
Author: dchagin Date: Sat Dec 26 09:04:47 2015 New Revision: 292743 URL: https://svnweb.freebsd.org/changeset/base/292743 Log: Do not allow access to emuldata for non Linux processes. Pointed out by: mjg@ Security: https://admbugs.freebsd.org/show_bug.cgi?id=679 Modified: hea

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

2015-12-26 Thread Dmitry Chagin
Author: dchagin Date: Sat Dec 26 09:09:49 2015 New Revision: 292744 URL: https://svnweb.freebsd.org/changeset/base/292744 Log: Return EINVAL in case of incorrect sigev_signo value specified instead of panicing. Modified: head/sys/compat/linux/linux_timer.c Modified: head/sys/compat/linux/li

svn commit: r292777 - in head: lib/libc/sys sys/kern

2015-12-27 Thread Dmitry Chagin
Author: dchagin Date: Sun Dec 27 15:37:07 2015 New Revision: 292777 URL: https://svnweb.freebsd.org/changeset/base/292777 Log: Verify that tv_sec value specified in settimeofday() and clock_settime() (CLOCK_REALTIME case) system calls is non negative. This commit hides a kernel panic in atrt

Re: svn commit: r292777 - in head: lib/libc/sys sys/kern

2015-12-29 Thread Dmitry Chagin
2015-12-28 1:35 GMT+03:00 Bruce Evans : > On Sun, 27 Dec 2015, Ian Lepore wrote: > > On Sun, 2015-12-27 at 15:37 +0000, Dmitry Chagin wrote: >> >>> Author: dchagin >>> Date: Sun Dec 27 15:37:07 2015 >>> New Revision: 292777 >>> URL: https://s

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

2016-05-21 Thread Dmitry Chagin
Author: dchagin Date: Sat May 21 08:01:14 2016 New Revision: 300359 URL: https://svnweb.freebsd.org/changeset/base/300359 Log: Correct an argument param of linux_sched_* system calls as a struct l_sched_param does not defined due to it's nature. MFC after:1 week Modified: head/sys

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

2016-05-21 Thread Dmitry Chagin
Author: dchagin Date: Sat May 21 08:03:13 2016 New Revision: 300360 URL: https://svnweb.freebsd.org/changeset/base/300360 Log: Regen after r300359 (struct l_sched_param removal). MFC after:1 week Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h he

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

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 12:26:03 2016 New Revision: 300411 URL: https://svnweb.freebsd.org/changeset/base/300411 Log: Minor style(9) cleanup, no functional changes. MFC after:1 week Modified: head/sys/compat/linux/linux_file.c Modified: head/sys/compat/linux/linux_file.c ==

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

2016-05-22 Thread Dmitry Chagin
+1,9 @@ /* $NetBSD: linux_futex.c,v 1.7 2006/07/24 19:01:49 manu Exp $ */ /*- - * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. + * Copyright (c) 2009-2016 Dmitry Chagin + * Copyright (c) 2005 Emmanuel Dreyfus + * All rights reserved. * * Redistribution and use in source and

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

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 12:35:50 2016 New Revision: 300413 URL: https://svnweb.freebsd.org/changeset/base/300413 Log: Due to lack the priority propagation feature replace sx by mutex. WIth this commit NPTL tests are ends in 1 minute faster. MFC after:1 week Modified: head/

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

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 12:37:40 2016 New Revision: 300414 URL: https://svnweb.freebsd.org/changeset/base/300414 Log: For future use move futex timeout code to the separate function and switch to the high resolution sbintime_t. MFC after:1 week Modified: head/sys/compat/li

svn commit: r300415 - in head/sys: amd64/amd64 i386/i386 powerpc/powerpc sparc64/sparc64 sys

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 12:46:34 2016 New Revision: 300415 URL: https://svnweb.freebsd.org/changeset/base/300415 Log: Add macro to convert errno and use it when appropriate. MFC after:1 week Modified: head/sys/amd64/amd64/vm_machdep.c head/sys/i386/i386/vm_machdep.c head

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

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 12:49:08 2016 New Revision: 300416 URL: https://svnweb.freebsd.org/changeset/base/300416 Log: Add a missing errno translation for SO_ERROR optname. PR: 135458 Reported by: Stefan Schmidt @ stadtbuch.de MFC after:1 week Modified: head/sy

svn commit: r300429 - head/sys/sys

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 19:04:34 2016 New Revision: 300429 URL: https://svnweb.freebsd.org/changeset/base/300429 Log: Remove a now unused global declaration of some sysentvec struct. MFC after:2 week Modified: head/sys/sys/sysent.h Modified: head/sys/sys/sysent.h ==

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

2016-05-22 Thread Dmitry Chagin
Author: dchagin Date: Sun May 22 19:08:29 2016 New Revision: 300431 URL: https://svnweb.freebsd.org/changeset/base/300431 Log: Convert proto family in both directions. The linux and native values for local and inet are identical, but for inet6 values differ. PR: 155040 Reporte

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

2016-05-23 Thread Dmitry Chagin
Author: dchagin Date: Tue May 24 05:29:41 2016 New Revision: 300569 URL: https://svnweb.freebsd.org/changeset/base/300569 Log: Don't leak fp in case where fo_ioctl() returns an error. Reported by: C Turt MFC after:1 week Modified: head/sys/compat/linux/linux_ioctl.c Modified: he

svn commit: r298519 - in head/sys: compat/svr4 dev/streams modules/streams modules/svr4

2016-04-23 Thread Dmitry Chagin
Author: dchagin Date: Sat Apr 23 20:29:55 2016 New Revision: 298519 URL: https://svnweb.freebsd.org/changeset/base/298519 Log: Fix streams and svr4 module dependency. Both modules are complaining about undefined symbol svr4_delete_socket which was moved from streams to the svr4 module in r1

svn commit: r298520 - head/sys/compat/svr4

2016-04-23 Thread Dmitry Chagin
Author: dchagin Date: Sat Apr 23 20:31:18 2016 New Revision: 298520 URL: https://svnweb.freebsd.org/changeset/base/298520 Log: Allow to build svr4 module with SYSV support separatelly from the kernel build. PR: 208464 Reported by: Kristoffer Eriksson MFC after:2 week Mo

svn commit: r298793 - head/sys/dev/iwm

2016-04-29 Thread Dmitry Chagin
Author: dchagin Date: Fri Apr 29 19:10:22 2016 New Revision: 298793 URL: https://svnweb.freebsd.org/changeset/base/298793 Log: The iwm_nic_error() defined if IWM_DEBUG is defined. Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm/if_iwm.c

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

2016-05-09 Thread Dmitry Chagin
Author: dchagin Date: Mon May 9 07:38:47 2016 New Revision: 299249 URL: https://svnweb.freebsd.org/changeset/base/299249 Log: Add a forgotten in r283424 .eh_frame section with CFI & FDE records to allow stack unwinding through signal handler. Reported by: Dmitry Sivachenko MFC after:

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: head/sys/compat/linux/

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: 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: head/

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 Revi

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 head/sys/amd64/linux/

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 head/sys/amd64/linux/sys

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 head/sys/amd64/linux/

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: head/sys/compat/linux/linux_event

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 Modi

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 tha

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: 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//auxv. Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c

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

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: head/sys/comp

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: 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: head/sys/compat/linprocfs/l

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 emulat

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: head/sys/amd64/linux/linux_

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 head/sys/amd64/linux/

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 br

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: 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 head/sys/

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: 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 head/sys/amd64/linux32/linux32

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 head/sys/amd64/linux/

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 Mo

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 Modified

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 head/sys/amd64/linux32/linux32_du

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 head/sys/amd64/linux/

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: Ma

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: head/sys/fs/pseudofs/pseudofs

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 fallbac

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: head/sys/compat/linux/linux_socke

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:14:38 2015 New Revision: 283498 URL: https://svnweb.freebsd.org/changeset/base/283498 Log: Linux nanosleep() and clock_nanosleep() system calls always writes the remaining time into the structure pointed to by rmtp unless rmtp is NULL. The value of *rmtp c

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

2015-05-25 Thread Dmitry Chagin
Author: dchagin Date: Mon May 25 20:44:46 2015 New Revision: 283544 URL: https://svnweb.freebsd.org/changeset/base/283544 Log: When I merged the lemul branch I missied kib@'s r282708 commit. This is not the final fix as I need properly cleanup thread resources before other threads suicide.

svn commit: r283680 - head/sys/modules

2015-05-28 Thread Dmitry Chagin
Author: dchagin Date: Fri May 29 05:46:58 2015 New Revision: 283680 URL: https://svnweb.freebsd.org/changeset/base/283680 Log: Move linux64 and linux_common to it's right place and make them not depend on bhyve. Submitted by: Oliver Pinter Modified: head/sys/modules/Makefile Modified

svn commit: r283681 - head/sys/modules

2015-05-28 Thread Dmitry Chagin
Author: dchagin Date: Fri May 29 05:50:33 2015 New Revision: 283681 URL: https://svnweb.freebsd.org/changeset/base/283681 Log: The linux_common module only for 64bit Linuxulators. Its my fault. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

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

2015-06-05 Thread Dmitry Chagin
Author: dchagin Date: Sat Jun 6 06:12:14 2015 New Revision: 284051 URL: https://svnweb.freebsd.org/changeset/base/284051 Log: Finish r283544. In exec case properly detach threads from user space before suicide. Modified: head/sys/compat/linux/linux_emul.c Modified: head/sys/compat/linux/l

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

2015-06-08 Thread Dmitry Chagin
Author: dchagin Date: Mon Jun 8 17:39:25 2015 New Revision: 284159 URL: https://svnweb.freebsd.org/changeset/base/284159 Log: Futex is an aligned 32-bit integer. Use the proper instruction and operand when dereferencing futex pointer. Modified: head/sys/amd64/linux/linux_support.s Modifie

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

2015-06-19 Thread Dmitry Chagin
Author: dchagin Date: Sat Jun 20 05:40:35 2015 New Revision: 284626 URL: https://svnweb.freebsd.org/changeset/base/284626 Log: Add EPOLLRDHUP support. Tested by:abi at abinet dot ru Modified: head/sys/compat/linux/linux_event.c head/sys/compat/linux/linux_event.h Modified: head/sy

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 15:08:22 2016 New Revision: 296501 URL: https://svnweb.freebsd.org/changeset/base/296501 Log: Link the newly created process to the corresponding parent as if CLONE_PARENT is set, then the parent of the new process will be the same as that of the calling proc

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 15:12:49 2016 New Revision: 296502 URL: https://svnweb.freebsd.org/changeset/base/296502 Log: According to POSIX and Linux implementation the alarm() system call is always successfull. So, ignore any errors and return 0 as a Linux do. XXX. Unlike POSIX,

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 15:15:34 2016 New Revision: 296503 URL: https://svnweb.freebsd.org/changeset/base/296503 Log: Linux accept() system call return EOPNOTSUPP errno instead of EINVAL for UDP sockets. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modi

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 15:55:43 2016 New Revision: 296504 URL: https://svnweb.freebsd.org/changeset/base/296504 Log: Does not leak fp. While here remove bogus cast of fp->f_data. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linu

svn commit: r296542 - head/etc/rc.d

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 19:08:55 2016 New Revision: 296542 URL: https://svnweb.freebsd.org/changeset/base/296542 Log: Load linux64 module for amd64 if Linux abi enabled. Reviewed by: emaste@ MFC after:1 week Differential Revision:https://reviews.freebsd.org/D5567

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 19:20:57 2016 New Revision: 296543 URL: https://svnweb.freebsd.org/changeset/base/296543 Log: Put a commit message from r296502 about Linux alarm() system call behaviour to the source. Suggested by: emaste@ MFC after:1 week Modified: head/sys/c

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

2016-03-08 Thread Dmitry Chagin
Author: dchagin Date: Tue Mar 8 19:40:01 2016 New Revision: 296546 URL: https://svnweb.freebsd.org/changeset/base/296546 Log: Better english. Submitted by: Kevin P. Neal MFC after:1 week Modified: head/sys/compat/linux/linux_misc.c Modified: head/sys/compat/linux/linux_misc.c ===

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 11:40:52 2016 New Revision: 297060 URL: https://svnweb.freebsd.org/changeset/base/297060 Log: Rework r296543: 1. Limit secs to INT32_MAX / 2 to avoid errors from kern_setitimer(). Assert that kern_setitimer() returns 0. Remove bogus cast of secs.

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 13:21:20 2016 New Revision: 297061 URL: https://svnweb.freebsd.org/changeset/base/297061 Log: Implement fstatfs64 system call. PR: 181012 Submitted by: John Wehle MFC after:1 week Modified: head/sys/amd64/linux32/linux32_dummy.c head/s

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 13:23:01 2016 New Revision: 297062 URL: https://svnweb.freebsd.org/changeset/base/297062 Log: Regen for r297061 (fstatfs64 Linux syscall). MFC after:1 week Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h h

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 14:06:27 2016 New Revision: 297063 URL: https://svnweb.freebsd.org/changeset/base/297063 Log: Whitespaces, style(9) fixes. No functional changes. MFC after:1 week Modified: head/sys/compat/linux/linux_stats.c Modified: head/sys/compat/linux/linux_sta

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 18:31:30 2016 New Revision: 297070 URL: https://svnweb.freebsd.org/changeset/base/297070 Log: Return EOVERFLOW in case when actual statfs values are large enough and not fit into 32 bit fileds of a Linux struct statfs. PR: 181012 MFC after:

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

2016-03-20 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 20 19:06:21 2016 New Revision: 297072 URL: https://svnweb.freebsd.org/changeset/base/297072 Log: Check bsd_to_linux_statfs() return value. Forgotten in r297070. MFC after:1 week Modified: head/sys/compat/linux/linux_stats.c Modified: head/sys/compat/lin

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

2016-03-26 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 26 19:15:23 2016 New Revision: 297296 URL: https://svnweb.freebsd.org/changeset/base/297296 Log: Implement O_NONBLOCK flag via fcntl(F_SETFL) for eventfd object. MFC after:1 week Modified: head/sys/compat/linux/linux_event.c Modified: head/sys/compat/li

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

2016-03-26 Thread Dmitry Chagin
Author: dchagin Date: Sat Mar 26 19:16:53 2016 New Revision: 297297 URL: https://svnweb.freebsd.org/changeset/base/297297 Log: When write(2) on eventfd object fails with the error EAGAIN do not return the number of bytes written. MFC after:1 week Modified: head/sys/compat/linux/lin

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

2016-03-27 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 27 08:10:20 2016 New Revision: 297309 URL: https://svnweb.freebsd.org/changeset/base/297309 Log: Whitespaces and style(9) fix. No functional changes. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_s

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

2016-03-27 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 27 08:12:01 2016 New Revision: 297310 URL: https://svnweb.freebsd.org/changeset/base/297310 Log: iConvert Linux SOL_IPV6 level. MFC after:1 week Modified: head/sys/amd64/linux/linux.h head/sys/amd64/linux32/linux.h head/sys/compat/linux/linux_socket.

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

2016-03-27 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 27 10:09:10 2016 New Revision: 297313 URL: https://svnweb.freebsd.org/changeset/base/297313 Log: Revert r297310 as the SOL_XXX are equal to the IPPROTO_XX except SOL_SOCKET. Pointed out by: ae@ Modified: head/sys/amd64/linux/linux.h head/sys/amd64/li

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

2016-04-02 Thread Dmitry Chagin
Author: dchagin Date: Sun Apr 3 06:33:16 2016 New Revision: 297519 URL: https://svnweb.freebsd.org/changeset/base/297519 Log: Move Linux specific times tests up to guarantee the values are defined. CID: 1305178 Submitted by: pfg@ MFC after:1 week Modified: head/sys/comp

svn commit: r297781 - in head/sys/compat: linprocfs linux

2016-04-10 Thread Dmitry Chagin
Author: dchagin Date: Sun Apr 10 07:11:29 2016 New Revision: 297781 URL: https://svnweb.freebsd.org/changeset/base/297781 Log: More complete implementation of /proc/self/limits. Fix the way the code accesses process limits struct - pointed out by mjg@. PR: 207386 Reviewed by:

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

2013-01-25 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 25 14:40:54 2013 New Revision: 245908 URL: http://svnweb.freebsd.org/changeset/base/245908 Log: Arithmetic on pointers takes into account the size of the type. Properly cast the pointer to avoid incorrect pointer scaling. MFC after:1 Week Modified: head

<    1   2   3   4