* tun new missing ioctl32
@ 2009-01-29 23:43 Michael Tokarev
2009-01-30 0:06 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2009-01-29 23:43 UTC (permalink / raw)
To: netdev
Just saw in dmesg:
ioctl32(kvm:4408): Unknown cmd fd(9) cmd(800454cf){t:'T';sz:4} arg(ffc668e4) on /dev/net/tun
I guess it's the recent stuff, TUNSETOFFLOAD perhaps, which is
missing compat_ioctl entry... Who knows this area, care to fix
it please? :)
(Yes, 32bit userspace on 64bit kernel)
Thanks!
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tun new missing ioctl32
2009-01-29 23:43 tun new missing ioctl32 Michael Tokarev
@ 2009-01-30 0:06 ` David Miller
2009-01-30 0:53 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2009-01-30 0:06 UTC (permalink / raw)
To: mjt; +Cc: netdev
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Fri, 30 Jan 2009 02:43:53 +0300
> Just saw in dmesg:
>
> ioctl32(kvm:4408): Unknown cmd fd(9) cmd(800454cf){t:'T';sz:4} arg(ffc668e4) on /dev/net/tun
>
> I guess it's the recent stuff, TUNSETOFFLOAD perhaps, which is
> missing compat_ioctl entry... Who knows this area, care to fix
> it please? :)
I'll take a look at this, thanks for the report.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tun new missing ioctl32
2009-01-30 0:06 ` David Miller
@ 2009-01-30 0:53 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-01-30 0:53 UTC (permalink / raw)
To: mjt; +Cc: netdev
From: David Miller <davem@davemloft.net>
Date: Thu, 29 Jan 2009 16:06:00 -0800 (PST)
> From: Michael Tokarev <mjt@tls.msk.ru>
> Date: Fri, 30 Jan 2009 02:43:53 +0300
>
> > Just saw in dmesg:
> >
> > ioctl32(kvm:4408): Unknown cmd fd(9) cmd(800454cf){t:'T';sz:4} arg(ffc668e4) on /dev/net/tun
> >
> > I guess it's the recent stuff, TUNSETOFFLOAD perhaps, which is
> > missing compat_ioctl entry... Who knows this area, care to fix
> > it please? :)
>
> I'll take a look at this, thanks for the report.
This should fix it:
tun: Add some missing TUN compat ioctl translations.
Based upon a report from Michael Tokarev <mjt@tls.msk.ru>:
Just saw in dmesg:
ioctl32(kvm:4408): Unknown cmd fd(9) cmd(800454cf){t:'T';sz:4} arg(ffc668e4) on /dev/net/tun
Signed-off-by: David S. Miller <davem@davemloft.net>
---
fs/compat_ioctl.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 5235c67..c8f8d59 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -538,6 +538,7 @@ static int dev_ifsioc(unsigned int fd, unsigned int cmd, unsigned long arg)
* cannot be fixed without breaking all existing apps.
*/
case TUNSETIFF:
+ case TUNGETIFF:
case SIOCGIFFLAGS:
case SIOCGIFMETRIC:
case SIOCGIFMTU:
@@ -1982,6 +1983,11 @@ COMPATIBLE_IOCTL(TUNSETNOCSUM)
COMPATIBLE_IOCTL(TUNSETDEBUG)
COMPATIBLE_IOCTL(TUNSETPERSIST)
COMPATIBLE_IOCTL(TUNSETOWNER)
+COMPATIBLE_IOCTL(TUNSETLINK)
+COMPATIBLE_IOCTL(TUNSETGROUP)
+COMPATIBLE_IOCTL(TUNGETFEATURES)
+COMPATIBLE_IOCTL(TUNSETOFFLOAD)
+COMPATIBLE_IOCTL(TUNSETTXFILTER)
/* Big V */
COMPATIBLE_IOCTL(VT_SETMODE)
COMPATIBLE_IOCTL(VT_GETMODE)
@@ -2573,6 +2579,7 @@ HANDLE_IOCTL(SIOCGIFPFLAGS, dev_ifsioc)
HANDLE_IOCTL(SIOCGIFTXQLEN, dev_ifsioc)
HANDLE_IOCTL(SIOCSIFTXQLEN, dev_ifsioc)
HANDLE_IOCTL(TUNSETIFF, dev_ifsioc)
+HANDLE_IOCTL(TUNGETIFF, dev_ifsioc)
HANDLE_IOCTL(SIOCETHTOOL, ethtool_ioctl)
HANDLE_IOCTL(SIOCBONDENSLAVE, bond_ioctl)
HANDLE_IOCTL(SIOCBONDRELEASE, bond_ioctl)
--
1.6.1.2.253.ga34a
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-30 0:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 23:43 tun new missing ioctl32 Michael Tokarev
2009-01-30 0:06 ` David Miller
2009-01-30 0:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).