mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oleg Verych <olecom@flower.upol.cz>
To: Oliver Neukum <oliver@neukum.org>
Cc: linux-usb-devel@lists.sourceforge.net, Greg KH <greg@kroah.com>,
	Dale Martenson <dmartenson@multitech.com>,
	Al Borchers <alborchers@steinerpoint.com>,
	LKML <linux-kernel@vger.kernel.org>,
	mit-devel@lists.printk.net
Subject: dlopen-like facility for conditional loading of symbols in modules (Re: Firmware for new ti_usb_3410_5052 devices)
Date: Sat, 3 Mar 2007 14:31:55 +0100	[thread overview]
Message-ID: <20070303133155.GM16509@flower.upol.cz> (raw)
In-Reply-To: <200703030840.26982.oliver@neukum.org>

On Sat, Mar 03, 2007 at 08:40:26AM +0100, Oliver Neukum wrote:
> Am Samstag, 3. M?rz 2007 01:29 schrieb Greg KH:
> > On Sat, Mar 03, 2007 at 01:27:07AM +0100, Oleg Verych wrote:
> > > 
> > > If you can proof that it doesn't influence kernel's control above system
> > > hardware. Ironically such stuff in the userspace can give additional
> > > intrusion way to the kernel.
> > 
> > Do you know of any way to use the firmware interface to the kernel for
> > intrusion?  If so, please let us know and we will fix it.
> 
> If you can determine firmware for a block device whose filesystem is
> then mounted with suid allowed or whose files root runs, you've rooted
> the box.
> Firmware needs the same level of protection as kernel modules on disk. This
> is a basic feature of the system and can't be avoided. If you are paranoid
> enough to compile your kernel without module loading, you also have
> to disable firmware loading for block (and net due to nfs/cifs) devices.

Maybe modules' dlopen() like facility would be better to handle static
firmware or any other on-demand static data like ID tables etc.?

I.e. some additional flag for an exported symbol (in a module), that
this symbol maybe dynamically requested and used. As far as i can see,
depmod generates static map, unresolved symbols must be in the kernel
(System.map).

It will solve problem of having multiple unneeded firmware images if
driver handles many devices and firmware is allowed to be in the
kernel. No need in additional secure infrastructure.

p.s. LKML, mit-devel added. Maybe this can be done easily and somebody
     knows that.
____

       reply	other threads:[~2007-03-03 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1172824155.45e7e05b7980e@my.visi.com>
     [not found] ` <20070303002707.GJ16509@flower.upol.cz>
     [not found]   ` <20070303002957.GA1966@kroah.com>
     [not found]     ` <200703030840.26982.oliver@neukum.org>
2007-03-03 13:31       ` Oleg Verych [this message]
2007-03-04  2:51         ` H. Peter Anvin
2007-03-04 15:03           ` Oleg Verych

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=20070303133155.GM16509@flower.upol.cz \
    --to=olecom@flower.upol.cz \
    --cc=alborchers@steinerpoint.com \
    --cc=dmartenson@multitech.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mit-devel@lists.printk.net \
    --cc=oliver@neukum.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

all inboxes | Powered by JetHome®