Date: Mon, 21 May 2001 19:36:47 -0700 (PDT) From: Greg Lehey <grog@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinumrequest.c Message-ID: <200105220236.f4M2alK16427@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
grog 2001/05/21 19:36:47 PDT
Modified files:
sys/dev/vinum vinumrequest.c
Log:
vinumstart: If a write request is for a RAID-[45] plex or a volume
with more than one plex, the data will be accessed
multiple times. During this time, userland code could
potentially modify the buffer, thus causing data
corruption. In the case of a multi-plexed volume this
might be cosmetic, but in the case of a RAID-[45] plex it
can cause severe data corruption which only becomes
evident after a drive failure. Avoid this situation by
making a copy of the data buffer before using it.
Note that this solution does not guarantee any particular
content of the buffer, just that it remains unchanged for
the duration of the request.
Suggested by: alfred
Revision Changes Path
1.55 +23 -13 src/sys/dev/vinum/vinumrequest.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105220236.f4M2alK16427>
