summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r320372:markj2017-06-291-1/+2
| | | | Fix a memory leak in ses_get_elm_devnames().
* MFC r281771alc2017-06-281-2/+1
| | | | Eliminate an unused variable.
* MFC r281720alc2017-06-281-2/+0
| | | | Eliminate an unused variable.
* MFC r320202:kib2017-06-281-3/+4
| | | | | Call pmap_copy() only for map entries which have the backing object instantiated.
* MFC r320201:kib2017-06-281-0/+2
| | | | | Assert that the protection of a new map entry is a subset of the max protection.
* MFC r314310alc2017-06-284-60/+81
| | | | | | | | Refine the fix from r312954. Specifically, add a new PDE-only flag, PG_PROMOTED, that indicates whether lingering 4KB page mappings might need to be flushed on a PDE change that restricts or destroys a 2MB page mapping. This flag allows the pmap to avoid range invalidations that are both unnecessary and costly.
* MFC r320175davidcs2017-06-262-0/+3
| | | | Add pkts_cnt_oversized to stats.
* MFC of 320176:mckusick2017-06-261-1/+2
| | | | | | | | Allow '_' in labels when specifying -L to newfs. PR: 220163 Reported by: Keve Nagy Reviewed by: kib
* MFC r320123:ken2017-06-261-1/+12
| | | | | | | | | | | | | | | | | | | | | | | Fix a potential sleep while holding a mutex in the sa(4) driver. If the user issues a MTIOCEXTGET ioctl, and the tape drive in question has a serial number that is longer than 80 characters, we malloc a buffer in saextget() to hold the output of cam_strvis(). Since a mutex is held in that codepath, doing a M_WAITOK malloc could lead to sleeping while holding a mutex. Change it to a M_NOWAIT malloc and bail out if we fail to allocate the memory. Devices with serial numbers longer than 80 bytes are very rare (I don't recall seeing one), so this should be a very unusual case to hit. But it is a bug that should be fixed. sys/cam/scsi/scsi_sa.c: In saextget(), if we need to malloc a buffer to hold the output of cam_strvis(), don't wait for the memory. Fail and return an error if we can't allocate the memory immediately. PR: kern/220094 Submitted by: Jia-Ju Bai <baijiaju1990@163.com> Sponsored by: Spectra Logic
* MFC r320259: jedec_ts: read device id from the correct registeravg2017-06-261-1/+1
|
* MFC r320242, r320256:cy2017-06-261-75/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update leap-seconds to leap-seconds.3676924800. As per https://datacenter.iers.org/eop/-/somos/5Rgv/latest/16: INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS) SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE SERVICE DE LA ROTATION TERRESTRE OBSERVATOIRE DE PARIS 61, Av. de l'Observatoire 75014 PARIS (France) Tel. : 33 (0) 1 40 51 23 35 FAX : 33 (0) 1 40 51 22 91 Internet : services.iers@obspm.fr Paris, 9 January 2017 Bulletin C 53 To authorities responsible for the measurement and distribution of time INFORMATION ON UTC - TAI NO leap second will be introduced at the end of June 2017. The difference between Coordinated Universal Time UTC and the International Atomic Time TAI is : from 2017 January 1, 0h UTC, until further notice : UTC-TAI = -37 s Leap seconds can be introduced in UTC at the end of the months of December or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every six months, either to announce a time step in UTC, or to confirm that there will be no time step at the next possible date. Christian BIZOUARD Director Earth Orientation Center of IERS Observatoire de Paris, France Obtained from: ftp://time.nist.gov/pub/leap-seconds.3676924800
* MFC 320184sephe2017-06-261-10/+21
| | | | | | | | | | | | | | | hyperv/storvsc: Reduce log verbosity On some windows hosts TEST_UNIT_READY command will return SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium not present - tray closed)", this occurs periodically, and not hurt anything else. So, we prefer to ignore this kind of errors. PR: 219973 Submitted by: Hongjiang Zhang <hongzhan microsoft com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11271
* MFC r317159: libstdc++: fix symbol version script for LLDemaste2017-06-261-31/+1
| | | | | | | | | | LLD is less tolerant of inconsistencies in the symbol version script. - Add a ; on the last entry in a version block - Remove duplicated symbols, retaining those in the earliest block PR: 214796 Sponsored by: The FreeBSD Foundation
* MFC r320216: Fix use-after-free introduced in r300388.delphij2017-06-251-1/+2
| | | | | | | | | | | In r300388, endnetconfig() was called on nc_handle which would release the associated netconfig structure, which means tmpnconf->nc_netid would be a use-after-free. Solve this by doing endnetconfig() in return paths instead. Reported by: jemalloc via kevlo Reviewed by: cem, ngie (earlier version)
* MFC r320052:kib2017-06-241-21/+25
| | | | Do not leak syslog_mutex on cancellation.
* MFC r320183: Reduce code duplication in rpc.lockd.delphij2017-06-241-195/+76
| | | | | | | | | | Reuse create_service code instead of duplicating it in lookup_addresses for kernel NLM. As a (good) side effect this also fixed a few issues that were already fixed in the former but never applied to the latter. Reviewed by: kevlo
* MFC r320038:kib2017-06-231-7/+8
| | | | Style.
* Revert r320228 as wellngie2017-06-221-3/+3
| | | | See r320229 for the other related revert commit.
* Revert r320222,r320223,r320224ngie2017-06-2226-349/+108
| | | | | | | The committed changes (reverted after this commit) break POLA on a stable branch. Requested by: jhb
* MFC r318545:ngie2017-06-221-5/+3
| | | | | | | | | | | | | | Install {cron.d,newsyslog.conf.d,syslog.d} via `make distribution`, not `make install` I incorrectly started this pattern in r277541 with the opensm newsyslog.conf.d file, and continued using it in r318441 and r318443. This will fix the files being handled improperly via installworld, preventing tools like etcupdate, mergemaster, etc from functioning properly when comparing the installed contents on a system vs the contents in a source tree when doing merges. PR: 219404 MFC with: r277541, r318441, r318443
* MFC r309194,r309216:ngie2017-06-221-0/+1
| | | | | | | | | | | | | r309194 (by bapt): initialize *nextp which could be left uninitialized in case the configuration file cannot be open/read CID: 1365665 r309216 (by bapt): Properly initialize nextp
* MFC r308158:ngie2017-06-221-2/+3
| | | | | | | r308158 (by bapt): Allow symlinks to be followed in cron.d directories and fix detection of regular files on NFS
* MFC r308139,r308157,r308160,r316818,r318250,r318443:ngie2017-06-2227-108/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r308139 (by bapt): cron(8): add support for /etc/cron.d and /usr/local/etc/cron.d For automation tools it is way easier to maintain files in directories rather than modifying /etc/crontab. The files in those directories are in the same format as /etc/crontab Relnotes: yes r308157 (by bapt): Fix typo in cron(8) date r308160 (by bapt): syslogd(8): add an 'include' keyword All the '.conf' files not beginning with a '.' contained int he directory following the keyword will be included. This keyword can only be used in the first level configuration files. Modify the default syslogd.conf to 'include' /etc/syslog.d and /usr/local/etc/syslog.d It simplify a lot handling of syslog from automation tools. Relnotes: yes r316818: Conditionally install /etc/pam.d/ftp* and /etc/pam.d/telnetd /etc/pam.d/ftp* should be installed with MK_FTP != no and /etc/pam.d/telnetd should be installed when MK_TELNET != no. r318250: Handle the logfiles in newsyslog and syslogd conditionally, based on src.conf(5) knobs This will allow consumers of FreeBSD to use the unmodified configuration files out of the box more than previously. Both newsyslog.conf and syslog.conf: - /var/log/lpd-errs (MK_LPR != no) - /var/log/ppp.log (MK_PPP != no) - /var/log/xferlog (MK_FTP != no) newsyslog.conf: - /var/log/amd.log (MK_AMD != no) - /var/log/pflog (MK_PF != no) - /var/log/sendmail.st (MK_SENDMAIL != no) r318443: Conditionally handle the crontab entry for atrun(8) The default crontab prior to this commit assumes atrun(8) is always present, which isn't true if MK_AT == no. Move atrun(8) execution from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration is loaded and run atrun every 5 minutes like it would prior to this commit. SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at because atrun(8) executes programs, which may rely on environment set in the current default /etc/crontab. Noted by: bdrewery (in an internal review) Relnotes: yes (may need to add environmental modifications to /etc/cron.d/at)
* MFC 313186, 319702: Account for overhead of page structures when sizing page ↵jhb2017-06-211-43/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | array. 313186: Over the years, the code and comments in vm_page_startup() have diverged in one respect. When determining how many page structures to allocate, contrary to what the comments say, the code does not account for the overhead of a page structure per page of physical memory. This revision changes the code to match the comments. 319702: Fix an off-by-one error in the VM page array on some systems. r313186 changed how the size of the VM page array was calculated to be less wasteful. For most systems, the amount of memory is divided by the overhead required by each page (a page of data plus a struct vm_page) to determine the maximum number of available pages. However, if the remainder for the first non-available page was at least a page of data (so that the only memory missing was a struct vm_page), this last page was left in phys_avail[] but was not allocated an entry in the VM page array. Handle this case by explicitly excluding the page from phys_avail[]. Requested by: alc
* The GEOM KPI in stable/10 requires Giant to be unacquired (a requirementmarius2017-06-201-0/+3
| | | | | | | dropped in r300287). So wrap calling into GEOM in {DROP,PICKUP}_GIANT(), similar to what as been done prio to r300288. This fixes a "Giant owned" panic with r318159 in place and INVARIANTS enabled. Reported by: Oliver Pinter
* MFC r319964davidcs2017-06-2076-59909/+65201
| | | | | | Upgrade STORMFW to 8.30.0.0 and ecore version to 8.30.0.0 Add support for pci deviceID 0x8070 for QLE41xxx product line which supports 10GbE/25GbE/40GbE
* MFC r319932:markj2017-06-201-22/+40
| | | | Fix handling of subpage BIO_WRITE and BIO_DELETE requests on swap MDs.
* MFC 319490: Remove stale cap_rights_get(2) manpage.jhb2017-06-202-1/+2
| | | | | | | | The documentation moved to section 3 several years ago, but 'man cap_rights_get' pulls up cap_rights_limit(2) (which is MLINKed to cap_rights_get.2) instead of cap_rights_get(3). Approved by: re (gjb)
* MFC r319916:kib2017-06-201-1/+0
| | | | Remove stray return.
* MFC r279833: Use the correct event table for Haswell Xeon eventsavg2017-06-201-1/+1
|
* Direct commit to stable/10 to correctly setting the EIAC and IMSsbruno2017-06-191-1/+1
| | | | | | | | | registers to the same values when processing interrupts. This resolves PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211219 PR: 211219 Submitted by: Franco Fitchner <franco@opnsense.org>
* MFC r318867: fix vmxnet3 crash when LRO is enabledavg2017-06-191-0/+14
| | | | Sponsored by: Panzura
* MFC r311224: Fix PMC architecture check to handle later IPAs including Skylakeavg2017-06-191-1/+1
|
* MFC r292070: More fixes in the various intel processors, fixing missingavg2017-06-191-76/+75
| | | | IAP_F_FM's...
* MFC r291494: Add support for Intel Skylake and Intel Broadwell PMC's.avg2017-06-195-257/+1085
|
* MFC r281101: Remove whitespace [in hwpmc]avg2017-06-191-9/+9
|
* MFC r279939: hwpmc: Fix event number to match enum nameavg2017-06-191-2/+2
|
* MFC r279836: Add missing counter definitionsavg2017-06-191-1/+6
|
* MFC r279835: Fix Ivy Bridge+ MEM_UOPS_RETIRED countersavg2017-06-196-154/+110
|
* MFC r279834: Support architectural events on Haswell/Ivy Bridgeavg2017-06-191-0/+4
|
* MFC r279832: Fix Sandy Bridge+ hwpmc branch countersavg2017-06-198-450/+364
|
* MFC r279829: Add manpage for Haswell Xeon pmc implementationavg2017-06-192-0/+976
|
* MFC r279831: Fix pmc unit restrictions to match documentationavg2017-06-191-2/+2
|
* MFC r279830: Fix various bugs in Haswell counter definitionsavg2017-06-191-6/+6
|
* MFC r277524: style(9) cleanup in hwpmcavg2017-06-193-16/+27
|
* MFC 281102: hwpmc: add initial Intel Broadwell support.avg2017-06-194-1/+25
|
* MFC r319962:cy2017-06-191-1/+1
| | | | | | Correct example directory location. Submitted by: olivier@
* MFC r319676:pfg2017-06-181-2/+4
| | | | | | | | patch: if reading fails, do not go into infinite loop asking for a filename. This can happen if no tty is available. Obtained from: OpenBSD (CVS rev 1.54)
* MFC r319972:hselasky2017-06-181-2/+2
| | | | | | | | | Use static device numbering instead of dynamic one when creating mlx4en network interfaces. This prevents infinite unit number growth typically when the mlx4en driver is used inside virtual machines which support runtime PCI attach and detach. Sponsored by: Mellanox Technologies
* MFC 319670jpaetzel2017-06-151-0/+4
| | | | | | | Fix SMBFS when saved passwords are greater than 18 characters PR: 132302 Submitted by: dhorn2000@gmail.com guru@unixarea.de
OpenPOWER on IntegriCloud