Module Name: src Committed By: martin Date: Fri Aug 12 15:18:13 UTC 2022
Modified Files: src/sys/dev/raidframe [netbsd-9]: rf_disks.c rf_driver.c rf_netbsdkintf.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1500): sys/dev/raidframe/rf_driver.c: revision 1.140 (patch) sys/dev/raidframe/rf_disks.c: revision 1.93 (patch) sys/dev/raidframe/rf_netbsdkintf.c: revision 1.408 (patch) raidframe: reject invalid values for numCol and numSpares numCol and numSpares are "int" so they can be "-1" internally, which means negative values need to be rejected, as well as values higher than RF_MAXCOL/RF_MAXSPARES. explicitly nul-terminate all strings coming from userland. some minor CSE that avoids signed arith. this fixes issues in the RAIDFRAME_ADD_HOT_SPARE, RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT, RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE ioctl commands. ok oster@ riastradh@ To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.91.4.1 src/sys/dev/raidframe/rf_disks.c cvs rdiff -u -r1.135 -r1.135.4.1 src/sys/dev/raidframe/rf_driver.c cvs rdiff -u -r1.376.4.2 -r1.376.4.3 src/sys/dev/raidframe/rf_netbsdkintf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.