Skip to contentSkip to conversation

IA-32 emulation patch: semctl.patch

Linux-ia64 Arun Sharma 2 participants 2 messages May 23, 2003 – May 29, 2003

lore
Share & tools
lore
#0 lore raw

semctl doesn't check for bad command.
This patch is in 2.5 already. Bjorn, could you please apply it to 2.4 ?

-Arun

=== linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c 1.16 vs edited ==--- 1.16/arch/ia64/ia32/sys_ia32.c Fri Apr 18 10:55:20 2003
+++ edited/linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c Thu May 22 17:57:38 2003
@@ -2167,6 +2167,9 @@
else
fourth.__pad = (void *)A(pad);
switch (third) {
+ default:
+ err = -EINVAL;
+ break;
case IPC_INFO:
case IPC_RMID:
case IPC_SET:

#1 lore raw
Quoted 2 lines · Arun Sharma

semctl doesn't check for bad command.
This patch is in 2.5 already. Bjorn, could you please apply it to 2.4 ?

Done, thanks!