Re: [UPDATED PATCH] fix memory corruption from misinterpretedbad_inode_ops return values

From: Andrew Morton
Date: Thu Jan 04 2007 - 18:07:36 EST


On Thu, 4 Jan 2007 14:35:09 -0800 (PST)
Linus Torvalds <torvalds@xxxxxxxx> wrote:

> Anybody want to send in the patch that just generates separate versions
> for
>
> loff_t eio_llseek(struct file *file, loff_t offset, int origin)
> {
> return -EIO;
> }
>
> int eio_readdir(struct file *filp, void *dirent, filldir_t filldir)
> {
> return -EIO;
> ..
>

That's what I currently have queued. It increases bad_inode.o text from
200-odd bytes to 700-odd :(

<looks at sys_ni_syscall>
-
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/