104074 Commits

Author SHA1 Message Date
jhb
3eaedb459f MFC 299310:
Don't store generated firmware object files in the source directory.

Trim the leading directory of a firmware source file from the resulting
target object file name so the object file is stored in the object
directory. Previously, using 'FIRMWS= /path/to/fw.bin:fw.bin' would
store the generated 'fw.bin.fwo' file in the /path/to directory. Now
it stores it in the object directory of the kernel module being built.
2016-05-24 23:04:16 +00:00
kib
052b0aa91c MFC r300084:
Do enable io accounting for read-only mounts and mounts which are
remounted to writeable after initial read-only.  Assign to
dev->si_mountpt earlier to account the accesses done at the mount
time.
2016-05-24 10:46:23 +00:00
kib
9b3635bacc MFC r300083:
If IO_SYNC was passed to ffs_truncate(), request synchronous inode
update from the final ffs_update().
2016-05-24 10:41:34 +00:00
kib
27b30b82a5 MFC r300082:
For async UFS mounts, shrink the directory asynchronously, at least do
not pass IO_SYNC to ffs_truncate() unneccessary.
2016-05-24 10:39:55 +00:00
kib
5bd465c67d MFC r300030:
Fix comments.
2016-05-24 10:36:33 +00:00
kib
658278c1cd MFC r300027:
Fix typo in the message.
2016-05-24 10:34:24 +00:00
mav
c484ab708b MFC r299373: Allow sleepable allocations in enclosure daemon threads.
There were at least two places where M_NOWAIT was used without NULL check.
This change should fix NULL-dereference panic there and possibly improve
operation in other ways under memory pressure.
2016-05-24 07:21:23 +00:00
mav
591bc3dff9 MFC r299347, r299348: Validate XCOPY range offsets and lengths. 2016-05-24 07:19:52 +00:00
mav
1efd0876de MFC r299346: More XCOPY parameters validation. 2016-05-24 07:19:00 +00:00
mav
39bf7c379f MFC r299329: Improve validation of some POPULATE TOKEN parameters. 2016-05-24 07:18:22 +00:00
mav
369ffdf030 MFC r300072: Fix NULL-dereference panic if VESA reports zero modes. 2016-05-24 07:17:09 +00:00
mav
30a81a3669 MFC r300218: Add proper reporting for early task management errors.
This covers unknown requests and requests to unknown virtual ports.
Previously it "worked" only because of timeout handling on initiator.
2016-05-24 07:15:53 +00:00
mav
2477296104 MFC r300217: Add IOCB debugging for ISPCTL_RESET_DEV and ISPCTL_ABORT_CMD. 2016-05-24 07:15:10 +00:00
mav
6bda466727 MFC r300157: Unify Multi ID target code by reusing isp_find_chan_by_did(). 2016-05-24 07:14:24 +00:00
mav
f05da218cb MFC r300058: Make RQCS_PORT_LOGGED_OUT for ZOMBIE ports retriable.
It is normal for ZOMBIE ports to be logged out.  This status is not really
an error until Gone Device Timeout expires, so make CAM retry after delay.
2016-05-24 07:13:42 +00:00
mav
75fce927b8 MFC r300052: Completely remove broken now autologin port flag.
Firmware automatically logs in only to local loop ports, and those ports
can be easily identified without extra flag by zero domain and area IDs.
2016-05-24 07:12:53 +00:00
mav
21895d3658 MFC r299957: Reduce verbosity of "now sending synthesized status" message. 2016-05-24 07:12:11 +00:00
mav
c527f3612d MFC r299955: No need to check login status for ZOMBIE ports.
ZOMBIE ports are always logged out, and so initiator may try to relogin.
2016-05-24 07:11:31 +00:00
mav
0f3ff07b20 MFC r299691: Fix FCP_CMD LENGTH mask in ATIO7 IOCB.
This caused "long IU length (16384) ignored" errors following by others.
2016-05-24 07:10:50 +00:00
kp
d0e265f826 MFC 300307:
pf: Fix fragment timeout

We were inconsistent about the use of time_second vs. time_uptime.
Always use time_uptime so the value can be meaningfully compared.

Submitted by:	"Max" <maximos@als.nnov.ru>
2016-05-24 02:44:44 +00:00
loos
50658bb171 MFC r298270:
Add PCI ID for family 10h model 30h to amdtemp(4).

This adds support to CPU found in PC Engines APU2 series.

Sponsored by:	Rubicon Communications (Netgate)
2016-05-23 16:37:04 +00:00
loos
eda758df2d MFC r297985:
Do not overwrite the dchg variable.

It does not cause any real issues because the variable is overwritten
only when the packet is forwarded (and the variable is not used anymore).

Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
2016-05-23 16:20:50 +00:00
mav
2320b137ec Add respective tunables to all sysctls.
This is direct commit to stable/10, since head does not need it any more.
2016-05-23 16:12:11 +00:00
n_hibma
39fb5100d9 MFC 299559:
Allow silencing of 'promiscuous mode enabled/disabled'
	 messages.
2016-05-23 09:44:06 +00:00
avg
c8d002b120 MFC r299916: vfs_read_dirent: increment ncookies after adding a cookie 2016-05-23 07:21:01 +00:00
avg
91eaa1e181 MFC r300024: zfs_ioc_rename: fix a reversed condition
PR:		209093
2016-05-23 07:15:23 +00:00
dchagin
bb2ef25b41 MFC r299249:
Add a forgotten in r283424 .eh_frame section with CFI & FDE records to allow
stack unwinding through signal handler.
2016-05-23 05:31:53 +00:00
ngie
d72a98c7be MFC r299659:
Remove unused const variable
2016-05-23 05:28:02 +00:00
ngie
f965051202 MFC r299655:
Add missing prototype for getchar(..)
2016-05-23 05:23:53 +00:00
kib
00696f008c MFC r300305, r300332:
Check for overflow and return EINVAL if detected.  Use unsigned index.
2016-05-23 00:58:52 +00:00
rmacklem
4c7da2a5ff MFC: r299226
Don't increment srvrpccnt[] for the NFSv4.1 operations.

When support for NFSv4.1 was added to the NFS server, it broke
the server rpc count stats, since newnfsstats.srvrpccnt[] doesn't
have entries for the new NFSv4.1 operations.
Without this patch, the code was incrementing bogus entries in
newnfsstats for the new NFSv4.1 operations.
This patch is an interim fix. The nfsstats structure needs to be
updated and that will come in a future commit.
2016-05-21 20:50:25 +00:00
mav
64cac89e36 MFC 103 ntb(4) patches by cem@ up to r295487. 2016-05-21 15:15:11 +00:00
mav
9dc28fc6ae MFC r298983: Add some device IDs from Intel Sunrise Point chipsets. 2016-05-20 17:25:36 +00:00
truckman
a8991e2917 MFC r299865
When handling SIOCSIFNAME ensure that the new interface name is NUL
terminated.  Reject the rename attempt if the name is too long.
2016-05-20 06:54:59 +00:00
rmacklem
9be0db2aad MFC: r299201
Give mountd -S priority over outstanding RPC requests when suspending the nfsd.

It was reported via email that under certain heavy RPC loads
long delays before the exports would be updated was observed
when using "mountd -S". This patch reverses the priority between
the exclusive lock request to suspend the nfsd threads and the
shared lock request for performing RPCs.
As such, when mountd attempts to suspend the nfsd threads, it
gets priority over outstanding RPC requests to do this.
I suspect that the case reported was an artificial test load,
but this patch did fix the problem for the reporter.
2016-05-20 01:19:30 +00:00
bdrewery
710243b221 Bump version for r300233 2016-05-19 21:47:32 +00:00
asomers
af2f11439d MFC r298420, r298439, r298644
r298420 | asomers | 2016-04-21 10:43:15 -0600 (Thu, 21 Apr 2016) | 10 lines

Notify userspace listeners when geom disk attributes have changed

sys/geom/geom_disk.c:
        disk_attr_changed(): Generate a devctl event of type GEOM:<attr> for
        every call.

r298439 | asomers | 2016-04-21 15:13:41 -0600 (Thu, 21 Apr 2016) | 10 lines

DRY on buffer sizes.  Update to r298420.

sys/geom/geom_disk.c:
        In disk_attr_changed, don't repeat a buffer size.

r298644 | asomers | 2016-04-26 08:48:58 -0600 (Tue, 26 Apr 2016) | 8 lines

Add GEOM::physpath documentation to devd.conf(5)
2016-05-19 16:04:20 +00:00
kib
d8156780f0 MFC r299413:
Use vfs_hash_ref(9) to eliminate LK_EXCLOTHER kludge.
2016-05-18 12:02:05 +00:00
kib
9f55837918 MFC r299412:
Add vfs_hash_ref(9) function, which finds a vnode by the hash value
and returns it referenced.
2016-05-18 11:58:16 +00:00
kib
474c064c24 MFC r299408:
Style: wrap long lines.
2016-05-18 11:51:17 +00:00
glebius
bbf994c9e1 Validate that user supplied control message length is not negative.
Submitted by:	C Turt <cturt hardenedbsd.org>
Security:	SA-16:19
Security:	CVE-2016-1887
2016-05-17 22:30:43 +00:00
glebius
2e0f17c8df Use unsigned version of min() when handling arguments of SETFKEY ioctl.
Submitted by:	C Turt <cturt hardenedbsd.org>
Security:	SA-16:18
Security:	CVE-2016-1886
2016-05-17 22:29:59 +00:00
pfg
99b5a5a4c6 MFC r298931, r298981, r299375:
Minor spelling fixes in:
sys/dev, sys/sys

Many of these have user-visible strings.
2016-05-17 15:18:01 +00:00
avg
c97f6b764e MFC r297848: l2arc: make sure that all writes honor ashift of a cache device
Note: no MFC stable/9 because it has become quite out of date with head,
so the merge would be quite labourious and, thus, risky.
2016-05-17 08:43:50 +00:00
avg
3a90d30e3f MFC r298737: fix up r300036 2016-05-17 08:36:54 +00:00
avg
cfc0337581 MFC r298736: ensure that initial local apic id is sane on AMD 10h systems 2016-05-17 08:33:40 +00:00
avg
cc2f720172 MFC r298106: zfs_rezget: z_vnode can not be NULL if zp is valid 2016-05-17 08:31:46 +00:00
avg
5e400ac62b MFC r298473,298787: add invpcid, fix sahf/lahf in dtrace disassembler 2016-05-17 08:24:06 +00:00
avg
df87d42ca9 MFC r298472: MFV r298471: 6052 decouple lzc_create() from the
implementation details
2016-05-17 08:20:10 +00:00
kib
60a7096da4 MFC r299350:
Add locking annotations to amd64 struct md_page members.
2016-05-17 07:55:49 +00:00