* [TPM] broken /proc/misc entry
@ 2005-06-23 18:41 Jochen Hein
0 siblings, 0 replies; only message in thread
From: Jochen Hein @ 2005-06-23 18:41 UTC (permalink / raw)
To: linux-kernel; +Cc: kjhall, tpmdd-devel
On my system I do have configured:
root@hermes:/dev# grep TPM /usr/src/linux-2.6.12/.config
# TPM devices
CONFIG_TCG_TPM=m
TPM is loaded:
root@hermes:/dev# lsmod | grep tpm
tpm_nsc 6272 0
tpm_atmel 4992 0
tpm 10496 2 tpm_nsc,tpm_atmel
/proc/misc contains:
root@hermes:/dev# cat /proc/misc
224
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ!
63 device-mapper
200 tun
1 psaux
175 agpgart
130 watchdog
144 nvram
135 rtc
After I removed the TPM modules I get:
root@hermes:/dev# rmmod tpm_nsc
root@hermes:/dev# rmmod tpm_atmel
root@hermes:/dev# rmmod tpm
root@hermes:/dev# cat /proc/misc
63 device-mapper
200 tun
1 psaux
175 agpgart
130 watchdog
144 nvram
135 rtc
Why on earth do we need to obfuscate the loaded TPM modules and the
misc minor number in that way? ls -l /dev/tpm gave that away easily.
>From the source:
if (misc_register(&chip->vendor->miscdev)) {
dev_err(&chip->pci_dev->dev,
"unable to misc_register %s, minor %d\n",
chip->vendor->miscdev.name,
chip->vendor->miscdev.minor);
pci_dev_put(pci_dev);
kfree(chip);
dev_mask[i] &= !(1 << j);
return -ENODEV;
}
Maybe it's a bad idea to use &chip->vendor->miscdev for registering
the misc device?
Jochen
--
#include <~/.signature>: permission denied
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-23 18:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-23 18:41 [TPM] broken /proc/misc entry Jochen Hein
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®