Unable to run afl on ubuntu 15.10

1,929 views
Skip to first unread message

Aaron Boxer

unread,
Apr 11, 2016, 11:25:55 PM4/11/16
to afl-users
Hello,
I have tried to run afl on ubuntu, but I get a warning:

Your system is configured to send core dump notifications to an external utility......

...Edit /proc/system/kernel/core_pattern ......


But, I am unable to save this file, when opening with sudo.

Any ideas ?

Thanks,
Aaron

Michal Zalewski

unread,
Apr 11, 2016, 11:28:44 PM4/11/16
to afl-users
> ...Edit /proc/system/kernel/core_pattern ......
> But, I am unable to save this file, when opening with sudo.

That seems unlikely, at least in the default configuration (and
assuming you're really sudoing to root). Maybe talk to a more
experienced administrator to troubleshoot?

/mz

Aaron Boxer

unread,
Apr 11, 2016, 11:29:30 PM4/11/16
to afl-users

I get a permission denied error when I try to echo, even though I sudo

Michal Zalewski

unread,
Apr 11, 2016, 11:29:53 PM4/11/16
to afl-users
Also note that the correct location is /proc/sys/kernel/core_pattern -
not /proc/system/kernel/core_pattern. If you mistyped it as "system",
that could be the cause of your problems.

/mz

Aaron Boxer

unread,
Apr 11, 2016, 11:31:07 PM4/11/16
to afl-users
Never mind, figured it out :)

Michal Zalewski

unread,
Apr 11, 2016, 11:31:14 PM4/11/16
to afl-users
> I get a permission denied error when I try to echo, even though I sudo

You're probably doing something like:

sudo echo core >/proc/sys/kernel/core_pattern

...right?

That's not the right syntax, since it causes the parent, unprivileged
shell to try to open the file for writing.

Just 'sudo su' and then paste the magic line:

echo core >/proc/sys/kernel/core_pattern

/mz

Aaron Boxer

unread,
Apr 11, 2016, 11:33:35 PM4/11/16
to afl-users

Yep, that was it. Thanks!

 

/mz
Reply all
Reply to author
Forward
0 new messages