summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC 287095, 287610, 287611, 287617:hrs2015-09-134-315/+22
| | | | Remove obsolete API (SIOCGDRLST_IN6 and SIOCGPRLST_IN6) support.
* MFC 287609:hrs2015-09-131-4/+6
| | | | Do not add IN6_IFF_TENTATIVE when ND6_IFF_NO_DAD.
* MFC 287608:hrs2015-09-132-6/+0
| | | | Remove IN6_IFF_NOPFX. This flag was no longer used.
* MFC 287607:hrs2015-09-134-96/+29
| | | | | - Remove GIF_{SEND,ACCEPT}_REVETHIP. - Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions.
* MFC 287595:hrs2015-09-131-12/+8
| | | | | | | - Fix SIGSEGV when sa == NULL. NULL check in getnameinfo_inet() did not work as expected. - Simplify afdl table lookup.
* MFC 272159,272161,272386,272446,272547,272548,273210:hrs2015-09-127-292/+446
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make lagg protos a enum. - When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE, then drop lock, run the attach routines, and then set it to specific proto. This removes tons of WITNESS warnings. - Make lagg protocol attach handlers not failing and allocate memory with M_WAITOK. - Virtualize lagg(4) cloner. This change fixes a panic when tearing down if_lagg(4) interfaces which were cloned in a vnet jail. Sysctl nodes which are dynamically generated for each cloned interface (net.link.lagg.N.*) have been removed, and use_flowid and flowid_shift ifconfig(8) parameters have been added instead. Flags and per-interface statistics counters are displayed in "ifconfig -v". - Separate option handling from SIOC[SG]LAGG to SIOC[SG]LAGGOPTS for backward compatibility with old ifconfig(8). - Move L2 addr configuration for the primary port to a taskqueue. This fixes LOR of softc rmlock in iflladdr_event handlers. - Call if_delmulti_ifma() after LACP_UNLOCK(). This fixes another LOR. - Fix a panic in lacp_transit_expire(). - Fix a panic in lagg_input() upon shutting down a port. - Use printb() for boolean flags in ro_opts and actor_state for LACP. - Fix lladdr configuration which could prevent LACP mode from working. - Fix LORs when a laggport interface has an IPv6 LLA.
* MFC r287468, turn on RAWDCF by default.cy2015-09-121-1/+1
|
* MFC r287376kp2015-09-111-1/+11
| | | | | | | | | | | | | | | | | pf: Fix misdetection of forwarding when net.link.bridge.pfil_bridge is set If net.link.bridge.pfil_bridge is set we can end up thinking we're forwarding in pf_test6() because the rcvif and the ifp (output interface) are different. In that case we're bridging though, and the rcvif the the bridge member on which the packet was received and ifp is the bridge itself. If we'd set dir to PF_FWD we'd end up calling ip6_forward() which is incorrect. Instead check if the rcvif is a member of the ifp bridge. (In other words, the if_bridge is the ifp's softc). If that's the case we're not forwarding but bridging. PR: 202351
* MFC r287564:jimharris2015-09-111-2/+2
| | | | | | | | | | | isci: check return value of pci_alloc_msix() Certain VM guest types (VMware, Xen) do not support MSI, so pci_alloc_msix() always fails. isci(4) was not properly detecting the allocation failure, and would try to proceed with MSIx resource initialization rather than reverting to INTx. Sponsored by: Intel
* MFC r287563:jimharris2015-09-111-0/+2
| | | | | | | | | | | isci: explicitly enable/disable PCI busmaster BIOS always enables PCI busmaster on the isci device, which effectively worked around this omission. But when passing the isci device through to a guest VM, the hypervisor will disable busmaster and isci will not work without calling pci_enable_busmaster(). Sponsored by: Intel
* MFC r286043:jimharris2015-09-111-0/+9
| | | | | | nvme: do not notify a consumer about failures that occur during initialization Sponsored by: Intel
* MFC r287100: spa_import_rootpool: prevent lock and resource leakavg2015-09-111-0/+2
| | | | PR: 198563
* MFC r287099: account for ashift when gathering buffers to be written to ↵avg2015-09-111-12/+33
| | | | | | | l2arc device The change differs from that in head because of other changes that have not been MFC-ed yet.
* MFC r287354: callout_reset: fix a reversed check for cc_exec_cancelavg2015-09-111-1/+1
| | | | Relnotes: potential erratum
* MFC r285021: zfs_mount(MS_REMOUNT): protect zfs_(un)register_callbacks callsavg2015-09-111-2/+12
|
* MFC r286985: try to fix lor between z_teardown_lock and spa_namespace_lockavg2015-09-111-10/+16
|
* MFC r284513: l2arc: pass correct size to trim requestsavg2015-09-111-3/+3
|
* MFC r287574:garga2015-09-112-3/+2
| | | | | | | | | | | | - Fix Sierra MC7354 ID from a bad copy/paste, correct ID is 68C0 MFC r287575: - Remove duplicate entry for Sierra Wireless Aircard 875 Approved by: loos Obtained from: pfSense (r287574) Sponsored by: Rubicon Communications (Netgate)
* MFC r274569, r276848, r287234:markj2015-09-111-1/+1
| | | | | Only compare visitation counters if they've both been set for the current type graph walk.
* MFC 287440:jhb2015-09-112-25/+22
| | | | | | | | | | | | | | | Currently the Linux character device mmap handling only supports mmap operations that map a single page that has an associated vm_page_t. This does not permit mapping larger regions (such as a PCI memory BAR) and it does not permit mapping addresses beyond the top of RAM (such as a 64-bit BAR located above the top of RAM). Instead of using a single OBJT_DEVICE object and passing the physaddr via the offset as a hack, create a new sglist and OBJT_SG object for each mmap request. The requested memory attribute is applied to the object thus affecting all pages mapped by the request. Sponsored by: Chelsio
* MFC 283281,283282,283562,283647,283836,284000,286158:jhb2015-09-095-17/+916
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes to orphan handling which also fix issues with following forks. 283281: Always set p_oppid when attaching to an existing process via procfs tracing. This matches the behavior of ptrace(PT_ATTACH). Also, the procfs detach request assumes p_oppid is always set. 283282: Only reparent a traced process to its old parent if the tracing process is not the old parent. Otherwise, proc_reap() will leave the zombie in place resulting in the process' status being returned twice to its parent. Add test cases for PT_TRACE_ME and PT_ATTACH which are fixed by this change. 283562: Do not allow a process to reap an orphan (a child currently being traced by another process such as a debugger). The parent process does need to check for matching orphan pids to avoid returning ECHILD if an orphan has exited, but it should not return the exited status for the child until after the debugger has detached from the orphan process either explicitly or implicitly via wait(). Add two tests for for this case: one where the debugger is the direct child (thus the parent has a non-empty children list) and one where the debugger is not a direct child (so the only "child" of the parent is the orphan). 283647: Tweak the description of when waitpid() doesn't return any status for a non-blocking wait to avoid the word "empty". 283836: Consistently only use one end of the pipe in the parent and debugger processes and do not rely on EOF due to a close() in the debugger. 284000: Add a CHILD_REQUIRE macro similar to ATF_REQUIRE for use in child processes of the main test process. 286158: Clear P_TRACED before reparenting a detached process back to its original parent. Otherwise the debugee will be set as an orphan of the debugger. Add tests for tracing forks via PT_FOLLOW_FORK.
* MFC r287151,r287152,r287153,r287155:bdrewery2015-09-093-223/+31
| | | | | | | | | | | | | | | r287151: Move common locking for filemon_inuse and struct filemon* to filemon_pid_check(). r287152: Remove unneeded inuse list locking in filemon_comment(). r287153: Avoid taking proctree_lock and searching parents in wrappers if not needed. r287155: Fix filemon locking races. Relnotes: yes (race fixes) Sponsored by: EMC / Isilon Storage Division
* MFC r272889 and r287402:hrs2015-09-091-14/+38
| | | | | | | | | | | | - Virtualize if_epair(4). An if_xname check for both "a" and "b" interfaces is added to return EEXIST when only "b" interface exists---this can happen when epair<N>b is moved to a vnet jail and then "ifconfig epair<N> create" is invoked there. - Fix a panic which was reproducible by an infinite loop of "ifconfig epair0 create && ifconfig epair0a destroy". This was caused by an uninitialized function pointer in softc->media.
* MFC r287406:hrs2015-09-091-21/+23
| | | | | | | Divide statistics in the number of packets with 1000 instead of 1024 in human-readable form. PR: 183598
* MFC: r287405:imp2015-09-081-7/+41
| | | | Make out of memory behavior less pathological.
* Merge r286649:rodrigc2015-09-082-10/+6
| | | | | | Fix and re-enable UTF-8 tests. X-Merge with: r287393
* MFC r287437sbruno2015-09-081-5/+3
| | | | | | | | | | | | | r249170 was just plain wrong. The effect of the change is to always delete a logic volume on status change which is NOT what we want here. The original code is correct in that when the volume changes status the driver will only delete the volume if the status is one of the fatal errors. A drive failure in a mirrored volume is NOT a situtation where the volume should dissapear. Reported on freebsd-scsi@: https://lists.freebsd.org/pipermail/freebsd-scsi/2015-September/006800.html
* MFC r287369:andrew2015-09-081-1/+1
| | | | | | | | | | | | | | | | | | | Ensure we use calculate_first_tls_offset, even if the main program doesn't have TLS program header. This is needed on architectures with Variant I tls, that is arm, arm64, mips, and powerpc. These place the thread control block at the start of the buffer and, without this, this data may be trashed. This appears to not be an issue on mips or powerpc as they include a second adjustment to move the thread local data, however this is on arm64 (with a future change to fix placing this data), and should be on arm. I am unable to trigger this on arm, even after changing the code to move the data around to make it more likely to be hit. This is most likely because my tests didn't use the variable in offset 0. Reviewed by: kib MFC after: 1 week Sponsored by: ABT Systems Ltd
* MFC r287360:kib2015-09-082-28/+33
| | | | | Fix t_spawnattr test for attributes handling by posix_spawn(3). Connect it to the build.
* MFC r287123:delphij2015-09-081-2/+3
| | | | | | | Finish r89633 and completely remove the remaining of VERSION. PR: bin/202308 Submitted by: John Hein <z7dr6ut7gs snkmail com>
* MFC r287093:delphij2015-09-081-1/+1
| | | | | | | Instead of doing an no-op (|= 0), actually clear the flags in acl_clear_flags_np. Reported by: Pascal Drecker <pascal freebsd drecker com>
* MFC r287021:delphij2015-09-081-1/+1
| | | | Fix build when LEAPSECONDS is enabled.
* MFC r287020: MFV r287019: leapseconds from tzdata2015f.delphij2015-09-081-58/+18
|
* MFC r287310:kib2015-09-061-1/+1
| | | | | Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFO scheduler types.
* MFC r287309:kib2015-09-062-94/+71
| | | | | Remove single-use macros obfuscating malloc(9) and free(9) calls. Style.
* MFC r287432: Fix copy-paste bug introduced in r275458.mav2015-09-061-1/+1
|
* MFC r287292:kib2015-09-0522-121/+104
| | | | | | | | | | Switch libc from using _sig{procmask,action,suspend} symbols, which are aliases for the syscall stubs and are plt-interposed, to the libc-private aliases of internally interposed sigprocmask() etc. MFC r287300: Use libthr interposed functions instead of syscalls, in posix_spawn()' child.
* MFC r277853sbruno2015-09-041-1/+1
| | | | | | | Check for invalid length or more than max length for the interpreter, instead of the validity of the string pointer holding the interpreter. Submitted by: sson
* MFC r276834sbruno2015-09-042-1/+2
| | | | | | | | | | | | | Update Features2 to display SDBG capability of processor. This is showing up on Haswell-class CPUs From the Intel SDM, "Table 3-20. Feature Information Returned in the ECX Register" 11 | SDBG | A value of 1 indicates the processor supports IA32_DEBUG_INTERFACE MSR for silicon debug. Submitted by: jiashiun@gmail.com
* MFC r286238sbruno2015-09-041-3/+3
| | | | | | | | A misplaced #endif in ixgbe_ioctl() causes interface MTU to become zero when INET and INET6 are undefined. PR: 162028 Submitted by: hoomanfazaeli@gmail.com pluknet
* MFC r287368:gjb2015-09-041-2/+2
| | | | | | | | Remove '-' separating OSRELEASE and SNAPSHOT_DATE for vagrant builds, and prepend it to SNAPSHOT_DATE to prevent a trailing '-' in the final box name for a release build. Sponsored by: The FreeBSD Foundation
* MFC r287345:delphij2015-09-041-10/+4
| | | | | | | | Drop group privileges after opening the kvm descriptor, otherwise, the code would not drop privileges as expected. While there also add checks for the drop and bail out immediately if we failed.
* Put timeout directory in correct placerodrigc2015-09-031-2/+2
|
* MFC r286964asomers2015-09-0310-0/+257
| | | | Add ATF functional tests for fstyp(8). No ZFS or GELI tests yet.
* MFC 283622:jhb2015-09-034-4/+8
| | | | | Add <sys/user.h> to the SYNOPSIS of the kinfo_get*() functions since these functions all return types that are defined in that header.
* MFC: r287183, r287264, r287265imp2015-09-031-0/+4
| | | | Export kern.features.invariants when kernel is compiled with invariants.
* MFC 281941:jhb2015-09-034-9/+17
| | | | | | | | | Watchdog drivers need to support rearming the watchdog in contexts which are not permitted to sleep. Only use the IPMI watchdog with backends which poll driver-initiated requests to meet this requirement. In practice this means that watchdogs will no longer be used on systems that use the SSIF backend.
* MFC r287208, r287216:ume2015-09-036-5/+8
| | | | Make it buildable with WITH_OPENLDAP, again.
* MFC: r286490,r286491,r287125bapt2015-09-021-16/+6
| | | | | | | | | Per rfc3629 value greater than 0x10ffff should be rejected (r286490,r286491) Make UTF-8 parsing and generation more strict. (r287125 by ed) - in mbrtowc() we need to disallow codepoints above 0x10ffff. - In wcrtomb() we need to disallow codepoints between 0xd800 and 0xdfff.
* MFC: r268745,r268746,r268747,r268748,r268749,r268861,r268750,r268751,r268763bapt2015-09-027-0/+727
| | | | | | | | r273769,r273771,r276771,r278810 New BSDL timeout(1) utility compatible with GNU timeout Relnotes: yes
OpenPOWER on IntegriCloud