Skip to content

init process: forward signals might be missing (+ empty output in .vmtest.log) #13

@javierhonduco

Description

@javierhonduco

Hi hi!

I was giving vmtest a try for a kernel bug I am trying to reproduce. The specifics aren't important but the approach I am trying to follow is to run some small bash script as well as the program that runs some BPF code that together trigger this kernel bug.

[javierhonduco@fedora ~]$ cat /home/javierhonduco/kernel_bug_repro.sh
echo "Running problematic exec in the background"
sh -c 'while true; do ls -al > /dev/null; done' & jobs
# ./code_that_triggers_the_bug
[javierhonduco@fedora ~]$ vmtest -k ./bzImage-v6.1-fedora38 "/home/javierhonduco/kernel_bug_repro.sh"
=> bzImage-v6.1-fedora38
===> Booting
===> Setting up VM
===> Running command
^C
[javierhonduco@fedora ~]$ cat .vmtest.log
[javierhonduco@fedora ~]$

Running this results in no output, and the second command (commented above) won't execute. I am not totally sure of what's going on, but perhaps it's due to signals not being forwarded to the right processes (SIGCHILD perhaps in this case?)

In the meantime I will spawn the reproducer directly in a thread in the process that loads the BPF code, but having this addressed in vmtest would be ideal if you think this would make sense.

Let me know what you think!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions