mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* patch for IA64: fix do_sys32_msgrcv bad address error.
@ 2002-09-05 14:16 R Sreelatha
  2002-09-05 14:26 ` David S. Miller
  2002-09-05 16:51 ` David Mosberger
  0 siblings, 2 replies; 5+ messages in thread
From: R Sreelatha @ 2002-09-05 14:16 UTC (permalink / raw)
  To: linux-kernel

In sys_ia32.c file, in the do_sys32_msgrcv() function call,  the value of
ipck.msgp is interpreted as a 64 bit address, whereas it is a 32 bit
address.
Hence, do_sys32_msgrcv() finally returns EFAULT(bad address) error.
The patch below takes care of this by type casting ipck.msgp to type u32.
The patch is created for 2.5.32 version of the kernel.

--- arch/ia64/ia32/sys_ia32.c Thu Sep  5 19:13:02 2002
+++ /home/sree/bug1054/sys_ia32.c   Thu Sep  5 19:12:08 2002
@@ -2263,7 +2263,7 @@
            err = -EFAULT;
            if (copy_from_user(&ipck, uipck, sizeof(struct ipc_kludge)))
                  goto out;
-           uptr = (void *)A(ipck.msgp);
+           uptr = (void *)A((u32)ipck.msgp);
            msgtyp = ipck.msgtyp;
      }
      err = -ENOMEM;


I am not subscribed to lkml. Please send your replies to
"rsreelat@in.ibm.com".

regards,
Sreelatha




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-06  3:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-05 14:16 patch for IA64: fix do_sys32_msgrcv bad address error R Sreelatha
2002-09-05 14:26 ` David S. Miller
2002-09-05 16:51 ` David Mosberger
2002-09-05 16:43   ` [Linux-ia64] " Don Dugger
2002-09-06  3:19     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®