freebsd-skq/sys
Kenneth D. Merry e8577fb489 Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized
properly.

If there is garbage in the flags field, it can sometimes include a
set CDAI_FLAG_STORE flag, which may cause either an error or
perhaps result in overwriting the field that was intended to be
read.

sys/cam/cam_ccb.h:
	Add a new flag to the XPT_DEV_ADVINFO CCB, CDAI_FLAG_NONE,
	that callers can use to set the flags field when no store
	is desired.

sys/cam/scsi/scsi_enc_ses.c:
	In ses_setphyspath_callback(), explicitly set the
	XPT_DEV_ADVINFO flags to CDAI_FLAG_NONE when fetching the
	physical path information.  Instead of ORing in the
	CDAI_FLAG_STORE flag when storing the physical path, set
	the flags field to CDAI_FLAG_STORE.

sys/cam/scsi/scsi_sa.c:
	Set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE when
	fetching extended inquiry information.

sys/cam/scsi/scsi_da.c:
	When storing extended READ CAPACITY information, set the
	XPT_DEV_ADVINFO flags field to CDAI_FLAG_STORE instead of
	ORing it into a field that isn't initialized.

sys/dev/mpr/mpr_sas.c,
sys/dev/mps/mps_sas.c:
	When fetching extended READ CAPACITY information, set the
	XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE instead of
	setting it to 0.

sbin/camcontrol/camcontrol.c:
	When fetching a device ID, set the XPT_DEV_ADVINFO flags
	field to CDAI_FLAG_NONE instead of 0.

sys/sys/param.h:
	Bump __FreeBSD_version to 1100061 for the new XPT_DEV_ADVINFO
	CCB flag, CDAI_FLAG_NONE.

Sponsored by:	Spectra Logic
MFC after:	1 week
2015-02-18 18:30:19 +00:00
..
amd64 Initialize x2APIC mode on the resume path before accessing LAPIC. 2015-02-16 21:56:19 +00:00
arm Make use of the newly introduced macros. 2015-02-17 20:37:21 +00:00
boot Set the #address-cells and #size-cells properties on I2C controllers of 2015-02-17 19:38:16 +00:00
bsm
cam Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized 2015-02-18 18:30:19 +00:00
cddl Clean up machine dependent code for DTrace on ARM. 2015-02-11 17:27:37 +00:00
compat Run make sysent. 2015-01-23 21:08:24 +00:00
conf Populate new KERN_OPTS from all the opt_*.h files in 2015-02-18 15:25:19 +00:00
contrib Update the infiniband stack to Mellanox's OFED version 2.1. 2015-02-17 08:40:27 +00:00
crypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized 2015-02-18 18:30:19 +00:00
fs ext2fs: Plug small memory leak 2015-02-15 14:25:00 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom Add devd(8) notifications for creation and destruction of GEOM devices. 2015-01-14 11:15:57 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 Initialize x2APIC mode on the resume path before accessing LAPIC. 2015-02-16 21:56:19 +00:00
isa
kern If malloc() sleeps, Giant is dropped. Recheck for another thread 2015-02-18 18:12:06 +00:00
kgssapi Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
libkern Similar to r277901, fix more -Wcast-qual warnings in libkern's strtoq(), 2015-01-29 21:54:01 +00:00
mips Remove this - I made it all work again a looong time ago. 2015-02-16 02:05:34 +00:00
modules Clean up a bit of the INET/INET6 mess wrt options. 2015-02-18 15:25:25 +00:00
net - Improve INET/INET6 scope. 2015-02-16 23:50:53 +00:00
net80211 Switch around the order of static inline to be in line with how it's 2015-01-11 18:43:45 +00:00
netgraph Revise default limit for maximum of netgraph data items. 2015-02-12 22:20:34 +00:00
netinet This fixes a bug in the way that the LLE timers for nd6 2015-02-09 19:28:11 +00:00
netinet6 Factor out ip6_fragment() function, to be used in IPv6 stack and pf(4). 2015-02-16 06:30:27 +00:00
netipsec key_spdget uses key_setdumpsp() without SPTREE_RLOCK held (it uses 2015-01-27 17:46:55 +00:00
netnatm
netpfil Even more fixes to !INET and !INET6 kernels. 2015-02-17 22:33:22 +00:00
netsmb
nfs Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsclient Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
ofed filedesc: simplify fget_unlocked & friends 2015-02-17 23:54:06 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pc98 Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
powerpc Match the right backlight driver. 2015-02-18 07:34:32 +00:00
rpc rpc: Uninitialized pointer read 2015-02-02 16:07:07 +00:00
security Adjust printf format specifiers for dev_t and ino_t in kernel. 2014-12-17 07:27:19 +00:00
sparc64 Unbreak sparc64 after r276630 by calling __sparc_sigtramp_setup signal 2015-02-16 22:13:03 +00:00
sys Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized 2015-02-18 18:30:19 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs Partially revert r277922, avoid sleeping and do flush if we a awaken, 2015-02-05 13:00:27 +00:00
vm Some minor style(9) fixes (whitespace + comment) 2015-02-17 08:50:26 +00:00
x86 Fix UP build. 2015-02-18 10:51:48 +00:00
xdr
xen Pacify clang 3.3 by ending the file with a newline. This is common 2015-01-06 21:26:35 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00