From: Adrian Bunk <bunk@stusta.de>
To: ultralinux@vger.kernel.org
Subject: [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl wrong?
Date: Fri, 02 Sep 2005 22:38:16 +0000 [thread overview]
Message-ID: <20050902223816.GC3657@stusta.de> (raw)
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
next reply other threads:[~2005-09-02 22:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-02 22:38 Adrian Bunk [this message]
2005-09-07 3:12 ` [Bug 2683] arch/sparc64/kernel/sunos_ioctl32.c: sys_ioctl David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050902223816.GC3657@stusta.de \
--to=bunk@stusta.de \
--cc=ultralinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.