Re: svn commit: r327140 - head/sbin/ipfw

2017-12-23 Thread Andrey V. Elsukov
On 24.12.2017 10:11, Rodney W. Grimes wrote:
>> -uint32_t masks[2];
>> -int i;
>> -uint8_t cmd, rulenum;
>>  ipfw_range_tlv rt;
>>  char *msg;
>>  size_t size;
>> +uint32_t masks[2];
>> +int i;
> 
> Why do these 2 lines show up as null changes in the diff
> I can not see any change, not even white space.

They are sorted by size according to style(9).

-- 
WBR, Andrey V. Elsukov



signature.asc
Description: OpenPGP digital signature


Re: svn commit: r327140 - head/sbin/ipfw

2017-12-23 Thread Rodney W. Grimes
> Author: ae
> Date: Sun Dec 24 01:55:12 2017
> New Revision: 327140
> URL: https://svnweb.freebsd.org/changeset/base/327140
> 
> Log:
>   Fix rule number truncation, use uint16_t type to specify rulenum.
>   
>   PR: 224555
>   MFC after:  1 week
> 
> Modified:
>   head/sbin/ipfw/ipfw2.c
> 
> Modified: head/sbin/ipfw/ipfw2.c
> ==
> --- head/sbin/ipfw/ipfw2.cSun Dec 24 01:16:28 2017(r327139)
> +++ head/sbin/ipfw/ipfw2.cSun Dec 24 01:55:12 2017(r327140)
> @@ -2256,12 +2256,13 @@ do_range_cmd(int cmd, ipfw_range_tlv *rt)
>  void
>  ipfw_sets_handler(char *av[])
>  {
> - uint32_t masks[2];
> - int i;
> - uint8_t cmd, rulenum;
>   ipfw_range_tlv rt;
>   char *msg;
>   size_t size;
> + uint32_t masks[2];
> + int i;

Why do these 2 lines show up as null changes in the diff
I can not see any change, not even white space.

> + uint16_t rulenum;
> + uint8_t cmd;
>  
>   av++;
>   memset(&rt, 0, sizeof(rt));

-- 
Rod Grimes rgri...@freebsd.org
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r327013 - head/sys/net

2017-12-23 Thread Stephen Hurd

Oleg Bulyzhin wrote:

On Fri, Dec 22, 2017 at 07:11:36PM -0500, Stephen Hurd wrote:


Interesting... is this a standard GENERIC kernel, or is this a custom
config?  If a custom config, can you send it to me?

Also, does this system have any other iflib drivers?  igb, em, or bnxt?
Can you include the log info (if any) for them as well?

It's custom kernel on my testing machine. It has em too but ix is probed first..
If i comment out if_ix.ko load - it boots just fine (looks like if_em is
not calling iflib_irq_set_affinity()):

em0:  port 0xdc00-0xdc1f mem 0xfeae-0x
feaf,0xfeac-0xfead irq 17 at device 0.0 on pci3
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: msix_init qsets capped at 1
em0: PCIY_MSIX capability not found; or rid 0 == 0.
em0: Using a Legacy interrupt
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 0 vector 54
em0: bpf attached
em0: Ethernet address: 00:15:17:3a:0c:7a
em0: netmap queues/slots: TX 1/1024, RX 1/1024

P.S. verbose dmesg & kernel conf attached


Hrm, can you try it with:
optionsEARLY_AP_STARTUP

In slave-amd64-smp-debug?
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327142 - stable/10/sys/net

2017-12-23 Thread Andrey V. Elsukov
Author: ae
Date: Sun Dec 24 02:06:16 2017
New Revision: 327142
URL: https://svnweb.freebsd.org/changeset/base/327142

Log:
  MFC r326898:
Fix possible memory leak.
  
vxlan_ftable entries are sorted in descending order, due to wrong arguments
order it is possible to stop search before existing element will be found.
Then new element will be allocated in vxlan_ftable_update_locked() and can
be inserted in the list second time or trigger MPASS() assertion with
enabled INVARIANTS.
  
PR: 224371

Modified:
  stable/10/sys/net/if_vxlan.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/net/if_vxlan.c
==
--- stable/10/sys/net/if_vxlan.cSun Dec 24 02:05:19 2017
(r327141)
+++ stable/10/sys/net/if_vxlan.cSun Dec 24 02:06:16 2017
(r327142)
@@ -778,7 +778,7 @@ vxlan_ftable_entry_lookup(struct vxlan_softc *sc, cons
hash = VXLAN_SC_FTABLE_HASH(sc, mac);
 
LIST_FOREACH(fe, &sc->vxl_ftable[hash], vxlfe_hash) {
-   dir = vxlan_ftable_addr_cmp(fe->vxlfe_mac, mac);
+   dir = vxlan_ftable_addr_cmp(mac, fe->vxlfe_mac);
if (dir == 0)
return (fe);
if (dir > 0)
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327141 - stable/11/sys/net

2017-12-23 Thread Andrey V. Elsukov
Author: ae
Date: Sun Dec 24 02:05:19 2017
New Revision: 327141
URL: https://svnweb.freebsd.org/changeset/base/327141

Log:
  MFC r326898:
Fix possible memory leak.
  
vxlan_ftable entries are sorted in descending order, due to wrong arguments
order it is possible to stop search before existing element will be found.
Then new element will be allocated in vxlan_ftable_update_locked() and can
be inserted in the list second time or trigger MPASS() assertion with
enabled INVARIANTS.
  
PR: 224371

Modified:
  stable/11/sys/net/if_vxlan.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/net/if_vxlan.c
==
--- stable/11/sys/net/if_vxlan.cSun Dec 24 01:55:12 2017
(r327140)
+++ stable/11/sys/net/if_vxlan.cSun Dec 24 02:05:19 2017
(r327141)
@@ -778,7 +778,7 @@ vxlan_ftable_entry_lookup(struct vxlan_softc *sc, cons
hash = VXLAN_SC_FTABLE_HASH(sc, mac);
 
LIST_FOREACH(fe, &sc->vxl_ftable[hash], vxlfe_hash) {
-   dir = vxlan_ftable_addr_cmp(fe->vxlfe_mac, mac);
+   dir = vxlan_ftable_addr_cmp(mac, fe->vxlfe_mac);
if (dir == 0)
return (fe);
if (dir > 0)
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327140 - head/sbin/ipfw

2017-12-23 Thread Andrey V. Elsukov
Author: ae
Date: Sun Dec 24 01:55:12 2017
New Revision: 327140
URL: https://svnweb.freebsd.org/changeset/base/327140

Log:
  Fix rule number truncation, use uint16_t type to specify rulenum.
  
  PR:   224555
  MFC after:1 week

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==
--- head/sbin/ipfw/ipfw2.c  Sun Dec 24 01:16:28 2017(r327139)
+++ head/sbin/ipfw/ipfw2.c  Sun Dec 24 01:55:12 2017(r327140)
@@ -2256,12 +2256,13 @@ do_range_cmd(int cmd, ipfw_range_tlv *rt)
 void
 ipfw_sets_handler(char *av[])
 {
-   uint32_t masks[2];
-   int i;
-   uint8_t cmd, rulenum;
ipfw_range_tlv rt;
char *msg;
size_t size;
+   uint32_t masks[2];
+   int i;
+   uint16_t rulenum;
+   uint8_t cmd;
 
av++;
memset(&rt, 0, sizeof(rt));
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327133 - vendor/lldb/lldb-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:01:08 2017
New Revision: 327133
URL: https://svnweb.freebsd.org/changeset/base/327133

Log:
  Tag lldb trunk r321414.

Added:
  vendor/lldb/lldb-trunk-r321414/
 - copied from r327132, vendor/lldb/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327129 - vendor/libc++/libc++-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:48 2017
New Revision: 327129
URL: https://svnweb.freebsd.org/changeset/base/327129

Log:
  Tag libc++ trunk r321414.

Added:
  vendor/libc++/libc++-trunk-r321414/
 - copied from r327128, vendor/libc++/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327132 - in vendor/lldb/dist: include/lldb/Interpreter include/lldb/Symbol include/lldb/Target include/lldb/Utility packages/Python/lldbsuite/test/expression_command/radar_9673664 pack...

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:01:00 2017
New Revision: 327132
URL: https://svnweb.freebsd.org/changeset/base/327132

Log:
  Vendor import of lldb trunk r321414:
  https://llvm.org/svn/llvm-project/lldb/trunk@321414

Added:
  
vendor/lldb/dist/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/
  
vendor/lldb/dist/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/Makefile
   (contents, props changed)
  
vendor/lldb/dist/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
   (contents, props changed)
  
vendor/lldb/dist/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/main.c
   (contents, props changed)
Modified:
  vendor/lldb/dist/include/lldb/Interpreter/OptionValueFileSpec.h
  vendor/lldb/dist/include/lldb/Symbol/ObjectFile.h
  vendor/lldb/dist/include/lldb/Target/Target.h
  vendor/lldb/dist/include/lldb/Utility/DataBufferLLVM.h
  
vendor/lldb/dist/packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py
  
vendor/lldb/dist/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp
  
vendor/lldb/dist/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
  
vendor/lldb/dist/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
  
vendor/lldb/dist/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/TestConflictingSymbol.py
  vendor/lldb/dist/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
  vendor/lldb/dist/scripts/Python/python-typemaps.swig
  vendor/lldb/dist/source/Interpreter/OptionValueFileSpec.cpp
  vendor/lldb/dist/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
  vendor/lldb/dist/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  vendor/lldb/dist/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
  vendor/lldb/dist/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
  vendor/lldb/dist/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
  vendor/lldb/dist/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
  vendor/lldb/dist/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
  vendor/lldb/dist/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  vendor/lldb/dist/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
  vendor/lldb/dist/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
  vendor/lldb/dist/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
  vendor/lldb/dist/source/Symbol/ObjectFile.cpp
  vendor/lldb/dist/source/Target/Target.cpp
  vendor/lldb/dist/source/Utility/DataBufferLLVM.cpp
  vendor/lldb/dist/tools/debugserver/debugserver.xcodeproj/project.pbxproj
  vendor/lldb/dist/tools/debugserver/source/RNBContext.cpp
  vendor/lldb/dist/tools/debugserver/source/RNBContext.h
  vendor/lldb/dist/tools/debugserver/source/debugserver.cpp
  vendor/lldb/dist/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
  vendor/lldb/dist/tools/lldb-mi/MIUtilString.cpp
  vendor/lldb/dist/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
  vendor/lldb/dist/unittests/tools/lldb-server/CMakeLists.txt
  vendor/lldb/dist/unittests/tools/lldb-server/tests/LLGSTest.cpp
  vendor/lldb/dist/unittests/tools/lldb-server/tests/TestClient.cpp
  vendor/lldb/dist/unittests/tools/lldb-server/tests/TestClient.h

Modified: vendor/lldb/dist/include/lldb/Interpreter/OptionValueFileSpec.h
==
--- vendor/lldb/dist/include/lldb/Interpreter/OptionValueFileSpec.h Sun Dec 
24 01:00:56 2017(r327131)
+++ vendor/lldb/dist/include/lldb/Interpreter/OptionValueFileSpec.h Sun Dec 
24 01:01:00 2017(r327132)
@@ -77,7 +77,7 @@ class OptionValueFileSpec : public OptionValue { (publ
 
   void SetDefaultValue(const FileSpec &value) { m_default_value = value; }
 
-  const lldb::DataBufferSP &GetFileContents(bool null_terminate);
+  const lldb::DataBufferSP &GetFileContents();
 
   void SetCompletionMask(uint32_t mask) { m_completion_mask = mask; }
 

Modified: vendor/lldb/dist/include/lldb/Symbol/ObjectFile.h
==
--- vendor/lldb/dist/include/lldb/Symbol/ObjectFile.h   Sun Dec 24 01:00:56 
2017(r327131)
+++ vendor/lldb/dist/include/lldb/Symbol/ObjectFile.h   Sun Dec 24 01:01:00 
2017(r327132)
@@ -879,6 +879,9 @@ class ObjectFile : public std::enable_shared_from_this
 
   ConstString GetNextSyntheticSymbolName();
 
+  static lldb::DataBufferSP MapFileData(const FileSpec &file, uint64_t Size,
+uint64_t Offset);
+
 private:
   DISALLOW_COPY_AND_ASSIGN(ObjectFile);
 };

Modified: vendor/lldb/dist/include/lldb/Target/Target.h
==
--- vendor/lldb/dist/include/lldb/Target/Target.h   Sun Dec 24 01:00:56 
2017(r327131)
+++ vendor/lldb/dist/include/lldb/Target/Target.h   Sun Dec 24 01:01:00 
2017(r327132)
@@ -161,7 +161,7 @@ class TargetProperti

svn commit: r327127 - vendor/compiler-rt/compiler-rt-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:40 2017
New Revision: 327127
URL: https://svnweb.freebsd.org/changeset/base/327127

Log:
  Tag compiler-rt trunk r321414.

Added:
  vendor/compiler-rt/compiler-rt-trunk-r321414/
 - copied from r327126, vendor/compiler-rt/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327126 - in vendor/compiler-rt/dist: cmake cmake/Modules include/sanitizer lib/asan lib/asan/scripts lib/builtins lib/builtins/aarch64 lib/fuzzer lib/hwasan lib/msan lib/profile lib/sa...

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:33 2017
New Revision: 327126
URL: https://svnweb.freebsd.org/changeset/base/327126

Log:
  Vendor import of compiler-rt trunk r321414:
  https://llvm.org/svn/llvm-project/compiler-rt/trunk@321414

Added:
  vendor/compiler-rt/dist/lib/builtins/aarch64/
  vendor/compiler-rt/dist/lib/builtins/aarch64/chkstk.S   (contents, props 
changed)
  vendor/compiler-rt/dist/lib/sanitizer_common/sancov_begin.S   (contents, 
props changed)
  vendor/compiler-rt/dist/lib/sanitizer_common/sancov_end.S   (contents, props 
changed)
  vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_clang_mips.h   
(contents, props changed)
  
vendor/compiler-rt/dist/test/sanitizer_common/TestCases/Linux/new_delete_test.cc
   (contents, props changed)
  
vendor/compiler-rt/dist/test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c 
  (contents, props changed)
Modified:
  vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake
  vendor/compiler-rt/dist/cmake/config-ix.cmake
  vendor/compiler-rt/dist/include/sanitizer/allocator_interface.h
  vendor/compiler-rt/dist/include/sanitizer/asan_interface.h
  vendor/compiler-rt/dist/include/sanitizer/common_interface_defs.h
  vendor/compiler-rt/dist/include/sanitizer/coverage_interface.h
  vendor/compiler-rt/dist/include/sanitizer/esan_interface.h
  vendor/compiler-rt/dist/include/sanitizer/hwasan_interface.h
  vendor/compiler-rt/dist/include/sanitizer/lsan_interface.h
  vendor/compiler-rt/dist/include/sanitizer/msan_interface.h
  vendor/compiler-rt/dist/include/sanitizer/scudo_interface.h
  vendor/compiler-rt/dist/lib/asan/CMakeLists.txt
  vendor/compiler-rt/dist/lib/asan/scripts/asan_symbolize.py
  vendor/compiler-rt/dist/lib/builtins/CMakeLists.txt
  vendor/compiler-rt/dist/lib/fuzzer/FuzzerTracePC.h
  vendor/compiler-rt/dist/lib/hwasan/hwasan.cc
  vendor/compiler-rt/dist/lib/hwasan/hwasan_interface_internal.h
  vendor/compiler-rt/dist/lib/hwasan/hwasan_linux.cc
  vendor/compiler-rt/dist/lib/msan/msan_new_delete.cc
  vendor/compiler-rt/dist/lib/profile/InstrProfilingUtil.c
  vendor/compiler-rt/dist/lib/sanitizer_common/CMakeLists.txt
  vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_clang.h
  vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_clang_other.h
  vendor/compiler-rt/dist/lib/sanitizer_common/scripts/gen_dynamic_list.py
  vendor/compiler-rt/dist/lib/tsan/rtl/tsan_new_delete.cc
  vendor/compiler-rt/dist/lib/ubsan/ubsan_handlers.cc
  vendor/compiler-rt/dist/test/asan/TestCases/Linux/aligned_delete_test.cc
  vendor/compiler-rt/dist/test/hwasan/TestCases/halt-on-error.cc
  vendor/compiler-rt/dist/test/hwasan/TestCases/use-after-free.cc
  vendor/compiler-rt/dist/test/ubsan/TestCases/Misc/unreachable.cpp

Modified: vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake
==
--- vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake   Sun Dec 24 
01:00:30 2017(r327125)
+++ vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake   Sun Dec 24 
01:00:33 2017(r327126)
@@ -469,7 +469,7 @@ macro(add_custom_libcxx name prefix)
 message(FATAL_ERROR "libcxx not found!")
   endif()
 
-  cmake_parse_arguments(LIBCXX "" "" "DEPS;CFLAGS" ${ARGN})
+  cmake_parse_arguments(LIBCXX "" "" "DEPS;CFLAGS;CMAKE_ARGS" ${ARGN})
   foreach(flag ${LIBCXX_CFLAGS})
 set(flagstr "${flagstr} ${flag}")
   endforeach()
@@ -491,6 +491,7 @@ macro(add_custom_libcxx name prefix)
-DCMAKE_INSTALL_PREFIX:PATH=
-DLLVM_PATH=${LLVM_MAIN_SRC_DIR}
-DLIBCXX_STANDALONE_BUILD=On
+   ${LIBCXX_CMAKE_ARGS}
 LOG_BUILD 1
 LOG_CONFIGURE 1
 LOG_INSTALL 1

Modified: vendor/compiler-rt/dist/cmake/config-ix.cmake
==
--- vendor/compiler-rt/dist/cmake/config-ix.cmake   Sun Dec 24 01:00:30 
2017(r327125)
+++ vendor/compiler-rt/dist/cmake/config-ix.cmake   Sun Dec 24 01:00:33 
2017(r327126)
@@ -486,7 +486,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all CACHE STRING
 list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}")
 
 if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
-(OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia" OR
+(OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia|SunOS" OR
 (OS_NAME MATCHES "Windows" AND (NOT MINGW AND NOT CYGWIN
   set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE)
 else()
@@ -505,7 +505,7 @@ else()
   set(COMPILER_RT_HAS_ASAN FALSE)
 endif()
 
-if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD")
+if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD|SunOS")
   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE)
 else()
   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE)
@@ -556,7 +556,7 @@ else()
 endif()
 
 if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
-OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|

svn commit: r327130 - in vendor/lld/dist: . COFF ELF ELF/Arch test/COFF test/ELF test/ELF/Inputs test/ELF/linkerscript test/wasm test/wasm/Inputs wasm

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:50 2017
New Revision: 327130
URL: https://svnweb.freebsd.org/changeset/base/327130

Log:
  Vendor import of lld trunk r321414:
  https://llvm.org/svn/llvm-project/lld/trunk@321414

Added:
  vendor/lld/dist/test/ELF/Inputs/znotext-plt-relocations.s   (contents, props 
changed)
  vendor/lld/dist/test/ELF/arm-exidx-dedup-and-sentinel.s   (contents, props 
changed)
  vendor/lld/dist/test/ELF/i386-tls-initial-exec-local.s   (contents, props 
changed)
  vendor/lld/dist/test/ELF/znotext-plt-relocations.s   (contents, props changed)
  vendor/lld/dist/test/wasm/Inputs/global-ctor-dtor.ll
  vendor/lld/dist/test/wasm/init-fini.ll
Modified:
  vendor/lld/dist/COFF/DLL.cpp
  vendor/lld/dist/ELF/AArch64ErrataFix.cpp
  vendor/lld/dist/ELF/Arch/ARM.cpp
  vendor/lld/dist/ELF/Driver.cpp
  vendor/lld/dist/ELF/InputFiles.cpp
  vendor/lld/dist/ELF/InputFiles.h
  vendor/lld/dist/ELF/InputSection.cpp
  vendor/lld/dist/ELF/InputSection.h
  vendor/lld/dist/ELF/MarkLive.cpp
  vendor/lld/dist/ELF/Relocations.cpp
  vendor/lld/dist/ELF/ScriptParser.cpp
  vendor/lld/dist/ELF/SymbolTable.cpp
  vendor/lld/dist/ELF/SymbolTable.h
  vendor/lld/dist/ELF/Symbols.cpp
  vendor/lld/dist/ELF/Symbols.h
  vendor/lld/dist/ELF/SyntheticSections.cpp
  vendor/lld/dist/ELF/SyntheticSections.h
  vendor/lld/dist/ELF/Target.cpp
  vendor/lld/dist/ELF/Target.h
  vendor/lld/dist/ELF/Thunks.cpp
  vendor/lld/dist/ELF/Writer.cpp
  vendor/lld/dist/ELF/Writer.h
  vendor/lld/dist/README.md
  vendor/lld/dist/test/COFF/export-armnt.yaml
  vendor/lld/dist/test/COFF/lto.ll
  vendor/lld/dist/test/ELF/i386-got-value.s
  vendor/lld/dist/test/ELF/linkerscript/arm-exidx-sentinel-and-assignment.s
  vendor/lld/dist/test/ELF/linkerscript/operators.s
  vendor/lld/dist/test/wasm/Inputs/weak-alias.ll
  vendor/lld/dist/test/wasm/Inputs/weak-symbol1.ll
  vendor/lld/dist/test/wasm/Inputs/weak-symbol2.ll
  vendor/lld/dist/test/wasm/archive.ll
  vendor/lld/dist/test/wasm/call-indirect.ll
  vendor/lld/dist/test/wasm/conflict.test
  vendor/lld/dist/test/wasm/data-layout.ll
  vendor/lld/dist/test/wasm/entry.ll
  vendor/lld/dist/test/wasm/function-imports-first.ll
  vendor/lld/dist/test/wasm/function-imports.ll
  vendor/lld/dist/test/wasm/function-index.test
  vendor/lld/dist/test/wasm/import-memory.test
  vendor/lld/dist/test/wasm/invalid-stack-size.test
  vendor/lld/dist/test/wasm/local-symbols.ll
  vendor/lld/dist/test/wasm/many-functions.ll
  vendor/lld/dist/test/wasm/relocatable.ll
  vendor/lld/dist/test/wasm/signature-mismatch.ll
  vendor/lld/dist/test/wasm/stack-pointer.ll
  vendor/lld/dist/test/wasm/strip-debug.test
  vendor/lld/dist/test/wasm/symbol-type-mismatch.ll
  vendor/lld/dist/test/wasm/undefined-entry.test
  vendor/lld/dist/test/wasm/undefined.ll
  vendor/lld/dist/test/wasm/version.ll
  vendor/lld/dist/test/wasm/weak-alias-overide.ll
  vendor/lld/dist/test/wasm/weak-alias.ll
  vendor/lld/dist/test/wasm/weak-external.ll
  vendor/lld/dist/test/wasm/weak-symbols.ll
  vendor/lld/dist/wasm/InputFiles.cpp
  vendor/lld/dist/wasm/InputSegment.h
  vendor/lld/dist/wasm/OutputSections.cpp
  vendor/lld/dist/wasm/OutputSections.h
  vendor/lld/dist/wasm/OutputSegment.h
  vendor/lld/dist/wasm/SymbolTable.cpp
  vendor/lld/dist/wasm/SymbolTable.h
  vendor/lld/dist/wasm/Writer.cpp

Modified: vendor/lld/dist/COFF/DLL.cpp
==
--- vendor/lld/dist/COFF/DLL.cppSun Dec 24 01:00:48 2017
(r327129)
+++ vendor/lld/dist/COFF/DLL.cppSun Dec 24 01:00:50 2017
(r327130)
@@ -362,12 +362,12 @@ class AddressTableChunk : public Chunk { (public)
   size_t getSize() const override { return Size * 4; }
 
   void writeTo(uint8_t *Buf) const override {
-uint32_t Bit = 0;
-// Pointer to thumb code must have the LSB set, so adjust it.
-if (Config->Machine == ARMNT)
-  Bit = 1;
-for (Export &E : Config->Exports) {
+for (const Export &E : Config->Exports) {
   uint8_t *P = Buf + OutputSectionOff + E.Ordinal * 4;
+  uint32_t Bit = 0;
+  // Pointer to thumb code must have the LSB set, so adjust it.
+  if (Config->Machine == ARMNT && !E.Data)
+Bit = 1;
   if (E.ForwardChunk) {
 write32le(P, E.ForwardChunk->getRVA() | Bit);
   } else {

Modified: vendor/lld/dist/ELF/AArch64ErrataFix.cpp
==
--- vendor/lld/dist/ELF/AArch64ErrataFix.cppSun Dec 24 01:00:48 2017
(r327129)
+++ vendor/lld/dist/ELF/AArch64ErrataFix.cppSun Dec 24 01:00:50 2017
(r327130)
@@ -400,8 +400,8 @@ lld::elf::Patch843419Section::Patch843419Section(Input
   this->Parent = P->getParent();
   PatchSym = addSyntheticLocal(
   Saver.save("__CortexA53843419_" + utohexstr(getLDSTAddr())), STT_FUNC, 0,
-  getSize(), this);
-  addSyntheticLocal(Saver.save("$x"), STT_NOTYPE, 0, 0, this);
+  getSize(), *this);
+  addSyntheticLocal(Saver.save("$x"), STT_NOT

svn commit: r327131 - vendor/lld/lld-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:56 2017
New Revision: 327131
URL: https://svnweb.freebsd.org/changeset/base/327131

Log:
  Tag lld trunk r321414.

Added:
  vendor/lld/lld-trunk-r321414/
 - copied from r327130, vendor/lld/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327128 - in vendor/libc++/dist: include test/std/input.output/string.streams/stringbuf/stringbuf.virtuals test/std/strings/string.view

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:43 2017
New Revision: 327128
URL: https://svnweb.freebsd.org/changeset/base/327128

Log:
  Vendor import of libc++ trunk r321414:
  https://llvm.org/svn/llvm-project/libcxx/trunk@321414

Added:
  vendor/libc++/dist/test/std/strings/string.view/types.pass.cpp   (contents, 
props changed)
Modified:
  vendor/libc++/dist/include/sstream
  vendor/libc++/dist/include/string_view
  
vendor/libc++/dist/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/seekoff.pass.cpp

Modified: vendor/libc++/dist/include/sstream
==
--- vendor/libc++/dist/include/sstream  Sun Dec 24 01:00:40 2017
(r327127)
+++ vendor/libc++/dist/include/sstream  Sun Dec 24 01:00:43 2017
(r327128)
@@ -577,6 +577,7 @@ basic_stringbuf<_CharT, _Traits, _Allocator>::seekoff(
 if ((__wch & (ios_base::in | ios_base::out)) == (ios_base::in | 
ios_base::out)
 && __way == ios_base::cur)
 return pos_type(-1);
+const ptrdiff_t __hm = __hm_ == nullptr ? 0 : __hm_ - __str_.data();
 off_type __noff;
 switch (__way)
 {
@@ -590,13 +591,13 @@ basic_stringbuf<_CharT, _Traits, _Allocator>::seekoff(
 __noff = this->pptr() - this->pbase();
 break;
 case ios_base::end:
-__noff = __hm_ - __str_.data();
+__noff = __hm;
 break;
 default:
 return pos_type(-1);
 }
 __noff += __off;
-if (__noff < 0 || __hm_ - __str_.data() < __noff)
+if (__noff < 0 || __hm < __noff)
 return pos_type(-1);
 if (__noff != 0)
 {

Modified: vendor/libc++/dist/include/string_view
==
--- vendor/libc++/dist/include/string_view  Sun Dec 24 01:00:40 2017
(r327127)
+++ vendor/libc++/dist/include/string_view  Sun Dec 24 01:00:43 2017
(r327128)
@@ -196,9 +196,9 @@ class _LIBCPP_TEMPLATE_VIS basic_string_view { (public
 // types
 typedef _Traitstraits_type;
 typedef _CharT value_type;
-typedef const _CharT*  pointer;
+typedef _CharT*pointer;
 typedef const _CharT*  const_pointer;
-typedef const _CharT&  reference;
+typedef _CharT&reference;
 typedef const _CharT&  const_reference;
 typedef const_pointer  const_iterator; // See 
[string.view.iterators]
 typedef const_iterator iterator;

Modified: 
vendor/libc++/dist/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/seekoff.pass.cpp
==
--- 
vendor/libc++/dist/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/seekoff.pass.cpp
   Sun Dec 24 01:00:40 2017(r327127)
+++ 
vendor/libc++/dist/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/seekoff.pass.cpp
   Sun Dec 24 01:00:43 2017(r327128)
@@ -21,6 +21,30 @@
 int main()
 {
 {
+std::stringbuf sb(std::ios_base::in);
+assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1);
+assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1);
+assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == 
-1);
+assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(0, std::ios_base::beg, std::ios_base::in) == 0);
+assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::in) == 0);
+assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::in) == 0);
+}
+{
+std::stringbuf sb(std::ios_base::out);
+assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == -1);
+assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == -1);
+assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in) == -1);
+assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | 
std::ios_base::out) == -1);
+assert(sb.pubseekoff(0, std::ios_base::beg, std::ios_base::out) == 0);
+assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::out) == 0);
+assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::out) == 0);
+}
+{
  

svn commit: r327125 - vendor/clang/clang-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:30 2017
New Revision: 327125
URL: https://svnweb.freebsd.org/changeset/base/327125

Log:
  Tag clang trunk r321414.

Added:
  vendor/clang/clang-trunk-r321414/
 - copied from r327124, vendor/clang/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327124 - in vendor/clang/dist: cmake/caches docs include/clang/AST include/clang/Basic include/clang/Frontend include/clang/Index include/clang/Parse include/clang/Sema include/clang/S...

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:23 2017
New Revision: 327124
URL: https://svnweb.freebsd.org/changeset/base/327124

Log:
  Vendor import of clang trunk r321414:
  https://llvm.org/svn/llvm-project/cfe/trunk@321414

Added:
  vendor/clang/dist/test/Analysis/arc-zero-init.m
  vendor/clang/dist/test/CodeGen/aarch64-v8.2a-neon-intrinsics.c   (contents, 
props changed)
  vendor/clang/dist/test/CodeGen/ubsan-noreturn.c   (contents, props changed)
  vendor/clang/dist/test/CodeGenCXX/ubsan-unreachable.cpp   (contents, props 
changed)
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/crtbegin.o
   (contents, props changed)
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/crtend.o
   (contents, props changed)
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/crti.o
   (contents, props changed)
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-rtems/6.3.0/crtn.o
   (contents, props changed)
  vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/include/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/include/c++/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/include/c++/6.3.0/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/include/c++/6.3.0/.keep
  vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/lib/
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/sparc-myriad-rtems/lib/crt0.o
   (contents, props changed)
  vendor/clang/dist/test/Index/skipped-bodies-templates.cpp   (contents, props 
changed)
  vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/
  vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Headers/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Headers/a.h
   (contents, props changed)
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Headers/aprivate.h
   (contents, props changed)
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Modules/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Modules/module.modulemap
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/Modules/module.private.modulemap
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/PrivateHeaders/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-canonical/A.framework/PrivateHeaders/aprivate.h
   (contents, props changed)
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-different-name/A.framework/PrivateHeaders/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-different-name/A.framework/PrivateHeaders/aprivate.h
   (contents, props changed)
  vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Headers/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Headers/a.h
   (contents, props changed)
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Headers/aprivate.h
   (contents, props changed)
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Modules/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Modules/module.modulemap
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/PrivateHeaders/
  
vendor/clang/dist/test/Modules/Inputs/implicit-private-with-submodule/A.framework/PrivateHeaders/aprivate.h
   (contents, props changed)
  vendor/clang/dist/test/Modules/implicit-map-dot-private.m
  vendor/clang/dist/test/Modules/implicit-private-canonical.m
  vendor/clang/dist/test/Modules/implicit-private-with-submodule.m
  vendor/clang/dist/test/SemaTemplate/nested-deduction-guides.cpp   (contents, 
props changed)
  vendor/clang/dist/test/SemaTemplate/temp_arg_enum_printing_more.cpp   
(contents, props changed)
  vendor/clang/dist/unittests/CodeGen/IRMatchers.h   (contents, props changed)
  vendor/clang/dist/unittests/CodeGen/TBAAMetadataTest.cpp   (contents, props 
changed)
Deleted:
  
vendor/clang/dist/test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/
  vendor/clang/dist/test/Driver/Inputs/basi

svn commit: r327122 - in vendor/llvm/dist: docs docs/tutorial examples/Kaleidoscope examples/Kaleidoscope/Chapter9 include/llvm include/llvm-c include/llvm/Analysis include/llvm/BinaryFormat includ...

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:08 2017
New Revision: 327122
URL: https://svnweb.freebsd.org/changeset/base/327122

Log:
  Vendor import of llvm trunk r321414:
  https://llvm.org/svn/llvm-project/llvm/trunk@321414

Added:
  vendor/llvm/dist/include/llvm/BinaryFormat/WasmRelocs.def
  vendor/llvm/dist/include/llvm/CodeGen/LiveStacks.h   (contents, props changed)
  vendor/llvm/dist/include/llvm/CodeGen/SDNodeProperties.td
  vendor/llvm/dist/lib/CodeGen/LiveStacks.cpp   (contents, props changed)
  
vendor/llvm/dist/test/CodeGen/AArch64/GlobalISel/fp128-legalize-crash-pr35690.mir
  vendor/llvm/dist/test/CodeGen/AArch64/chkstk.ll
  vendor/llvm/dist/test/CodeGen/AMDGPU/memory-legalizer-store-infinite-loop.ll
  vendor/llvm/dist/test/CodeGen/ARM/su-addsub-overflow.ll
  vendor/llvm/dist/test/CodeGen/ARM/usat.ll
  vendor/llvm/dist/test/CodeGen/BPF/objdump_imm_hex.ll
  vendor/llvm/dist/test/CodeGen/Hexagon/autohvx/build-vector-i32-type.ll
  vendor/llvm/dist/test/CodeGen/Hexagon/autohvx/isel-bool-vector.ll
  vendor/llvm/dist/test/CodeGen/Hexagon/autohvx/isel-select-const.ll
  vendor/llvm/dist/test/CodeGen/Hexagon/vect/vect-extract-i1-debug.ll
  vendor/llvm/dist/test/CodeGen/Mips/long-call-mcount.ll
  vendor/llvm/dist/test/CodeGen/Mips/sll-micromips-r6-encoding.mir
  vendor/llvm/dist/test/CodeGen/PowerPC/uint-to-ppcfp128-crash.ll
  vendor/llvm/dist/test/CodeGen/Thumb2/t2sizereduction.mir
  vendor/llvm/dist/test/DebugInfo/X86/dwarfdump-str-offsets-invalid-6.s   
(contents, props changed)
  vendor/llvm/dist/test/MC/AMDGPU/invalid-instructions-spellcheck.s   
(contents, props changed)
  vendor/llvm/dist/test/MC/ARM/dfb-neg.s   (contents, props changed)
  vendor/llvm/dist/test/MC/ARM/dfb.s   (contents, props changed)
  vendor/llvm/dist/test/MC/Disassembler/ARM/dfb-arm.txt   (contents, props 
changed)
  vendor/llvm/dist/test/MC/Disassembler/ARM/dfb-thumb.txt   (contents, props 
changed)
  vendor/llvm/dist/test/MC/X86/CLFLUSHOPT-32.s   (contents, props changed)
  vendor/llvm/dist/test/MC/X86/CLFLUSHOPT-64.s   (contents, props changed)
  vendor/llvm/dist/test/MC/X86/CLFSH-32.s   (contents, props changed)
  vendor/llvm/dist/test/MC/X86/CLFSH-64.s   (contents, props changed)
  vendor/llvm/dist/test/Transforms/CallSiteSplitting/callsite-no-or-structure.ll
  vendor/llvm/dist/test/Transforms/CallSiteSplitting/callsite-no-splitting.ll
  vendor/llvm/dist/test/Transforms/Inline/AArch64/binop.ll
  vendor/llvm/dist/test/Transforms/Inline/ARM/inline-fp.ll
  vendor/llvm/dist/test/Transforms/LoopVectorize/legal_preheader_check.ll
  vendor/llvm/dist/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll
  vendor/llvm/dist/test/Transforms/MemCpyOpt/merge-into-memset.ll
  vendor/llvm/dist/test/Transforms/MemCpyOpt/mixed-sizes.ll
  vendor/llvm/dist/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll
  vendor/llvm/dist/test/Transforms/SimplifyCFG/X86/if-conversion.ll
  vendor/llvm/dist/test/tools/llvm-objcopy/add-section-remove.test
  vendor/llvm/dist/test/tools/llvm-objcopy/add-section.test
  vendor/llvm/dist/utils/TableGen/SDNodeProperties.cpp   (contents, props 
changed)
  vendor/llvm/dist/utils/TableGen/SDNodeProperties.h   (contents, props changed)
Deleted:
  vendor/llvm/dist/include/llvm/BinaryFormat/WasmRelocs/WebAssembly.def
  vendor/llvm/dist/include/llvm/CodeGen/LiveStackAnalysis.h
  vendor/llvm/dist/lib/CodeGen/LiveStackAnalysis.cpp
  vendor/llvm/dist/test/Transforms/Inline/inline-fp.ll
  
vendor/llvm/dist/test/Transforms/SLPVectorizer/X86/jumbled-load-shuffle-placement.ll
  vendor/llvm/dist/test/Transforms/SLPVectorizer/X86/jumbled-load-used-in-phi.ll
Modified:
  vendor/llvm/dist/docs/Extensions.rst
  vendor/llvm/dist/docs/MIRLangRef.rst
  vendor/llvm/dist/docs/tutorial/LangImpl09.rst
  vendor/llvm/dist/examples/Kaleidoscope/CMakeLists.txt
  vendor/llvm/dist/examples/Kaleidoscope/Chapter9/toy.cpp
  vendor/llvm/dist/include/llvm-c/lto.h
  vendor/llvm/dist/include/llvm/Analysis/AliasAnalysis.h
  vendor/llvm/dist/include/llvm/Analysis/AliasAnalysisEvaluator.h
  vendor/llvm/dist/include/llvm/Analysis/LoopAccessAnalysis.h
  vendor/llvm/dist/include/llvm/Analysis/MemoryDependenceAnalysis.h
  vendor/llvm/dist/include/llvm/Analysis/ProfileSummaryInfo.h
  vendor/llvm/dist/include/llvm/Analysis/ScalarEvolutionExpander.h
  vendor/llvm/dist/include/llvm/Analysis/TargetTransformInfo.h
  vendor/llvm/dist/include/llvm/Analysis/TargetTransformInfoImpl.h
  vendor/llvm/dist/include/llvm/BinaryFormat/Wasm.h
  vendor/llvm/dist/include/llvm/CodeGen/BasicTTIImpl.h
  vendor/llvm/dist/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
  vendor/llvm/dist/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  vendor/llvm/dist/include/llvm/CodeGen/MachineOperand.h
  vendor/llvm/dist/include/llvm/CodeGen/RuntimeLibcalls.def
  vendor/llvm/dist/include/llvm/CodeGen/SelectionDAGNodes.h
  vendor/llvm/dist/include/llvm/CodeGen/TargetLowering.h
  vendor/llvm/dist/include/llvm/DebugInfo/DWARF/DWARFUnit.h
  vendor/llvm/dist/include/llvm/FuzzMutate/IRMutator.h
  

svn commit: r327123 - vendor/llvm/llvm-trunk-r321414

2017-12-23 Thread Dimitry Andric
Author: dim
Date: Sun Dec 24 01:00:16 2017
New Revision: 327123
URL: https://svnweb.freebsd.org/changeset/base/327123

Log:
  Tag llvm trunk r321414.

Added:
  vendor/llvm/llvm-trunk-r321414/
 - copied from r327122, vendor/llvm/dist/
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327121 - head/bin/sh

2017-12-23 Thread Jilles Tjoelker
Author: jilles
Date: Sat Dec 23 22:58:19 2017
New Revision: 327121
URL: https://svnweb.freebsd.org/changeset/base/327121

Log:
  sh(1): Markup and spelling fixes

Modified:
  head/bin/sh/sh.1

Modified: head/bin/sh/sh.1
==
--- head/bin/sh/sh.1Sat Dec 23 22:57:14 2017(r327120)
+++ head/bin/sh/sh.1Sat Dec 23 22:58:19 2017(r327121)
@@ -343,7 +343,7 @@ Write each command
 variable subjected to parameter expansion and arithmetic expansion)
 to standard error before it is executed.
 Useful for debugging.
-.It nolog
+.It Li nolog
 Another do-nothing option for
 .Tn POSIX
 compliance.
@@ -2739,7 +2739,7 @@ were a known job that exited with exit status 127.
 If no operands are given, wait for all jobs to complete
 and return an exit status of zero.
 .El
-.Ss Commandline Editing
+.Ss Command Line Editing
 When
 .Nm
 is being used interactively from a terminal, the current command
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327120 - in head/sys: isa x86/isa

2017-12-23 Thread Warner Losh
Author: imp
Date: Sat Dec 23 22:57:14 2017
New Revision: 327120
URL: https://svnweb.freebsd.org/changeset/base/327120

Log:
  Warn when nonPNP ISA devices are attached in GENERIC that they are
  being removed from GENERIC in 12. Always print PNP info for ISA when
  it exists: it doesn't depend on ISAPNP. Add PNP ID to orm and vga to
  prevent us from warning about them since those devices aren't being
  removed from GENERIC. PNP devices will be removed from GENERIC too,
  but they will be automatically loaded, so need no warning. We don't
  warn for non-GENERIC kernels because people running them are presumed
  to know what they are doing.
  
  MFC After: 2 weeks

Modified:
  head/sys/isa/isa_common.c
  head/sys/isa/pnp.c
  head/sys/isa/vga_isa.c
  head/sys/x86/isa/orm.c

Modified: head/sys/isa/isa_common.c
==
--- head/sys/isa/isa_common.c   Sat Dec 23 21:41:32 2017(r327119)
+++ head/sys/isa/isa_common.c   Sat Dec 23 22:57:14 2017(r327120)
@@ -68,10 +68,12 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -499,7 +501,7 @@ isa_probe_children(device_t dev)
struct isa_device *idev;
device_t *children, child;
struct isa_config *cfg;
-   int nchildren, i;
+   int nchildren, i, err;
 
/*
 * Create all the non-hinted children by calling drivers'
@@ -569,7 +571,11 @@ isa_probe_children(device_t dev)
!TAILQ_EMPTY(&idev->id_configs))
continue;
 
-   device_probe_and_attach(child);
+   err = device_probe_and_attach(child);
+   if (err == 0 && idev->id_vendorid == 0 &&
+   strcmp(kern_ident, "GENERIC") == 0)
+   device_printf(child,
+   "non-PNP ISA device will be removed from GENERIC in 
FreeBSD 12.");
}
 
/*
@@ -637,10 +643,8 @@ isa_print_all_resources(device_t dev)
retval += resource_list_print_type(rl, "drq", SYS_RES_DRQ, "%jd");
if (device_get_flags(dev))
retval += printf(" flags %#x", device_get_flags(dev));
-#ifdef ISAPNP
if (idev->id_vendorid)
retval += printf(" pnpid %s", 
pnp_eisaformat(idev->id_vendorid));
-#endif
 
return (retval);
 }
@@ -1030,13 +1034,11 @@ static int
 isa_child_pnpinfo_str(device_t bus, device_t child, char *buf,
 size_t buflen)
 {
-#ifdef ISAPNP
struct isa_device *idev = DEVTOISA(child);
 
if (idev->id_vendorid)
snprintf(buf, buflen, "pnpid=%s",
pnp_eisaformat(idev->id_vendorid));
-#endif
return (0);
 }
 
@@ -1124,4 +1126,24 @@ isab_attach(device_t dev)
if (child != NULL)
return (bus_generic_attach(dev));
return (ENXIO);
+}
+
+char *
+pnp_eisaformat(uint32_t id)
+{
+   uint8_t *data;
+   static char idbuf[8];
+   const char  hextoascii[] = "0123456789abcdef";
+
+   id = htole32(id);
+   data = (uint8_t *)&id;
+   idbuf[0] = '@' + ((data[0] & 0x7c) >> 2);
+   idbuf[1] = '@' + (((data[0] & 0x3) << 3) + ((data[1] & 0xe0) >> 5));
+   idbuf[2] = '@' + (data[1] & 0x1f);
+   idbuf[3] = hextoascii[(data[2] >> 4)];
+   idbuf[4] = hextoascii[(data[2] & 0xf)];
+   idbuf[5] = hextoascii[(data[3] >> 4)];
+   idbuf[6] = hextoascii[(data[3] & 0xf)];
+   idbuf[7] = 0;
+   return(idbuf);
 }

Modified: head/sys/isa/pnp.c
==
--- head/sys/isa/pnp.c  Sat Dec 23 21:41:32 2017(r327119)
+++ head/sys/isa/pnp.c  Sat Dec 23 22:57:14 2017(r327120)
@@ -103,26 +103,6 @@ static void   pnp_send_initiation_key(void);
 static intpnp_get_serial(pnp_id *p);
 static intpnp_isolation_protocol(device_t parent);
 
-char *
-pnp_eisaformat(uint32_t id)
-{
-   uint8_t *data;
-   static char idbuf[8];
-   const char  hextoascii[] = "0123456789abcdef";
-
-   id = htole32(id);
-   data = (uint8_t *)&id;
-   idbuf[0] = '@' + ((data[0] & 0x7c) >> 2);
-   idbuf[1] = '@' + (((data[0] & 0x3) << 3) + ((data[1] & 0xe0) >> 5));
-   idbuf[2] = '@' + (data[1] & 0x1f);
-   idbuf[3] = hextoascii[(data[2] >> 4)];
-   idbuf[4] = hextoascii[(data[2] & 0xf)];
-   idbuf[5] = hextoascii[(data[3] >> 4)];
-   idbuf[6] = hextoascii[(data[3] & 0xf)];
-   idbuf[7] = 0;
-   return(idbuf);
-}
-
 static void
 pnp_write(int d, u_char r)
 {

Modified: head/sys/isa/vga_isa.c
==
--- head/sys/isa/vga_isa.c  Sat Dec 23 21:41:32 2017(r327119)
+++ head/sys/isa/vga_isa.c  Sat Dec 23 22:57:14 2017(r327120)
@@ -175,6 +175,7 @@ isavga_probe(device_t dev)
 adp.va_io_base, adp.va_io_size);
 

svn commit: r327118 - in head/sys/x86: include x86

2017-12-23 Thread Konstantin Belousov
Author: kib
Date: Sat Dec 23 21:32:50 2017
New Revision: 327118
URL: https://svnweb.freebsd.org/changeset/base/327118

Log:
  Add missed AVX512VL (128 and 256 bit vector length) extension
  identification bit.
  
  Sponsored by: The FreeBSD Foundation
  MFC after:3 days

Modified:
  head/sys/x86/include/specialreg.h
  head/sys/x86/x86/identcpu.c

Modified: head/sys/x86/include/specialreg.h
==
--- head/sys/x86/include/specialreg.h   Sat Dec 23 21:04:32 2017
(r327117)
+++ head/sys/x86/include/specialreg.h   Sat Dec 23 21:32:50 2017
(r327118)
@@ -409,6 +409,7 @@
 #defineCPUID_STDEXT_AVX512CD   0x1000
 #defineCPUID_STDEXT_SHA0x2000
 #defineCPUID_STDEXT_AVX512BW   0x4000
+#defineCPUID_STDEXT_AVX512VL   0x8000
 
 /*
  * CPUID instruction 7 Structured Extended Features, leaf 0 ecx info

Modified: head/sys/x86/x86/identcpu.c
==
--- head/sys/x86/x86/identcpu.c Sat Dec 23 21:04:32 2017(r327117)
+++ head/sys/x86/x86/identcpu.c Sat Dec 23 21:32:50 2017(r327118)
@@ -963,6 +963,7 @@ printcpuinfo(void)
   "\035AVX512CD"
   "\036SHA"
   "\037AVX512BW"
+  "\040AVX512VL"
   );
}
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327117 - head/usr.bin/calendar

2017-12-23 Thread Eitan Adler
Author: eadler
Date: Sat Dec 23 21:04:32 2017
New Revision: 327117
URL: https://svnweb.freebsd.org/changeset/base/327117

Log:
  calendar: add missing header file
  
  time.h is required for strftime and struct tm
  
  Reviewed by:  edje

Modified:
  head/usr.bin/calendar/io.c

Modified: head/usr.bin/calendar/io.c
==
--- head/usr.bin/calendar/io.c  Sat Dec 23 19:48:57 2017(r327116)
+++ head/usr.bin/calendar/io.c  Sat Dec 23 21:04:32 2017(r327117)
@@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include "pathnames.h"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r327094 - in head/sys/dev: ahci usb/controller

2017-12-23 Thread Conrad Meyer
I see similar devices on my AMD TR + X399 system that should be added
as well.  I don't have time to reboot/test a patch right now, but here
are the device ids:

  pci1
ahci0 pnpinfo vendor=0x1022 device=0x43b6 subvendor=0x1b21
subdevice=0x1062 class=0x010601 at slot=0 function=1 dbsf=pci0:1:0:1
handle=\_SB_.PCI0.D0A0.P101
   xhci0 pnpinfo vendor=0x1022 device=0x43ba subvendor=0x1b21
subdevice=0x1142 class=0x0c0330 at slot=0 function=0 dbsf=pci0:1:0:0
handle=\_SB_.PCI0.D0A0.PTXH

(0x43b61022 for ahci0, 0x43ba1022 for xhci0.)

If no one else commits them, I'll get to it eventually.

Best,
Conrad

On Fri, Dec 22, 2017 at 12:44 PM, Alexander Motin  wrote:
> Author: mav
> Date: Fri Dec 22 20:44:21 2017
> New Revision: 327094
> URL: https://svnweb.freebsd.org/changeset/base/327094
>
> Log:
>   Add AHCI/XHCI device IDs found on AMD Ryzen+B350 system.
>
>   MFC after:2 weeks
>
> Modified:
>   head/sys/dev/ahci/ahci_pci.c
>   head/sys/dev/usb/controller/xhci_pci.c
>
> Modified: head/sys/dev/ahci/ahci_pci.c
> ==
> --- head/sys/dev/ahci/ahci_pci.cFri Dec 22 19:10:19 2017
> (r327093)
> +++ head/sys/dev/ahci/ahci_pci.cFri Dec 22 20:44:21 2017
> (r327094)
> @@ -68,6 +68,7 @@ static const struct {
> AHCI_Q_ATI_PMP_BUG | AHCI_Q_1MSI},
> /* Not sure SB8x0/SB9x0 needs this quirk. Be conservative though */
> {0x43951002, 0x00, "AMD SB8x0/SB9x0",   AHCI_Q_ATI_PMP_BUG},
> +   {0x43b71022, 0x00, "AMD 300 Series",0},
> {0x78001022, 0x00, "AMD Hudson-2",  0},
> {0x78011022, 0x00, "AMD Hudson-2",  0},
> {0x78021022, 0x00, "AMD Hudson-2",  0},
>
> Modified: head/sys/dev/usb/controller/xhci_pci.c
> ==
> --- head/sys/dev/usb/controller/xhci_pci.c  Fri Dec 22 19:10:19 2017  
>   (r327093)
> +++ head/sys/dev/usb/controller/xhci_pci.c  Fri Dec 22 20:44:21 2017  
>   (r327094)
> @@ -97,6 +97,10 @@ xhci_pci_match(device_t self)
> uint32_t device_id = pci_get_devid(self);
>
> switch (device_id) {
> +   case 0x145c1022:
> +   return ("AMD KERNCZ USB 3.0 controller");
> +   case 0x43bb1022:
> +   return ("AMD 300 Series USB 3.0 controller");
> case 0x78141022:
> return ("AMD FCH USB 3.0 controller");
>
>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327116 - head/usr.bin/ldd

2017-12-23 Thread Eitan Adler
Author: eadler
Date: Sat Dec 23 19:48:57 2017
New Revision: 327116
URL: https://svnweb.freebsd.org/changeset/base/327116

Log:
  ldd: avoid statically linked executables in example
  
  The example works but spews warnings if run over a directory with
  statically linked binaries.
  
  PR:   211024
  Submitted by: m...@skew.org

Modified:
  head/usr.bin/ldd/ldd.1

Modified: head/usr.bin/ldd/ldd.1
==
--- head/usr.bin/ldd/ldd.1  Sat Dec 23 18:07:43 2017(r327115)
+++ head/usr.bin/ldd/ldd.1  Sat Dec 23 19:48:57 2017(r327116)
@@ -63,7 +63,7 @@ The following is an example of a shell pipeline which 
 option.
 It will print a report of all ELF binaries in the current directory,
 which link against libc.so.6:
-.Dl "find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs 
ldd -f '%A %o\en' | grep libc.so.6"
+.Dl "find . -type f | xargs -n1 file -F ' ' | grep 'ELF.*dynamically' | cut 
-f1 -d' ' | xargs ldd -f '%A %o\en' | grep libc.so.6"
 .Sh SEE ALSO
 .Xr ld 1 ,
 .Xr nm 1 ,
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r327084 - head/sys/dev/pccard

2017-12-23 Thread Warner Losh
On Sat, Dec 23, 2017 at 12:14 PM, Conrad Meyer  wrote:

> On Fri, Dec 22, 2017 at 8:59 AM, Warner Losh  wrote:
> > ...
> > New Revision: 327084
> >
> >   PC Card PNP tables are terminated by a NULL sentinel. This shouldn't
> >   be recorded in the linker hints, so subtract one to omit it.
> > 
> ==
> > --- head/sys/dev/pccard/pccardvar.h Fri Dec 22 16:27:29 2017
> (r327083)
> > +++ head/sys/dev/pccard/pccardvar.h Fri Dec 22 16:59:50 2017
> (r327084)
> > @@ -95,7 +95,7 @@ struct pccard_product {
> >   */
> >  #define PCCARD_PNP_DESCR "D:#;V32:manufacturer;V32:
> product;Z:cisvendor;Z:cisproduct;"
> >  #define PCCARD_PNP_INFO(t) \
> > -   MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]),
> sizeof(t) / sizeof(t[0])); \
> > +   MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]),
> sizeof(t) / sizeof(t[0]) - 1); \
>
> Perhaps more clearly, this could be:
> MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), nitems(t) -
> 1)
>

Yup. A later commit did just that when I saw the construct used elsewhere.
Thanks for the suggestion!

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


Re: svn commit: r327084 - head/sys/dev/pccard

2017-12-23 Thread Conrad Meyer
On Fri, Dec 22, 2017 at 8:59 AM, Warner Losh  wrote:
> ...
> New Revision: 327084
>
>   PC Card PNP tables are terminated by a NULL sentinel. This shouldn't
>   be recorded in the linker hints, so subtract one to omit it.
> ==
> --- head/sys/dev/pccard/pccardvar.h Fri Dec 22 16:27:29 2017
> (r327083)
> +++ head/sys/dev/pccard/pccardvar.h Fri Dec 22 16:59:50 2017
> (r327084)
> @@ -95,7 +95,7 @@ struct pccard_product {
>   */
>  #define PCCARD_PNP_DESCR 
> "D:#;V32:manufacturer;V32:product;Z:cisvendor;Z:cisproduct;"
>  #define PCCARD_PNP_INFO(t) \
> -   MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), 
> sizeof(t) / sizeof(t[0])); \
> +   MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), 
> sizeof(t) / sizeof(t[0]) - 1); \

Perhaps more clearly, this could be:
MODULE_PNP_INFO(PCCARD_PNP_DESCR, pccard, t, t, sizeof(t[0]), nitems(t) - 1)
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327115 - in head: include lib/libc/gen

2017-12-23 Thread Mariusz Zaborski
Author: oshogbo
Date: Sat Dec 23 18:07:43 2017
New Revision: 327115
URL: https://svnweb.freebsd.org/changeset/base/327115

Log:
  Introduce the daemonfd function.
  
  The daemonfd function is equivalent to the daemon(3) function expect that
  arguments are descriptors. For example dhclient(8) which is sandboxed is
  unable to open /dev/null to close stdio instead it's allows to fail
  daemon(3) function to close the descriptors and then do it explicit in code.
  Instead of such hacks we can use now daemonfd.
  
  This API can be also helpful to migrate system to platforms like CheriBSD.
  
  Reviewed by:  brooks@, bcr@, jilles@ (earlier version)
  Differential Revision:https://reviews.freebsd.org/D13433

Modified:
  head/include/stdlib.h
  head/lib/libc/gen/Symbol.map
  head/lib/libc/gen/daemon.3
  head/lib/libc/gen/daemon.c

Modified: head/include/stdlib.h
==
--- head/include/stdlib.h   Sat Dec 23 17:55:19 2017(r327114)
+++ head/include/stdlib.h   Sat Dec 23 18:07:43 2017(r327115)
@@ -274,6 +274,7 @@ int  cgetstr(char *, const char *, char **);
 int cgetustr(char *, const char *, char **);
 
 int daemon(int, int);
+int daemonfd(int, int);
 char   *devname(__dev_t, __mode_t);
 char   *devname_r(__dev_t, __mode_t, char *, int);
 char   *fdevname(int);

Modified: head/lib/libc/gen/Symbol.map
==
--- head/lib/libc/gen/Symbol.mapSat Dec 23 17:55:19 2017
(r327114)
+++ head/lib/libc/gen/Symbol.mapSat Dec 23 18:07:43 2017
(r327115)
@@ -394,6 +394,7 @@ FBSD_1.4 {
 FBSD_1.5 {
alphasort;
basename;
+   daemonfd;
devname;
devname_r;
dirname;

Modified: head/lib/libc/gen/daemon.3
==
--- head/lib/libc/gen/daemon.3  Sat Dec 23 17:55:19 2017(r327114)
+++ head/lib/libc/gen/daemon.3  Sat Dec 23 18:07:43 2017(r327115)
@@ -28,7 +28,7 @@
 .\"@(#)daemon.38.1 (Berkeley) 6/9/93
 .\" $FreeBSD$
 .\"
-.Dd June 9, 1993
+.Dd December 23, 2017
 .Dt DAEMON 3
 .Os
 .Sh NAME
@@ -40,6 +40,8 @@
 .In stdlib.h
 .Ft int
 .Fn daemon "int nochdir" "int noclose"
+.Ft int
+.Fn daemonfd "int chdirfd" "int nullfd"
 .Sh DESCRIPTION
 The
 .Fn daemon
@@ -59,15 +61,39 @@ is non-zero,
 .Fn daemon
 will redirect standard input, standard output, and standard error to
 .Pa /dev/null .
+.Pp
+The
+.Fn daemonfd
+function is equivalent to the
+.Fn daemon
+function except that arguments are the descriptors for the current working
+directory and to the descriptor to
+.Pa /dev/null .
+.Pp
+If
+.Fa chdirfd
+is equal to
+.Pq -1
+the current working directory is not changed.
+.Pp
+If
+.Fa nullfd
+is equals to
+.Pq -1
+the redirection of standard input, standard output, and standard error is not
+closed.
 .Sh RETURN VALUES
-.Rv -std daemon
+.Rv -std daemon daemonfd
 .Sh ERRORS
 The
 .Fn daemon
+and
+.Fn daemonfd
 function may fail and set
 .Va errno
 for any of the errors specified for the library functions
 .Xr fork 2
+.Xr open 2,
 and
 .Xr setsid 2 .
 .Sh SEE ALSO
@@ -79,6 +105,10 @@ The
 .Fn daemon
 function first appeared in
 .Bx 4.4 .
+The
+.Fn daemonfd
+function first appeared in
+.Fx 12.0 .
 .Sh CAVEATS
 Unless the
 .Fa noclose

Modified: head/lib/libc/gen/daemon.c
==
--- head/lib/libc/gen/daemon.c  Sat Dec 23 17:55:19 2017(r327114)
+++ head/lib/libc/gen/daemon.c  Sat Dec 23 18:07:43 2017(r327115)
@@ -1,8 +1,9 @@
 /*-
  * SPDX-License-Identifier: BSD-3-Clause
  *
- * Copyright (c) 1990, 1993
- * The Regents of the University of California.  All rights reserved.
+ * Copyright (c) 1990, 1993 The Regents of the University of California.
+ * Copyright (c) 2017 Mariusz Zaborski 
+ * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -46,10 +47,9 @@ __FBSDID("$FreeBSD$");
 #include "libc_private.h"
 
 int
-daemon(int nochdir, int noclose)
+daemonfd(int chdirfd, int nullfd)
 {
struct sigaction osa, sa;
-   int fd;
pid_t newgrp;
int oerrno;
int osa_ok;
@@ -83,15 +83,39 @@ daemon(int nochdir, int noclose)
return (-1);
}
 
-   if (!nochdir)
-   (void)chdir("/");
+   if (chdirfd != -1)
+   (void)fchdir(chdirfd);
 
-   if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
-   (void)_dup2(fd, STDIN_FILENO);
-   (void)_dup2(fd, STDOUT_FILENO);
-   (void)_dup2(fd, STDERR_FILENO);
-   if (fd > 2)
-   (void)_close(fd);
+   if (nullfd != -1) {
+   (void)_dup2(nullfd, STDIN_FILENO);
+   (void)_dup2(nullfd,

svn commit: r327114 - head/sys/kern

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 17:55:19 2017
New Revision: 327114
URL: https://svnweb.freebsd.org/changeset/base/327114

Log:
  Reverse the check to allocate the buffer if cached pointer is NULL.
  
  Reviewed by: kib
  Differential Revision: https://reviews.freebsd.org/D13596

Modified:
  head/sys/kern/vfs_export.c

Modified: head/sys/kern/vfs_export.c
==
--- head/sys/kern/vfs_export.c  Sat Dec 23 16:49:57 2017(r327113)
+++ head/sys/kern/vfs_export.c  Sat Dec 23 17:55:19 2017(r327114)
@@ -412,7 +412,7 @@ vfs_setpublicfs(struct mount *mp, struct netexport *ne
 * If an indexfile was specified, pull it in.
 */
if (argp->ex_indexfile != NULL) {
-   if (nfs_pub.np_index != NULL)
+   if (nfs_pub.np_index == NULL)
nfs_pub.np_index = malloc(MAXNAMLEN + 1, M_TEMP,
M_WAITOK);
error = copyinstr(argp->ex_indexfile, nfs_pub.np_index,
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327113 - head/sys/kern

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:49:57 2017
New Revision: 327113
URL: https://svnweb.freebsd.org/changeset/base/327113

Log:
  Remove dead store to local variable.

Modified:
  head/sys/kern/kern_shutdown.c

Modified: head/sys/kern/kern_shutdown.c
==
--- head/sys/kern/kern_shutdown.c   Sat Dec 23 16:45:26 2017
(r327112)
+++ head/sys/kern/kern_shutdown.c   Sat Dec 23 16:49:57 2017
(r327113)
@@ -536,7 +536,6 @@ shutdown_halt(void *junk, int howto)
cpu_halt();
/* NOTREACHED */
default:
-   howto &= ~RB_HALT;
break;
}
}
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327112 - head/sys/netinet6

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:45:26 2017
New Revision: 327112
URL: https://svnweb.freebsd.org/changeset/base/327112

Log:
  Silence clang analyzer false positive.
  
  clang does not know that two lookup calls will return the same
  pointer, so it assumes correctly that using the old pointer
  after dropping the reference to it is a bit risky.

Modified:
  head/sys/netinet6/nd6_nbr.c

Modified: head/sys/netinet6/nd6_nbr.c
==
--- head/sys/netinet6/nd6_nbr.c Sat Dec 23 16:45:24 2017(r327111)
+++ head/sys/netinet6/nd6_nbr.c Sat Dec 23 16:45:26 2017(r327112)
@@ -1307,7 +1307,8 @@ nd6_dad_stop(struct ifaddr *ifa)
 * we were waiting for it to stop, so re-do the lookup.
 */
nd6_dad_rele(dp);
-   if (nd6_dad_find(ifa, NULL) == NULL)
+   dp = nd6_dad_find(ifa, NULL);
+   if (dp == NULL)
return;
 
nd6_dad_del(dp);
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327111 - head/sys/net

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:45:24 2017
New Revision: 327111
URL: https://svnweb.freebsd.org/changeset/base/327111

Log:
  Do not pass NULL pointer to copyout in if_clone_list.
  
  Sometimes caller is only interested in how many clones
  are there and NULL pointer is passed for the destination
  buffer. Do not pass it to copyout then.

Modified:
  head/sys/net/if_clone.c

Modified: head/sys/net/if_clone.c
==
--- head/sys/net/if_clone.c Sat Dec 23 16:24:02 2017(r327110)
+++ head/sys/net/if_clone.c Sat Dec 23 16:45:24 2017(r327111)
@@ -508,7 +508,7 @@ if_clone_list(struct if_clonereq *ifcr)
 
 done:
IF_CLONERS_UNLOCK();
-   if (err == 0)
+   if (err == 0 && dst != NULL)
err = copyout(outbuf, dst, buf_count*IFNAMSIZ);
if (outbuf != NULL)
free(outbuf, M_CLONE);
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327109 - head/sys/net

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:24:00 2017
New Revision: 327109
URL: https://svnweb.freebsd.org/changeset/base/327109

Log:
  Remove some trailing whitespace.
  
  Reviewed by: glebius, ae
  Differential Revision: https://reviews.freebsd.org/D10386

Modified:
  head/sys/net/if_clone.c

Modified: head/sys/net/if_clone.c
==
--- head/sys/net/if_clone.c Sat Dec 23 16:23:58 2017(r327108)
+++ head/sys/net/if_clone.c Sat Dec 23 16:24:00 2017(r327109)
@@ -355,7 +355,7 @@ if_clone_alloc(const char *name, int maxunit)
 
return (ifc);
 }
-   
+
 static int
 if_clone_attach(struct if_clone *ifc)
 {
@@ -446,7 +446,7 @@ if_clone_detach(struct if_clone *ifc)
/* destroy all interfaces for this cloner */
while (!LIST_EMPTY(&ifc->ifc_iflist))
if_clone_destroyif(ifc, LIST_FIRST(&ifc->ifc_iflist));
-   
+
IF_CLONE_REMREF(ifc);
 }
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327108 - head/sys/net

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:23:58 2017
New Revision: 327108
URL: https://svnweb.freebsd.org/changeset/base/327108

Log:
  Do not double free the memory in if_clone.
  
  if_clone_attach function will drop the reference on failure  which will
  free the if_clone structure. No need to do it second time.
  
  Reviewed by: glebius, ae
  Differential Revision: https://reviews.freebsd.org/D10386

Modified:
  head/sys/net/if_clone.c

Modified: head/sys/net/if_clone.c
==
--- head/sys/net/if_clone.c Sat Dec 23 14:30:44 2017(r327107)
+++ head/sys/net/if_clone.c Sat Dec 23 16:23:58 2017(r327108)
@@ -387,10 +387,8 @@ if_clone_advanced(const char *name, u_int maxunit, ifc
ifc->ifc_create = create;
ifc->ifc_destroy = destroy;
 
-   if (if_clone_attach(ifc) != 0) {
-   if_clone_free(ifc);
+   if (if_clone_attach(ifc) != 0)
return (NULL);
-   }
 
EVENTHANDLER_INVOKE(if_clone_event, ifc);
 
@@ -410,10 +408,8 @@ if_clone_simple(const char *name, ifcs_create_t create
ifc->ifcs_destroy = destroy;
ifc->ifcs_minifs = minifs;
 
-   if (if_clone_attach(ifc) != 0) {
-   if_clone_free(ifc);
+   if (if_clone_attach(ifc) != 0)
return (NULL);
-   }
 
for (unit = 0; unit < minifs; unit++) {
char name[IFNAMSIZ];
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327110 - head/sys/ufs/ffs

2017-12-23 Thread Alexander Kabaev
Author: kan
Date: Sat Dec 23 16:24:02 2017
New Revision: 327110
URL: https://svnweb.freebsd.org/changeset/base/327110

Log:
  Remove dead initialization of the inode pointer.
  
  The pointer gets initialized again later in the code. This also
  improves code style(9).

Modified:
  head/sys/ufs/ffs/ffs_snapshot.c

Modified: head/sys/ufs/ffs/ffs_snapshot.c
==
--- head/sys/ufs/ffs/ffs_snapshot.c Sat Dec 23 16:24:00 2017
(r327109)
+++ head/sys/ufs/ffs/ffs_snapshot.c Sat Dec 23 16:24:02 2017
(r327110)
@@ -2502,7 +2502,7 @@ readblock(vp, bp, lbn)
struct buf *bp;
ufs2_daddr_t lbn;
 {
-   struct inode *ip = VTOI(vp);
+   struct inode *ip;
struct bio *bip;
struct fs *fs;
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327107 - in head/sys: conf dev/extres/syscon dev/syscon

2017-12-23 Thread Kyle Evans
Author: kevans
Date: Sat Dec 23 14:30:44 2017
New Revision: 327107
URL: https://svnweb.freebsd.org/changeset/base/327107

Log:
  Move syscon into extres framework
  
  This should help reduce confusion between syscon/syscons a little bit.
  syscon is a resource generally modeled by FDT platforms, and not to be
  confused with syscons.

Added:
  head/sys/dev/extres/syscon/
 - copied from r327106, head/sys/dev/syscon/
Deleted:
  head/sys/dev/syscon/
Modified:
  head/sys/conf/files

Modified: head/sys/conf/files
==
--- head/sys/conf/files Sat Dec 23 14:27:42 2017(r327106)
+++ head/sys/conf/files Sat Dec 23 14:30:44 2017(r327107)
@@ -1723,6 +1723,9 @@ dev/extres/regulator/regnode_if.m optional ext_resourc
 dev/extres/regulator/regulator.c   optional ext_resources regulator fdt
 dev/extres/regulator/regulator_bus.c   optional ext_resources regulator fdt
 dev/extres/regulator/regulator_fixed.c optional ext_resources regulator fdt
+dev/extres/syscon/syscon.c optional ext_resources syscon
+dev/extres/syscon/syscon_generic.c optional ext_resources syscon fdt
+dev/extres/syscon/syscon_if.m  optional ext_resources syscon
 dev/fb/fbd.c   optional fbd | vt
 dev/fb/fb_if.m standard
 dev/fb/splash.coptional sc splash
@@ -3107,9 +3110,6 @@ dev/stg/tmc18c30_subr.c   optional stg
 dev/stge/if_stge.c optional stge
 dev/sym/sym_hipd.c optional sym\
dependency  "$S/dev/sym/sym_{conf,defs}.h"
-dev/syscon/syscon.coptional syscon
-dev/syscon/syscon_generic.coptional fdt syscon
-dev/syscon/syscon_if.m optional syscon
 dev/syscons/blank/blank_saver.coptional blank_saver
 dev/syscons/daemon/daemon_saver.c optional daemon_saver
 dev/syscons/dragon/dragon_saver.c optional dragon_saver
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r327106 - in head/sys: conf dev/syscon

2017-12-23 Thread Kyle Evans
Author: kevans
Date: Sat Dec 23 14:27:42 2017
New Revision: 327106
URL: https://svnweb.freebsd.org/changeset/base/327106

Log:
  syscon: Introduce kobj and split out fdt bits
  
  Allow more flexibility by kobj'ifying syscon and splitting out fdt specific
  bits in preparation of a move to the extres framework.
  
  The generic fdt driver has been moved to syscon_generic.c and the fdt
  requirement has been removed from the syscon interface, as is common to the
  extres framework.
  
  Reviewed by:  strejda
  Differential Revision:https://reviews.freebsd.org/D13521

Added:
  head/sys/dev/syscon/syscon.h   (contents, props changed)
  head/sys/dev/syscon/syscon_generic.c   (contents, props changed)
Modified:
  head/sys/conf/files
  head/sys/dev/syscon/syscon.c
  head/sys/dev/syscon/syscon_if.m

Modified: head/sys/conf/files
==
--- head/sys/conf/files Sat Dec 23 13:10:36 2017(r327105)
+++ head/sys/conf/files Sat Dec 23 14:27:42 2017(r327106)
@@ -3107,8 +3107,9 @@ dev/stg/tmc18c30_subr.c   optional stg
 dev/stge/if_stge.c optional stge
 dev/sym/sym_hipd.c optional sym\
dependency  "$S/dev/sym/sym_{conf,defs}.h"
-dev/syscon/syscon.coptional fdt syscon
-dev/syscon/syscon_if.m optional fdt syscon
+dev/syscon/syscon.coptional syscon
+dev/syscon/syscon_generic.coptional fdt syscon
+dev/syscon/syscon_if.m optional syscon
 dev/syscons/blank/blank_saver.coptional blank_saver
 dev/syscons/daemon/daemon_saver.c optional daemon_saver
 dev/syscons/dragon/dragon_saver.c optional dragon_saver

Modified: head/sys/dev/syscon/syscon.c
==
--- head/sys/dev/syscon/syscon.cSat Dec 23 13:10:36 2017
(r327105)
+++ head/sys/dev/syscon/syscon.cSat Dec 23 14:27:42 2017
(r327106)
@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2015 Michal Meloun
+ * Copyright (c) 2017 Kyle Evans 
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without

Added: head/sys/dev/syscon/syscon.h
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/dev/syscon/syscon.hSat Dec 23 14:27:42 2017
(r327106)
@@ -0,0 +1,77 @@
+/*-
+ * Copyright 2017 Kyle Evans 
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef DEV_SYSCON_H
+#define DEV_SYSCON_H
+
+#include "opt_platform.h"
+
+#include 
+#include 
+#ifdef FDT
+#include 
+#endif
+
+struct syscon {
+   KOBJ_FIELDS;
+
+   TAILQ_ENTRY(syscon) syscon_link;   /* Global list entry */
+
+   device_tpdev;   /* provider device */
+#ifdef FDT
+   phandle_t   ofw_node;   /* OFW node for syscon */
+#endif
+   void*softc; /* provider softc */
+};
+
+/*
+ * Shorthands for constructing method tables.
+ */
+#defineSYSCONMETHODKOBJMETHOD
+#defineSYSCONMETHOD_ENDKOBJMETHOD_END
+#definesyscon_method_t kobj_method_t
+#definesyscon_class_t  kobj_class_t
+DECLARE_CLASS(syscon_class);
+
+void *syscon_get_softc(struct syscon *syscon);
+
+/*
+ * Provider interface
+ */
+struct syscon *syscon_create(device_t pdev, syscon_class_t syscon_class);
+struct syscon *syscon_register(struct syscon *syscon);
+int syscon_unregister(struct syscon *syscon);
+
+#ifdef FDT
+struct syscon *syscon_create_ofw_node(device_t pdev,
+syscon_class_t syscon_class, phandle_t n

svn commit: r327104 - svnadmin/conf

2017-12-23 Thread Matthew Seaman
Author: matthew (ports committer)
Date: Sat Dec 23 12:44:24 2017
New Revision: 327104
URL: https://svnweb.freebsd.org/changeset/base/327104

Log:
  Restore Wolfram Schneider's commit bit at his request.  Conrad Meyer
  will act as mentor until Wolfram gets back up to speed.
  
  Approved by:  core

Modified:
  svnadmin/conf/access
  svnadmin/conf/mentors

Modified: svnadmin/conf/access
==
--- svnadmin/conf/accessSat Dec 23 07:02:45 2017(r327103)
+++ svnadmin/conf/accessSat Dec 23 12:44:24 2017(r327104)
@@ -220,6 +220,7 @@ vangyzen
 whu
 will
 wma
+wosch
 wollman
 wulf
 yongari

Modified: svnadmin/conf/mentors
==
--- svnadmin/conf/mentors   Sat Dec 23 07:02:45 2017(r327103)
+++ svnadmin/conf/mentors   Sat Dec 23 12:44:24 2017(r327104)
@@ -29,4 +29,5 @@ peterjjhb Co-mentor: grog
 rgrimesgrehan
 slmken Co-mentor: scottl, ambrisko
 stevek sjg
+wosch  cem
 wulf   gonzo   Co-mentor: bapt
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r327013 - head/sys/net

2017-12-23 Thread Oleg Bulyzhin
On Fri, Dec 22, 2017 at 07:11:36PM -0500, Stephen Hurd wrote:

> Interesting... is this a standard GENERIC kernel, or is this a custom 
> config?  If a custom config, can you send it to me?
> 
> Also, does this system have any other iflib drivers?  igb, em, or bnxt?  
> Can you include the log info (if any) for them as well?

It's custom kernel on my testing machine. It has em too but ix is probed first..
If i comment out if_ix.ko load - it boots just fine (looks like if_em is
not calling iflib_irq_set_affinity()):

em0:  port 0xdc00-0xdc1f mem 0xfeae-0x
feaf,0xfeac-0xfead irq 17 at device 0.0 on pci3
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: msix_init qsets capped at 1
em0: PCIY_MSIX capability not found; or rid 0 == 0.
em0: Using a Legacy interrupt
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 0 vector 54
em0: bpf attached
em0: Ethernet address: 00:15:17:3a:0c:7a
em0: netmap queues/slots: TX 1/1024, RX 1/1024

P.S. verbose dmesg & kernel conf attached

-- 
Oleg.


=== Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===


/boot/config: 0:ad(0,a)/boot/loader -Dh -S115200

FreeBSD/x86 boot
Default: 0:ad(0,a)/boot/loader
boot:
Consoles: internal video/keyboard  serial port
BIOS drive C: is disk0
BIOS 619kB/3111360kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(Thu Dec 21 19:31:04 MSK 2017 r...@slave.rinet.ru)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x5826b8 data=0x7d500+0x2b3378 
syms=[0x8+0x9e880+0x8+0xa0fbf]
/boot/entropy size=0x1000
/boot/kernel/nullfs.ko size 0xbd30 at 0xdf4000
/boot/kernel/geom_mirror.ko size 0x2c968 at 0xe0
/boot/kernel/ipfw.ko size 0x47820 at 0xe2d000
/boot/kernel/carp.ko size 0x13420 at 0xe75000
/boot/kernel/if_bge.ko size 0x247c8 at 0xe89000
loading required module 'miibus'
/boot/kernel/miibus.ko size 0x414b8 at 0xeae000
/boot/kernel/if_em.ko size 0x6ca88 at 0xef
/boot/kernel/if_nfe.ko size 0x13480 at 0xf5d000
/boot/kernel/if_re.ko size 0x13e98 at 0xf71000
/boot/kernel/if_ix.ko size 0x52bc0 at 0xf85000
/boot/kernel/libalias.ko size 0x19dd8 at 0xfd8000

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Table 'FACP' at 0xbdf70290
Table 'APIC' at 0xbdf70390
APIC: Found table at 0xbdf70390
APIC: Using the MADT enumerator.
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #5 r327061M: Sat Dec 23 01:53:58 MSK 2017
r...@slave.rinet.ru:/usr/obj/usr/src/amd64.amd64/sys/slave-amd64-smp-debug 
amd64
FreeBSD clang version 5.0.1 (tags/RELEASE_501/final 320880) (based on LLVM 
5.0.1)
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Table 'FACP' at 0xbdf70290
Table 'APIC' at 0xbdf70390
Table 'MCFG' at 0xbdf70420
Table 'OEMB' at 0xbdf88040
Table 'HPET' at 0xbdf7f8b0
Table 'SSDT' at 0xbdf7f8f0
ACPI: No SRAT table found
Preloaded elf kernel "/boot/kernel/kernel" at 0x80ff2000.
Preloaded boot_entropy_cache "/boot/entropy" at 0x80ffacd8.
Preloaded elf obj module "/boot/kernel/nullfs.ko" at 0x80ffad30.
Preloaded elf obj module "/boot/kernel/geom_mirror.ko" at 0x80ffb358.
Preloaded elf obj module "/boot/kernel/ipfw.ko" at 0x80ffba48.
Preloaded elf obj module "/boot/kernel/carp.ko" at 0x80ffc0f0.
Preloaded elf obj module "/boot/kernel/if_bge.ko" at 0x80ffc7d8.
Preloaded elf obj module "/boot/kernel/miibus.ko" at 0x80ffce40.
Preloaded elf obj module "/boot/kernel/if_em.ko" at 0x80ffd428.
Preloaded elf obj module "/boot/kernel/if_nfe.ko" at 0x80ffda90.
Preloaded elf obj module "/boot/kernel/if_re.ko" at 0x80ffe038.
Preloaded elf obj module "/boot/kernel/if_ix.ko" at 0x80ffe5e0.
Preloaded elf obj module "/boot/kernel/libalias.ko" at 0x80ffed08.
link_elf_obj: symbol sctp_calculate_cksum undefined
KLD file ipfw.ko - could not finalize loading
Calibrating TSC clock ... TSC clock: 3515725584 Hz
CPU: AMD Phenom(tm) II X4 970 Processor (3515.73-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x100f43  Family=0x10  Model=0x4  Stepping=3
  
Features=0x178bfbff
  Features2=0x802009
  AMD 
Features=0xee500800
  AMD 
Features2=0x837ff
  SVM: (disabled in BIOS) Features=0xf
Revision=1, ASIDs=64
  TSC: P-state invariant
L1 2MB data TLB: 48 entries, fully associative
L1 2MB instruction TLB: 16 entries, fully associative
L1 4KB data TLB: 48 entries, fully associative
L1 4KB instruc