Re: [patch 03/26] sysfs: zero terminate sysfs write buffers (CVE-2006-1055)

From: Valdis . Kletnieks
Date: Wed Apr 05 2006 - 15:58:48 EST


On Wed, 05 Apr 2006 16:39:57 BST, Al Viro said:

> How about _NOT_ using sysfs and just having ->read()/->write() on a file in fs
> of your own? ~20 lines for all of it, not counting #include...

Great. Instead of everybody using the same piece-of-manure sysfs interface,
each driver carries around its 20 lines to implement read() and write() in
subtly buggy and incompatible ways.

% grep nodev /proc/filesystems | wc -l
19

That's fsck'ing insane already.

Attachment: pgp00000.pgp
Description: PGP signature