Loading the "loop" kernel module takes long time when there is a defined audit rule
Issue
-
When there is any audit rule defined, the loading of ‘loop’ kernel module becomes very slow.
-
Listing the configured audit rules:
# auditctl -l
-w /etc/redhat-release -p wa -k release_changes
- Loading of loop module is taking more than 5 minutes:
# time modprobe -v loop
insmod /lib/modules/4.18.0-372.9.1.el8.x86_64/kernel/drivers/block/loop.ko.xz max_loop=1000
real 5m54.881s
user 0m0.003s
sys 5m53.380s
Environment
- Red Hat Enterprise Linux 8
- kernel 4.x
- loop module
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.