Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jul 2005 00:44:11 -0000
From:      staylor@mrynet.com (User Staylor)
To:        freebsd-current@freebsd.org, freebsd-geom@freebsd.org
Subject:   GEOM will panic 6.0-current on userland wrong-length disk reads
Message-ID:  <200410140521.i9E5L06d001096@mrynet.com>

next in thread | raw e-mail | index | archive | help
Just discovered (and verified with latest build on 
current.freebsd.org) that the following will panic
the new GEOM fdc driver in 6.0-current:

# dd if=/dev/fd0 bs=55 
panic: wrong length 55 for sectorsize 512

And further checking, discovered that ALL disk devices will cause
a panic:

dd if=/dev/ad0 bs=1234
panic: wrong length 1234 for sectorsize 512

Perhaps this is geom's way of complaining?  Seems a rather radical
way to handle non-matching-blocksize reads of disk devices.  A
simple programming error reading a disk dev node will panic the
machine.

-scott
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410140521.i9E5L06d001096>