Re: AUDIT of 2.5.15 copy_to/from_user

David S. Miller
2002-06-07T08:58:01Z

From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Sun, 19 May 2002 13:13:41 +0100 (BST)

> arch/sparc/kernel/sys_sunos.c:481: ret = copy_to_user(&name->sname[0], &system_utsname.sysname[0], sizeof(name->sname) - 1);

Very broken.

> arch/sparc64/kernel/sys_sparc32.c:3675: return copy_to_user(res32, kres, sizeof(*res32));

Looks very borked in several other spots

I've taken care of these bits in my tree and double checked each file
in it's entirety.