public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, zaitcev@redhat.com
Subject: Re: Binary sysfs blobs
Date: Wed, 12 Apr 2006 03:34:13 -0700	[thread overview]
Message-ID: <20060412033413.6fa5dd54.zaitcev@redhat.com> (raw)
In-Reply-To: <20060411204203.GA6177@kroah.com>

On Tue, 11 Apr 2006 13:42:03 -0700, Greg KH <greg@kroah.com> 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

      reply	other threads:[~2006-04-12 10:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 18:08 Binary sysfs blobs Pete Zaitcev
2006-04-11 18:57 ` Jesse Barnes
2006-04-11 20:42 ` Greg KH
2006-04-12 10:34   ` Pete Zaitcev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060412033413.6fa5dd54.zaitcev@redhat.com \
    --to=zaitcev@redhat.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox