svn commit: r364638 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:06:46 2020 New Revision: 364638 URL: https://svnweb.freebsd.org/changeset/base/364638 Log: MFC r363194: Improve the error handling in generating ASCONF chunks. In case of errors, the cleanup was not consistent. Thanks to Felix Weinrank for fuzzing the

svn commit: r364639 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:10:19 2020 New Revision: 364639 URL: https://svnweb.freebsd.org/changeset/base/364639 Log: MFC r363275: Improve the locking of address lists by adding some asserts and rearranging the addition of address such that the lock is not given up during checking

svn commit: r364640 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:11:37 2020 New Revision: 364640 URL: https://svnweb.freebsd.org/changeset/base/364640 Log: MFC r363309: Remove code which is not needed. Modified: stable/12/sys/netinet/sctp_pcb.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364641 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:13:06 2020 New Revision: 364641 URL: https://svnweb.freebsd.org/changeset/base/364641 Log: MFC r363323: Add reference counts for inp/stcb/net when timers are running. This avoids a use-after-free reported for the userland stack. Thanks to Taylor

svn commit: r364642 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:14:32 2020 New Revision: 364642 URL: https://svnweb.freebsd.org/changeset/base/364642 Log: MFC r363440: Detect and handle an invalid reassembly constellation, which results in a memory leak. Thanks to Felix Weinrank for finding this issue using fuzz

svn commit: r364643 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:15:52 2020 New Revision: 364643 URL: https://svnweb.freebsd.org/changeset/base/364643 Log: MFC r363456: Clear the pointer to the socket when closing it also in case of an ungraceful operation. This fixes a use-after-free bug found and reported by Taylor

svn commit: r364644 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:19:05 2020 New Revision: 364644 URL: https://svnweb.freebsd.org/changeset/base/364644 Log: MFC 364268: Improve the handling of concurrent send() calls for SCTP sockets, especially when having the explicit EOR mode enabled. MFC r364270: Remove a line

svn commit: r364647 - head/usr.sbin/crunch/crunchgen

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:23 2020 New Revision: 364647 URL: https://svnweb.freebsd.org/changeset/base/364647 Log: Correctly determine the real executable in crunched binaries This should fix cases like su setting argv[0] to _su for /bin/sh. Previously cheribsdbox (a

svn commit: r364648 - head/usr.sbin/makefs/msdos

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:27 2020 New Revision: 364648 URL: https://svnweb.freebsd.org/changeset/base/364648 Log: makefs (msdosfs): Use fprintf instead of debug print for errors The added print was very helpful for debugging failed disk image creation. Reviewed By:

svn commit: r364650 - head

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:38 2020 New Revision: 364650 URL: https://svnweb.freebsd.org/changeset/base/364650 Log: Also print number of available CPUs on Linux Without this change the buildworld/buildkernel epilogue looks like this: >>> World built in 249 seconds, sysctl:

svn commit: r364649 - in head: lib/libcompiler_rt lib/libgcc_eh lib/libprocstat stand/userboot/userboot

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:33 2020 New Revision: 364649 URL: https://svnweb.freebsd.org/changeset/base/364649 Log: Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS This is a change in preparation for stopping to use lorder.sh (D26044) and instead assume that we have a

svn commit: r364645 - head

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:13 2020 New Revision: 364645 URL: https://svnweb.freebsd.org/changeset/base/364645 Log: Pass the installworld install(1) flags to make buildenv This ensure that running make install inside buildenv correctly includes the METALOG flags when

svn commit: r364646 - head/usr.sbin/crunch/crunchgen

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:18 2020 New Revision: 364646 URL: https://svnweb.freebsd.org/changeset/base/364646 Log: Re-indent crunched_main.c in preparation for D25998 Modified: head/usr.sbin/crunch/crunchgen/crunched_main.c Modified:

svn commit: r364651 - stable/11/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:46:36 2020 New Revision: 364651 URL: https://svnweb.freebsd.org/changeset/base/364651 Log: MFC r364268: Improve the handling of concurrent send() calls for SCTP sockets, especially when having the explicit EOR mode enabled. Manually resolved merge

svn commit: r364606 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 07:53:14 2020 New Revision: 364606 URL: https://svnweb.freebsd.org/changeset/base/364606 Log: MFC r362090: Small cleanup due to upstream ifdef cleanups. Modified: stable/12/sys/netinet/sctputil.h Directory Properties: stable/12/ (props changed)

svn commit: r364620 - in stable/12: lib/libc/net sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:25:00 2020 New Revision: 364620 URL: https://svnweb.freebsd.org/changeset/base/364620 Log: MFC r362473: leanup the defintion of struct sctp_getaddresses. This stucture is used by the IPPROTO_SCTP level socket options SCTP_GET_PEER_ADDRESSES and

svn commit: r364626 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:35:13 2020 New Revision: 364626 URL: https://svnweb.freebsd.org/changeset/base/364626 Log: MFC r362722: Don't send packets containing ERROR chunks in response to unknown chunks when being in a state where the verification tag to be used is not known yet.

svn commit: r364627 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:37:29 2020 New Revision: 364627 URL: https://svnweb.freebsd.org/changeset/base/364627 Log: MFC r362813: Fix a bug introduced in https://svnweb.freebsd.org/changeset/base/362173 Modified: stable/12/sys/netinet/sctputil.c Directory Properties: stable/12/

Re: svn commit: r364449 - head/bin/ls

2020-08-24 Thread Gordon Bergling
Hi Hiroki, On Sat, Aug 22, 2020 at 07:44:38PM +0900, Hiroki Sato wrote: > Hi, > > Gordon Bergling wrote > in <202008210620.07l6kc6m091...@repo.freebsd.org>: > > gb> Author: gbe (doc committer) > gb> Date: Fri Aug 21 06:20:11 2020 > gb> New Revision: 364449 > gb> URL:

svn commit: r364613 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:11:47 2020 New Revision: 364613 URL: https://svnweb.freebsd.org/changeset/base/364613 Log: MFC r362277: Allow the self reference to be NULL in case the timer was stopped. Modified: stable/12/sys/netinet/sctputil.c Directory Properties: stable/12/

svn commit: r364612 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:10:27 2020 New Revision: 364612 URL: https://svnweb.freebsd.org/changeset/base/364612 Log: MFC r362178: Allocate the mbuf for the signature in the COOKIE or the correct size. While there, do also do some cleanups. Modified:

svn commit: r364635 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:58:45 2020 New Revision: 364635 URL: https://svnweb.freebsd.org/changeset/base/364635 Log: MFC r363046: Optimize flushing of receive queues. This addresses an issue found and reported for the userland stack in

svn commit: r364652 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 10:28:15 2020 New Revision: 364652 URL: https://svnweb.freebsd.org/changeset/base/364652 Log: MFC r358176-r358177 r358176: linuxkpi: Add list_is_first function This function just test if the element is the first of the list. Reviewed by: hselasky

svn commit: r364609 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 07:58:59 2020 New Revision: 364609 URL: https://svnweb.freebsd.org/changeset/base/364609 Log: MFC r362153: Simpify a condition, no functional change. Modified: stable/12/sys/netinet/sctp_input.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364614 - stable/12/lib/libc/net

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:13:06 2020 New Revision: 364614 URL: https://svnweb.freebsd.org/changeset/base/364614 Log: MFC r362332: Whitespace changes, not functional change intended. Modified: stable/12/lib/libc/net/sctp_sys_calls.c Directory Properties: stable/12/ (props

svn commit: r364619 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:22:37 2020 New Revision: 364619 URL: https://svnweb.freebsd.org/changeset/base/364619 Log: MFC r362462: Fix the build for an INET6 only configuration. The fix from the last commit is actually needed twice... Modified: stable/12/sys/netinet/sctputil.c

svn commit: r364628 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:38:58 2020 New Revision: 364628 URL: https://svnweb.freebsd.org/changeset/base/364628 Log: MFC r363008: Improve handling of PKTDROP chunks. This includes the input validation to address two issues found by ossfuzz testing the userland stack: *

svn commit: r364629 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:40:10 2020 New Revision: 364629 URL: https://svnweb.freebsd.org/changeset/base/364629 Log: MFC r363010: Don't accept FORWARD-TSN chunks when I-FORWARD-TSN was negotiated and vice versa. Modified: stable/12/sys/netinet/sctp_input.c Directory Properties:

svn commit: r364637 - head/sys/kern

2020-08-24 Thread Mateusz Guzik
Author: mjg Date: Mon Aug 24 09:00:57 2020 New Revision: 364637 URL: https://svnweb.freebsd.org/changeset/base/364637 Log: cache: lockless reverse lookup This enables fully scalable operation for getcwd and significantly improves realpath. For example: PATH_CUSTOM=/usr/src

svn commit: r364653 - in stable/12/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src dev/qlnx/qlnxe

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 10:42:04 2020 New Revision: 364653 URL: https://svnweb.freebsd.org/changeset/base/364653 Log: MFC r360787, r360851, r360870-r360872 r360787: linuxkpi: Add pci_iomap and pci_iounmap Those function are use to map/unmap io region of a pci device.

svn commit: r364605 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 07:42:50 2020 New Revision: 364605 URL: https://svnweb.freebsd.org/changeset/base/364605 Log: MFC r362054: Non-functional changes due to upstream cleanup. Modified: stable/12/sys/netinet/sctp_asconf.c stable/12/sys/netinet/sctp_auth.c

svn commit: r364610 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:01:09 2020 New Revision: 364610 URL: https://svnweb.freebsd.org/changeset/base/364610 Log: MFC r362155: Remove usage of empty macro. Modified: stable/12/sys/netinet/sctp_os_bsd.h stable/12/sys/netinet/sctp_pcb.c Directory Properties: stable/12/

svn commit: r364616 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:16:07 2020 New Revision: 364616 URL: https://svnweb.freebsd.org/changeset/base/364616 Log: MFC r362448: Cleanup the adding and deleting of addresses via sctp_bindx(). There is no need to use the association identifier, so remove it. While there,

svn commit: r364615 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:14:41 2020 New Revision: 364615 URL: https://svnweb.freebsd.org/changeset/base/364615 Log: MFC r362377: Remove last argument of sctp_addr_mgmt_ep_sa(), since it is not used. Modified: stable/12/sys/netinet/sctp_asconf.c

svn commit: r364622 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:27:35 2020 New Revision: 364622 URL: https://svnweb.freebsd.org/changeset/base/364622 Log: MFC r362498: No need to include netinet/sctp_crc32.h twice. Modified: stable/12/sys/netinet/sctp_crc32.c Directory Properties: stable/12/ (props changed)

svn commit: r364621 - stable/12/lib/libc/net

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:26:07 2020 New Revision: 364621 URL: https://svnweb.freebsd.org/changeset/base/364621 Log: MFC r362474: Add include missing from my last commit. Modified: stable/12/lib/libc/net/sctp_sys_calls.c Directory Properties: stable/12/ (props changed)

svn commit: r364625 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:33:32 2020 New Revision: 364625 URL: https://svnweb.freebsd.org/changeset/base/364625 Log: MFC r362720: Don't check ch for not being NULL, since that is true. Modified: stable/12/sys/netinet/sctp_input.c Directory Properties: stable/12/ (props

svn commit: r364634 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:57:27 2020 New Revision: 364634 URL: https://svnweb.freebsd.org/changeset/base/364634 Log: MFC r363012: Improve consistency. Modified: stable/12/sys/netinet/sctp_input.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364633 - in head/sys: compat/linprocfs compat/linux dev/filemon dev/hwpmc fs/fdescfs fs/procfs kern security/audit sys vm

2020-08-24 Thread Mateusz Guzik
Author: mjg Date: Mon Aug 24 08:57:02 2020 New Revision: 364633 URL: https://svnweb.freebsd.org/changeset/base/364633 Log: cache: drop the always curthread argument from reverse lookup routines Note VOP_VPTOCNP keeps getting it as temporary compatibility for zfs. Tested by:pho

svn commit: r364632 - head/sys/kern

2020-08-24 Thread Mateusz Guzik
Author: mjg Date: Mon Aug 24 08:55:55 2020 New Revision: 364632 URL: https://svnweb.freebsd.org/changeset/base/364632 Log: cache: perform reverse lookup using v_cache_dd if possible Tested by:pho Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r364654 - stable/12/sys/compat/linuxkpi/common/include/linux

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 10:46:09 2020 New Revision: 364654 URL: https://svnweb.freebsd.org/changeset/base/364654 Log: MFC r361007, r361138-r361140, r361245-r361246 r361007: linuxkpi: Add EBADRQC to errno.h This is used in the amdgpu driver from Linux 5.2 Sponsored-by: The

svn commit: r364607 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 07:55:46 2020 New Revision: 364607 URL: https://svnweb.freebsd.org/changeset/base/364607 Log: MFC r362106: More cleanups due to ifdef cleanup done upstream. Modified: stable/12/sys/netinet/sctp_constants.h stable/12/sys/netinet/sctp_input.c

svn commit: r364617 - in stable/12: lib/libc/net sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:19:25 2020 New Revision: 364617 URL: https://svnweb.freebsd.org/changeset/base/364617 Log: MFC r362451: Use a struct sockaddr_in or struct sockaddr_in6 as the option value for the IPPROTO_SCTP level socket options SCTP_BINDX_ADD_ADDR and

svn commit: r364618 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:20:49 2020 New Revision: 364618 URL: https://svnweb.freebsd.org/changeset/base/364618 Log: MFC r362454: Set a variable also in the case of an INET6 only kernel Modified: stable/12/sys/netinet/sctputil.c Directory Properties: stable/12/ (props changed)

svn commit: r364630 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:41:22 2020 New Revision: 364630 URL: https://svnweb.freebsd.org/changeset/base/364630 Log: MFC r363011: Fix error description. Modified: stable/12/sys/netinet/sctp_indata.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364631 - head/sys/kern

2020-08-24 Thread Mateusz Guzik
Author: mjg Date: Mon Aug 24 08:55:04 2020 New Revision: 364631 URL: https://svnweb.freebsd.org/changeset/base/364631 Log: cache: populate v_cache_dd for non-VDIR entries It makes v_cache_dd into a little bit of a misnomer and it may be addressed later. Tested by:pho Modified:

svn commit: r364608 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 07:57:29 2020 New Revision: 364608 URL: https://svnweb.freebsd.org/changeset/base/364608 Log: MFC r362107: Whitespace change due to upstream cleanup. Modified: stable/12/sys/netinet/sctp_constants.h Directory Properties: stable/12/ (props changed)

svn commit: r364611 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:08:12 2020 New Revision: 364611 URL: https://svnweb.freebsd.org/changeset/base/364611 Log: MFC r362173: Cleanups, no functional change. Modified: stable/12/sys/netinet/sctp_indata.c stable/12/sys/netinet/sctp_output.c

svn commit: r364624 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:32:16 2020 New Revision: 364624 URL: https://svnweb.freebsd.org/changeset/base/364624 Log: MFC r362581: Fix the acconting for fragmented unordered messages when using interleaving. This was reported for the userland stack in

svn commit: r364623 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 08:30:36 2020 New Revision: 364623 URL: https://svnweb.freebsd.org/changeset/base/364623 Log: MFC r362563: Fix alignment issue manifesting in the userland stack. MFC r364353: Fix two bugs I introduced in r362563. Found by running syzkaller. Modified:

svn commit: r364636 - stable/12/sys/netinet

2020-08-24 Thread Michael Tuexen
Author: tuexen Date: Mon Aug 24 09:00:07 2020 New Revision: 364636 URL: https://svnweb.freebsd.org/changeset/base/364636 Log: MFC r363076: Fix a use-after-free bug for the userland stack. The kernel stack is not affected. Thanks to Mark Wodrich from Google for finding and reporting the

svn commit: r364655 - head/sys/net

2020-08-24 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Aug 24 11:44:20 2020 New Revision: 364655 URL: https://svnweb.freebsd.org/changeset/base/364655 Log: iflib: fix isc_rxd_flush call in netmap_fl_refill() The semantic of the pidx argument of isc_rxd_flush() is the last valid index of in the free list, rather

svn commit: r364657 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:20:55 2020 New Revision: 364657 URL: https://svnweb.freebsd.org/changeset/base/364657 Log: MFC r363322: Make linux(4) support the BLKPBSZGET ioctl. Oracle uses it. Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364669 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:57:03 2020 New Revision: 364669 URL: https://svnweb.freebsd.org/changeset/base/364669 Log: MFC r349746: Fix linuxulator prlimit64(2) with pid == 0. This makes 'ulimit -a' return something reasonable, and helps linux binaries which attempt to close all

svn commit: r364673 - in head/sys: dev/rtwn dev/usb/wlan net80211

2020-08-24 Thread Bjoern A. Zeeb
Author: bz Date: Mon Aug 24 13:15:08 2020 New Revision: 364673 URL: https://svnweb.freebsd.org/changeset/base/364673 Log: net80211: enhance getflags*() and ieee80211_add_channel*() For ieee80211_add_channel+*() we are passing in an int flag for ht40 and in some cases another int flag for

svn commit: r364672 - in stable/12/sys/compat/linuxkpi/common: include/linux src

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 13:14:38 2020 New Revision: 364672 URL: https://svnweb.freebsd.org/changeset/base/364672 Log: MFC r361450, r361452, r361550-r361551 r361450: linuxkpi: Add refcount.h Implement some refcount functions needed by drm. Just use the atomic_t struct and

svn commit: r364675 - head/sys/powerpc/powerpc

2020-08-24 Thread Leandro Lupori
Author: luporl Date: Mon Aug 24 13:40:35 2020 New Revision: 364675 URL: https://svnweb.freebsd.org/changeset/base/364675 Log: [PowerPC] Make new auxv format default Assume ELF images without OSREL use the new auxv format. This is specially important for rtld, that is not tagged. Using

svn commit: r364683 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:01:52 2020 New Revision: 364683 URL: https://svnweb.freebsd.org/changeset/base/364683 Log: MFC r362055: Replace LINUX_FASYNC with LINUX_O_ASYNC; no functional changes. Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364660 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:29:23 2020 New Revision: 364660 URL: https://svnweb.freebsd.org/changeset/base/364660 Log: MFC r357203: Add TCP_CORK support to linux(4). This fixes one of the things Nginx trips over. Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364664 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:43:54 2020 New Revision: 364664 URL: https://svnweb.freebsd.org/changeset/base/364664 Log: MFC r358483 by tijl: linuxulator: Map scheduler priorities to Linux priorities. On Linux the valid range of priorities for the SCHED_FIFO and SCHED_RR

svn commit: r364681 - stable/11/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:56:15 2020 New Revision: 364681 URL: https://svnweb.freebsd.org/changeset/base/364681 Log: MFC r364329: Remove "emulation" of clone(CLONE_PARENT | CLONE_THREAD). Modified: stable/11/sys/compat/linux/linux_fork.c Directory Properties: stable/11/ (props

svn commit: r364679 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:54:58 2020 New Revision: 364679 URL: https://svnweb.freebsd.org/changeset/base/364679 Log: MFC r364328: Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET). Modified: stable/12/sys/compat/linux/linux_futex.c Directory Properties: stable/12/ (props

svn commit: r364680 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:55:24 2020 New Revision: 364680 URL: https://svnweb.freebsd.org/changeset/base/364680 Log: MFC r364329: Remove "emulation" of clone(CLONE_PARENT | CLONE_THREAD). Modified: stable/12/sys/compat/linux/linux_fork.c Directory Properties: stable/12/ (props

svn commit: r364678 - stable/12/usr.bin/cpuset

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:54:41 2020 New Revision: 364678 URL: https://svnweb.freebsd.org/changeset/base/364678 Log: MFC r364304: cpuset(1): Update the usage message. Modified: stable/12/usr.bin/cpuset/cpuset.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364656 - in head/sys: amd64/amd64 i386/i386

2020-08-24 Thread Peter Grehan
Author: grehan Date: Mon Aug 24 11:49:49 2020 New Revision: 364656 URL: https://svnweb.freebsd.org/changeset/base/364656 Log: cpu_auxmsr: assert caller is preventing CPU migration. Submitted by: Adam Fenn (adam at fenn dot io) Requested by: kib Reviewed by: kib, grehan Approved by:

svn commit: r364662 - in stable/12: share/man/man4 sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:33:42 2020 New Revision: 364662 URL: https://svnweb.freebsd.org/changeset/base/364662 Log: MFC r355820: Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl. Sponsored by: The FreeBSD Foundation

svn commit: r364665 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:47:20 2020 New Revision: 364665 URL: https://svnweb.freebsd.org/changeset/base/364665 Log: MFC r358673 by tijl: Move compat.linux.map_sched_prio sysctl definition to linux_mib.c so it is only defined by linux_common kernel module and not both linux and

svn commit: r364671 - in stable/12/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src conf libkern sys

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 12:59:55 2020 New Revision: 364671 URL: https://svnweb.freebsd.org/changeset/base/364671 Log: MFC r361247, r361343, r361418-r361419, r361422, r361449 r361247: linuxkpi: Add irq_work.h Since handlers are call in a thread context we can simply use a

svn commit: r364674 - in stable/12/sys/compat/linuxkpi/common: include/linux src

2020-08-24 Thread Emmanuel Vadot
Author: manu Date: Mon Aug 24 13:19:16 2020 New Revision: 364674 URL: https://svnweb.freebsd.org/changeset/base/364674 Log: MFC r363564-r363567, r363575, r363835-r363837, r363842-r363843, r364232 r363564: linuxkpi: Include linux/sizes.h in dma-mapping.h Linux does the same, this

svn commit: r364676 - stable/12/sys/dev/asmc

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:50:55 2020 New Revision: 364676 URL: https://svnweb.freebsd.org/changeset/base/364676 Log: MFC r364300: asmc(4): Add support for MacBook7,1. PR: 248693 Modified: stable/12/sys/dev/asmc/asmc.c stable/12/sys/dev/asmc/asmcvar.h Directory Properties:

svn commit: r364686 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:13:20 2020 New Revision: 364686 URL: https://svnweb.freebsd.org/changeset/base/364686 Log: MFC r356727: Make linux getcpu(2) report the domain. Submitted by: markj Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364659 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:26:49 2020 New Revision: 364659 URL: https://svnweb.freebsd.org/changeset/base/364659 Log: MFC r357076: Make linux(4) handle MAP_32BIT. This unbreaks Mono (mono-devel-4.6.2.7+dfsg-1ubuntu1 from Ubuntu Bionic); previously would crash on

svn commit: r364668 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:54:19 2020 New Revision: 364668 URL: https://svnweb.freebsd.org/changeset/base/364668 Log: MFC r362205: Make Linux uname(2) return x86_64 to 32-bit apps. This helps Steam. PR: kern/240432 Analyzed by: Alex S Sponsored by: The FreeBSD

svn commit: r364677 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 13:52:47 2020 New Revision: 364677 URL: https://svnweb.freebsd.org/changeset/base/364677 Log: MFC r354732: Support O_CLOEXEC in linux(4) open(2) and openat(2). Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_file.c

svn commit: r364685 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:05:45 2020 New Revision: 364685 URL: https://svnweb.freebsd.org/changeset/base/364685 Log: MFC r354805: Make linux(4) open(2)/openat(2) return ELOOP instead of EMLINK, when being passed O_NOFOLLOW. This fixes LTP testcase openat02:5. Sponsored by:

svn commit: r364688 - in stable/12/sys: kern sys

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:26:48 2020 New Revision: 364688 URL: https://svnweb.freebsd.org/changeset/base/364688 Log: MFC r357492 by dchagin: For code reuse in Linuxulator rename get_proccess_cputime() and get_thread_cputime() and add prototypes for it to . As both functions

svn commit: r364658 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:23:55 2020 New Revision: 364658 URL: https://svnweb.freebsd.org/changeset/base/364658 Log: MFC r362014: Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the standard SO_SNDBUF/SO_RCVBUF. Mostly cosmetics, to get rid of the warning during 'apt

svn commit: r364661 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:30:43 2020 New Revision: 364661 URL: https://svnweb.freebsd.org/changeset/base/364661 Log: MFC r362051: Make linux(4) handle SO_REUSEPORT. Sponsored by: The FreeBSD Foundation Modified: stable/12/sys/compat/linux/linux_socket.c

svn commit: r364667 - in stable/12: share/man/man4 sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:51:20 2020 New Revision: 364667 URL: https://svnweb.freebsd.org/changeset/base/364667 Log: MFC r362104: Add compat.linux.debug sysctl, to make it possible to silence down the debug messages. While here, clean up some variable naming. Sponsored by:

svn commit: r364682 - head/usr.sbin/bsdinstall/scripts

2020-08-24 Thread Marc Fonvieille
Author: blackend (doc committer) Date: Mon Aug 24 14:00:12 2020 New Revision: 364682 URL: https://svnweb.freebsd.org/changeset/base/364682 Log: Add missing Korean doc package entry, remove non-existent Serbian doc package entry. Approved by: re (gjb) MFC after:1 week Modified:

svn commit: r364663 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:35:02 2020 New Revision: 364663 URL: https://svnweb.freebsd.org/changeset/base/364663 Log: MFC r357202: Add compat.linux.ignore_ip_recverr sysctl. This is a workaround for missing IP_RECVERR setsockopt(2) support. Without it, DNS resolution is broken

svn commit: r364666 - in stable/12: share/man/man4 sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:49:51 2020 New Revision: 364666 URL: https://svnweb.freebsd.org/changeset/base/364666 Log: MFC r362015: Make linux(4) set the openfiles soft resource limit to 1024 for Linux applications, which often depend on this being the case. There's a new

svn commit: r364670 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 12:59:15 2020 New Revision: 364670 URL: https://svnweb.freebsd.org/changeset/base/364670 Log: MFC r349750: Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl. Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4,

svn commit: r364684 - head/usr.sbin/bsdinstall

2020-08-24 Thread Marc Fonvieille
Author: blackend (doc committer) Date: Mon Aug 24 14:04:59 2020 New Revision: 364684 URL: https://svnweb.freebsd.org/changeset/base/364684 Log: s/redundacy/redundancy MFC after:1 week Modified: head/usr.sbin/bsdinstall/bsdinstall.8 Modified: head/usr.sbin/bsdinstall/bsdinstall.8

svn commit: r364687 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:17:25 2020 New Revision: 364687 URL: https://svnweb.freebsd.org/changeset/base/364687 Log: MFC r357491 by dchagin: linux_to_native_clockid() properly initializes nwhich variable (or return error), so don't initialize nwhich in declaration and remove

svn commit: r364701 - in head: . tools/build

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 16:06:11 2020 New Revision: 364701 URL: https://svnweb.freebsd.org/changeset/base/364701 Log: When copying over the binaries, use '-p' to preserve date/time Although I can't reproduce it, others are seeing different lex/yacc programs always regenerated after

svn commit: r364702 - in stable/12/sys: compat/linux i386/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:06:17 2020 New Revision: 364702 URL: https://svnweb.freebsd.org/changeset/base/364702 Log: MFC r354413: Make linux(4) create /dev/shm. Linux applications often expect a tmpfs to be mounted there, and because they like to verify it's actually a

svn commit: r364707 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:27:51 2020 New Revision: 364707 URL: https://svnweb.freebsd.org/changeset/base/364707 Log: MFC r362941: Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously it would fail with EINVAL, breaking some of the Python regression tests. While

svn commit: r364717 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 17:31:17 2020 New Revision: 364717 URL: https://svnweb.freebsd.org/changeset/base/364717 Log: MFC r363087: Don't emit warnings on MADV_HUGEPAGE; Firefox uses it a lot. Sponsored by: The FreeBSD Foundation Modified:

svn commit: r364719 - head/usr.bin/w

2020-08-24 Thread Fernando ApesteguĂ­a
Author: fernape (ports committer) Date: Mon Aug 24 17:57:08 2020 New Revision: 364719 URL: https://svnweb.freebsd.org/changeset/base/364719 Log: w(1): Add EXAMPLES to man page Add small example section showing general use and -d and -h flags Approved by: manpages (bcr@)

svn commit: r364722 - head/usr.sbin/unbound

2020-08-24 Thread Cy Schubert
Author: cy Date: Mon Aug 24 18:17:13 2020 New Revision: 364722 URL: https://svnweb.freebsd.org/changeset/base/364722 Log: Update unbound version number. MFC after:1 month X-MFC with: r364721 Modified: head/usr.sbin/unbound/config.h Modified: head/usr.sbin/unbound/config.h

svn commit: r364721 - in head/contrib/unbound: . .github cachedb contrib contrib/android contrib/ios daemon dns64 dnstap doc dynlibmod edns-subnet iterator libunbound respip services sldns smallapp...

2020-08-24 Thread Cy Schubert
Author: cy Date: Mon Aug 24 18:14:04 2020 New Revision: 364721 URL: https://svnweb.freebsd.org/changeset/base/364721 Log: MFV 364468: Update unbound 1.10.1 --> 1.11.0. MFH: 1 month Added: head/contrib/unbound/README-Travis.md - copied unchanged from r364468,

svn commit: r364723 - head/sys/kern

2020-08-24 Thread Mateusz Guzik
Author: mjg Date: Mon Aug 24 18:23:58 2020 New Revision: 364723 URL: https://svnweb.freebsd.org/changeset/base/364723 Log: cache: remove leftover assert in vn_fullpath_any_smr It is only valid when !slash_prefixed. For slash_prefixed the length is properly accounted for later.

svn commit: r364718 - in head: contrib/llvm-project/clang/include/clang/Basic contrib/llvm-project/clang/include/clang/Driver contrib/llvm-project/clang/lib/AST contrib/llvm-project/clang/lib/Basic...

2020-08-24 Thread Dimitry Andric
Author: dim Date: Mon Aug 24 17:43:23 2020 New Revision: 364718 URL: https://svnweb.freebsd.org/changeset/base/364718 Log: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp release/11.x llvmorg-11.0.0-rc2-0-g414f32a9e86. MFC after:6 weeks X-MFC-With: r364284

svn commit: r364720 - in head/contrib/sqlite3: . tea

2020-08-24 Thread Cy Schubert
Author: cy Date: Mon Aug 24 18:13:44 2020 New Revision: 364720 URL: https://svnweb.freebsd.org/changeset/base/364720 Log: MFV 364467: Update sqlite to 3.33.0 (333). Release announcement at https://www.sqlite.org/releaselog/3_33_0.html. MFC after:1 month Added:

svn commit: r364691 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 14:53:29 2020 New Revision: 364691 URL: https://svnweb.freebsd.org/changeset/base/364691 Log: MFC r363125 by netchild: Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28). It is documented as a raw hardware-based clock not subject to NTP or incremental

svn commit: r364693 - in stable/12/sys: compat/linux modules/linux_common

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:45:42 2020 New Revision: 364693 URL: https://svnweb.freebsd.org/changeset/base/364693 Log: MFC r347533 by dchagin: Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions alter the userspace sockaddr to convert the format between linux and BSD

svn commit: r364695 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 15:50:57 2020 New Revision: 364695 URL: https://svnweb.freebsd.org/changeset/base/364695 Log: MFC r347969 by dchagin: Linux send() call returns EAGAIN instead of ENOTCONN in case when the socket is non-blocking and connect() is not finished yet.

svn commit: r364706 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:25:27 2020 New Revision: 364706 URL: https://svnweb.freebsd.org/changeset/base/364706 Log: MFC r362833: Rework linux accept(2). This makes the code flow easier to follow, and fixes a bug where calling accept(2) could result in closing fd 0. Note

svn commit: r364708 - stable/12/sys/compat/linux

2020-08-24 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Aug 24 16:36:35 2020 New Revision: 364708 URL: https://svnweb.freebsd.org/changeset/base/364708 Log: MFC r356728: Make linux(4) use kern_getsockopt(9) instead of going through sys_getsockopt(). It's a cleanup; no functional changes. Sponsored by: The FreeBSD

  1   2   >