Re: 2.6.11-rc3: Kylix application no longer works?

From: Stephen Hemminger
Date: Tue Feb 08 2005 - 14:17:07 EST


On Tue, 8 Feb 2005 18:51:06 +0100
Pavel Machek <pavel@xxxxxx> wrote:

> Hi!
>
> > I wonder if reverting the patch will restore the old behaviour?
>
> This seems to be minimal fix to get Kylix application back to the
> working state... Maybe it is good idea for 2.6.11?
>
> Signed-off-by: Pavel Machek <pavel@xxxxxxx>
> Pavel
>
> --- clean/fs/binfmt_elf.c 2005-02-03 22:27:19.000000000 +0100
> +++ linux/fs/binfmt_elf.c 2005-02-08 18:46:38.000000000 +0100
> @@ -803,11 +803,8 @@
> nbyte = ELF_MIN_ALIGN - nbyte;
> if (nbyte > elf_brk - elf_bss)
> nbyte = elf_brk - elf_bss;
> - if (clear_user((void __user *) elf_bss + load_bias, nbyte)) {
> - retval = -EFAULT;
> - send_sig(SIGKILL, current, 0);
> - goto out_free_dentry;
> - }
> + if (clear_user((void __user *) elf_bss + load_bias, nbyte))
> + printk(KERN_ERR "Error clearing BSS, wrong ELF executable? (Kylix?!)\n");

do once or rate limit rather than log spamming.

--
Stephen Hemminger <shemminger@xxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/