aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* When forking a child process with PMC_F_DESCENDANTS set in pmc_attach()Bjoern A. Zeeb2015-08-241-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | in the parent, we will inherit the pmcids but cannot execute any operations on them in the child. The reason for this is that pmc_find_pmc() only tries to find the current process on the owners hash list, but given the child does not own the attachment, we cannot find it. Thus, in case the initial lookup fails, try to find the pmc_process state affiliated with the child process, lookup the pmc from there using the row index, and get the owner process from that pmc. Then continue as normal and lookup the pmc context of the owner (process). This allows us to call, e.g., pmc_start() in the child process before we start the work there, but to collect the accumulated results later in the parent. Sponsored by: DARPA,AFRL Obtained from: L41 Tested by: rwatson, L41 MFC after: 4 weeks Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D2052 Notes: svn path=/head/; revision=287115
* Fix build for architectures that define wchar_t as an unsigned int.Marcel Moolenaar2015-08-241-2/+2
| | | | | | | Reported by: bz@ Notes: svn path=/head/; revision=287114
* Check the frame pointer is within the kernel before accessing it.Andrew Turner2015-08-241-1/+2
| | | | Notes: svn path=/head/; revision=287113
* Style/whitespace cleanup in shared/common code.Sean Bruno2015-08-2413-338/+309
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3159 Submitted by: erj MFC after: 2 weeks Notes: svn path=/head/; revision=287112
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-24182-2359/+12038
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Make it possible to forcibly unmount devfs.Edward Tomasz Napierala2015-08-241-0/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287109
* Remove now unused LIBPRIVATEDIRBaptiste Daroussin2015-08-242-4/+0
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=287108
* Make vfs_unmountall() unmount /dev after /, not before. The onlyEdward Tomasz Napierala2015-08-244-28/+38
| | | | | | | | | | | | | reason this didn't result in an unclean shutdown is that devfs ignores MNT_FORCE flag. Reviewed by: kib@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3467 Notes: svn path=/head/; revision=287107
* Fix libproc on architectures that don't need the program counter to beAndrew Turner2015-08-241-1/+10
| | | | | | | | | | | | | adjusted. This seems to be the case on all non-x86 architectures libproc supports. Reviewed by: kib Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3465 Notes: svn path=/head/; revision=287106
* Add support for pmap_sync_icache on arm64.Andrew Turner2015-08-241-2/+24
| | | | | | | | | | Reviewed by: emaste, imp (both earlier version) Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3438 Notes: svn path=/head/; revision=287105
* Add pages used by the PV entries to minidumps.Andrew Turner2015-08-241-4/+0
| | | | Notes: svn path=/head/; revision=287104
* MFV (partial) r286889: 5692 expose the number of hole blocks in a fileAndriy Gapon2015-08-243-13/+96
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD porting notes: - only kernel-side changes are merged - the new ioctl is not actually implemented yet - thus, the goal is to synchronize DMU code illumos/illumos-gate@2bcf0248e992f292c7b814458bcdce2f004925d6 https://www.illumos.org/issues/5692 we would like to expose the number of hole (sparse) blocks in a file. this can be useful to for example if you want to fill in the holes with some data; knowing the number of holes in advances allows you to report progress on hole filling. We could use SEEK_HOLE to do that but it would be O(n) where n is the number of holes present in the file. Author: Max Grossman <max.grossman@delphix.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Boris Protopopov <bprotopopov@hotmail.com> Approved by: Richard Lowe <richlowe@richlowe.net> Notes: svn path=/head/; revision=287103
| * 5692 expose the number of hole blocks in a fileAndriy Gapon2015-08-185-15/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | illumos/illumos-gate@2bcf0248e992f292c7b814458bcdce2f004925d6 https://www.illumos.org/issues/5692 we would like to expose the number of hole (sparse) blocks in a file. this can be useful to for example if you want to fill in the holes with some data; knowing the number of holes in advances allows you to report progress on hole filling. We could use SEEK_HOLE to do that but it would be O(n) where n is the number of holes present in the file. Author: Max Grossman <max.grossman@delphix.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Boris Protopopov <bprotopopov@hotmail.com> Approved by: Richard Lowe <richlowe@richlowe.net> Notes: svn path=/vendor-sys/illumos/dist/; revision=286889
* | Some random tweaks to ctl.conf(5).Edward Tomasz Napierala2015-08-241-12/+38
| | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287102
* | Revert r284245: "Fix a callout race condition introduced in TCPJulien Charbon2015-08-242-45/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timers callouts with r281599." r281599 fixed a TCP timer race condition, but due a callout(9) bug it also introduced another race condition workaround-ed with r284245. The callout(9) bug being fixed with r286880, we can now revert the workaround (r284245). Differential Revision: https://reviews.freebsd.org/D2079 (Initial change) Differential Revision: https://reviews.freebsd.org/D2763 (Workaround) Differential Revision: https://reviews.freebsd.org/D3078 (Fix) Sponsored by: Verisign, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=287101
* | spa_import_rootpool: prevent lock and resource leakAndriy Gapon2015-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | The lock leak could lead to a deadlock later. PR: 198563 Submitted by: Fabian Keil <fk@fabiankeil.de> MFC after: 1 week Notes: svn path=/head/; revision=287100
* | account for ashift when gathering buffers to be written to l2arc deviceAndriy Gapon2015-08-241-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change that introduced the L2ARC compression support also introduced a bug where the on-disk size of the selected buffers could end up larger than the target size if the ashift is greater than 9. This was because the buffer selection could did not take into account the fact that on-disk size could be larger than the in-memory buffer size due to the alignment requirements. At the moment b_asize is a misnomer as it does not always represent the allocated size: if a buffer is compressed, then the compressed size is properly rounded (on FreeBSD), but if the compression fails or it is not applied, then the original size is kept and it could be smaller than what ashift requires. For the same reasons arcstat_l2_asize and the reported used space on the cache device could be smaller than the actual allocated size if ashift > 9. That problem is not fixed by this change. This change only ensures that l2ad_hand is not advanced by more than target_sz. Otherwise we would overwrite active (unevicted) L2ARC buffers. That problem is manifested as growing l2_cksum_bad and l2_io_error counters. This change also changes 'p' prefix to 'a' prefix in a few places where variables represent allocated rather than physical size. The resolved problem could also result in the reported allocated size being greater than the cache device's capacity, because of the overwritten buffers (more than one buffer claiming the same disk space). This change is already in ZFS-on-Linux: zfsonlinux/zfs@ef56b0780c80ebb0b1e637b8b8c79530a8ab3201 PR: 198242 PR: 195746 (possibly related) Reviewed by: mahrens (https://reviews.csiden.org/r/229/) Tested by: gkontos@aicom.gr (most recently) MFC after: 15 days X-MFC note: patch does not apply as is at the moment Relnotes: yes Sponsored by: ClusterHQ Differential Revision: https://reviews.freebsd.org/D2764 Reviewed by: noone (@FreeBSD.org) Notes: svn path=/head/; revision=287099
* | Sync HPA and VPA implementations with CUP.Ed Schouten2015-08-241-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | After fixing the 16-bits integer arithmetic overflow in 286981, we should also make sure to fix the VPA sequence. Bring HPA and VPA in sync with how we now implement CUP. PR: 202612 Reported by: kcwu csie org MFC after: 1 month Notes: svn path=/head/; revision=287098
* | Add static and remove unused variables.Hiroki Sato2015-08-241-44/+50
| | | | | | | | Notes: svn path=/head/; revision=287097
* | Implement the IPv6 RSS software hash function.Adrian Chadd2015-08-242-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | This isn't yet linked into the receive/transmit paths anywhere just yet. This is part of a GSoC 2015 project. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Reviewed by: hiren, gnn Differential Revision: https://reviews.freebsd.org/D3423 Notes: svn path=/head/; revision=287096
* | Remove obsolete API (SIOCGDRLST_IN6 and SIOCGPRLST_IN6) support.Hiroki Sato2015-08-241-201/+0
| | | | | | | | Notes: svn path=/head/; revision=287095
* | - Deprecate IN6_IFF_NODAD. It was used to prevent DAD on a loopbackHiroki Sato2015-08-244-20/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface but in6if_do_dad() already had a check for IFF_LOOPBACK. - Remove in6if_do_dad() check in in6_broadcast_ifa(). An address which needs DAD always has IN6_IFF_TENTATIVE there. - in6if_do_dad() now returns EAGAIN when the interface is not ready since DAD callout handler ignores such an interface. - In DAD callout handler, mark an address as IN6_IFF_TENTATIVE when the interface has ND6_IFF_IFDISABLED. And Do IFF_UP and IFF_DRV_RUNNING check consistently when DAD is required. - draft-ietf-6man-enhanced-dad is now published as RFC 7527. - Fix some typos. Notes: svn path=/head/; revision=287094
* | Instead of doing an no-op (|= 0), actually clear the flags inXin LI2015-08-241-1/+1
| | | | | | | | | | | | | | | | | | acl_clear_flags_np. MFC after: 2 weeks Notes: svn path=/head/; revision=287093
* | Fix static fdt support.Justin Hibbits2015-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | FDT_DTB_STATIC is defined in opt_platform.h, and fdt_static_dtb is in fdt_common.h, so include those files. Sponsored by: Alex Perez/Inertial Computing Notes: svn path=/head/; revision=287092
* | Fix spelling.Marcelo Araujo2015-08-241-2/+1
| | | | | | | | | | | | | | | | | | Reviewed by: wblock, pfg Approved by: bapt (mentor) Differential Revision: D3380 Notes: svn path=/head/; revision=287089
* | Update bzero(3) manpage to following the Posix Standard.Marcelo Araujo2015-08-241-1/+9
| | | | | | | | | | | | | | | | | | Reviewed by: wblock, pfg Approved by: bapt (mentor) Differential Revision: D3380 Notes: svn path=/head/; revision=287088
* | Make it clear that we're ignoring the return value fread(3). AllWarner Losh2015-08-241-1/+1
| | | | | | | | | | | | | | | | | | errors that might happen here will be reported a few lines down. CID: 1295248 Notes: svn path=/head/; revision=287087
* | We need to add the soft float to the CFLAGS always, not just whenWarner Losh2015-08-241-1/+3
| | | | | | | | | | | | | | | | NO_CPUCFLAGS is not defined since it is part of the ABI as we've defined it, not just a nice optimization. Notes: svn path=/head/; revision=287086
* | Sparc64 is the odd-man out, so form the if that way rather thanWarner Losh2015-08-232-6/+2
| | | | | | | | | | | | | | listing everybody else. Notes: svn path=/head/; revision=287085
* | Enable KDTRACE_HOOKS by default on all armv6 kernels to get more testing.Andrew Turner2015-08-232-5/+5
| | | | | | | | Notes: svn path=/head/; revision=287083
* | sh: Don't create bad parse result when postponing a bad substitution error.Jilles Tjoelker2015-08-234-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An invalid substitution like ${var@} does not cause a parse error but is stored in the intermediate representation, to be written as part of the error message. If there is a CTL* byte in the stored part, this confuses some code such as the code to skip an unused alternative such as in ${var-alternative}. To keep things simple, do not store CTL* bytes. Found with afl-fuzz. MFC after: 1 week Notes: svn path=/head/; revision=287081
* | Update svnlite(1) commit template. This makes it possible to set theEdward Tomasz Napierala2015-08-231-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | "freebsd-sponsored-by" and "freebsd-mfc-after" in ~/.subversion/config, in the "[miscellany]" section - just like you already can with devel/subversion port/package. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287034
* | After r286237 it should be fine to call vgone(9) on a busy GEOM vnode;Edward Tomasz Napierala2015-08-233-6/+2
| | | | | | | | | | | | | | | | | | | | remove KASSERT that would prevent forced devfs unmount from working. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287033
* | Tweak the "rctl_enable" description to not give the impressionEdward Tomasz Napierala2015-08-231-4/+4
| | | | | | | | | | | | | | | | | | | | of being disabled by default. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287032
* | Handle the breakpoint instruction in userland by sending a SIGTRAP signal.Andrew Turner2015-08-231-0/+6
| | | | | | | | Notes: svn path=/head/; revision=287031
* | Although the website [1] says US-ASCII is accepted, ISO-8859-1 seems toXin LI2015-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | be the only accepted character that is close enough to US-ASCII (and this is also done on OpenBSD; the alternative would be to use UTF-8). [1] http://www.denic.de/en/domains/technik/denic_whois-server/index.html MFC after: 2 weeks Notes: svn path=/head/; revision=287030
* | Reset the channel to the first available channel if the interfaceAdrian Chadd2015-08-231-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is configured on a channel that isn't valid in the new operating mode. This isn't strictly true - it should find the first channel that is available for the given operating mode. However, I think defaulting to the first channel is fine - it's typically available for all modes. If someone would like to correctly implement this feature - try to find a channel that is valid for the given operating mode and error out if we can't find one. This prevents various NICs (eg wpi(4)) from throwing a firmware error. Tested: * ath(4), STA/AP mode * iwn(4), STA/adhoc mode PR: kern/202502 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com> Notes: svn path=/head/; revision=287029
* | Remove cust_pkg() not that pkg_foo(1) has been removed.Warner Losh2015-08-223-52/+3
| | | | | | | | Notes: svn path=/head/; revision=287028
* | Remove some code duplication by using biofinish().Alexander Motin2015-08-221-6/+2
| | | | | | | | | | | | | | | | Submitted by: imp MFC after: 1 week Notes: svn path=/head/; revision=287025
* | Make the UMA harvesting go away completely if not wanted. Default to "not ↵Mark Murray2015-08-2210-43/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wanted". Provide and document the RANDOM_ENABLE_UMA option. Change RANDOM_FAST to RANDOM_UMA to clarify the harvesting. Remove RANDOM_DEBUG option, replace with SDT probes. These will be of use to folks measuring the harvesting effect when deciding whether to use RANDOM_ENABLE_UMA. Requested by: scottl and others. Approved by: so (/dev/random blanket) Differential Revision: https://reviews.freebsd.org/D3197 Notes: svn path=/head/; revision=287023
* | Fix build when LEAPSECONDS is enabled.Xin LI2015-08-221-1/+1
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=287021
* | MFV r287019: leapseconds from tzdata2015f.Xin LI2015-08-221-58/+18
|\ \ | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=287020
| * | Vendor import leapseconds from tzdata2015f.Xin LI2015-08-221-58/+18
| | | | | | | | | | | | Notes: svn path=/vendor/tzdata/dist/; revision=287019
| * | Restore leapseconds@255901.Xin LI2015-08-221-0/+100
| | | | | | | | | | | | Notes: svn path=/vendor/tzdata/dist/; revision=287017
* | | Follow up to r287014Justin Hibbits2015-08-225-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Missed these files, from the original diff. Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D3027 Notes: svn path=/head/; revision=287015
* | | Enhance book-e pmap for 36-bit physaddrJustin Hibbits2015-08-221-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is (probably step 1) of enhancing the book-e pmap to support the full 36-bit physical address space on Freescale e500 and e5500 cores. Thus far it has only been regression tested on one platform. Since I only have one other Book-E platform (e5500), that needs work beyond this, I haven't yet tested it on this. Test Plan: Regression tested on my RouterBoard RB800. Reviewed By: marcel Differential Revision: https://reviews.freebsd.org/D3027 Notes: svn path=/head/; revision=287014
* | | Create a RouterBoard platform and use it to create a flash mapJustin Hibbits2015-08-226-3/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The RouterBoard uses a predefined partition map which doesn't exist in the fdt. This change allows overriding the fdt slicer with a custom slicer, and uses this custom slicer to define the flash map on the RouterBoard RB800. D3305 converts the mpc85xx platform into a base class, so that systems based on the mpc85xx platform can add their own overrides. This change builds on D3305, and creates a RouterBoard (RB800) platform to initialize the slicer override. Reviewed By: nwhitehorn, imp Differential Revision: https://reviews.freebsd.org/D3345 Notes: svn path=/head/; revision=287013
* | | Make pkill/pgrep -j ARG take jname, not just jid.Jamie Gritton2015-08-226-20/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 201588 Submitted by: Daniel Shahaf <danielsh at apache.org> MFC after: 3 days Notes: svn path=/head/; revision=287012
* | | Make the mpc85xx platform a kobj base class.Justin Hibbits2015-08-222-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Some systems are based around mpc85xx, but need special initialization. By making the mpc85xx platform a base class, these systems can be platform subclasses, and perform board-specific initialization in addition to the mpc85xx initialization. Test Plan: Tested on my RB800. A platform class was created, and will be committed separately. Reviewed By: nwhitehorn Differential Revision: https://reviews.freebsd.org/D3305 Notes: svn path=/head/; revision=287011
* | | Add ALTQ(9) support for the CoDel algorithm.Luiz Otavio O Souza2015-08-2124-21/+989
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CoDel is a parameterless queue discipline that handles variable bandwidth and RTT. It can be used as the single queue discipline on an interface or as a sub discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ. Differential Revision: https://reviews.freebsd.org/D3272 Reviewd by: rpaulo, gnn (previous version) Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=287009