summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r312452-r312512:ngie2017-02-1084-158/+158
| | | | | | | | | | r312452-r312512: - Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output - Use .CURDIR:H instead of .CURDIR to simplify pathing in output, etc
* Merge r309649, r313048, r313083, r313104:glebius2017-02-10235-9194/+14581
| | | | tcpdump 4.9.0
* MFC r306349:ngie2017-02-101-4/+9
| | | | | | | | | | | r306349 (by pfg): hash(3): protect in-memory page when using cross-endianness. When writing out pages in the "other endian" format, make a copy instead of trashing the in-memory one. Obtained from: NetBSD (CVS rev. 1.29)
* MFC r313401vangyzen2017-02-101-4/+4
| | | | | | | | | | | | | Fix garbage IP addresses in UDP log_in_vain messages If multiple threads emit a UDP log_in_vain message concurrently, or indeed call inet_ntoa() for any other reason, the IP addresses could be garbage due to concurrent usage of a single string buffer inside inet_ntoa(). Use inet_ntoa_r() with two stack buffers instead. Relnotes: yes Sponsored by: Dell EMC
* MFC r308430, r309782: libelftc: add elf{32,64}-trad{big,little}mipsemaste2017-02-102-0/+36
|
* MFC r311946: readelf: add S390 relocation typesemaste2017-02-101-0/+31
| | | | From https://refspecs.linuxfoundation.org/ELF/zSeries/lzsabi0_zSeries.html
* MFC r313109:kib2017-02-093-13/+6
| | | | Use ANSI definitions for some i386 functions.
* MFC r312791:cy2017-02-091-2/+1
| | | | | | Use normal KNF cuddling of elses. Reported by: bde
* MFC r311901:markj2017-02-091-3/+1
| | | | Do not set BIO_DONE if the BIO specifies a completion handler.
* MFC r313180vangyzen2017-02-082-26/+19
| | | | | | | | | | PCIe HotPlug: remove tests for DL active link capability As of r313097, the HotPlug code requires the link to support reporting of the data-link status. Remove tests for this capability from code that can now assume its presence. Sponsored by: Dell EMC
* Regen after r313450.jhb2017-02-0811-14/+14
|
* MFC 310638:jhb2017-02-088-27/+40
| | | | | | | | | | Rename the 'flags' argument to getfsstat() to 'mode' and validate it. This argument is not a bitmask of flags, but only accepts a single value. Fail with EINVAL if an invalid value is passed to 'flag'. Rename the 'flags' argument to getmntinfo(3) to 'mode' as well to match. This is a followup to r308088.
* MFC r312767: Partially workaround ASMedia HBA error recovery.mav2017-02-083-13/+26
| | | | | | | Taking closer look on my ASM1062 I found that it has bunch of issues around error recovery: reported wrong CCS, failed commands reported as completed, READ LOG EXT times out after NCQ error. This patch workarounds first two problems, that were making ATAPI devices close to unusable on these HBAs.
* MFC r312750: Add Timeout and Protect mode page description from MMC-6.mav2017-02-081-0/+13
|
* MFC r312777, r312780:cy2017-02-081-4/+7
| | | | | Issue an error message when an incorrect flush argument is encountered (and style fixup).
* MFC r312392:ngie2017-02-081-1/+1
| | | | Use SRCTOP instead of .CURDIR-relative path in .PATH directive
* MFC 313097: Require Data Layer Active reporting for native PCI-e HotPlug.jhb2017-02-071-0/+2
| | | | | | | | | | | | | Some PCI-e bridges report that they support HotPlug in the slot capabilities but do not report support for Data Layer Active events in the link capabilities register. These bridges do not work correctly when HotPlug is used. Further, while the description of HotPlug in the spec does not mention that DL active events are required, the description of the link capabilities register says that DL active is required for HotPlug. Thanks to Dave Baukus for finding that language in the spec. PR: 211699
* MFC r312544rstone2017-02-072-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix reference to free memory in ixgbe/if_media.c When ixgbe receives an interrupt indicating that a new optical module may have been inserted, it discards all of its current media types by calling ifmedia_removeall() and then creates a new set of media types for the supported media on the new module. However, ifmedia_removeall() was maintaining a pointer to whatever the current media type was before the call to ifmedia_removealL(). The result of this was that any attempt to read the current media type of the interface (e.g. via ifconfig) would return potentially garbage data from free memory (or if one were particularly unlucky on an architecture that does not malloc() from a direct map, page fault the kernel). Fix this by NULL'ing out the current media field in if_media.c, and have ixgbe update the current media type after recreating them. Submitted by: Matt Joras <matt.joras AT gmail DOT com> Reviewed by: sbruno, erj MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9164
* MFC r313249:kib2017-02-071-2/+2
| | | | Style, use tab after #define.
* MFC r313182:ngie2017-02-071-2/+2
| | | | Fix typo in variable name (_REDUNDENT_LIB_DIRS -> _REDUNDANT_LIB_DIRS)
* MFC r312694: Make CTL ramdisk backend a real RAM disk.mav2017-02-072-207/+654
| | | | | | | | | | | | | | | | | If "capacity" LU option is set, ramdisk backend now implements featured thin provisioned disk, storing data in malloc(9) allocated memory blocks of pblocksize bytes (default PAGE_SIZE or 4KB). Additionally ~0.2% of LU size is used for indirection tree (bigger pblocksize reduce the overhead). Backend supports all unmap and anchor operations. If configured capacity is overflowed, proper error conditions are reported. If "capacity" LU option is not set, the backend operates mostly the same as before without allocating real storage: writes go to nowhere, reads return zeroes, reporting that all LBAs are unmapped. This backend is still mostly oriented on testing and benchmarking (it is still a volatile RAM disk), but now it should allow to run real FS tests, not only simple dumb dd.
* MFC r312603: Add initial support for CTL module unloading.mav2017-02-0713-196/+264
| | | | | | It is only a first step and not perfect, but better then nothing. The main blocker is CAM target frontend, that can not be unloaded, since CAM does not have mechanism to unregister periph driver now.
* MFC r312348: Remove writing 'residual' field of struct ctl_scsiio.mav2017-02-073-353/+75
| | | | | | | | | | This field has no practical use and never readed. Initiators already receive respective residual size from frontends. Removed field had different semantics, which looks useless, and was never passed through by any frontend. While there, fix kern_data_resid field support in case of HA, missed in r312291.
* MFC r312291, r312669:mav2017-02-0712-196/+122
| | | | | | | | | | | | | | Make CTL frontends report kern_data_resid for under-/overruns. It seems like kern_data_resid was never really implemented. This change finally does it. Now frontends update this field while transferring data, while CTL/backends getting it can more flexibly handle the result. At this point behavior should not change significantly, still reporting errors on write overrun, but that may be changed later, if we decide so. CAM target frontend still does not properly handle overruns due to CAM API limitations. We may need to add some fields to struct ccb_accept_tio to pass information about initiator requested transfer size(s).
* MFC r312343: Improve error message on duplicate iSCSI port.mav2017-02-071-1/+2
|
* MFC r309369,310850,310853:tsoome2017-02-0630-212/+178
| | | | | | | | | | libstand: dosfs cstyle cleanup for return keyword. dosfs support in libstand is broken since r298230 PR: 214423 Submitted by: Mikhail Kupchik Reported by: Mikhail Kupchik Approved by: imp (mentor)
* MFC r310845: boot2 will deadlock if extended keys are used on text inputtsoome2017-02-061-15/+34
| | | | | Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D8608
* MFC r312982:cy2017-02-061-2/+2
| | | | Correct comment grammar and make it easier to understand.
* MFC r312663: When creating record file, use umask 077 instead of the default.delphij2017-02-061-1/+6
|
* MFC r312664: Always initialize 'c'.delphij2017-02-061-1/+1
|
* MFC r303802:bcr2017-02-051-1/+1
| | | | Update with the members of the 9th core team.
* MFC r308583:bcr2017-02-051-2/+2
| | | | | | | Fix a broken link to the USB audio class specs. PR: 214240 Submitted by: Tobias Kortkamp t@tobik.me
* MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work.jilles2017-02-052-1/+103
|
* MFC r312721: skel: Remove reference to deleted part in previous commitjilles2017-02-051-2/+2
| | | | to this file.
* MFC r312954:kib2017-02-052-20/+75
| | | | | Do not leave stale 4K TLB entries on pde (superpage) removal or protection change.
* MFC r311585:ngie2017-02-042-2/+7
| | | | | | | | | | Conditionalize building libwrap support into sshd Only build libwrap support into sshd if MK_TCP_WRAPPERS != no This will unbreak the build if libwrap has been removed from the system PR: 210141
* MFC r311174:ngie2017-02-044-3/+14
| | | | | | | | | | | | | Make /usr/lib/libbsnmptools.so.0 into an INTERRNALLIB Although it increases the size of the bsnmp{get,set,walk} binaries by four on my [amd64] system, it removes the need for producing .debug files, profiled libraries, and for installing the library itself, reducing the overall size use on disk by the utilities noted previously. Plus, it guards against ABI/API compatibility issues with the library as it's only used internal to the tools themselves.
* MFC r311394:ngie2017-02-041-1/+5
| | | | | | | | | op_usm_users: don't deref uusers if it's NULL when SETting the value Add an XXX comment to note that the conditional seems suspect given how it's handled elsewhere in the SNMP_OP_SET case. CID: 1008573
* MFC r312332,r312446,r312451:ngie2017-02-0414-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r312332: Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of unnecessarily long relative path .PATH values with make r312446 (by emaste): libc: remove reference to nonexistent lib/locale directory As far as I can tell this was introduced in r72406 and updated in several subsequent revisions, but the lib/locale directory it referenced never existed. r312451: Replace dot-dot relative pathing with SRCTOP-relative paths where possible This reduces build output, need for recalculating paths, and makes it clearer which paths are relative to what areas in the source tree. The change in performance over a locally mounted UFS filesystem was negligible in my testing, but this may more positively impact other filesystems like NFS. LIBC_SRCTOP was left alone so Juniper (and other users) can continue to manipulate lib/libc/Makefile (and other Makefile.inc's under lib/libc) as include Makefiles with custom options. Discussed with: marcel, sjg
* MFC r311744,r312328,r312329,r312330:ngie2017-02-045-11/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r311744: Document bsd.snmpmod.mk from a high-level r312328: Add a make target (smilint) for running smilint tool against BMIBS Running smilint against MIB definitions is useful in finding functional problems with MIB definitions/descriptions. This is inspired by the smilint targets defined in usr.sbin/bsnmpd/modules/{snmp_hostres,snmp_mibII}/Makefile Document all of the variables that are involved in running the smilint target, as well as all of the prerequisites to running it. r312329: Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328 r312330: Add smilint target to subdir targets so "make smilint" here will run the smilint target in subdirs While here, convert a path that's .CURDIR relative to SRCTOP
* MFC r310467:ngie2017-02-041-0/+8
| | | | | | | | Provide some guidance when dealing with sections and variables contained within them For example, using variables designated for %usm requires uncommenting %usm section header
* MFC r303841,r312012,r312213:ngie2017-02-042-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | r303841 (by bdrewery): Revert r298434 which should be fixed by r301287, r301394, and r301403. PR: 208703, 208963 r312012: fmaxmin_test still fails with clang 3.9.x.. bypass the test PR: 208703 r312213: Turn COMPILER_VERSION/COMPILER_TYPE make check into a compile-time check of the clang version This works around breakage on ^/stable/10 when running installworld from a ^/stable/10 host where the test wouldn't be compiled on the first go-around and would be missing when make installworld is run. PR: 208703
* MFC r312114:ngie2017-02-041-0/+3
| | | | Enable WARNS?= 6 across all of tests/sys
* MFC r312120:ngie2017-02-041-3/+4
| | | | | | | | | Fix warnings - Staticize test_num - Promote i to size_t to deal with -Wsign-compare issues Tested with: clang, gcc, gcc49
* MFC r312110:ngie2017-02-041-6/+4
| | | | | | Fix -Wsign-compare warnings The loop index (i) doesn't need to be size_t as its comparison is signed
* MFC r312164:ngie2017-02-041-1/+1
| | | | | | Fix -Wformat issue Use %zu for printing out results from nitems, as it's size_t based
* MFC r311473:ngie2017-02-042-1/+11
| | | | | | Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard This will allow the code to stand by itself without libwrap
* MFC r311471:ngie2017-02-041-2/+7
| | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into sendmail.
* MFC r311469:ngie2017-02-041-2/+7
| | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv.
* MFC r311972:ngie2017-02-041-0/+9
| | | | Add __BIT and __BITS macros from NetBSD to help support new testcases
OpenPOWER on IntegriCloud