-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: error receiving audit netlink packet (No buffer space available) #154
Comments
Hi @sulphur, The error message you are seeing indicates that the audit userspace is receiving a ENOBUFS error code from the kernel when trying to receive a reply over the audit netlink socket. Unfortunately the ENOBUFS error code is not used in the audit subsystem itself, but rather by the underlying netlink transport mechanism. Have you noticed any other problems on the system? Is the system under a particularly heavy load? Looking quickly it appears that Ubuntu 20.04 may be running either a v5.4 or v5.15 kernel, depending on kernel variant installed. Sadly, both of these kernels are quite old, four and two years respectively. Are you able to reproduce these problems on a modern upstream kernel? You may also try contacting the audit-userspace folks to see if they have any suggestions on tuning the kernel and/or audit daemon to help mitigate this problem. |
Hi @pcmoore, Thank you for your response. The system isn't under heavy load; actually, it's not under any load at all since it's in the pre-production stage. The only issue is with the antivirus software, which adds its rules to the audit, causing auditd to generate 1GB of logs per day 😅. So, I'm confident this is related to the antivirus because we didn't have these errors before. That's why I'm looking into how to tune auditd so that it functions correctly, as this antivirus relies on audit logs to list files for "on-access scans." Unfortunately, I can't provide information on newer kernels since the company has locked us into using Ubuntu 20.04 with the 5.4 kernel. I will follow your suggestion and also seek help in the userspace. |
Thanks for the background information, I'll leave this issue open for now but please report back and let us know how things went - good luck! |
Hi,
Issue Description
I am encountering an issue with the Auditd service on my system, which is consistently generating the error message
Error receiving audit netlink packet (No buffer space available).
This error appears to be related to a buffer space limitation when receiving audit netlink packets.Environment
Custom Audit Rules
I should also note that I have custom audit rules added by F-Secure antivirus, which may be relevant to this issue because they can generate a lot of events. Here are the custom audit rules that are loaded:
Audispd Configuration
I have attempted to increase the
q_depth
in audispd to 65536 and also increased-b
to 65536 in/etc/audit/audit.rules
in an attempt to address this issue. However, the error persists.and audidspd conf :
Steps Taken
I have attempted to troubleshoot the issue by checking disk space, adjusting auditd configuration settings, and investigating any potential conflicts with other services or configurations. However, I have not been able to resolve the problem.
Expected Behavior
The Auditd service should operate without generating the "Error receiving audit netlink packet (No buffer space available)" error.
Thank you for your help in addressing this problem.
The text was updated successfully, but these errors were encountered: