Git Product home page Git Product logo

Comments (4)

rwhitworth avatar rwhitworth commented on July 18, 2024 1

@andreafioraldi I had no trouble compiling on Ubuntu 20.04.1 which is 5.4 based. Thank you for pointing me in the correct direction.

I'll leave this ticket open since @JoeyJiao has also reported the issue and looks to be interested in issuing a PR.

from afl-snapshot-lkm.

JoeyJiao avatar JoeyJiao commented on July 18, 2024

Same issue on my debian also seen on ubuntu 16.04.

from afl-snapshot-lkm.

JoeyJiao avatar JoeyJiao commented on July 18, 2024

The patch can fix the build error:

diff --git a/src/threads.c b/src/threads.c
index 38b633f..547f21e 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -38,7 +38,9 @@ static struct task_struct *next_tid(struct task_struct *start) {

 void recover_threads_snapshot(struct task_data *data) {

-  struct task_struct *t = get_task_struct(data->tsk->group_leader);
+  //struct task_struct *t = get_task_struct(data->tsk->group_leader);
+  struct task_struct *t = data->tsk->group_leader;
+  atomic_inc(&(data->tsk->group_leader)->usage);
   while (t) {

     if (t != data->tsk) send_sig(SIGKILL, t, 1);

from afl-snapshot-lkm.

andreafioraldi avatar andreafioraldi commented on July 18, 2024

4.19 seems too old, we tested on various 5.x builds of ubuntu and arch

from afl-snapshot-lkm.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.