Porting 32bit IOCTL on 64bit Architecture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am working on a char device driver for which I've implemented bunch of IOCTL commands. It works great under 32bit architecture. It compiles great against 64bit architecture and loads into the kernel without any problems but when I run the (user) program that makes use of those IOCTLs it gives me segmentation fault:

showcmd[6620]: segfault at 00000000000411d0 rip 00000000000411d0 rsp 00000000ffc1e774 error 14
Segmentation fault

The user program (`showcmd`) is ELF-32 executable being run on 64bit kernel. The kernel module was cross-compiled against 64bit kernel tree.
I googled it but found some stuff which is already depreciated ((un)register_ioctl32_conversion).

Any ideas??

Thanks for your help :)

Tejas.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux