From: Philipp <pg...@fu...> - 2005-09-23 09:39:19
|
Hi, I have an Infineon TPM. I took a fresh 2.6.13.2 kernel from kernel.org with activated TPM support: Linux version 2.6.13.2-default (philipp@linux) (gcc version 3.3.5 20050117= =20 (prerelease) (SUSE Linux)) #3 Thu Sep 22 13:21:57 CEST 2005 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009f800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000f6d0000 (usable) BIOS-e820: 000000000f6d0000 - 000000000f6e3000 (ACPI data) BIOS-e820: 000000000f6e3000 - 000000000f700000 (ACPI NVS) BIOS-e820: 000000000f700000 - 0000000010000000 (reserved) BIOS-e820: 00000000fec10000 - 00000000fec20000 (reserved) BIOS-e820: 00000000ffb00000 - 00000000ffc00000 (reserved) BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 246MB LOWMEM available. On node 0 totalpages: 63184 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 59088 pages, LIFO batch:31 HighMem zone: 0 pages, LIFO batch:1 DMI 2.3 present. ACPI: RSDP (v000 FUJ ) @ 0x000f5ff0 ACPI: RSDT (v001 FUJ FJPEN18P 0x01040000 FUJ 0x00000100) @ 0x0f6dd324 ACPI: FADT (v001 FUJ FJPEN18P 0x01040000 FUJ 0x00000100) @ 0x0f6e2f8c ACPI: SSDT (v001 FUJ FJPEN18P 0x01040000 INTL 0x20030522) @ 0x0f6e2b10 ACPI: TCPA (v001 FUJ FJPEN18P 0x01040000 FUJ 0x00000100) @ 0x0f6e2f32 ACPI: BOOT (v001 FUJ FJPEN18P 0x01040000 FUJ 0x00000100) @ 0x0f6e2f64 ACPI: DSDT (v001 FUJ FJPEN18P 0x01040000 MSFT 0x0100000e) @ 0x00000000 ACPI: PM-Timer IO Port: 0xfc08 Allocating PCI resources starting at 10000000 (gap: 10000000:eec10000) Built 1 zonelists Kernel command line: root=3D/dev/hda6 selinux=3D0 splash=3Dsilent resume= =3D/dev/hda5 Local APIC disabled by BIOS -- you can enable it with "lapic" mapped APIC to ffffd000 (011ef000) Initializing CPU#0 PID hash table entries: 1024 (order: 10, 16384 bytes) Detected 1100.189 MHz processor. Using pmtmr for high-res timesource Console: colour VGA+ 80x25 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 245684k/252736k available (2677k kernel code, 6476k reserved, 967k= =20 data, 212k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 2202.01 BogoMIPS=20 (lpj=3D4404020) Security Framework v1.0.0 initialized SELinux: Disabled at boot. Mount-cache hash table entries: 512 CPU: After generic identify, caps: afe9f9bf 00000000 00000000 00000000=20 00000180 00000000 00000000 CPU: After vendor identify, caps: afe9f9bf 00000000 00000000 00000000 00000= 180=20 00000000 00000000 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 2048K CPU: After all inits, caps: afe9f9bf 00000000 00000000 00000040 00000180=20 00000000 00000000 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. mtrr: v2.0 (20020519) CPU: Intel(R) Pentium(R) M processor 1.10GHz stepping 06 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. ACPI: setting ELCR to 0200 (from 0800) NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xfd972, last bus=3D3 PCI: Using configuration type 1 ACPI: Subsystem revision 20050408 ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) ACPI: Assume root bridge [\_SB_.PCI0] segment is 0 Boot video device is 0000:00:02.0 PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 PCI: Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 9 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 9 10 *11) ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB_._PRT] Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 13 devices SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=3Drouteirq". If it helps, post a r= eport TC classifier action (bugs to ne...@vg... cc ha...@cy...) Bluetooth: Core ver 2.7 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized PCI: Ignore bogus resource 6 [0:0] of 0000:00:02.0 PCI: Bus 2, cardbus bridge: 0000:01:0a.0 IO window: 00006000-00006fff IO window: 00007000-00007fff PREFETCH window: 10000000-11ffffff MEM window: 18000000-19ffffff PCI: Bus 6, cardbus bridge: 0000:01:0a.1 IO window: 00008000-00008fff IO window: 00009000-00009fff PREFETCH window: 12000000-13ffffff MEM window: 1a000000-1bffffff PCI: Bus 10, cardbus bridge: 0000:01:0a.3 IO window: 0000a000-0000afff IO window: 0000b000-0000bfff PREFETCH window: 14000000-15ffffff MEM window: 1c000000-1dffffff PCI: Bridge: 0000:00:1e.0 IO window: 6000-bfff MEM window: d0200000-d02fffff PREFETCH window: 10000000-15ffffff PCI: Setting latency timer of device 0000:00:1e.0 to 64 ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI: PCI Interrupt 0000:01:0a.0[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 ACPI: PCI Interrupt 0000:01:0a.1[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 PCI: Enabling device 0000:01:0a.3 (0080 -> 0083) ACPI: PCI Interrupt 0000:01:0a.3[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 PCI: Setting latency timer of device 0000:01:0a.3 to 64 Simple Boot Flag at 0x7f set to 0x1 apm: BIOS not found. audit: initializing netlink socket (disabled) audit(1127466661.724:1): initialized Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API Using specific hotkey driver Real Time Clock Driver v1.12 Linux agpgart interface v0.101 (c) Dave Jones agpgart: Detected an Intel 855 Chipset. agpgart: Detected 8060K stolen memory. agpgart: AGP aperture is 128M @ 0xd8000000 tpm_inf 0000:00:1f.0: LPC-bus found at 0x24cc tpm_inf_pnp 00:0a: Found TPM with ID IFX0101 pnp: Device 00:0a does not supported disabling. tpm_inf 0000:00:1f.0: TPM found: config base 0x4e, io base 0x4700, chip=20 version 0006, vendor id 15d1 (Infineon), product id 0006 (SLD 9630 TT 1.1) intelfb: Framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G/915G=20 chipsets intelfb: Version 0.9.2 ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 intelfb: 00:02.0: Intel(R) 855GME, aperture size 128MB, stolen memory 8060kB intelfb: Non-CRT device is enabled ( LVDS port ). Disabling mode switching. intelfb: Video mode must be programmed at boot time. PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 i8042.c: Detected active multiplexing controller, rev 1.9. serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled ttyS3 at I/O 0x2e8 (irq =3D 3) is a 16550A ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:1f.6[B] -> Link [LNKB] -> GSI 11 (level, low) -= >=20 IRQ 11 ACPI: PCI interrupt for device 0000:00:1f.6 disabled io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize loop: loaded (max 8 devices) tg3.c:v3.37 (August 25, 2005) ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11 ACPI: PCI Interrupt 0000:01:0c.0[A] -> Link [LNKE] -> GSI 11 (level, low) -= >=20 IRQ 11 eth0: Tigon3 [partno(BCM95788MT58) rev 3003 PHY(5705)] (PCI:33MHz:32-bit)=20 10/100/1000BaseT Ethernet 00:0b:5d:92:19:18 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[0] TSOcap= [1]=20 eth0: dma_rwctrl[763f0000] Linux video capture interface: v1.00 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=3D= xx ICH4: IDE controller at PCI slot 0000:00:1f.1 PCI: Enabling device 0000:00:1f.1 (0005 -> 0007) ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 11 (level, low) -= >=20 IRQ 11 ICH4: chipset revision 3 ICH4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x4810-0x4817, BIOS settings: hda:DMA, hdb:pio Probing IDE interface ide0... hda: FUJITSU MHT2080AH, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... hda: max request size: 128KiB hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=3D65535/16/63, UDMA(= 100) hda: cache flushes supported hda: hda1 hda2 hda3 < hda5 hda6 > Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver ov511 drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver mice: PS/2 mouse device common for all mice input: PC Speaker NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered TCP bic registered NET: Registered protocol family 1 Using IPI Shortcut mode swsusp: Suspend partition has wrong signature? ACPI wakeup devices:=20 HUB A97M=20 ACPI: (supports S0 S3 S4 S5) ReiserFS: hda6: found reiserfs format "3.6" with standard journal input: AT Translated Set 2 keyboard on isa0060/serio0 ReiserFS: hda6: using ordered data mode ReiserFS: hda6: journal params: device hda6, size 8192, journal first block= =20 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hda6: checking transaction log (hda6) ReiserFS: hda6: Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. =46reeing unused kernel memory: 212k freed Adding 481908k swap on /dev/hda5. Priority:42 extents:1 NTFS driver 2.1.23 [Flags: R/W MODULE]. NTFS volume version 3.1. NTFS volume version 3.1. Capability LSM initialized ieee1394: Initialized config rom entry `ip1394' ieee1394: raw1394: /dev/raw1394 device initialized ohci1394: $Rev: 1299 $ Ben Collins <bco...@de...> ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11 ACPI: PCI Interrupt 0000:01:0e.0[A] -> Link [LNKF] -> GSI 11 (level, low) -= >=20 IRQ 11 ohci1394: fw-host0: Unexpected PCI resource length of 1000! ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=3D[11] MMIO=3D[d0212000-d0212= 7ff] =20 Max Packet=3D[2048] video1394: Installed video1394 module ieee1394: Host added: ID:BUS[0-00:1023] GUID[00000e10030e1672] ACPI: PCI Interrupt 0000:01:0a.0[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 Yenta: CardBus bridge found at 0000:01:0a.0 [10cf:11c4] Yenta O2: res at 0x94/0xD4: ea/00 Yenta O2: enabling read prefetch/write burst Yenta: ISA IRQ mask 0x04b8, PCI irq 11 Socket status: 30000006 pcmcia: parent PCI bridge I/O window: 0x6000 - 0xbfff cs: IO port probe 0x6000-0xbfff: clean. pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xd02fffff pcmcia: parent PCI bridge Memory window: 0x10000000 - 0x15ffffff ACPI: PCI Interrupt 0000:01:0a.1[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 Yenta: CardBus bridge found at 0000:01:0a.1 [10cf:11c4] Yenta: ISA IRQ mask 0x04b8, PCI irq 11 Socket status: 30000410 pcmcia: parent PCI bridge I/O window: 0x6000 - 0xbfff cs: IO port probe 0x6000-0xbfff: clean. pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xd02fffff pcmcia: parent PCI bridge Memory window: 0x10000000 - 0x15ffffff ACPI: PCI Interrupt 0000:01:0a.3[A] -> Link [LNKA] -> GSI 11 (level, low) -= >=20 IRQ 11 Yenta: CardBus bridge found at 0000:01:0a.3 [10cf:11c4] Yenta: ISA IRQ mask 0x04b8, PCI irq 11 Socket status: 30000006 pcmcia: parent PCI bridge I/O window: 0x6000 - 0xbfff cs: IO port probe 0x6000-0xbfff: clean. pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xd02fffff pcmcia: parent PCI bridge Memory window: 0x10000000 - 0x15ffffff BIOS EDD facility v0.16 2004-Jun-25, 1 devices found cs: memory probe 0xd0200000-0xd02fffff: excluding 0xd0200000-0xd021ffff cs: IO port probe 0xc00-0xcff: clean. cs: IO port probe 0xc00-0xcff: clean. cs: IO port probe 0xc00-0xcff: clean. cs: IO port probe 0x820-0x8ff: clean. cs: IO port probe 0x820-0x8ff: clean. cs: IO port probe 0x820-0x8ff: clean. cs: IO port probe 0x800-0x80f: clean. cs: IO port probe 0x800-0x80f: clean. cs: IO port probe 0x800-0x80f: clean. cs: IO port probe 0x3e0-0x4ff: excluding 0x400-0x407 0x4d0-0x4d7 cs: IO port probe 0x3e0-0x4ff: excluding 0x400-0x407 0x4d0-0x4d7 cs: IO port probe 0x3e0-0x4ff: excluding 0x400-0x407 0x4d0-0x4d7 cs: IO port probe 0x100-0x3af: clean. cs: IO port probe 0x100-0x3af: clean. cs: IO port probe 0x100-0x3af: clean. cs: IO port probe 0xa00-0xaff: clean. cs: IO port probe 0xa00-0xaff: clean. cs: IO port probe 0xa00-0xaff: clean. ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 11 (level, low) -= >=20 IRQ 11 PCI: Setting latency timer of device 0000:00:1f.5 to 64 intel8x0_measure_ac97_clock: measured 78397 usecs intel8x0: clocking to 48000 Non-volatile memory driver v1.2 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=3D= xx kobject_register failed for ide (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0289df2>] bus_add_driver+0x52/0xd0 [<c0254ce0>] pnp_register_driver+0x30/0x60 [<d0251878>] ide_init+0x48/0x60 [ide_core] [<c01352e2>] sys_init_module+0x112/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 kobject_register failed for ide_cd (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 kobject_register failed for scsi_mod (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 kobject_register failed for sr_mod (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 kobject_register failed for scsi_mod (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 register_blkdev: cannot get major 8 for sd register_blkdev: cannot get major 65 for sd register_blkdev: cannot get major 66 for sd register_blkdev: cannot get major 67 for sd register_blkdev: cannot get major 68 for sd register_blkdev: cannot get major 69 for sd register_blkdev: cannot get major 70 for sd register_blkdev: cannot get major 71 for sd register_blkdev: cannot get major 128 for sd register_blkdev: cannot get major 129 for sd register_blkdev: cannot get major 130 for sd register_blkdev: cannot get major 131 for sd register_blkdev: cannot get major 132 for sd register_blkdev: cannot get major 133 for sd register_blkdev: cannot get major 134 for sd register_blkdev: cannot get major 135 for sd kobject_register failed for scsi_mod (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 st: Version 20050501, fixed bufsize 32768, s/g segs 256 kobject_register failed for scsi_mod (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 ACPI: AC Adapter [AC] (on-line) ACPI: Battery Slot [CMB1] (battery present) ACPI: Power Button (FF) [PWRF] ACPI: Power Button (CM) [PWRB] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3]) kobject_register failed for usbcore (-17) [<c0215733>] kobject_register+0x43/0x70 [<c0133db8>] mod_sysfs_setup+0x58/0xd0 [<c0134fe3>] load_module+0x863/0xa30 [<c0135228>] sys_init_module+0x58/0x1a0 [<c0102f3f>] sysenter_past_esp+0x54/0x75 usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0A The created /dev/tpm: crw------- 1 tss tss 10, 224 2005-09-22 13:30 /dev/tpm And the following libraries: infineon_libtpm_v2.0b.tgz tpm-tools-1.1.0 trousers-0.2.3 Now I try to load tcsd: #tcsd -f TCSD tcsd_conf.c:556 resetting mode of /var/lib/tpm to: 01777 TDDL tddl.c:110 ERROR: ioctl: (25) Inappropriate ioctl for device This is the strace of it: execve("/usr/sbin/tcsd", ["tcsd", "-f"], [/* 76 vars */]) =3D 0 uname({sys=3D"Linux", node=3D"linux", ...}) =3D 0 brk(0) =3D 0x806e000 access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or=20 directory) open("/etc/ld.so.cache", O_RDONLY) =3D 3 fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D124329, ...}) =3D 0 old_mmap(NULL, 124329, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40018000 close(3) =3D 0 open("/lib/tls/libpthread.so.0", O_RDONLY) =3D 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220H\0"..., 512) = =3D=20 512 fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D93182, ...}) =3D 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0= ) =3D=20 0x40037000 old_mmap(NULL, 70104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)= =3D=20 0x40038000 madvise(0x40038000, 70104, MADV_SEQUENTIAL|0x1) =3D 0 old_mmap(0x40046000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xd000) =3D 0x40046000 old_mmap(0x40048000, 4568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) =3D 0x40048000 close(3) =3D 0 open("/lib/tls/libc.so.6", O_RDONLY) =3D 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pO\1\000"..., 512) = =3D=20 512 fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1394943, ...}) =3D 0 old_mmap(NULL, 1150108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, = 0)=20 =3D 0x4004a000 madvise(0x4004a000, 1150108, MADV_SEQUENTIAL|0x1) =3D 0 old_mmap(0x4015d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x113000) =3D 0x4015d000 old_mmap(0x40161000, 7324, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) =3D 0x40161000 close(3) =3D 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0= ) =3D=20 0x40163000 mprotect(0x4015d000, 4096, PROT_READ) =3D 0 set_thread_area({entry_number:-1 -> 6, base_addr:0x401636c0, limit:1048575,= =20 seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,=20 seg_not_present:0, useable:1}) =3D 0 munmap(0x40018000, 124329) =3D 0 set_tid_address(0x40163708) =3D 3880 rt_sigaction(SIGRTMIN, {0x4003c7f0, [], SA_SIGINFO}, NULL, 8) =3D 0 rt_sigaction(SIGRT_1, {0x4003c3f0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) =3D= 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) =3D 0 getrlimit(RLIMIT_STACK, {rlim_cur=3DRLIM_INFINITY, rlim_max=3DRLIM_INFINITY= }) =3D 0 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfb9cb7c, 32, (nil), 0}) =3D 0 rt_sigprocmask(SIG_UNBLOCK, [HUP INT CHLD], NULL, 8) =3D 0 rt_sigaction(SIGINT, {0x8049f40, [], 0}, NULL, 8) =3D 0 rt_sigaction(SIGHUP, {0x8049f40, [], 0}, NULL, 8) =3D 0 rt_sigaction(SIGCHLD, {0x8049ac0, [], SA_RESTART}, NULL, 8) =3D 0 stat64("/etc/tcsd.conf", {st_mode=3DS_IFREG|0600, st_size=3D2884, ...}) =3D= 0 brk(0) =3D 0x806e000 brk(0x808f000) =3D 0x808f000 socket(PF_FILE, SOCK_STREAM, 0) =3D 3 fcntl64(3, F_GETFL) =3D 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) =3D 0 connect(3, {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D 0 poll([{fd=3D3, events=3DPOLLOUT|POLLERR|POLLHUP, revents=3DPOLLOUT}], 1, 50= 00) =3D 1 writev(3, [{"\2\0\0\0\f\0\0\0\6\0\0\0", 12}, {"group\0", 6}], 2) =3D 18 poll([{fd=3D3, events=3DPOLLIN|POLLERR|POLLHUP, revents=3DPOLLIN|POLLHUP}],= 1, 5000)=20 =3D 1 recvmsg(3, {msg_name(0)=3DNULL, msg_iov(1)=3D[{"group\0", 6}], msg_controll= en=3D16,=20 {cmsg_len=3D16, cmsg_level=3DSOL_SOCKET, cmsg_type=3DSCM_RIGHTS, {4}},=20 msg_flags=3D0}, 0) =3D 6 fstat64(4, {st_mode=3DS_IFREG|0600, st_size=3D217016, ...}) =3D 0 pread(4, "\1\0\0\0h\0\0\0\2\0\0\0\1\0\0\0o\2603C\0\0\0\0\323\0\0"..., 104, = 0)=20 =3D 104 mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) =3D 0x40164000 close(4) =3D 0 close(3) =3D 0 socket(PF_FILE, SOCK_STREAM, 0) =3D 3 fcntl64(3, F_GETFL) =3D 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) =3D 0 connect(3, {sa_family=3DAF_FILE, path=3D"/var/run/nscd/socket"}, 110) =3D 0 poll([{fd=3D3, events=3DPOLLOUT|POLLERR|POLLHUP, revents=3DPOLLOUT}], 1, 50= 00) =3D 1 writev(3, [{"\2\0\0\0\v\0\0\0\7\0\0\0", 12}, {"passwd\0", 7}], 2) =3D 19 poll([{fd=3D3, events=3DPOLLIN|POLLERR|POLLHUP, revents=3DPOLLIN|POLLHUP}],= 1, 5000)=20 =3D 1 recvmsg(3, {msg_name(0)=3DNULL, msg_iov(1)=3D[{"passwd\0", 7}], msg_control= len=3D16,=20 {cmsg_len=3D16, cmsg_level=3DSOL_SOCKET, cmsg_type=3DSCM_RIGHTS, {4}},=20 msg_flags=3D0}, 0) =3D 7 fstat64(4, {st_mode=3DS_IFREG|0600, st_size=3D217016, ...}) =3D 0 pread(4, "\1\0\0\0h\0\0\0\0\0\0\0\1\0\0\0o\2603C\0\0\0\0\323\0\0"..., 104, = 0)=20 =3D 104 mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) =3D 0x40199000 close(4) =3D 0 close(3) =3D 0 open("/etc/tcsd.conf", O_RDONLY) =3D 3 fstat64(3, {st_mode=3DS_IFREG|0600, st_size=3D2884, ...}) =3D 0 mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= =3D=20 0x401ce000 read(3, "\n#\n# This is the configuration f"..., 131072) =3D 2884 read(3, "", 131072) =3D 0 close(3) =3D 0 munmap(0x401ce000, 131072) =3D 0 open("/dev/tpm0", O_RDWR) =3D -1 ENOENT (No such file or=20 directory) open("/dev/tpm1", O_RDWR) =3D -1 ENOENT (No such file or=20 directory) open("/udev/tpm0", O_RDWR) =3D -1 ENOENT (No such file or=20 directory) open("/dev/tpm", O_RDWR) =3D 3 stat64("/var/lib/tpm", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D80, ...})= =3D 0 stat64("/var/lib/tpm", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D80, ...})= =3D 0 fstat64(1, {st_mode=3DS_IFCHR|0600, st_rdev=3Dmakedev(136, 1), ...}) =3D 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = =3D=20 0x40018000 write(1, "TCSD tcsd_conf.c:556 resetting m"..., 62) =3D 62 chmod("/var/lib/tpm", 01777) =3D 0 open("/var/lib/tpm/system.data", O_RDWR|O_CREAT, 0600) =3D 4 flock(4, LOCK_EX) =3D 0 lseek(4, 1, SEEK_SET) =3D 1 read(4, "", 4) =3D 0 flock(4, LOCK_UN) =3D 0 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x806cc40) =3D -1 ENOTTY (Inappropr= iate=20 ioctl for device) write(2, "TDDL tddl.c:110 ERROR: ioctl: (2"..., 66TDDL tddl.c:110 ERROR:=20 ioctl: (25) Inappropriate ioctl for device ) =3D 66 flock(4, LOCK_EX) =3D 0 flock(4, LOCK_UN) =3D 0 close(3) =3D 0 munmap(0x40018000, 4096) =3D 0 exit_group(8196) =3D ? According to the sourcecode, the following ioctl code is the problem: sizeResult=3Dioctl(opened_device->fd,TPMIOC_TRANSMIT, txBuffer); Now I took a look in the kernel code, but I could not find any ioctl handle= r=20 in the kernel module. The tools that are included in the libtpm software from Applied Data Securi= ty=20 are working with the Kernel module, so I think the TPM and the kernel modul= e=20 is working correctly. Is there a way to tell tcsd to use read/write instead of ioctl=B4s to=20 communicate with the kernel module? Regards, Philipp G=FChring |