]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
7 years agoMFC r298472: MFV r298471: 6052 decouple lzc_create() from the
avg [Tue, 17 May 2016 08:18:19 +0000 (08:18 +0000)]
MFC r298472: MFV r298471: 6052 decouple lzc_create() from the
implementation details

git-svn-id: svn://svn.freebsd.org/base/stable/9@300026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoFix:
cy [Sun, 15 May 2016 15:26:19 +0000 (15:26 +0000)]
Fix:
IP Filter bug 1835705: It is impossible to delete a state using
SIOCDELST ioctl.

This is a direct commit to the stable/9 branch because this patch was
already included in the ipfilter 5.1.2 import in r254562. It was
ultimately included in ipfilter 4.1.29 (whereas stable/9 uses 4.1.28).

Obtained from: ipfilter CVS repo: ip_state.c r1.13

git-svn-id: svn://svn.freebsd.org/base/stable/9@299857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r299694:
markj [Fri, 13 May 2016 21:05:09 +0000 (21:05 +0000)]
MFC r299694:
Fix a bug in r298340: "sim" was referenced after being unset.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299651:
ngie [Fri, 13 May 2016 09:54:15 +0000 (09:54 +0000)]
MFstable/10 r299651:

MFC r298839:

Fix memory allocation edgecases in kvm_argv(..)

- Don't leak nbufp on realloc failure in kvm_argv
- Catch malloc errors with bufp
- Set buflen last in the "buflen == 0" case to ensure that
  bufp/nbufp is properly reallocated on the next go around

git-svn-id: svn://svn.freebsd.org/base/stable/9@299652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299649:
ngie [Fri, 13 May 2016 09:50:38 +0000 (09:50 +0000)]
MFstable/10 r299649:

MFC r298842:

Don't leak PML4 in _amd64_initvtop(..) if kvm_read2(..) fails

CID: 1341474

git-svn-id: svn://svn.freebsd.org/base/stable/9@299650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299643:
ngie [Fri, 13 May 2016 09:33:48 +0000 (09:33 +0000)]
MFstable/10 r299643:

MFC r299162,r299163:

r299162:

Only install NIS section 8 manpages if MK_NIS != no

r299163:

Fix r299162

share/man/man8/Makefile:
- Add src.opts.mk so MK_NIS can be tested
- Fix typo in MK_NIS conditional

tools/build/mk/OptionalObsoleteFiles.inc:
- Remove WIP diff from ^/user/ngie/detangle-rc

git-svn-id: svn://svn.freebsd.org/base/stable/9@299645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299640:
ngie [Fri, 13 May 2016 09:32:05 +0000 (09:32 +0000)]
MFstable/10 r299640:

MFC r298463:

Add FEATURE knob for testing for UFS extended attribute kernel support

Support can be verified via `feature_present("ufs_extattr")`, etc.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/9@299644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299638:
ngie [Fri, 13 May 2016 09:16:01 +0000 (09:16 +0000)]
MFstable/10 r299638:

MFC r298462:

Return `ret` in op_ifentry(..) to mute a -Wunused-but-set-variable warning

This will also now detect error conditions with
value->var.subs[sub - 1] == LEAF_ifPhysAddress where `string_get(..)`
could fail if iifp->physaddr and/or iifp->physaddrlen were deemed
invalid.

CID: 1006551

git-svn-id: svn://svn.freebsd.org/base/stable/9@299639 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299635:
ngie [Fri, 13 May 2016 09:07:42 +0000 (09:07 +0000)]
MFstable/10 r299635:

MFC r298665:
r298665 (by cem):

aacraid(4): Fix some mostly trivial buffer overruns

strcpy(3) emits a trailing nul byte, trampling fields after the intended
destination.  Instead, use strncpy(3), intentionally leaving these fields
not nul-terminated.

CIDs: 1031024130546313054941305545

git-svn-id: svn://svn.freebsd.org/base/stable/9@299636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299632:
ngie [Fri, 13 May 2016 09:02:28 +0000 (09:02 +0000)]
MFstable/10 r299632:

MFC r298339:
r298339 (by cem):

sound(4): Don't use-after-free in midi module unload

Also, use ANSI function parameter definitions (void) while here.

CID: 1006107

git-svn-id: svn://svn.freebsd.org/base/stable/9@299633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299630:
ngie [Fri, 13 May 2016 08:59:49 +0000 (08:59 +0000)]
MFstable/10 r299630:

MFC r298340:
r298340 (by cem):

sym(4): Don't double-free 'sim' in failure case

CID: 1006106

git-svn-id: svn://svn.freebsd.org/base/stable/9@299631 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299627:
ngie [Fri, 13 May 2016 08:51:51 +0000 (08:51 +0000)]
MFstable/10 r299627:

MFC r298676:
r298676 (by cem):

netipsec: Don't leak memory when deep copy fails

CID: 1331693

git-svn-id: svn://svn.freebsd.org/base/stable/9@299628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299625:
ngie [Fri, 13 May 2016 08:46:13 +0000 (08:46 +0000)]
MFstable/10 r299625:

MFC r298677:
r298677 (by cem):

subr_mbpool: Don't free bogus pointer in error paths

An mbpool is allocated with a contiguous array of mbpages.  Freeing an
individual mbpage has never been valid.  Don't do it.

This bug has been present since this code was introduced in r117624 (2003).

CID: 1009687

git-svn-id: svn://svn.freebsd.org/base/stable/9@299626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299623:
ngie [Fri, 13 May 2016 08:42:21 +0000 (08:42 +0000)]
MFstable/10 r299623:

MFC r298337:
r298337 (by cem):

pty(4): Use strlcpy to guarantee destination buffer isn't overrun

The devtoname() name is strcpyed into a small stack buffer.  Sure, we always
expect the name to be ttyXX (or ptyXX).  If that's the case, strlcpy() doesn't
hurt.

CID: 1006768

git-svn-id: svn://svn.freebsd.org/base/stable/9@299624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299619:
ngie [Fri, 13 May 2016 08:34:53 +0000 (08:34 +0000)]
MFstable/10 r299619:

MFC r298336:
r298336 (by cem):

kgssapi(4): Fix string overrun in Kerberos principal construction

'buf.value' was previously treated as a nul-terminated string, but only
allocated with strlen() space.  Rectify this.

CID: 1007639

git-svn-id: svn://svn.freebsd.org/base/stable/9@299620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299616:
ngie [Fri, 13 May 2016 08:25:17 +0000 (08:25 +0000)]
MFstable/10 r299616:

MFC r298333:
r298333 (by cem):

Make Racct macro slightly more gracious given RACCT_UNDEFINED

rctl_string_to_rule could previously index below the zeroth element of
racct_types via the macro.  Maybe it shouldn't use the macro on
RACCT_UNDEFINED.  But given every other RACCT_ definition is non-negative, it
seems pretty easy to foot-shoot this one without the check.

CID: 1305574

git-svn-id: svn://svn.freebsd.org/base/stable/9@299618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299613:
ngie [Fri, 13 May 2016 08:04:03 +0000 (08:04 +0000)]
MFstable/10 r299613:

MFC r298678:
r298678 (by cem):

posix4_mib: Don't overrun facility_initialized array

The facility_initialized and facility arrays are the same size and were
intended to be indexed the same.  I believe this mismatch was just a
typo/braino in r208731.

CID: 1017430

git-svn-id: svn://svn.freebsd.org/base/stable/9@299614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298755:
pfg [Thu, 12 May 2016 00:46:38 +0000 (00:46 +0000)]
MFC r298755:
sys/geom: spelling fixes.

These affect debugging messages.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r299035: sh: Handle empty hostname and $PWD when building prompt
vangyzen [Wed, 11 May 2016 22:13:50 +0000 (22:13 +0000)]
MFC r299035: sh: Handle empty hostname and $PWD when building prompt

If the hostname is empty and \h is used in $PS1,
the remainder of the prompt following \h will be empty.
Likewise for $PWD and \w.  Fix it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r299004: Work around (ignore) broken SRAT tables
vangyzen [Wed, 11 May 2016 22:07:05 +0000 (22:07 +0000)]
MFC r299004: Work around (ignore) broken SRAT tables

git-svn-id: svn://svn.freebsd.org/base/stable/9@299486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298698:
pfg [Wed, 11 May 2016 00:37:15 +0000 (00:37 +0000)]
MFC r298698:
geom: unsign some types to match their definitions and avoid overflows.

In struct:gctl_req, nargs is unsigned.

In mirror:
g_mirror_syncreqs is unsigned.

In raid:
in struct:g_raid_volume, v_disks_count is unsigned.

In virstor:
in struct:g_virstor_softc, n_components is unsigned.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299398 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298591
davidcs [Tue, 10 May 2016 02:50:54 +0000 (02:50 +0000)]
MFC r298591

1. Removed -Wno-shift-negative-value from Makefile
2. Fixed warning its absence caused in bxe_elink.c

git-svn-id: svn://svn.freebsd.org/base/stable/9@299302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298496
davidcs [Tue, 10 May 2016 02:47:40 +0000 (02:47 +0000)]
MFC r298496

Remove Unused/Dead Code

git-svn-id: svn://svn.freebsd.org/base/stable/9@299301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298294
davidcs [Tue, 10 May 2016 02:44:23 +0000 (02:44 +0000)]
MFC r298294

1. modify fwdump (a.k.a grcdump) so that grcdump memory is allocated
   and freed on as needed basis.
2. grcdump can be taken at failure points by invoking bxe_grc_dump()
   when trigger_grcdump sysctl flag is set. When grcdump is taken
   grcdump_done sysctl flag is set.
3. grcdump_done can be monitored by the user to retrieve the grcdump

Submitted by:vaishali.kulkarni@qlogic.com

git-svn-id: svn://svn.freebsd.org/base/stable/9@299300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298609:
pfg [Tue, 10 May 2016 02:15:09 +0000 (02:15 +0000)]
MFC r298609:
ext2fs: make use of the howmany() macro when available.

We have a howmany() macro in the <sys/param.h> header that is
convenient to re-use as it makes things easier to read.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299296 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298783:
hselasky [Mon, 9 May 2016 13:13:55 +0000 (13:13 +0000)]
MFC r298783:
Regenerate usb.conf .

git-svn-id: svn://svn.freebsd.org/base/stable/9@299261 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r298523
rmacklem [Sat, 7 May 2016 21:34:04 +0000 (21:34 +0000)]
MFC: r298523
Allow the NFSv4 server to reply NFSERR_WRONGSEC for the SetClientID operation.

It was reported via email that a Linux client couldn't do a Kerberized
NFS mount when only "sec=krb5" was specified for the exports. The Linux
client attempted a mount via krb5i and the server replied NFSERR_SERVERFAULT.
Although NFSERR_WRONGSEC isn't listed as an error for SetClientID, I
think it is the correct reply, so this patch enables that.
I do not know if this fixes the mount attempt, but adding "krb5i" to the
list of allowed security flavours does allow the mount to work.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298519:
dchagin [Sat, 7 May 2016 08:26:05 +0000 (08:26 +0000)]
MFC r298519:
Fix streams and svr4 module dependency. Both modules are complaining about
undefined symbol svr4_delete_socket which was moved from streams to the svr4 module
in r160558 that created a two-way dependency between them.

MFC r298520:
Allow to build svr4 module with SYSV support separatelly from the kernel build.

PR: 208464
Reported by: Kristoffer Eriksson

git-svn-id: svn://svn.freebsd.org/base/stable/9@299214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r297869
rmacklem [Sat, 7 May 2016 00:07:03 +0000 (00:07 +0000)]
MFC: r297869
If the VOP_SETATTR() call that saves the exclusive create verifier failed,
the NFS server would leave the newly created vnode locked. This could
result in a file system that would not unmount and processes wedged,
waiting for the file to be unlocked.
Since this VOP_SETATTR() never fails for most file systems, this bug
doesn't normally manifest itself. I found it during testing of an
exported GlusterFS file system, which can fail.
This patch adds the vput() and changes the error to the correct NFS one.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299209 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r297837
rmacklem [Fri, 6 May 2016 23:55:28 +0000 (23:55 +0000)]
MFC: r297837
Bruce Evans reported that there was a performance regression between
the old and new NFS clients. He did a good job of isolating the problem
which was caused by the new NFS client not setting the post write mtime
correctly. The new NFS client code was cloned from the old client, but
was incorrect, because the mtime in the nfs vnode's cache wasn't yet
updated. This patch fixes this problem. The patch also adds missing mutex
locking.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299207 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298868, r298874:
pfg [Fri, 6 May 2016 01:38:12 +0000 (01:38 +0000)]
MFC r298868, r298874:
restore: fix memory and resource handle leaks.

CID: 272297, 1007784

git-svn-id: svn://svn.freebsd.org/base/stable/9@299149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298408:
jtl [Fri, 6 May 2016 01:27:01 +0000 (01:27 +0000)]
MFC r298408:
  Prevent underflows in tp->snd_wnd if the remote side ACKs more than
  tp->snd_wnd. This can happen, for example, when the remote side responds
  to a window probe by ACKing the one byte it contains.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299111:
ngie [Thu, 5 May 2016 08:17:55 +0000 (08:17 +0000)]
MFstable/10 r299111:

MFC r297999:

Clean up trailing whitespace in lib/libcam; no functional change

git-svn-id: svn://svn.freebsd.org/base/stable/9@299112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298732:
pfg [Thu, 5 May 2016 01:35:42 +0000 (01:35 +0000)]
MFC r298732:
sys/devfs: unsign an index to prevent signed integer overflow.

cdp_maxdirent in struct:cdev_priv is of type u_int.  Use the same
type for the corresponding index in devfs_revoke().

git-svn-id: svn://svn.freebsd.org/base/stable/9@299107 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298731, r298734:
pfg [Thu, 5 May 2016 01:30:53 +0000 (01:30 +0000)]
MFC r298731, r298734:
ndis(4): unsign some indexes to prevent overflows.

The "len" parameter is uint32_t, indexing it with an int may
end up in a signed integer overflow.

strlen(3) returns an integer of size_t but a correponding index
of type u_int is more than enough.

git-svn-id: svn://svn.freebsd.org/base/stable/9@299105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix several OpenSSL vulnerabilities.
delphij [Wed, 4 May 2016 06:53:02 +0000 (06:53 +0000)]
Fix several OpenSSL vulnerabilities.

Security: CVE-2016-2105, CVE-2016-2106, CVE-2016-2109
Security: CVE-2016-2176 (does not affect FreeBSD)
Security: FreeBSD-SA-16:17.openssl

git-svn-id: svn://svn.freebsd.org/base/stable/9@299053 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299022:
ngie [Wed, 4 May 2016 00:35:41 +0000 (00:35 +0000)]
MFstable/10 r299022:

MFC r298450:

Simplify always evaluated branch (`e != NULL`)

- xalloc(..) ensures that e will be non-null via malloc + err.
- `e` is already dereferenced above, so logically it's impossible
  to hit the lower test without crashing if it was indeed NULL.

CID: 1007408

git-svn-id: svn://svn.freebsd.org/base/stable/9@299023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299018:
ngie [Wed, 4 May 2016 00:26:47 +0000 (00:26 +0000)]
MFstable/10 r299018:

MFC r298448,r298464:

r298448:

Don't leak `string` in parse_define(..) when a macro has been found
and the parser token != TOK_ASSIGN

CID: 10071871007188
Obtained from: Isilon OneFS (part of r445479)

r298464:

Use `sizeof(*uuser)` instead of `sizeof(struct usm_user)` for consistency with
the rest of the users in the file

No functional change

git-svn-id: svn://svn.freebsd.org/base/stable/9@299019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r299016:
ngie [Wed, 4 May 2016 00:19:46 +0000 (00:19 +0000)]
MFstable/10 r299016:

MFC r298451,r298452,r298507,r298750:

r298451:

Don't use `entry` after free in the "already in lists" case

Return with 0 as it isn't an error.

CID: 1006085
Obtained from: Isilon OneFS (part of r493633)

r298452:

Don't try to free `string` (stack allocated char[])

Fix minor style with warnx call while in the neighborhood

CID: 1009683

r298507:

Fix looking for "UTC" at start of ptr by using strnmp instead of improperly
unrolled equivalent

CID: 1347118

r298750:

Use a better idiom for finding UTC prefixed timezones

Instead of copy-pasting the string literal for "UTC" 3 times and using
strlen, use a static char[3] buffer and sizeof(..).

git-svn-id: svn://svn.freebsd.org/base/stable/9@299017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298556:
pfg [Tue, 3 May 2016 15:06:29 +0000 (15:06 +0000)]
MFC r298556:

ifconfig: prevent some improbable signed integer overflows.

ic_nchans, from struct:ieee80211req_chaninfo, is an unsigned int.
Use an unsigned index to prevent overflowing the index.

Adopt unsigned integers in other cases where it is useful
to be aware of the unsigned quantities and there is no
risk of the values being negative.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r272871:
ngie [Sat, 30 Apr 2016 09:43:01 +0000 (09:43 +0000)]
MFstable/10 r272871:
r272871 (by hrs):

MFC r271909:
  Revert changes in r269180.  It could cause -c N option to enter an
  infinite loop if no reply packet is received.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297696 and r298424:
hselasky [Fri, 29 Apr 2016 11:38:45 +0000 (11:38 +0000)]
MFC r297696 and r298424:
Add new USB quirks.

Submitted by: AJ <aleksanderlothe@live.com>
PR: 208623
Submitted by: Naram Qashat <cyberbotx@cyberbotx.com>
PR: 208642

git-svn-id: svn://svn.freebsd.org/base/stable/9@298782 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298458:
hselasky [Fri, 29 Apr 2016 11:31:27 +0000 (11:31 +0000)]
MFC r298458:
Add missing set of the current VNET when inputting IP packets in IPoIB.

This fixes a kernel panic when using IPoIB with VIMAGE and infiniband.

PR: 208957
Sponsored by: Mellanox Technologies
Tested by: Justin Clift <justin@postgresql.org>

git-svn-id: svn://svn.freebsd.org/base/stable/9@298780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297968:
hselasky [Fri, 29 Apr 2016 11:17:25 +0000 (11:17 +0000)]
MFC r297968:
Remove some unused fields.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@298777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297967:
hselasky [Fri, 29 Apr 2016 11:15:48 +0000 (11:15 +0000)]
MFC r297967:
Ensure the received IP header gets 32-bits aligned.

The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned
when decoding it. Else unaligned 32-bit memory access can happen, which
not all processor architectures support.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@298776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297966:
hselasky [Fri, 29 Apr 2016 11:10:43 +0000 (11:10 +0000)]
MFC r297966:
Add missing port_up checks.

When downing a mlxen network adapter we need to check the port_up variable
to ensure we don't continue to transmit data or restart timers which can
reside in freed memory.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@298774 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298640:
pfg [Fri, 29 Apr 2016 03:13:18 +0000 (03:13 +0000)]
MFC r298640:
ed(1): switch two statements so we check the index before dereferencing.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298551, r298679, r298680:
pfg [Fri, 29 Apr 2016 03:06:42 +0000 (03:06 +0000)]
MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().

fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an unsigned type.

Reviewed by: mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/9@298765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298521;
pfg [Thu, 28 Apr 2016 01:12:38 +0000 (01:12 +0000)]
MFC r298521;
regex: prevent two improbable signed integer overflows.

In matcher() we used an integer to index nsub of type size_t.
In print() we used an integer to index nstates of type sopno,
typedef'd long.
In both cases the indexes never take negative values.

Match the types to avoid any error.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298695: MFV r298691: ntp 4.2.8p7.
delphij [Wed, 27 Apr 2016 15:25:18 +0000 (15:25 +0000)]
MFC r298695: MFV r298691: ntp 4.2.8p7.

Security: CVE-2016-1547, CVE-2016-1548, CVE-2016-1549, CVE-2016-1550
Security: CVE-2016-1551, CVE-2016-2516, CVE-2016-2517, CVE-2016-2518
Security: CVE-2016-2519
Security: FreeBSD-SA-16:16.ntp
With hat: so

git-svn-id: svn://svn.freebsd.org/base/stable/9@298700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297820:
ae [Tue, 26 Apr 2016 12:00:04 +0000 (12:00 +0000)]
MFC r297820:
  Fix the problem, when gpart(8) can't write both bootcode and partcode
  in one command due to wrong file size limit. Do not use bootcode size
  to calculate partsize limit.
  Also add report message about successful partcode writing.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297846: [amd64] dtrace_invop handler is to be called only for
avg [Tue, 26 Apr 2016 07:40:56 +0000 (07:40 +0000)]
MFC r297846: [amd64] dtrace_invop handler is to be called only for
kernel exceptions

git-svn-id: svn://svn.freebsd.org/base/stable/9@298622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297796:
pfg [Mon, 25 Apr 2016 00:52:37 +0000 (00:52 +0000)]
MFC r297796:
ext2fs: replace 0 with NULL for pointers.

While here do late initialization of ebap, similar as was
done in UFS.

Found with devel/coccinelle.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297513: remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat
avg [Sun, 24 Apr 2016 08:45:43 +0000 (08:45 +0000)]
MFC r297513: remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat

git-svn-id: svn://svn.freebsd.org/base/stable/9@298534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297791:
pfg [Sun, 24 Apr 2016 03:13:02 +0000 (03:13 +0000)]
MFC r297791:
UFS: replace 0 with NULL for pointers.

While here also do late initialization of the variables we are
changing.

Found with devel/coccinelle.

Reviewed by: mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/9@298528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r298488:
ngie [Fri, 22 Apr 2016 21:28:50 +0000 (21:28 +0000)]
MFstable/10 r298488:

MFC r298303:

Remove trailing whitespace and use `nitems(mib)` instead of `2` when
calling sysctl(3)

git-svn-id: svn://svn.freebsd.org/base/stable/9@298489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297709: zio write issue threads should have lower (numerically
avg [Fri, 22 Apr 2016 12:49:00 +0000 (12:49 +0000)]
MFC r297709: zio write issue threads should have lower (numerically
greater) priority

git-svn-id: svn://svn.freebsd.org/base/stable/9@298470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298043:
kib [Fri, 22 Apr 2016 08:56:47 +0000 (08:56 +0000)]
MFC r298043:
Avoid NULL pointer dereference.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297527, r297688:
pfg [Thu, 21 Apr 2016 15:02:57 +0000 (15:02 +0000)]
MFC r297527, r297688:
chdone(): Prevent returning uninitialized scalar value.

Instead of attempting to initialize all the possible cases, just
move the check nearer to the case where it makes sense.

CID: 1006486
Reviewed by: ken

git-svn-id: svn://svn.freebsd.org/base/stable/9@298407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297942:
pfg [Wed, 20 Apr 2016 00:50:17 +0000 (00:50 +0000)]
MFC 297942:
libgssapi: avoid NULL pointer dereferences.

While here also use NULL instead of zero for pointers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298316 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297884
davidcs [Tue, 19 Apr 2016 19:03:06 +0000 (19:03 +0000)]
MFC r297884
Add support for Flash Update

Submitted by:nrapendra.singh@qlogic.com;vaishali.kulkarni@qlogic.com;davidcs@freebsd.org

git-svn-id: svn://svn.freebsd.org/base/stable/9@298284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297873
davidcs [Tue, 19 Apr 2016 18:57:31 +0000 (18:57 +0000)]
MFC r297873

1. Process tx completions in bxe_periodic_callout_func() and restart
   transmissions if possible.
2. For SIOCSIFFLAGS call bxe_init_locked() only if !BXE_STATE_DISABLED
3. remove code not needed in bxe_init_internal_common()

Submitted by:vaishali.kulkarni@qlogic.com;venkata.bhavaraju@qlogic.com

git-svn-id: svn://svn.freebsd.org/base/stable/9@298283 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297520: zfs receive: -u can be ignored sometimes
avg [Tue, 19 Apr 2016 12:14:52 +0000 (12:14 +0000)]
MFC r297520: zfs receive: -u can be ignored sometimes

PR: 204705

git-svn-id: svn://svn.freebsd.org/base/stable/9@298265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287453,287454,288143:
delphij [Mon, 18 Apr 2016 08:30:52 +0000 (08:30 +0000)]
MFC r287453,287454,288143:

file 5.25.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297335, r297479, r297695:
kevlo [Thu, 14 Apr 2016 01:20:15 +0000 (01:20 +0000)]
MFC r297335, r297479, r297695:

- Update superblock and inode structs for ext4.
- Update comment: Linux does set a randomized generation number of an inode
  on ext2/3/4.  While here use arc4random() instead of random().

Reviewed by: pfg

git-svn-id: svn://svn.freebsd.org/base/stable/9@297949 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r294520:
hselasky [Thu, 7 Apr 2016 07:53:56 +0000 (07:53 +0000)]
MFC r294520:
LinuxKPI atomic fixes:
- Fix implementation of atomic_add_unless(). The atomic_cmpset_int()
  function returns a boolean and not the previous value of the atomic
  variable.
- The atomic counters should be signed according to Linux.
- Some minor cosmetics and styling while at it.

Reviewed by: alfred @
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297444:
hselasky [Thu, 7 Apr 2016 07:45:31 +0000 (07:45 +0000)]
MFC r297444:
Fix bugs in currently unused bit searching loop.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296934:
hselasky [Thu, 7 Apr 2016 07:39:55 +0000 (07:39 +0000)]
MFC r296934:
Fix crash in krping when run as a client due to NULL pointer access.
Initialize pointer in question which is used only when fast registers
mode is selected.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296987:
hselasky [Thu, 7 Apr 2016 07:38:18 +0000 (07:38 +0000)]
MFC r296987:
Add missing curly brackets in for loop.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296910:
hselasky [Thu, 7 Apr 2016 07:33:40 +0000 (07:33 +0000)]
MFC r296910:
Use hardware computed Toeplitz hash for incoming flowids

Use the Toeplitz hash value as source for the flowid. This makes the
hash value more suitable for so-called hash bucket algorithms which
are used in the FreeBSD's TCP/IP stack when RSS is enabled.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296909:
hselasky [Thu, 7 Apr 2016 07:31:17 +0000 (07:31 +0000)]
MFC r296909:
Fix witness panic in the ipoib_ioctl() function when unloading the
ipoib module.

The bpfdetach() function is trying to turn off promiscious mode on the
network interface it is attached to while holding a mutex. The fix
consists of ignoring any further calls to the ipoib_ioctl() function
when the network interface is going to be detached. The ipoib_ioctl()
function might sleep.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297649 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r294526:
hselasky [Thu, 7 Apr 2016 07:23:21 +0000 (07:23 +0000)]
MFC r294526:
Add missing atomic wrapper macro.

Reviewed by: alfred @
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/9@297647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296342:
hselasky [Thu, 7 Apr 2016 07:15:53 +0000 (07:15 +0000)]
MFC r296342:
Allow for overlapping quirk device ranges. Prior to this patch only
the first device entry matching the USB vendor, product and revision
would be searched for quirks. After this patch all device entries will
be searched for quirks.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297155
davidcs [Wed, 6 Apr 2016 21:19:27 +0000 (21:19 +0000)]
MFC r297155
  Modifications to achieve a common source base from FreeBSD7.x thru 10.x

git-svn-id: svn://svn.freebsd.org/base/stable/9@297623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297212:
dim [Wed, 30 Mar 2016 22:12:07 +0000 (22:12 +0000)]
MFC r297212:

For C++, expose long long types and functions (lldiv_t, llabs, lldiv,
etc) in stdlib.h.  These will be needed for newer versions of libc++,
which uses them for defining overloaded versions of abs() and div().

git-svn-id: svn://svn.freebsd.org/base/stable/9@297432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296526:
bdrewery [Mon, 28 Mar 2016 16:24:10 +0000 (16:24 +0000)]
MFC r296526:

  Record command exit status in the typescript file when running simple
  commands.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/9@297353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297051: Fix incorrect (fortunately bigger) malloc size.
mav [Mon, 28 Mar 2016 09:29:14 +0000 (09:29 +0000)]
MFC r297051: Fix incorrect (fortunately bigger) malloc size.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296095:
pfg [Sun, 27 Mar 2016 19:43:26 +0000 (19:43 +0000)]
MFC r296095:
rpc: fix failure to clear string by passing the wrong size to memset.

Noted by NetBSD's PR/21014

Obtained from: NetBSD (CVS Rev. 1.24, 1.25)

git-svn-id: svn://svn.freebsd.org/base/stable/9@297320 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296394:
pfg [Fri, 25 Mar 2016 00:40:04 +0000 (00:40 +0000)]
MFC r296394:
xdr: Fix xdr_rpc* defines.

The defines for xdr_rpc* in xdr.h are wrong. It could be
very well that Solaris did strip the '_t' from xdr_u_int32_t,
but Solaris has a xdr_u_int32 function, we don't have this.
So all of this defines will lead to an unresolved symbol.

This explains why we do not use these functions in FreeBSD
while they are used in Illumos/Solaris.

Obtained from: linux libtirpc (git 7864122e61ffe4db1aa8ace89117358a1e3a391b)

git-svn-id: svn://svn.freebsd.org/base/stable/9@297260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoUpdate with new IPv6 address for l-root.
erwin [Thu, 24 Mar 2016 11:38:18 +0000 (11:38 +0000)]
Update with new IPv6 address for l-root.

Obtained from: IANA
Sponsored by: DK Hostmaster A/S

git-svn-id: svn://svn.freebsd.org/base/stable/9@297233 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296819:
bdrewery [Mon, 21 Mar 2016 17:53:37 +0000 (17:53 +0000)]
MFC r296819:

  Reword SX_NOADAPTIVE description to be clear that adaptive is default.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoRevert r297130: Revert to unbreak the build.
pfg [Mon, 21 Mar 2016 05:47:59 +0000 (05:47 +0000)]
Revert r297130: Revert to unbreak the build.

No idea how this broke the build in libstand but it was the only
change so revert to appease jenkins.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297135 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296816:
pfg [Mon, 21 Mar 2016 01:17:48 +0000 (01:17 +0000)]
MFC r296816:

libdtrace: use calloc(3) instead of malloc(3) when it makes sense.

calloc(3) is faster and occasionally safer than malloc(3) + bzero(3).

In one case, pointed out by Mark[1], this also cleans up a calculation.

Reviewed by: markj [1]

git-svn-id: svn://svn.freebsd.org/base/stable/9@297130 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296919: Fix small memory leak on attempt to access deleted snapshot.
mav [Fri, 18 Mar 2016 13:32:37 +0000 (13:32 +0000)]
MFC r296919: Fix small memory leak on attempt to access deleted snapshot.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296653: Allow standard commands for "unknown" classes in RESCUE mode.
mav [Fri, 18 Mar 2016 13:30:40 +0000 (13:30 +0000)]
MFC r296653: Allow standard commands for "unknown" classes in RESCUE mode.

For example, it allows quite useful `geom disk list` command.

git-svn-id: svn://svn.freebsd.org/base/stable/9@297020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r296956:
glebius [Wed, 16 Mar 2016 22:36:02 +0000 (22:36 +0000)]
Merge r296956:

  Due to invalid use of a signed intermediate value in the bounds checking
  during argument validity verification, unbound zero'ing of the process LDT
  and adjacent memory can be initiated from usermode.

Submitted by:   CORE Security
Patch by:       kib
Security:       SA-16:15

git-svn-id: svn://svn.freebsd.org/base/stable/9@296958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoDon't assume checksums will be calculated later when fastfoward is
cy [Wed, 16 Mar 2016 02:01:17 +0000 (02:01 +0000)]
Don't assume checksums will be calculated later when fastfoward is
enabled.

This is a direct commit to the stable/9 because this branch uses
ipfilter 4.1.28 whereas head has ipfilter 5.1.2. This corresponds
to r292518 and r292813 in head and r292979 and r292811 in stable/10.

PR: 72210

git-svn-id: svn://svn.freebsd.org/base/stable/9@296924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296579
davidcs [Mon, 14 Mar 2016 23:33:38 +0000 (23:33 +0000)]
MFC r296579
Fix code so that buf_ring allocation for Tx Queues and their mutexes
is done during during bxe_attach() and freed during bxe_detach()

git-svn-id: svn://svn.freebsd.org/base/stable/9@296877 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoBelatedly bump VersionAddendum for the xauth bugfix.
des [Mon, 14 Mar 2016 13:13:07 +0000 (13:13 +0000)]
Belatedly bump VersionAddendum for the xauth bugfix.

git-svn-id: svn://svn.freebsd.org/base/stable/9@296856 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296815:
ngie [Mon, 14 Mar 2016 00:42:19 +0000 (00:42 +0000)]
MFstable/10 r296815:

MFC r294973:

Add pidfile support to ggated(8)

The tests will manipulate the system daemon today, which can cause undesired
service interruption when the tests are run.

This change allows the geom_gate tests to be run with an arbitrary ggated(8)
daemon / geom_gate(4) device pairing.

Other changes:
- Sort #includes
- Use a more common idiom for parsing options with getopt(3)

git-svn-id: svn://svn.freebsd.org/base/stable/9@296818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296814:
ngie [Mon, 14 Mar 2016 00:40:57 +0000 (00:40 +0000)]
MFstable/10 r296814:

MFC r293621,r293622,r293815:

r293621:

- Delete non-TAP testcases
- Add a conf.sh file for executing common functions with geom_gate
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox
- Add/increase sleeps to try and improve synchronization
- Add debug output for when checksums fail

test-1.t:
- Use pkill for killing ggated

r293622:

Remove Makefile now that the testcases are all TAP based and
prove -rv can be used on them

r293815:

Add conf.sh file missed in r293621

git-svn-id: svn://svn.freebsd.org/base/stable/9@296817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r296802 from stable/10, which adds a patch corresponding to
dim [Sun, 13 Mar 2016 18:37:41 +0000 (18:37 +0000)]
Merge r296802 from stable/10, which adds a patch corresponding to
r296800, and record that r296800 was 'merged' also.

git-svn-id: svn://svn.freebsd.org/base/stable/9@296803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoPull in r219512 from upstream llvm trunk (by Hal Finkel):
dim [Sun, 13 Mar 2016 18:32:18 +0000 (18:32 +0000)]
Pull in r219512 from upstream llvm trunk (by Hal Finkel):

  [MiSched] Fix a logic error in tryPressure()

  Fixes a logic error in the MachineScheduler found by Steve Montgomery
  (and confirmed by Andy). This has gone unfixed for months because the
  fix has been found to introduce some small performance regressions.
  However, Andy has recommended that, at this point, we fix this to
  avoid further dependence on the incorrect behavior (and then
  follow-up separately on any regressions), and I agree.

  Fixes PR18883.

This fixes a possible "ran out of registers" error when compiling
www/firefox 45.0 on i386.

Direct commit to stable/9, because head already has this fix since the
llvm/clang 3.6.0 import.

PR: 207837

git-svn-id: svn://svn.freebsd.org/base/stable/9@296801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296787:
ngie [Sun, 13 Mar 2016 02:09:01 +0000 (02:09 +0000)]
MFstable/10 r296787:

MFC r293443:

- Make test-1.sh into a TAP testable testcase
- Delete test-2.sh as it was an incomplete testcase, and the contents were
  basically a subset of test-1.sh
- Add a conf.sh file for executing common functions with geom_uzip
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296786:
ngie [Sun, 13 Mar 2016 02:08:23 +0000 (02:08 +0000)]
MFstable/10 r296786:

MFC r293442:

- Add a geom_stripe specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296785:
ngie [Sun, 13 Mar 2016 02:07:45 +0000 (02:07 +0000)]
MFstable/10 r296785:

MFC r293441:

- Add a geom_shsec specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296784:
ngie [Sun, 13 Mar 2016 02:06:57 +0000 (02:06 +0000)]
MFstable/10 r296784:

MFC r293438:

- Add a geom_raid3 specific cleanup function and trap on that function at
  exit so things are cleaned up properly
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296783:
ngie [Sun, 13 Mar 2016 02:06:09 +0000 (02:06 +0000)]
MFstable/10 r296783:

MFC r293437:

- Add a conf.sh file for executing common functions with gnop
- Use attach_md for attaching md(4) devices
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFstable/10 r296782:
ngie [Sun, 13 Mar 2016 02:05:16 +0000 (02:05 +0000)]
MFstable/10 r296782:

MFC r293436:

- Add a conf.sh file for executing common functions with geli
-- Use linear probing to find the first unique md(4) device, unlike the other
   code which uses attach_md, as geli(8) allocates the md(4) devices itself
- Don't hardcode /tmp for temporary files, which violates the kyua sandbox

git-svn-id: svn://svn.freebsd.org/base/stable/9@296791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoApply patch from 7.2p2 for xauth command injection bug.
des [Sat, 12 Mar 2016 23:50:19 +0000 (23:50 +0000)]
Apply patch from 7.2p2 for xauth command injection bug.

Security: CVE-2016-3115

git-svn-id: svn://svn.freebsd.org/base/stable/9@296780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f