]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The sd and od drivers didn't check for negative block numbers (like wd.c
authorpeter <peter@FreeBSD.org>
Fri, 2 Aug 1996 06:10:49 +0000 (06:10 +0000)
committerpeter <peter@FreeBSD.org>
Fri, 2 Aug 1996 06:10:49 +0000 (06:10 +0000)
commit29c65f94fc020b904d22c2d62c0fd3441a8a43fd
tree453571cf75301f95d4ea073cb1b94fc3c4ec1edc
parent6d6a5bd8e18385ece6b7f53423e560479bc9b796
The sd and od drivers didn't check for negative block numbers (like wd.c
does) before calling dscheck().  dscheck() doesn't appreciate this and
calls Debugger() and returns without setting bp->b_error.

This can happen when there is a casting error and offsets > 2G are
converted to negative off_t's in the disk tools.  (dumpfs used to do this).
sys/scsi/od.c
sys/scsi/sd.c