Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
dfe07e32
Commit
dfe07e32
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Add move globals xor tests
Former-commit-id: b7c7d934123c012cd22d06dd42991ebe16b53be8
parent
0073bb72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_cmds.sh
+17
-11
17 additions, 11 deletions
tests/test_cmds.sh
with
17 additions
and
11 deletions
tests/test_cmds.sh
+
17
−
11
View file @
dfe07e32
...
...
@@ -11,7 +11,7 @@
#configs="scfi.color"
#configs="zipr scfi scfi.color"
#configs="shadow"
configs
=
"p1
scfi"
configs
=
"p1
_
scfi
_mg
"
#configs="ibtl"
#configs="killdeads_strata"
#configs="ibtl ibtl_p1"
...
...
@@ -20,7 +20,7 @@ configs="p1 scfi"
# specify programs to test
#orig_progs="grep ncal bzip2 du ls objdump readelf sort tar touch tcpdump"
#orig_progs="grep bzip2 du ls objdump readelf sort tar touch"
orig_progs
=
"grep bzip2 du ls"
orig_progs
=
"grep bzip2 du ls
objdump
"
#orig_progs="bzip2"
#orig_progs="gedit"
#orig_progs="gimp"
...
...
@@ -76,39 +76,45 @@ do
$PSZ
$progpath
$protected
--step
p1transform
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
scfi.color
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
selective_cfi
=
on
--step-option
selective_cfi:--color
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
SZ
$progpath
$protected
--backend
zipr
--step
selective_cfi
=
on
--step-option
selective_cfi:--color
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
scfi.color.nojmps
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
selective_cfi
=
on
--step-option
selective_cfi:--color
--step-option
selective_cfi:--no-protect-jumps
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
SZ
$progpath
$protected
--backend
zipr
--step
selective_cfi
=
on
--step-option
selective_cfi:--color
--step-option
selective_cfi:--no-protect-jumps
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
scfi
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$PSZ
$progpath
$protected
--step
selective_cfi
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
p1_scfi
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$PSZ
$progpath
$protected
-c
p1transform
=
on
-c
selective_cfi
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
p1_scfi_mg
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$PSZ
$progpath
$protected
-c
p1transform
=
on
-c
selective_cfi
=
on
-c
move_globals
=
on
--step-option
move_globals:--aggressive
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
kill_deads
)
$PSZ
$progpath
$protected
--step
kill_deads
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
scdi
)
SimpleCDI_VERBOSE
=
1
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
simple_cdi
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
SimpleCDI_VERBOSE
=
1
$P
SZ
$progpath
$protected
--backend
zipr
--step
simple_cdi
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
shadow
)
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
fptr_shadow
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
$P
SZ
$progpath
$protected
--backend
zipr
--step
fptr_shadow
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
shadow.scfi
)
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
fptr_shadow
=
on
--step
selective_cfi
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
SZ
$progpath
$protected
--backend
zipr
--step
fptr_shadow
=
on
--step
selective_cfi
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
scfi.shadow
)
echo
"make copy of fptr_shadow.exe --> shadow.exe to force the shadow step to occur after the scfi step"
cp
$SECURITY_TRANSFORMS_HOME
/plugins_install/fptr_shadow.exe
$SECURITY_TRANSFORMS_HOME
/plugins_install/shadow.exe
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
zipr
--step
shadow
=
on
--step
selective_cfi
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
FIX_CALLS_FIX_ALL_CALLS
=
1
$P
SZ
$progpath
$protected
--backend
zipr
--step
shadow
=
on
--step
selective_cfi
=
on
--step-option
"zipr:--zipr:callbacks
$ZIPR_INSTALL
/bin/callbacks.datashadow.exe"
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
killdeads_strata
)
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
kill_deads
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
$P
SZ
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
kill_deads
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
ibtl
)
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
pc_confine
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
$P
SZ
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
pc_confine
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
ibtl_p1
)
$P
EASOUP_HOME
/tools/ps_analyze.sh
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
pc_confine
=
on
--step
p1transform
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
$P
SZ
$progpath
$protected
--backend
strata
--step
ibtl
=
on
--step
ilr
=
on
--step
pc_confine
=
on
--step
p1transform
=
on
--tempdir
$temp_dir
>
test_
${
prog
}
.ps.log 2>&1
;;
*
)
echo
"Unknown configuration requested"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment