Reproducable readv crash (was Re: 2.1.118 ...)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 31 Aug 1998 21:04:18 +0100 (BST)


> ps. [ do_readv_writev looks a bit scary. It seems to _assume_ the existence
> of file->f_op->read or file->f_op->write and just call it (no function
> pointer check). Is this safe?

To judge from the fsck in progress no

To replicate:
insmod softdog
readv() from /dev/watchdog

Oops=crash

Incidentally this showed another bug - strace isn working as root. Probably relatd
to the fact core dumps are still broken as root.

> readv and writev also return EBADF when say, doing writev on a file
> descriptor opened O_RDONLY. Shouldn't it be EPERM or something? ]

No that bit is right

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html