linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.4.22-rc2] x86-64 register_ioctl32_conversion() breakage
@ 2003-08-19 22:59 Mikael Pettersson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Pettersson @ 2003-08-19 22:59 UTC (permalink / raw)
  To: ak; +Cc: linux-kernel

include/asm-x86_64/ioctl32.h states:

/* 
 * Register an 32bit ioctl translation handler for ioctl cmd.
 *
 * handler == NULL: use 64bit ioctl handler.
 * arguments to handler:  fd: file descriptor
 *                        cmd: ioctl command.
 *                        arg: ioctl argument
 *                        struct file *file: file descriptor pointer.
 */ 

extern int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *));

The "handler == NULL" comment is true in 2.6 kernels (sys_ioctl()
get called, which is what we want for compatible ioctls), but not
in 2.4.22-rc2, where instead sys32_ioctl() oopses because it calls
a NULL function pointer. (I found that out when testing ia32
compatibility in the latest version of the perfctr driver.)

Either ia32_ioctl.c or the comment in ioctl32.h is wrong and should
be fixed. I'd prefer the code to work as in 2.6 since that avoids
#if LINUX_VERSION_CODE crap and dummy ioctl handlers.

/Mikael

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

* Re: [2.4.22-rc2] x86-64 register_ioctl32_conversion() breakage
       [not found] <mnM6.1z1.7@gated-at.bofh.it>
@ 2003-08-19 23:35 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2003-08-19 23:35 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: linux-kernel

Mikael Pettersson <mikpe@csd.uu.se> writes:

> Either ia32_ioctl.c or the comment in ioctl32.h is wrong and should
> be fixed. I'd prefer the code to work as in 2.6 since that avoids
> #if LINUX_VERSION_CODE crap and dummy ioctl handlers.

I fixed it in x86-64.org CVS for 2.4, but it will take some time
to propagate into the various trees. I doubt it will be in 
2.4.22-final.

-Andi

P.S.: The better list would be discuss@x86-64.org, not l-k

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

end of thread, other threads:[~2003-08-19 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-19 22:59 [2.4.22-rc2] x86-64 register_ioctl32_conversion() breakage Mikael Pettersson
     [not found] <mnM6.1z1.7@gated-at.bofh.it>
2003-08-19 23:35 ` Andi Kleen

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).