vernamlab / tpm-fail Goto Github PK
View Code? Open in Web Editor NEWTPM-Fail Attack code & data
Home Page: https://tpm.fail
TPM-Fail Attack code & data
Home Page: https://tpm.fail
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:
At this point I gave up because I don't know anything about computers or Linux in particular.
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
I went to visit the tpm.fail website and my web browser indicated that the certificate is expired. This should be renewed ASAP.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.