All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl wrong?
@ 2005-09-02 22:38 Adrian Bunk
  2005-09-07  3:12 ` [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-09-02 22:38 UTC (permalink / raw)
  To: ultralinux

Kernel Bugzilla #2683 contains the following report:

<--  snip  -->

Problem Description:
The potential error is detected by a static analysis tool in
/arch/sparc64/kernel/sunos_ioctl32.c:163-168

163   case _IOW('i', 21, struct ifreq): /* SIOCSIFMTU */
164         ret = sys_ioctl(fd, SIOCSIFMTU, arg);
165         goto out;
166   case _IOWR('i', 22, struct ifreq): /* SIOCGIFMTU */
167         ret = sys_ioctl(fd, SIOCGIFMTU, arg);
168         goto out;


May be changed to:
163   case _IOW('i', 21, struct ifreq32): /* SIOCSIFMTU */
164         ret = compat_sys_ioctl(fd, SIOCSIFMTU, arg);
165         goto out;
166   case _IOWR('i', 22, struct ifreq32): /* SIOCGIFMTU */
167         ret = compat_sys_ioctl(fd, SIOCGIFMTU, arg);
168         goto out;


Can anyone confirm whether it is a bug or not?

<--  snip  -->

Please review this issue.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

end of thread, other threads:[~2005-09-07  3:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02 22:38 [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl wrong? Adrian Bunk
2005-09-07  3:12 ` [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.