sca-fuzzer icon indicating copy to clipboard operation
sca-fuzzer copied to clipboard

ERROR: Unknown configuration variable enable_faulty_page. [in big-fuzz.yaml]

Open LuChuanV opened this issue 1 year ago • 6 comments

ERROR: Unknown configuration variable enable_faulty_page. It's likely a typo in the configuration file.

LuChuanV avatar Jan 30 '24 08:01 LuChuanV

Then when this is commented out it throws an assembler error " 'generated.asm -o generated.o' returned nonzero exit status 1" , "Error: operand type mismatch for 'bt' ".

griffinandrew avatar Mar 19 '24 18:03 griffinandrew

@LuChuanV Thanks for reporting the issue! This was indeed an outdated field; fixed now (see 493d347 ).

@griffinandrew I could not reproduce this issue. Could you post generated.asm that triggered this error? Also, which branch are you using?

OleksiiOleksenko avatar Mar 20 '24 14:03 OleksiiOleksenko

@OleksiiOleksenko Thanks for the quick reply, I believe the issue stems from the unavailability of vmlinux on ubuntu 22.04. When I make the kernel module it skips BTF generation which is exactly what the assembler errors on. It is very strange though, the other 2 basic configs listed in the readme run and terminate normally. I am on the main branch.

42CACB76-AC3A-4A0A-B45E-52B73CECB43B_1_105_c

IMG_7559

IMG_7561

griffinandrew avatar Mar 20 '24 16:03 griffinandrew

The error is thrown by the assembler when generator.py executes as generated.asm -o generated.o. This happens before the kernel module is ever called, so I doubt that the error has anything to do with vmlinux.

It looks like something is wrong with the assembler. Could you post the version you're using (run as -v)?

Also, could you try assembling the following:

.intel_syntax noprefix
BTS EAX, -39

by running

as assembly_file.asm

OleksiiOleksenko avatar Mar 20 '24 16:03 OleksiiOleksenko

IMG_7563

griffinandrew avatar Mar 20 '24 17:03 griffinandrew

The issue should be fixed now. Make sure clone the latest release or the top commit on the main branch, and to re-run the download_spec command to get an update specification of BT instructions.

@griffinandrew Could you confirm the fix on your setup?

OleksiiOleksenko avatar Apr 16 '24 13:04 OleksiiOleksenko