Skip to contentSkip to conversation

disable sys32_{iopl,ioperm}

PATCH New Arun Sharma 1 participant 1 message Sep 10, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 disable sys32_{iopl,ioperm}

The attached patch disables syscalls sys32_iopl() and sys32_ioperm() on ia64. Current code is not safe and no one is complaining. So we think it's better to disable it.

-Arun

Disable syscalls sys32_iopl() and sys32_ioperm() on ia64. To emulate these 2 syscalls correctly, we need to guarantee uncached memory attributes on ia64, which is difficult. The only user of this interface that we know of is X. So we think it's better to disable it.

arch/ia64/ia32/ia32_entry.S +2 -2
diff -purN linux-2.6.8/arch/ia64/ia32/ia32_entry.S linux-2.6.8-io/arch/ia64/ia32/ia32_entry.S
@@ -311,7 +311,7 @@ ia32_syscall_table:
 	data8 sys_ni_syscall	  /* old profil syscall holder */
 	data8 compat_sys_statfs
 	data8 compat_sys_fstatfs	  /* 100 */
-	data8 sys32_ioperm
+	data8 sys_ni_syscall	/* ioperm */
 	data8 compat_sys_socketcall
 	data8 sys_syslog
 	data8 compat_sys_setitimer
@@ -320,7 +320,7 @@ ia32_syscall_table:
 	data8 compat_sys_newlstat
 	data8 compat_sys_newfstat
 	data8 sys_ni_syscall
-	data8 sys32_iopl		  /* 110 */
+	data8 sys_ni_syscall	/* iopl */	/* 110 */
 	data8 sys_vhangup
 	data8 sys_ni_syscall		/* used to be sys_idle */
 	data8 sys_ni_syscall
arch/ia64/ia32/sys_ia32.c +0 -67

73 lines not on this page · raw message