Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   cube
Date:           Tue Jun 26 15:22:24 UTC 2007

Modified Files:
        src/sys/dev: ccd.c cgd.c dksubr.c dkvar.h
        src/sys/dev/raidframe: rf_copyback.c rf_disks.c rf_reconstruct.c

Log Message:
Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().

While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

The issue has been there since last august, I'm actually a bit surprised
that no one in the meantime has used ccd(4) or cgd(4) on an arch where it
would have simply faulted.


To generate a diff of this commit:
cvs rdiff -r1.119 -r1.120 src/sys/dev/ccd.c
cvs rdiff -r1.44 -r1.45 src/sys/dev/cgd.c
cvs rdiff -r1.28 -r1.29 src/sys/dev/dksubr.c
cvs rdiff -r1.10 -r1.11 src/sys/dev/dkvar.h
cvs rdiff -r1.37 -r1.38 src/sys/dev/raidframe/rf_copyback.c
cvs rdiff -r1.65 -r1.66 src/sys/dev/raidframe/rf_disks.c
cvs rdiff -r1.95 -r1.96 src/sys/dev/raidframe/rf_reconstruct.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index