[GH-ISSUE #2700] firemon error: recv: No buffer space available #1699

Closed
opened 2026-05-05 08:21:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @smitsohu on GitHub (May 16, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2700

This looks like a non-deterministic bug.

In one terminal run sudo firemon, then start a sandbox:

smitsohu@smitsohu:~$ sudo firemon
13:58:01 uid (1000:0) 22759 (root) NEW SANDBOX: firejail 
13:58:01 exec 22759 (smitsohu) firejail 
13:58:01 fork 22759 (smitsohu) firejail 
	child 22760 firejail 
13:58:01 fork 22759 (smitsohu) firejail 
	child 22761 firejail 
13:58:01 exit 22761 (smitsohu)
13:58:01 fork 22760 (smitsohu) firejail 
	child 22762 firejail 
13:58:01 gid (1000:1000) 22762 (smitsohu) firejail 
13:58:01 uid (1000:1000) 22762 (smitsohu) firejail 
13:58:01 exec 22762 (smitsohu) /run/firejail/lib/fseccomp protocol build unix,inet,inet6 /run/firejail/mnt/seccomp/seccomp.protocol 
13:58:01 exit 22762 (smitsohu)
recv: No buffer space available
firemon: procevent.c:499: procevent: Assertion `0' failed.
Aborted

If the code is instrumented with fsanitize=undefined, this is the result:

procevent.c:288:19: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 00 00 00 00  03 00 00 00 d1 a7 de ff  ea d3 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
procevent.c:293:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 01 00 00 00  00 00 00 00 9a f8 58 a3  eb d3 00 00 f3 08 00 00  f3 08 00 00 38 3c 00 00
              ^ 
procevent.c:294:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 01 00 00 00  00 00 00 00 9a f8 58 a3  eb d3 00 00 f3 08 00 00  f3 08 00 00 38 3c 00 00
              ^ 
procevent.c:296:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 01 00 00 00  00 00 00 00 9a f8 58 a3  eb d3 00 00 f3 08 00 00  f3 08 00 00 38 3c 00 00
              ^ 
procevent.c:310:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 02 00 00 00  02 00 00 00 86 e2 dd a3  eb d3 00 00 38 3c 00 00  38 3c 00 00 00 00 00 00
              ^ 
procevent.c:321:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 00 00 00 80  02 00 00 00 c7 34 f4 a9  eb d3 00 00 3b 3c 00 00  39 3c 00 00 00 00 00 00
              ^ 
procevent.c:322:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 00 00 00 80  02 00 00 00 c7 34 f4 a9  eb d3 00 00 3b 3c 00 00  39 3c 00 00 00 00 00 00
              ^ 
procevent.c:325:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 00 00 00 80  03 00 00 00 7d af fc a9  eb d3 00 00 39 3c 00 00  39 3c 00 00 00 00 00 00
              ^ 
procevent.c:370:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment
0x7ffea9197bc4: note: pointer points here
  28 00 00 00 80 00 00 00  01 00 00 00 ba 06 bb 73  ef d3 00 00 65 3c 00 00  65 3c 00 00 00 00 00 00
              ^ 

and so on ...
Originally created by @smitsohu on GitHub (May 16, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2700 This looks like a non-deterministic bug. In one terminal run `sudo firemon`, then start a sandbox: ``` smitsohu@smitsohu:~$ sudo firemon 13:58:01 uid (1000:0) 22759 (root) NEW SANDBOX: firejail 13:58:01 exec 22759 (smitsohu) firejail 13:58:01 fork 22759 (smitsohu) firejail child 22760 firejail 13:58:01 fork 22759 (smitsohu) firejail child 22761 firejail 13:58:01 exit 22761 (smitsohu) 13:58:01 fork 22760 (smitsohu) firejail child 22762 firejail 13:58:01 gid (1000:1000) 22762 (smitsohu) firejail 13:58:01 uid (1000:1000) 22762 (smitsohu) firejail 13:58:01 exec 22762 (smitsohu) /run/firejail/lib/fseccomp protocol build unix,inet,inet6 /run/firejail/mnt/seccomp/seccomp.protocol 13:58:01 exit 22762 (smitsohu) recv: No buffer space available firemon: procevent.c:499: procevent: Assertion `0' failed. Aborted ``` If the code is instrumented with `fsanitize=undefined`, this is the result: ``` procevent.c:288:19: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 00 00 00 00 03 00 00 00 d1 a7 de ff ea d3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ procevent.c:293:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 01 00 00 00 00 00 00 00 9a f8 58 a3 eb d3 00 00 f3 08 00 00 f3 08 00 00 38 3c 00 00 ^ procevent.c:294:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 01 00 00 00 00 00 00 00 9a f8 58 a3 eb d3 00 00 f3 08 00 00 f3 08 00 00 38 3c 00 00 ^ procevent.c:296:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 01 00 00 00 00 00 00 00 9a f8 58 a3 eb d3 00 00 f3 08 00 00 f3 08 00 00 38 3c 00 00 ^ procevent.c:310:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 02 00 00 00 02 00 00 00 86 e2 dd a3 eb d3 00 00 38 3c 00 00 38 3c 00 00 00 00 00 00 ^ procevent.c:321:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 00 00 00 80 02 00 00 00 c7 34 f4 a9 eb d3 00 00 3b 3c 00 00 39 3c 00 00 00 00 00 00 ^ procevent.c:322:34: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 00 00 00 80 02 00 00 00 c7 34 f4 a9 eb d3 00 00 3b 3c 00 00 39 3c 00 00 00 00 00 00 ^ procevent.c:325:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 00 00 00 80 03 00 00 00 7d af fc a9 eb d3 00 00 39 3c 00 00 39 3c 00 00 00 00 00 00 ^ procevent.c:370:10: runtime error: member access within misaligned address 0x7ffea9197bc4 for type 'struct proc_event', which requires 8 byte alignment 0x7ffea9197bc4: note: pointer points here 28 00 00 00 80 00 00 00 01 00 00 00 ba 06 bb 73 ef d3 00 00 65 3c 00 00 65 3c 00 00 00 00 00 00 ^ and so on ... ```
gitea-mirror 2026-05-05 08:21:25 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@smitsohu commented on GitHub (May 16, 2019):

I should add that I'm seeing the UBSan messages only on one machine, I cannot reproduce them for example in my virtual machines.

<!-- gh-comment-id:493244473 --> @smitsohu commented on GitHub (May 16, 2019): I should add that I'm seeing the UBSan messages only on one machine, I cannot reproduce them for example in my virtual machines.
Author
Owner

@SkewedZeppelin commented on GitHub (May 16, 2019):

I've seen this error before from firemon, but haven't in a while.

<!-- gh-comment-id:493245864 --> @SkewedZeppelin commented on GitHub (May 16, 2019): I've seen this error before from firemon, but haven't in a while.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1699
No description provided.