]> git.hungrycats.org Git - linux/commit
[PATCH] copy_mount_options size fix
authorAndrew Morton <akpm@osdl.org>
Fri, 27 Aug 2004 03:34:16 +0000 (20:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:34:16 +0000 (20:34 -0700)
commit6e7ca99d18d0b57aecbd760a422ab42ea256f634
treec5ce65dc3bc17e2d9eb1a305b4eeb4052f2eee78
parentd00e2ab5ad7d0cdd058ceabcd017f7703810f36c
[PATCH] copy_mount_options size fix

davem says that copy_mount_options is failing in obscure ways if the
architecture's copy_from_user() doesn't return an exact count of the number of
uncopied bytes.

Fixing that up in each architecture is a pain - it involves falling back to
byte-at-a-time copies.

It's simple to open-code this in namespace.c.  If we find other places in the
kernel which care about this we can promote this to a global function.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namespace.c