From: Valdis.Kletnieks@vt.edu
To: Mark Allyn <mark.a.allyn@intel.com>
Cc: linux-kernel@vger.kernel.org, alan@linux.intel.com,
charles.f.johnson@intel.com
Subject: Re: [PATCH] This is the security processor driver for the Intel mid platform
Date: Thu, 09 Jul 2009 10:08:54 -0400 [thread overview]
Message-ID: <6578.1247148534@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Wed, 08 Jul 2009 13:01:02 PDT." <1247083262-17356-1-git-send-email-mark.a.allyn@intel.com>
[-- Attachment #1: Type: text/plain, Size: 2266 bytes --]
On Wed, 08 Jul 2009 13:01:02 PDT, Mark Allyn said:
> This is the driver for the Security Processor (SEP) for the Intel MID Platform.
>
> This device driver is used by userspace applications to use the hardware based
> security processor that is on some Intel Mobile Internet (MID) devices.
This text should probably be repeated...
> diff --git a/drivers/sep/Kconfig b/drivers/sep/Kconfig
> new file mode 100644
> index 0000000..316b79c
> --- /dev/null
> +++ b/drivers/sep/Kconfig
> @@ -0,0 +1,9 @@
> +config DX_SEP
> + tristate "SEP driver"
> + depends on MRST
> + default y
> + help
> + Security Processor driver
> +
> + If unsure say M. The compiled module will be
> + called sep_driver.ko
here, so the poor slob building a kernel has a clue what it's for and whether
he wants one.
Also, if you have a link to a datasheet or other info, that would be nice,
even if it's just up in the changelog section, so those of us that have never
heard of the chipset can get at least a clue how it's supposed to work.
Especially for a 'Security Processor' - it's a *lot* easier to do a code
review knowing what the threat model is. If this chipset doesn't even claim
to protect against some things, then we don't need to look at those threats.
Similarly, if it *does* claim to do X, Y, and Z, we can look at ways those
could be subverted.
I'm *guessing* it does accelerated crypto for network connections, but that's
based on this one comment:
+/*
+ This function builds input and output DMA tables for synhronic
+ symmetric operations (AES, DES). It also checks that each table
+ is of the modular block size
+*/
+int sep_prepare_input_output_dma_table(unsigned long app_virt_in_addr,
Other comments based on a quick read of the code:
There seems to be a *lot* of memory allocation/deallocation code in here (as
in "most of the driver"). Is the chipset design oddball enough that it needs
that much marshalling code, and the existing kernel code isn't suitable?
Looks like it does *all* it's locking under one mutex (&sep_mutex). That's
certainly *workable*, but I can't tell if the expected activity level of the
code is enough that we may want to make it more fine-grained eventually.
I'm sure somebody else will contribute more detailed comments...
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
next prev parent reply other threads:[~2009-07-09 14:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 20:01 Mark Allyn
2009-07-08 23:17 ` Alan Cox
2009-07-09 1:19 ` James Morris
2009-07-09 14:08 ` Valdis.Kletnieks [this message]
2009-07-09 23:21 ` Pavel Machek
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=6578.1247148534@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=alan@linux.intel.com \
--cc=charles.f.johnson@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.a.allyn@intel.com \
/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®