Linux MIPS Architecture development
 help / color / mirror / Atom feed
* N32 shmat problem identified! Kernel fix needed.
@ 2006-12-02  0:33 Kaz Kylheku
  2006-12-02  0:33 ` Kaz Kylheku
  2006-12-02  2:24 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: Kaz Kylheku @ 2006-12-02  0:33 UTC (permalink / raw)
  To: linux-mips

The problem is simple.

The function named sys32_shmat has no reason to exist, and is broken. It
assumes that user space has passed a pointer to the location where the
resulting pointer should be stored. But that is not the shmat API, and
glibc will pass no such parameter. So a null dereference results,
leading to EFAULT.

The fix is to remove this function from the code base and quite simply
to wire the normal sys_shmat into the n32 syscall table. Since there is
in fact no pointer-to-pointer argument, this function doesn't have a 32
bit compatibility issues.

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

end of thread, other threads:[~2006-12-03 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-02  0:33 N32 shmat problem identified! Kernel fix needed Kaz Kylheku
2006-12-02  0:33 ` Kaz Kylheku
2006-12-02  2:24 ` Ralf Baechle
2006-12-03 13:42   ` Atsushi Nemoto

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