summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove '-' separating OSRELEASE and SNAPSHOT_DATE for vagrantgjb2015-09-011-2/+2
| | | | | | | | builds, and prepend it to SNAPSHOT_DATE to prevent a trailing '-' in the final box name for a release build. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Finish allowing the dwmmc driver to be subclassed, move the softc to a newandrew2015-09-012-45/+91
| | | | | | header, along with the hwtype enum, device attach prototype, and driver_t. Sponsored by: ABT Systems Ltd
* Exit notification for EVFILT_PROC removes knote from the knlist. Inkib2015-09-011-8/+7
| | | | | | | | | | | | | | | particular, this invalidates the knote kn_link linkage, making the SLIST_FOREACH() loop accessing undefined values (e.g. trashed by QUEUE_MACRO_DEBUG). If the knote is freed by other thread when kq lock is released or when influx is cleared, e.g. by knote_scan() for kqueue owning the knote, the iteration step would access freed memory. Use SLIST_FOREACH_SAFE() to fix iteration. Diagnosed by: avg Tested by: avg, lstewart, pawel Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Install the forth bits on arm64. For now limit it to just arm64 as on x86andrew2015-09-012-2/+15
| | | | these should have been installed as part of the regular loader.
* Clean up the kqueue use of the uma KPI.kib2015-09-011-13/+15
| | | | | | | | | | | Explain why it is fine to not check for M_NOWAIT failures in kqueue_register(). Remove unneeded check for NULL result from waitable allocation in kqueue_scan(). uma_free(9) handles NULL argument correctly, remove checks for NULL. Remove useless cast and adjust style in knote_alloc(). Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* By doing file extension fast, it is possible to create excess supplykib2015-09-011-19/+25
| | | | | | | | | | | | | | | | | | | | of the D_NEWBLK kinds of dependencies (i.e. D_ALLOCDIRECT and D_ALLOCINDIR), which can exhaust kmem. Handle excess of D_NEWBLK in the same way as excess of D_INODEDEP and D_DIRREM, by scheduling ast to flush dependencies, after the thread, which created new dep, left the VFS/FFS innards. For D_NEWBLK, the only way to get rid of them is to do full sync, since items are attached to data blocks of arbitrary vnodes. The check for D_NEWBLK excess in softdep_ast_cleanup_proc() is unlocked. For 32bit arches, reduce the total amount of allowed dependencies by two. It could be considered increasing the limit for 64 bit platforms with direct maps. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Fix t_spawnattr test for attributes handling by posix_spawn(3).kib2015-09-012-28/+33
| | | | | | | | | | | | | | | | | | | | | Connect it to the build. The code assumed that SCHED_* constants form a contiguous set of numbers, remove the assumption by using schedulers[] array in get_different_scheduler(). This is no-op on FreeBSD, but improves code portability. The selection of different priority used the min/max priority range of the current scheduler class, instead of the priority to be changed to. The bug caused the test failure. Remove duplication of POSIX_SPAWN_SETSIGDEF flag and now unused duplications of MIN/MAX definitions. Reviewed by: jilles, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3533
* Not only build with buildworld, but also install with installworld allglebius2015-09-011-0/+8
| | | | | | | alternative kernels. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* When building multiple kernels use [2..-1] to extract !INSTALLKERNELglebius2015-09-011-3/+3
| | | | | | | | | | from BUILDKERNELS list. This is more strict, since INSTALLKERNEL by definition is the first word of BUILDKERNELS list. The previous code failed if INSTALLKERNEL is a substring of additional kernel name. Reviewed by: gjb Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Remove an variable we only ever write to, and stop assigning 0 to valuesandrew2015-09-011-4/+1
| | | | | | | in the softc as it's the default value. The latter helps with subclassing this driver. Sponsored by: ABT Systems Ltd
* Add new PCI ID.hselasky2015-09-011-0/+7
| | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 month PR: 202807
* callout_reset: fix a reversed check for cc_exec_cancelavg2015-09-011-1/+1
| | | | | | | | | | | | | | | The typo was introduced in r278469 / 344ecf88af2dfb. As a result of the bug there was a timing window where callout_reset() would fail to cancel a concurrent execution of a callout that is about to start and would schedule the callout again. The callout would fire more times than it is scheduled. That would happen even if the callout is initialized with a lock. For example, the bug triggered the "Stray timeout" assertion in taskqueue_timeout_func(). MFC after: 5 days
* Use unsigned variable.rodrigc2015-09-011-1/+1
| | | | Eliminates gcc 4.9 compiler warning.
* - Add -W flag support for network column in intpr() (-i flag) andhrs2015-09-019-284/+226
| | | | | | | | | | | | | | | | | | | | | | | | | routepr() (-r flag). It is too narrow to show an IPv6 prefix in most cases. - Accept "local" as a synonym of "unix" in protocol family name. - Show a prefix length in CIDR notation when name resolution failed in netname(). - Make routename() and netname() AF-independent and remove unnecessary typecasting from struct sockaddr. - Use getnameinfo(3) to format L2 addr in intpr(). - Fix a bug which showed "Address" when -A flag is specfied in pr_rthdr(). - Replace cryptic GETSA() macro with SA_SIZE(). - Fix declarations shadowing local variables with the same names. - Add more static, remove unused header files and variables. MFC after: 1 week
* Use ANSI C prototypes.rodrigc2015-09-015-12/+12
| | | | Eliminates gcc 4.9 warnings.
* Print sdl->sdl_data when sdl->sdl_nlen > 0 as link_ntoa(3) does.hrs2015-09-011-6/+18
| | | | MFC after: 1 week
* Use correct function prototype for signal handler.rodrigc2015-09-011-2/+2
| | | | Eliminates gcc 4.9 warning.
* Use ANSI C prototypes.rodrigc2015-09-011-21/+7
| | | | Eliminates gcc 4.9 warnings.
* Check and fail if drop of privileges failed.delphij2015-09-011-2/+4
| | | | MFC after: 2 weeks
* Drop group privileges after opening the kvm descriptor, otherwise, the codedelphij2015-09-011-10/+4
| | | | | | | | | would not drop privileges as expected. While there also add checks for the drop and bail out immediately if we failed. MFC after: 3 days
* Handle held pages earlier in the inactive queue scan.alc2015-09-011-31/+33
| | | | | Reviewed by: kib Sponsored by: EMC / Isilon Storage Division
* Failure of dropping privilege should be fatal, so test and bail outdelphij2015-09-011-3/+6
| | | | | | | when setgid() fails. Reported by: clang static analyzer MFC after: 2 weeks
* Mark unused parameters to reduce gcc 4.9 warnings.rodrigc2015-09-011-2/+2
|
* Use ANSI C prototypes.rodrigc2015-09-0115-395/+180
| | | | Eliminates gcc 4.9 warnings.
* vtfontcvt: fix buffer overflow for non-default size .hex fontsemaste2015-09-011-6/+22
| | | | Sponsored by: The FreeBSD Foundation
* Apply the noline attribute to vdev_queue_max_async_writesallanjude2015-08-311-1/+1
| | | | | | | | | | | | | This makes it possible to analyze the performance of the new ZFS write throttle with dtrace PR: 200316 Submitted by: Lacey Powers <lacey.leanne@gmail.com> Reviewed by: avg, smh, delphij (no objection) Approved by: bapt (mentor) MFC after: 1 month Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3472
* vtfontcvt: introduce xmalloc to abort on out-of-memoryemaste2015-08-311-3/+13
| | | | Sponsored by: The FreeBSD Foundation
* Remove duplicate defines introduced in initial ZFS import (r168404)allanjude2015-08-311-7/+0
| | | | | | | | | | | | | | | This change reduces compiler warnings by removing duplicate defines Line numbers are from r168404 (and r284648) #define lbolt: lines 384 and 459 (531 and 648) (original was renamed later) #define lbolt64: lines 385 and 460 (532 and 649) (original was renamed later) #define gethrestime_sec: lines 390 and 465 (540 and 653) uint64_t physmem: lines 402 and 463 (561 and 651) Reviewed by: smh, delphij Approved by: bapt (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2878
* Enable libproc symbol_lookup tests on arm64emaste2015-08-311-9/+0
| | | | | | | | This reverts part of r286863, as the kernel support required by these tests was added in r287105. PR: 202305 Sponsored by: The FreeBSD Foundation
* Include stdlib.h to get devname() prototype.rodrigc2015-08-311-0/+1
| | | | Eliminates -Wmissing-prototypes warnings with gcc
* Restrict tso_max to IP_MAXPACKET to avoid the panic reported in:sbruno2015-08-311-1/+1
| | | | | | | https://lists.freebsd.org/pipermail/freebsd-current/2015-August/057192.html Submitted by: pyunyh@gmail.com MFC after: 2 weeks
* ar: Deobfuscate a while loopemaste2015-08-311-1/+1
|
* ar: fix deterministic mode when running as ranlibemaste2015-08-311-0/+3
| | | | | | | | This was broken by r286024. PR: 202741 Submitted by: fk@fabiankeil.de Obtained from: ElectroBSD
* Remove now unneeded includes.glebius2015-08-311-7/+0
|
* Clean up the style of the LEAVE_HYP macro.andrew2015-08-311-15/+15
|
* Add new USB quirk.hselasky2015-08-312-0/+2
| | | | | MFC after: 1 week PR: 202783
* - uri is expected to be nul-terminated (strchr used later),delphij2015-08-311-4/+3
| | | | | | | so use strlcpy instead of strncpy. - unroll the other two cases of strncpy+\0 to strlcpy. MFC after: 2 weeks
* Constify opt_f and opt_t and eliminate unneeded copying. This fixesdelphij2015-08-311-4/+4
| | | | | | | memory leaks. Reported by: clang static analyzer MFC after: 2 weeks
* Simplify lla_rt_output()/nd6_add_ifa_lle() by setting lle state inmelifaro2015-08-313-19/+8
| | | | alloc handler, based on flags.
* Add support for the UGA draw protocol. This includes adding amarcel2015-08-303-56/+925
| | | | | | | | | | | | | | | | | command called 'uga' to show whether UGA is implemented by the firmware and what the settings are. It also includes filling the efi_fb structure from the UGA information when GOP isn't implemented by the firmware. Since UGA does not provide information about the stride, we set the stride to the horizontal resolution. This is likely not correct and we should determine the stride by trial and error. For now, this should show something on the console rather than nothing. Refactor this file to maximize code reuse. PR: 202730
* Add the LED definitions from vendor's DTS.loos2015-08-304-1/+29
| | | | | | | Add gpioled support to A20 kernel. While here rename the gpio phandle to match the one used in the vendor's DTS.
* The vendor's DTS for Allwinner A20 uses a different way to map the gpioloos2015-08-301-0/+13
| | | | | | | pins, they specify the bank and the pin in two separated cells. This allow the use of vendor's DTS definitions by adding a gpio map routine that copes with that.
* oops - mis-commit.adrian2015-08-301-2/+0
|
* Convert this over to use the new cdev based ioctl path.adrian2015-08-305-18/+16
|
* Migrate the stats API for iwn(4) into a cdev ioctl, rather than tyingadrian2015-08-303-11/+74
| | | | | | | into the vap. This allows for possible hardware interaction without needing a vap configured.
* A bibliography of FreeBSD and BSD related papers and books.gnn2015-08-301-0/+363
| | | | | Keep this file in order by primary key which is the first author's last name and the year of publication.
* Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFOkib2015-08-301-1/+1
| | | | | | | | | | | scheduler types. It was intended to be used there, compare with the min value, and with the test for correctness in ksched_setscheduler(). Note that P1B_PRIO_MAX and RTP_PRIO_MAX do have the same numerical values, the change is cosmetical. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Remove single-use macros obfuscating malloc(9) and free(9) calls.kib2015-08-302-94/+71
| | | | | | | Style. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* sh: Fix read with escaped IFS characters at the end.jilles2015-08-303-12/+28
| | | | | Characters escaped with a backslash must be treated as if they were not in IFS. This includes stripping trailing IFS characters.
* Reduce the difference to vendor DTS by using the vendor compat strings (atloos2015-08-301-1/+2
| | | | | some point we have to use the complete vendor DTS files, but we're not there yet).
OpenPOWER on IntegriCloud