freebsd-dev/sbin
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
..
adjkerntz
atm Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
badsect Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
bsdlabel mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
camcontrol Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized 2015-02-18 18:30:19 +00:00
casperd Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ccdconfig Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
clri
comcontrol
conscontrol Add references to vt(4) to further man-pages. 2014-09-01 16:25:08 +00:00
ddb Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
devd Add devd(8) notifications for creation and destruction of GEOM devices. 2015-01-14 11:15:57 +00:00
devfs
dhclient mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
dmesg Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
dump Fix a bug which could break extended attributes in a dump output. 2014-09-10 22:37:20 +00:00
dumpfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
dumpon Revert r156046. We support setting dumpdev via loader tunable again. 2014-10-08 12:19:48 +00:00
etherswitchcfg
fdisk Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
fdisk_pc98 Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ffsinfo Adjust printf format specifiers for dev_t and ino_t in user space. 2014-12-17 07:10:48 +00:00
fsck Recommit r274750. 2014-11-21 01:43:55 +00:00
fsck_ffs Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
fsck_msdosfs Make UEFI booting of 4Kn disks work: 2014-10-30 15:52:01 +00:00
fsdb Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
fsirand Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
gbde Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
geom Fix sysctl name. 2015-01-27 18:27:07 +00:00
ggate Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
growfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
gvinum Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
hastctl Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
hastd mdoc: paragraph improvements. 2015-01-04 12:49:24 +00:00
ifconfig Revert the change of flowid output format. [1] 2015-02-02 19:00:18 +00:00
init Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ipf Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ipfw Retrieve counters from kernel if rule timstamping is requested. 2015-02-05 14:08:33 +00:00
iscontrol mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
kldconfig
kldload
kldstat
kldunload
ldconfig
md5 Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mdconfig Convert sbin/mdconfig/tests from prove format tests to ATF format tests 2014-11-27 06:04:00 +00:00
mdmfs
mknod
mksnap_ffs
mount mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
mount_cd9660 Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_fusefs mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
mount_msdosfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_nfs mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
mount_nullfs
mount_udf Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_unionfs
nandfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
natd Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
newfs Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
newfs_msdos Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
newfs_nandfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
nfsiod
nos-tun
nvmecontrol
pfctl Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
pflogd Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ping After r270929 RAW IP code assumes that all IP fields are in network 2015-01-23 13:26:35 +00:00
ping6 Add ability to not specify a zone identifier twice, when both source and 2014-12-16 14:59:20 +00:00
quotacheck Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
rcorder - Revert r277670 (#include order is required for fparseln) 2015-01-25 03:02:29 +00:00
reboot Reference uefi(8) from i386 boot(8) 2014-11-14 20:12:33 +00:00
recoverdisk
resolvconf
restore
route Eliminate incorrect IPv6 mask guessing: 2015-01-16 11:17:30 +00:00
routed Belatedly commit the patch for SA-14:21 to head. It was not committed to 2015-01-03 01:52:06 +00:00
rtsol
savecore Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
sconfig
setkey Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
shutdown sbin/shutdown: Support time units as in 'shutdown -r +5sec' 2014-12-16 08:29:02 +00:00
spppcontrol
sunlabel Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
swapon Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
sysctl add support for specifying an initial buffer size when fetching a 2015-02-13 01:20:37 +00:00
tests
tunefs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
umount Cross-reference autounmountd(8) from umount(8). 2014-11-22 16:46:00 +00:00
Makefile Remove duplicate MK_ISCSI block and sort the conditional blocks so this error 2015-02-02 10:31:35 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.pc98
Makefile.sparc64