Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AFLplusplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ulf Kargén
AFLplusplus
Commits
96b77426
Commit
96b77426
authored
2 years ago
by
vanhauser-thc
Browse files
Options
Downloads
Patches
Plain Diff
enhancements to afl-persistent-config and afl-system-config
parent
3c21e9f0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
afl-persistent-config
+2
-2
2 additions, 2 deletions
afl-persistent-config
afl-system-config
+2
-2
2 additions, 2 deletions
afl-system-config
docs/Changelog.md
+2
-0
2 additions, 0 deletions
docs/Changelog.md
with
6 additions
and
4 deletions
afl-persistent-config
+
2
−
2
View file @
96b77426
...
...
@@ -113,10 +113,10 @@ EOF
grep
-E
-q
'^GRUB_CMDLINE_LINUX_DEFAULT='
/etc/default/grub 2>/dev/null
||
echo
Error: /etc/default/grub with GRUB_CMDLINE_LINUX_DEFAULT is not present, cannot
set
boot options
grep
-E
-q
'^GRUB_CMDLINE_LINUX_DEFAULT='
/etc/default/grub 2>/dev/null
&&
{
grep
-E
'^GRUB_CMDLINE_LINUX_DEFAULT='
/etc/default/grub |
grep
-E
-q
hardened_usercopy
=
off
||
{
grep
-E
'^GRUB_CMDLINE_LINUX_DEFAULT='
/etc/default/grub |
grep
-E
-q
'noibrs pcid nopti'
||
{
echo
"Configuring performance boot options"
LINE
=
`
grep
-E
'^GRUB_CMDLINE_LINUX_DEFAULT='
/etc/default/grub |
sed
's/^GRUB_CMDLINE_LINUX_DEFAULT=//'
|
tr
-d
'"'
`
OPTIONS
=
"
$LINE
ibpb=off ibrs=off kpti=off l1tf=off mds=off mitigations=off no_stf_barrier noibpb noibrs
no
pcid nopti nospec_store_bypass_disable nospectre_v1 nospectre_v2 pcid=o
ff
pti=off spec_store_bypass_disable=off spectre_v2=off stf_barrier=off srbds=off noexec=off noexec32=off tsx=on tsx=on tsx_async_abort=off mitigations=off audit=0 hardened_usercopy=off ssbd=force-off"
OPTIONS
=
"
$LINE
ibpb=off ibrs=off kpti=off l1tf=off mds=off mitigations=off no_stf_barrier noibpb noibrs pcid nopti nospec_store_bypass_disable nospectre_v1 nospectre_v2 pcid=o
n
pti=off spec_store_bypass_disable=off spectre_v2=off stf_barrier=off srbds=off noexec=off noexec32=off tsx=on tsx=on tsx_async_abort=off mitigations=off audit=0 hardened_usercopy=off ssbd=force-off"
echo
Setting boot options
in
/etc/default/grub to
GRUB_CMDLINE_LINUX_DEFAULT
=
\"
$OPTIONS
\"
sed
-i
"s|^GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT=
\"
$OPTIONS
\"
|"
/etc/default/grub
}
...
...
This diff is collapsed.
Click to expand it.
afl-system-config
+
2
−
2
View file @
96b77426
...
...
@@ -47,9 +47,9 @@ if [ "$PLATFORM" = "Linux" ] ; then
}
>
/dev/null
echo
Settings applied.
echo
dmesg |
grep
-E
-q
'no
spectre_v2|spectre_v2=off
'
||
{
dmesg |
grep
-E
-q
'no
ibrs pcid nopti
'
||
{
echo
It is recommended to boot the kernel with lots of security off -
if
you are running a machine that is
in
a secured network - so
set
this:
echo
' /etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="ibpb=off ibrs=off kpti=0 l1tf=off mds=off mitigations=off no_stf_barrier noibpb noibrs
no
pcid nopti nospec_store_bypass_disable nospectre_v1 nospectre_v2 pcid=o
ff
pti=off spec_store_bypass_disable=off spectre_v2=off stf_barrier=off srbds=off noexec=off noexec32=off tsx=on tsx_async_abort=off arm64.nopauth audit=0 hardened_usercopy=off ssbd=force-off"'
echo
' /etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="ibpb=off ibrs=off kpti=0 l1tf=off mds=off mitigations=off no_stf_barrier noibpb noibrs pcid nopti nospec_store_bypass_disable nospectre_v1 nospectre_v2 pcid=o
n
pti=off spec_store_bypass_disable=off spectre_v2=off stf_barrier=off srbds=off noexec=off noexec32=off tsx=on tsx_async_abort=off arm64.nopauth audit=0 hardened_usercopy=off ssbd=force-off"'
echo
}
echo
If you run fuzzing instances
in
docker, run them with
\"
--security-opt
seccomp
=
unconfined
\"
for
more speed.
...
...
This diff is collapsed.
Click to expand it.
docs/Changelog.md
+
2
−
0
View file @
96b77426
...
...
@@ -6,6 +6,8 @@
### Version ++4.04a (dev)
-
fix gramatron and grammar_mutatur build scripts
-
enhancements to the afl-persistent-config and afl-system-config
scripts
-
afl-cc:
-
make gcc_mode (afl-gcc-fast) work with gcc down to version 3.6
...
...
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