Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #52083
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Anatoly Pugachev <matorola@gmail.com> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.ports.sparc, linux.debian.kernel |
| Subject | Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs |
| Date | Wed, 06 Jan 2016 21:20:01 +0100 |
| Message-ID | <qO2IN-5Vv-3@gated-at.bofh.it> (permalink) |
| References | <qNaS5-2gZ-7@gated-at.bofh.it> <qNM1j-3de-1@gated-at.bofh.it> <qNXg6-2iB-15@gated-at.bofh.it> |
| X-Original-To | Ben Hutchings <ben@decadent.org.uk> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Wed Jan 6 20:15:10 2016 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -0.638 |
| Reply-To | Anatoly Pugachev <matorola@gmail.com>, 809815@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 809815 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Keywords | moreinfo |
| X-Debian-Pr-Source | linux |
| X-Spam-Bayes | score:0.0000 Tokens: new, 44; hammy, 149; neutral, 208; spammy, 1. spammytokens:0.998-1--sk:memory@ hammytokens:0.000-+--sk:config_, 0.000-+--sk:CONFIG_, 0.000-+--sparc64, 0.000-+--Maintainer, 0.000-+--Severity |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fJHnJYm8xI8oZdkhug7w2whD85KRucwdvACiTY1sEXY=; b=mjrhU/am0rEkeNg/10IsND1k6F5EFuYe2uE6mY1gZh/t3Z9tDupovrrtKk2XAgfIf/ wd8k1hvf+eL0RKkTZ1glzLLXVqMFFmFv1+YsKaM27S1evoVAmvCjTP8dQViOJOc4FOmO 8rKdZDN/v9JnUCucopp/WANgp2aUOFvUhE8NEb+hSjUSW37dPRLDq359tdB7cwR2hQMY Kk/V9I5zUkRp7P8SCRszk0UrYENqL3edXcSmyow/6znvOk+9jFn0jeUBNRF6KdRewWb7 dPLp3xuo7Vi064irTxyo/b0KhWGyR1Z7wkdSTdz72onoe8BI7lVpE/oapQEZ3YJNqASB FbYw== |
| MIME-Version | 1.0 |
| X-Received | by 10.31.41.70 with SMTP id p67mr66439884vkp.20.1452111232316; Wed, 06 Jan 2016 12:13:52 -0800 (PST) |
| Content-Type | text/plain; charset=UTF-8 |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1239037 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 107 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | 809815@bugs.debian.org, debian-sparc <debian-sparc@lists.debian.org> |
| X-Original-Date | Wed, 6 Jan 2016 23:13:52 +0300 |
| X-Original-Message-ID | <CADxRZqy-YpzUCHp95N2Np8_ZCamSeiExTuVgf_z64q8yJo3RVA@mail.gmail.com> |
| X-Original-References | <CADxRZqySh3xK3xYYAP1RoGQJehz85rEKY2p5vM-7tb1MZ5qDCA@mail.gmail.com> <1452047049.2768.106.camel@decadent.org.uk> <CADxRZqzLYC872a6WsDovarSoQca6isEk4VvhL5muonXvSaur4A@mail.gmail.com> |
| Xref | csiph.com linux.debian.bugs.dist:706723 linux.debian.ports.sparc:2619 linux.debian.kernel:52083 |
Cross-posted to 3 groups.
Show key headers only | View raw
On Wed, Jan 6, 2016 at 5:21 PM, Anatoly Pugachev <matorola@gmail.com> wrote:
> On Wed, Jan 6, 2016 at 5:24 AM, Ben Hutchings <ben@decadent.org.uk> wrote:
>> Control: tag -1 moreinfo
>>
>> On Mon, 2016-01-04 at 13:48 +0300, Anatoly Pugachev wrote:
>>> Package: src:linux
>>> Version: 4.3.3-2
>>> Severity: wishlist
>>>
>>> Dear Maintainer,
>>>
>>> Can you please enable CONFIG_TCG_TPM (TPM security chip) and
>>> CONFIG_HW_RANDOM_TPM linux kernel config options (as modules), to
>>> enable hardware RNG device for use in LDOM (containers) of debian
>>> sparc64.
>>>
>>> Right now, there's no hardware RNG provider is available :
>> [...]
>>
>> Both of those are generic TPM code and won't help you without a driver
>> for the specific TPM that's present in LDOMs.
>>
>> I can't find any hint in the kernel source of which driver is needed
>> for an LDOM, even in the UEK patched source, so perhaps it is out-of-
>> tree?
>
> Ben, well,
>
> I'm going to build a generic (vanilla) kernel with this CONFIGs and
> test how it would work. Going to report back soon. Thanks.
Ben,
you was right, this modules does not help.
root@deb4g:/home/mator# lsmod | grep rng
tpm_rng 1020 0
n2_rng 6878 0
rng_core 8172 2 n2_rng,tpm_rng
root@deb4g:/home/mator# cat /sys/class/misc/hw_random/rng_available
tpm-rng
rngd still gives error:
root@deb4g:/home/mator# rngd -f -r /dev/hwrng
error reading from entropy source:: No such device
I don't know, but I probably should report to upstream kernel
bugzilla, about n2_rng, that it does not work.
Openbsd says [1] it does support it (starting from T1 and T2 processors),
Solaris says [2] it does support it (from T2 till M6 processors,
including this machine T5 cpu)
running show-devs from openboot console for this LDOM, i can see
random-number-generator device is being present:
{0} ok show-devs
/cpu@3
/cpu@2
/cpu@1
/cpu@0
/virtual-devices@100
/reboot-memory@0
/iscsi-hba
/virtual-memory
/memory@m0,30000000
/aliases
/options
/openprom
/chosen
/packages
/virtual-devices@100/channel-devices@200
/virtual-devices@100/console@1
/virtual-devices@100/random-number-generator@e
/virtual-devices@100/flashprom@0
/virtual-devices@100/channel-devices@200/virtual-domain-service@0
/virtual-devices@100/channel-devices@200/pciv-communication@0
/virtual-devices@100/channel-devices@200/disk@1
/virtual-devices@100/channel-devices@200/disk@0
/virtual-devices@100/channel-devices@200/network@0
/iscsi-hba/disk
/openprom/client-services
/packages/vnet-helper-pkg
/packages/vdisk-helper-pkg
/packages/obp-tftp
/packages/kbd-translator
/packages/SUNW,asr
/packages/dropins
/packages/terminal-emulator
/packages/disk-label
/packages/deblocker
/packages/SUNW,builtin-drivers
{0} ok
but n2_rng does not see it. I'm going to test a more recent kernel,
instead of 4.1.15. The choice of old 4.1.15 kernel to test, was
because oracle sparc linux is using 4.1.8, and i wanted to test it
first. Compiling 4.4rc8 right now...
Searching on the web, found [3], where cpu is T4 and 4.3.0 kernel, but
n2rng gives more messages on boot.
Sorry for wrong feature request, please close this bug as non-valid. Thanks.
1. http://undeadly.org/cgi?action=article&sid=20090201164147
2. http://prsync.com/oracle/solaris-random-number-generation-570469/
3. https://lkml.org/lkml/2015/10/30/678
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Anatoly Pugachev <matorola@gmail.com> - 2016-01-04 12:00 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Ben Hutchings <ben@decadent.org.uk> - 2016-01-06 03:30 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Anatoly Pugachev <matorola@gmail.com> - 2016-01-06 15:30 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Anatoly Pugachev <matorola@gmail.com> - 2016-01-06 21:20 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Ben Hutchings <ben@decadent.org.uk> - 2016-01-07 04:00 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Anatoly Pugachev <matorola@gmail.com> - 2016-01-07 18:40 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Ben Hutchings <ben@decadent.org.uk> - 2016-01-11 01:20 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Anatoly Pugachev <matorola@gmail.com> - 2016-01-14 01:10 +0100
Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs Ben Hutchings <ben@decadent.org.uk> - 2016-01-14 02:40 +0100
Processed: Re: Bug#809815: [feature request] linux-image-4.3.0-1-sparc64-smp: tpm random module for linux LDOMs owner@bugs.debian.org (Debian Bug Tracking System) - 2016-01-06 03:30 +0100
csiph-web