summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2017-02-09435-10590/+9456
|\
| * 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 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 r304142: ensure stripe size is non-zero multiple of 4096rpokala2017-02-081-6/+20
| | | | | | | | | | | | | | | | Ensure that the sector size is a multiple of 4096 to avoid creating unaligned partitions when the actual sector size is hidden from us. NOTE: This change was MFCed to stable/11 months ago as as r304448; I'm just MFCing it back one more stream.
| * MFC r312392:ngie2017-02-081-1/+1
| | | | | | | | Use SRCTOP instead of .CURDIR-relative path in .PATH directive
| * 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 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 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 r312667:pfg2017-02-061-24/+28
| | | | | | | | | | | | | | | | | | sort - Don't live-loop threads. Worker threads now use a pthread_cond_t to wait for work instead of burning the cpu up. Obtained from: DragonflyBSD (07774aea0ccf64a48fcfad8899e3bf7c8f18277a)
| * MFC r312664: Always initialize 'c'.delphij2017-02-061-1/+1
| |
| * 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-3/+9
| | | | | | | | | | | | | | | | | | | | 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 r311473:ngie2017-02-042-3/+13
| | | | | | | | | | | | 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-3/+9
| | | | | | | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into sendmail.
| * 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 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 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:ngie2017-02-041-1/+1
| | | | | | | | | | Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of unnecessarily long relative path .PATH values with make
| * MFC r311469:ngie2017-02-041-3/+8
| | | | | | | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv.
| * 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 r312114,r312194:ngie2017-02-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r312114: Enable WARNS?= 6 across all of tests/sys r312194: Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... The primary goal for doing this is to leverage the work done in r312114 for enabling WARNS to address trivial code quality issues with new tests Tested with: make tinderbox
| * 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 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 r311972:ngie2017-02-041-0/+9
| | | | | | | | Add __BIT and __BITS macros from NetBSD to help support new testcases
| * MFC r312119,r312216,r312226:ngie2017-02-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r312119: encode_long, encode_timeval: mechanically replace `exp` with `exponent` This helps fix a -Wshadow issue with exp(3) with tests/sys/acct/acct_test, which include math.h, which in turn defines exp(3) Tested with: clang, gcc 4.2.1, gcc 4.9 r312216: Revert r312119 and reword the intent to fix -Wshadow issues between exp(3) and `exp` var. The approach taken previously was not ideal for multiple functional and stylistic reasons. Add to existing sed call in Makefile to replace `exp` with `exponent` instead. Requested by: bde r312226: Fix typo in r312216 I meant to replace "exp" with "exponent", not "expected" Pointyhat to: ngie
| * MFC r311472:ngie2017-02-042-4/+10
| | | | | | | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into amd(8).
| * MFC r311470:ngie2017-02-041-4/+10
| | | | | | | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into rpcbind.
| * MFC r312105,r312162:ngie2017-02-042-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r312105: Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS This will allow inetd to stand by itself without libwrap. Relnotes: yes r312162: Fix up r312105 - Only #include tcpd.h when LIBWRAP is true to avoid header include errors - Only define whichaf when LIBWRAP is true to avoid -Wunused warning and to avoid issues with structs being defined that should only be defined when tcpd.h is included. Pointyhat to: ngie
| * MFC r311263:ngie2017-02-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use calloc instead of malloc with buffers in snmp_{recv,send}_packet This doesn't fix the issue noted in the PR, but at the very least it cleans up the error so it looks a bit more sane, and in the event that bsnmp did wander off into the weeds, the likelihood of it crashing with more sensible output is greater, in my opinion MFC counter set high so I have enough time to resolve the real underlying bug in bsnmpwalk PR: 215721
| * MFC r312937:ngie2017-02-041-1/+1
| | | | | | | | | | | | | | | | | | Fix typo in lib/Makefile The SUBDIR_DEPEND variable should be for librpcsec_gss, not liblibrpc_gss PR: 216409
| * MFC 312906:jhb2017-02-035-6/+30
| | | | | | | | | | | | Unregister CPL handlers for TOE-related messages when unloading TOM. Sponsored by: Chelsio Communications
| * MFC r312001:pfg2017-02-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | Remove __nonnull() attributes from x86 machine check architecture. In this case the attributes serve little purpose as they just don't enforce run time checks, If anything the attributes would cause NULL pointer checks to be ignored but there are no such checks so the only effect is cosmetic. Reviewed by: jhb, avg
| * MFC from r273333 to 307002.sevan2017-02-031-23/+90
| |
| * MFC r289894:kib2017-02-036-31/+103
| | | | | | | | | | | | | | | | CLFLUSH does not need barriers, the instruction is ordered WRT other writes. Use CLFLUSHOPT when available. MFC r312555: Use SFENCE for ordering CLFLUSHOPT.
| * In v3 UNIX, the kill utility is documented in category 8, not 1.sevan2017-02-031-2/+3
| | | | | | | | | | | | | | | | | | | | Add a note of it. http://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man8/kill.8 PR: 211786 Approved by: bcr (mentor) Obtained from: TUHS Differential Revision: https://reviews.freebsd.org/D8105
| * MFC r310180, r310327asomers2017-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r310180: Fix panic during lagg destruction with simultaneous status check If you run "ifconfig lagg0 destroy" and "ifconfig lagg0" at the same time a page fault may result. The first process will destroy ifp->if_lagg in lagg_clone_destroy (called by if_clone_destroy). Then the second process will observe that ifp->if_lagg is NULL at the top of lagg_port_ioctl and goto fallback: where it will promptly dereference ifp->if_lagg anyway. The solution is to repeat the NULL check for ifp->if_lagg MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8512 r310327: Remove stray debugging code from r310180 Reported by: rstone Pointy hat to: asomers MFC after: 3 weeks X-MFC-with: 310180 Sponsored by: Spectra Logic Corp
| * MFC r311160, r311210, r311288, r311292, r311298, r311340asomers2017-02-027-37/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r311160: misc minor fixes in mpr(4) sys/dev/mpr/mpr_sas.c * Fix a potential null pointer dereference (CID 1305731) * Check for overrun of the ccb_scsiio.cdb_io.cdb_bytes buffer (CID 1211934) sys/dev/mpr/mpr_sas_lsi.c * Nullify a dangling pointer in mprsas_get_sata_identify * Fix a memory leak in mprsas_SSU_to_SATA_devices (CID 1211935) Reported by: Coverity (partially) CID: 1305731 1211934 1211935 Reviewed by: slm MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8880 r311210: Quell Coverity for diskinfo(8) * CID 1198994: Don't run the speed disk on a disk with no sectors * CID 1011442: Don't call close(2) if open(2) fails * CID 1011161: Use snprintf instead of sprintf * CID 1009825: Check the return value of lseek Reported by: Coverity CID: 1198994 1011442 1011161 1009825 MFC after: 4 weeks Sponsored by: Spectra Logic Corp r311288: Delete dead code in chat(8) It's always been dead, ever since first import in 1994. It's still dead in OpenBSD's version, too. Reported by: Coverity CID: 270586 MFC after: 4 weeks Sponsored by: Spectra Logic Corp r311292: Remove dead code in rpc_parse.c It's been dead ever since it was imported from TI-RPC in 1995. The dead code is still present in Illumos today, but was removed from NetBSD in 2006. Reported by: Coverity CID: 270097 Obtained from: NetBSD MFC after: 4 weeks Sponsored by: Spectra Logic Corp r311298: Remove dead code in dhclient(8) The offending code has been dead ever since the import from OpenBSD in r195805. OpenBSD later deleted that entire function. Reported by: Coverity CID: 500059 MFC after: 4 weeks Sponsored by: Spectra Logic Corp r311340: Misc Coverity fixes for tail(1) CID 1006402: Initialize stack variable CID 271580: Don't leak memory when ENOMEM. Reported by: Coverity CID: 271580 1006402 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
| * MFC r312649:kib2017-02-021-1/+5
| | | | | | | | Document mount option "nonc" for tmpfs.
| * MFC r312432:kib2017-02-025-17/+54
| | | | | | | | Add a mount option for tmpfs(5) to not use namecache.
OpenPOWER on IntegriCloud