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

Re: [microblaze-uclinux] Re: copy_to_user problem



Hi Carsten,

On Thu, Mar 12, 2009 at 6:30 PM, Bartsch Carsten <cbartsch@xxxxxxxxxx> wrote:

It's just to protect ALL the arguments using brackets but the important part is

the pointers.

The macros contain

   (char *)to, (char *)from

and the IPC message code in msgutil.c calls

   copy_from_user(msg + 1, src, alen)

   copy_to_user(dest, msg + 1, alen)

with msg being a pointer to a structure bigger than a char.


Patch is applied to SVN head, thanks.

John
--
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663