Skip to contentSkip to conversation

ctx64 is not initiated in sys32_io_setup

DISCUSSION Andi Kleen 1 participant 1 message Oct 11, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 8 lines · Yanmin

Kernel 2.6.9-rc3-mm3 has a bug in function sys32_io_setup in file arch/x86_64/ia32/sys_ia32.c. Local variable ctx64 is not initiated before sys32_io_setup calls sys_io_setup. If ctx64 is not zero, and sys_io_setup will return -EINVAL. Generic function compat_sys_io_setup has not the bug.

Here is the patch against 2.6.9-rc3-mm3. Just use compat_sys_io_setup to replace sys32_io_setup.

Thanks merged (by hand because your patch was MIME damaged) Please put me in cc in future x86-64 patches, otherwise it's possible that I miss them.

-Andi