Skip to content

Instantly share code, notes, and snippets.

@srikanth007m
srikanth007m / gist:c67db0bba5fc3223e95b475ba3fc9f37
Created December 31, 2018 15:27
Interface Recovery failed for IOCTL
This file has been truncated, but you can view the full file.
smuppand@smuppand-linux:/local/mnt2/workspace/research_whitepaper/helper_scripts$ python run_all.py -l linux-4.19/out/llvm_bitcode_out -a 2 -m linux-4.19/makeout.txt -g aarch64-linux-gnu-gcc -n 2 -o /local/mnt2/workspace/research_whitepaper/helper_scripts/linux-4.19/out/ -k linux-4.19 -f linux-4.19/out/ioctl_finder_out
[*] Trying to Run Component: BuildLLVM
[+] Setup for component: BuildLLVM complete
[*] Running LLVM Commands in multiprocessing mode.
/local/mnt2/workspace/research_whitepaper/helper_scripts/linux-4.19/out/../arch/arm64/crypto/aes-ce-ccm-core.S:15:2: error: unknown directive
.arch armv8-a+crypto
^
/local/mnt2/workspace/research_whitepaper/helper_scripts/linux-4.19/out/../arch/arm64/crypto/aes-ce-ccm-core.S:46:4: error: instruction requires: crypto
3: aese v0.16b, v4.16b
^
This file has been truncated, but you can view the full file.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2019.01.08 12:01:37 =~=~=~=~=~=~=~=~=~=~=~=
]0;root@281fe8d2c833: /difuze/repo/helper_scriptsroot@281fe8d2c833:/difuze/repo/helper_scripts# clearpython run_all.py -l /androidkernels/msmkernel/llvm_bitcode_out -a 2 -m /androidkernels/msmkernel/makeout.txt -g aarch64-linux-android-gcc -n 2
2 -k /androidkernels/msmkernel/ -f /androidkernels/msmkernel/ioctl_finder_out
[*] Trying to Run Component: BuildLLVM
[+] Setup for component: BuildLLVM complete
[*] Running LLVM Commands in multiprocessing mode.
clang-3.8: error: no such file or directory: '/androidkernels/msmkernel/../fs/nfs_common/grace.c'
clang-3.8: error: no input files
clang-3.8: error: no such file or directory: '/androidkernels/msmkernel/../kernel/sched/swait.c'
root@c2961f005ea8:/difuze/repo/helper_scripts# python run_all.py -l /androidkernels/msmkernel/out/llvm_bitcode_out -a 2 -c /androidkernels/msmkernel/compile_commands.json -g aarch64-linux-android-gcc -n 2 -k /androidkernels/msmkernel/ -f /androidkernels/msmkernel/out/ioctl_finder_out -o /androidkernels/msmkernel/out
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to /androidkernels/msmkernel/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1349 compilation commands.
[*] Running compilation commands in multiprocessing modea.
../drivers/soc/qcom/scm.c:197:22: error: unknown register name 'r0' in asm
register u32 r0 asm("r0") = 1;
^
../drivers/soc/qcom/scm.c:198:22: error: unknown register name 'r1' in asm
sudo python run_all.py -isclang -clangp llvm/release/arm/6.0/bin/clang -llvmlinkp llvm/release/arm/6.0/bin/llvm-link -l /kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out -a 2 -c /kernel-msm-4.14/msm-4.14/compile_commands.json -n 2 -k /kernel-msm-4.14/msm-4.14 -f /kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o /kernel-msm-4.14/msm-4.14/out
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to /kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1634 compilation commands.
[*] Running compilation commands in multiprocessing modea.
[+] Finished running compilation commands.
[*] Writing all linker commands to /kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_link_cmds.sh
[*] Got 594 regular linker commands.
[*] Running linker commands in multiprocessing mode.
python run_all.py -isclang -clangp llvm-6.0/bin/clang -llvmlinkp llvm-6.0/bin/llvm-link -l kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out -a 2 -c kernel-msm-4.14/msm-4.14/compile_commands.json -n 2 -k kernel-msm-4.14/msm-4.14 -f kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o kernel-msm-4.14/msm-4.14/out
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1634 compilation commands.
[*] Running compilation commands in multiprocessing modea.
[+] Finished running compilation commands.
[*] Writing all linker commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_link_cmds.sh
[*] Got 597 regular linker commands.
[*] Running linker commands in multiprocessing mode.
smuppand@smuppand-linux:research_whitepaper/helper_scripts$ sudo python run_all.py -isclang -clangp llvm-6.0/bin/clang -llvmlinkp llvm-6.0/bin/llvm-link -l kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out -a 2 -c kernel-msm-4.14/msm-4.14/compile_commands.json -n 2 -k kernel-msm-4.14/msm-4.14 -f kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o kernel-msm-4.14/msm-4.14/out
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1634 compilation commands.
[*] Running compilation commands in multiprocessing modea.
[+] Finished running compilation commands.
[*] Writing all linker commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_link_cmds.sh
[*] Got 594 regular linker commands.
[*] Running linker commands in multiprocessing mode.
[+] About to run on 64 ioctl info file(s)
[+] Running on file kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/compat_mtp_ioctl.txt
[+] ioctl name: discovered a new reachable node %0
[!] Skipping discovered a new reachable node %0. No commands found
[+] Running on file kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/dvb_ca_en50221_io_ioctl.txt
[+] ioctl name: discovered a new reachable node %1
[!] Skipping discovered a new reachable node %1. No commands found
[+] Running on file kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/linehandle_ioctl.txt
[+] ioctl name: discovered a new reachable node %0
[!] Skipping discovered a new reachable node %0. No commands found
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1634 compilation commands.
[*] Running compilation commands in multiprocessing modea.
[+] Finished running compilation commands.
[*] Writing all linker commands to /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_link_cmds.sh
[*] Got 597 regular linker commands.
[*] Running linker commands in multiprocessing mode.
[+] Finished running linker commands.
/local/mnt2/workspace/research_whitepaper/helper_scripts/post_processing$ python run_all.py -f /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_post_processing -n hybrid -m 1
[+] Creating your out directory for you
[+] About to run on 31 ioctl info file(s)
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/lineevent_ioctl.txt
[+] ioctl name: lineevent_ioctl
[!] Skipping lineevent_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/tty_ioctl.txt
[+] ioctl name: tty_ioctl
[!] Skipping tty_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/linehandle_ioctl.txt
python run_all.py -f /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_post_processing -n auto -m 0
[+] Creating your out directory for you
[+] About to run on 31 ioctl info file(s)
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/lineevent_ioctl.txt
[+] ioctl name: lineevent_ioctl
[!] Skipping lineevent_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/tty_ioctl.txt
[+] ioctl name: tty_ioctl
[@] Setting up a new out file: tty_io
./c2xml /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/drivers/tty/tty_io.preprocessed > /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_post_processing/tty_ioctl/xml/tty_io.xml