1、compat_ioctl:支持64bit的driver必须要实现的ioctl,当有32bit的userspace application call 64bit kernel的IOCTL的时候,这个callback会被调用到。如果没有实现compat_ioctl,那么32位的用户程序在64位的kernel上执行ioctl时会返回错误:Not a typewriter 2、如果是64位的用户程序运行在64位的kernel上,调用的是unlocke...
我们可以看到unlocked_ioctl 和 compat_ioctl这2个函数的最后一个参数是 unsigned long类型的,long类型在不同的架构下面的长度是不同的,在32位平台下是4字节,64位平台下就是8个字节,当32位的应用程序使用ioctl系统调用时,传了4个字节的参数,到驱动中,应该是8个字节,这样就产生了不兼容,为了不影响64位的应用程...
long (*compat_ioctl) (struct file *, unsigned int, unsigned long); ... ... }; 注意: 1、compat_ioctl:支持64bit的driver必须要实现的ioctl,当有32bit的userspace application call 64bit kernel的IOCTL的时候,这个callback会被调用到。如果没有实现compat_ioctl,那么32位的用户程序在64位的kernel上执行...
1、compat_ioctl:支持64bit的driver必须要实现的ioctl,当有32bit的userspace application call 64bit kernel的IOCTL的时候,这个callback会被调用到。如果没有实现compat_ioctl,那么32位的用户程序在64位的kernel上执行ioctl时会返回错误:Not a typewriter 2、如果是64位的用户程序运行在64位的kernel上,调用的是unlocke...
long (*compat_ioctl) (struct file *, unsigned int, unsigned long); ... 1. 2. 3. 4. 5. 在kernel 2.6.36中已经完全删除了struct file_operation中的ioctl指针,取而代之的是unlocked_ioctl。 AI检测代码解析 struct file_operations { long (*unlocked_ioctl) (struct file *, unsigned int, unsigne...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
#include <linux/compat.h> #include <asm/prom.h> #include <asm/machdep.h> #include <asm/io.h> @@ -2349,11 +2350,52 @@ static long pmu_unlocked_ioctl(struct file *filp, return ret; } #ifdef CONFIG_COMPAT #define PMU_IOC_GET_BACKLIGHT32 _IOR('B', 1, compat_size_t) #define...
支持Adaptec RAID控制器及compat mode(CONFIG_COMPAT)的Linux kernel 2.6.32.61, 2.6.34.14, 3.2.52, 3.4.67, 3.10.17, 3.11.6没有对compat ioctl例程进行验证,可导致绕过安全限制并执行未授权操作。 BUGTRAQ-ID:63888 CVE-ID:2013-6383 受影响系统: ...
cshook_systemcalltable_pre_compat_sys_ioctl+0xd121/0x30840 [falcon_lsm_serviceable] [15414404.363494] [<ffffffffc0d69d6e>] cshook_systemcalltable_pre_compat_sys_ioctl+0x87de/0x30840 [falcon_lsm_serviceable] [15414404.364356] [<ffffffffc0d78347>] cshook_systemcalltable_pre_compat_sys_ioctl...
Message-ID: <515F6753.8080906@redhat.com> Date: Fri, 05 Apr 2013 18:07:47 -0600 From: Kurt Seifried <kseifried@...hat.com> To: oss-security@...ts.openwall.com CC: Marcus Meissner <meissner@...e.de> Subject: Re: CVE Request: kernel information leak in fs/compat_ioctl.c VIDEO_SE...