Re: Binary sysfs blobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 11 Apr 2006 13:42:03 -0700, Greg KH <[email protected]> wrote:

> No.  Binary sysfs files are for "pass-through" mode only.  You are ONLY
> allowed to use them if you want to read from, or write to, some bit of
> hardware and not manipulate the data at all.  Examples of this is the
> raw PCI config space, firmware binary blobs and BIOS upgrades.

I see. Kind of the opposite of what I thought they were, but it
makes sense. Thanks.

> You should NEVER pass a raw structure through sysfs by using a binary
> file.  If anyone sees anywhere in the current kernel that does this,
> please let me know and I'll go hit them with a big stick...

I dunno how raw this is, but chp_measurement_copy_block and
chp_measurement_read (in drivers/s390/cio/chsc.c) sure look like
passing structures, in 2.6.17-rc1. However, the code does not interpret
the structures, so maybe it's raw enough.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux