freebsd-dev/sbin/camcontrol
Kenneth D. Merry 8220f9ac52 For CCBs allocated on the stack, we need to clear the entire CCB, not just
the header.  Otherwise stack garbage can lead to random flags getting set.

This showed up as 'camcontrol rescan all' failing with EINVAL because the
address type wasn't CAM_DATA_VADDR.

sbin/camcontrol/camcontrol.c:
	In rescan_or_reset_bus(), bzero the stack-allocated CCBs before
	use instead of clearing the body.

MFC after:	3 days
Sponsored by:	Spectra Logic
2016-10-20 19:42:26 +00:00
..
attrib.c Fix multiple Coverity Out-of-bounds access false postive issues in CAM 2016-05-24 00:57:11 +00:00
camcontrol.8 Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
camcontrol.c For CCBs allocated on the stack, we need to clear the entire CCB, not just 2016-10-20 19:42:26 +00:00
camcontrol.h Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
epc.c Fix a couple of new instances of a false positive Coverity buffer 2016-05-25 15:43:01 +00:00
fwdownload.c Fix multiple Coverity Out-of-bounds access false postive issues in CAM 2016-05-24 00:57:11 +00:00
Makefile Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
modeedit.c Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so the 2015-10-25 04:37:00 +00:00
persist.c Fix multiple Coverity Out-of-bounds access false postive issues in CAM 2016-05-24 00:57:11 +00:00
progress.c Use nitems() from sys/param.h. 2016-04-19 11:12:57 +00:00
progress.h Add progress.c and progress.h, missed in the previous commit to camcontrol. 2012-06-20 04:11:34 +00:00
util.c Fix build. 2011-11-25 07:11:02 +00:00
zone.c Fix a couple of new instances of a false positive Coverity buffer 2016-05-25 15:43:01 +00:00