fiberx / fiber

Source-binary patch presence test system.
BSD 2-Clause "Simplified" License
80 stars 37 forks source link

Fail to match the patch #4

Closed zzhnobug closed 5 years ago

zzhnobug commented 5 years ago

Hi, in the 0x2 step, I use the command (venv_name)~/fiber$ python pick_sig.py [patch_list] [reference kernel source] [output_file] [symbol_table,...]. I tried angler_img_20160513/20170513, image_G9300_160909 with their symbol tables separately. But the result turns out to be "Fail to match the patch" for every patch in the example. Could you please help me with it? Thanks. Here is my complete command: (fiber_env) hadoop@ubuntu:~/fiber$ python pick_sig.py ~/fiber/examples/patch_list ~/fiber/examples/imgs/angler_img_20170513 ~/fiber/examples/ext_list ~/fiber/examples/imgs/angler_img_20170513.sym

cpumask commented 5 years ago

Hi, You need the reference kernel source code instead of the kernel image as the second parameter for pick_sig.py. Please refer to the documents for the repo and commit number of the source code we use for the example. Thanks.