Git Product home page Git Product logo

tpm-fail's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tpm-fail's Issues

Problems building timing tools

I'm trying to compile your timing tools (Arch Linux 6.1.19-1-lts, x86_64). Note: I didn't run tpm2-setup.sh. I got an error

make -C /lib/modules/6.1.19-1-lts/build M=/opt/gitland/TPM-FAIL/timing-tool/kernel modules
  CC [M]  /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.o
/opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:221:21: error: variable ‘tpmttl_fops’ has initializer but incomplete type
  221 | static const struct file_operations tpmttl_fops = {
      |                     ^~~~~~~~~~~~~~~
/opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:222:4: error: ‘const struct file_operations’ has no member named ‘owner’
  222 |   .owner = THIS_MODULE,
      |    ^~~~~
/opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:223:4: error: ‘const struct file_operations’ has no member named ‘unlocked_ioctl’
  223 |   .unlocked_ioctl = tpmttl_ioctl,
      |    ^~~~~~~~~~~~~~
/opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:221:37: error: storage size of ‘tpmttl_fops’ isn’t known
  221 | static const struct file_operations tpmttl_fops = {
      |                                     ^~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.o] Error 1
make[1]: *** [Makefile:2012: /opt/gitland/TPM-FAIL/timing-tool/kernel] Error 2
make: *** [Makefile:9: all] Error 2

It seems file_operations is definied in linux/fs.h which wasn't included in tpmttl.c. I added that and now get the error

make -C /lib/modules/6.1.19-1-lts/build M=/opt/gitland/TPM-FAIL/timing-tool/kernel modules
  CC [M]  /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.o
In file included from <command-line>:
In function ‘check_copy_size’,
    inlined from ‘copy_from_user’ at ./include/linux/uaccess.h:160:6,
    inlined from ‘tpmttl_ioctl’ at /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:208:7:
././include/linux/compiler_types.h:292:20: error: impossible constraint in ‘asm’
  292 | #define asm_inline asm __inline
      |                    ^~~
./arch/x86/include/asm/bug.h:28:9: note: in expansion of macro ‘asm_inline’
   28 |         asm_inline volatile("1:\t" ins "\n"                             \
      |         ^~~~~~~~~~
./arch/x86/include/asm/bug.h:83:9: note: in expansion of macro ‘_BUG_FLAGS’
   83 |         _BUG_FLAGS(ASM_UD2, __flags, ASM_REACHABLE);            \
      |         ^~~~~~~~~~
./include/asm-generic/bug.h:112:17: note: in expansion of macro ‘__WARN_FLAGS’
  112 |                 __WARN_FLAGS(BUGFLAG_ONCE |                     \
      |                 ^~~~~~~~~~~~
./include/linux/thread_info.h:233:13: note: in expansion of macro ‘WARN_ON_ONCE’
  233 |         if (WARN_ON_ONCE(bytes > INT_MAX))
      |             ^~~~~~~~~~~~
In function ‘check_copy_size’,
    inlined from ‘copy_to_user’ at ./include/linux/uaccess.h:168:6,
    inlined from ‘tpmttl_ioctl’ at /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.c:214:9:
././include/linux/compiler_types.h:292:20: error: impossible constraint in ‘asm’
  292 | #define asm_inline asm __inline
      |                    ^~~
./arch/x86/include/asm/bug.h:28:9: note: in expansion of macro ‘asm_inline’
   28 |         asm_inline volatile("1:\t" ins "\n"                             \
      |         ^~~~~~~~~~
./arch/x86/include/asm/bug.h:83:9: note: in expansion of macro ‘_BUG_FLAGS’
   83 |         _BUG_FLAGS(ASM_UD2, __flags, ASM_REACHABLE);            \
      |         ^~~~~~~~~~
./include/asm-generic/bug.h:112:17: note: in expansion of macro ‘__WARN_FLAGS’
  112 |                 __WARN_FLAGS(BUGFLAG_ONCE |                     \
      |                 ^~~~~~~~~~~~
./include/linux/thread_info.h:233:13: note: in expansion of macro ‘WARN_ON_ONCE’
  233 |         if (WARN_ON_ONCE(bytes > INT_MAX))
      |             ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: /opt/gitland/TPM-FAIL/timing-tool/kernel/tpmttl.o] Error 1
make[1]: *** [Makefile:2012: /opt/gitland/TPM-FAIL/timing-tool/kernel] Error 2
make: *** [Makefile:9: all] Error 2

Something to do with these lines:
image

At this point I gave up because I don't know anything about computers or Linux in particular.

Loss of rawdata.csv file

In following directories, there is no rawdata.csv file. Would you please upload rawdata.csv file, Thanks.
\TPM-FAIL-master\data\intel-udp
\TPM-FAIL-master\data\stm

Website certificate expired

I went to visit the tpm.fail website and my web browser indicated that the certificate is expired. This should be renewed ASAP.

What does TTL stand for?

As per the title, what does TTL stand for? Can't seem to find any proper explanation in the paper or in the repository.

Perhaps will be good to update the README or comment it in the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.