Skip to content

Instantly share code, notes, and snippets.

@asimzeeshan
Created August 29, 2022 00:05
Show Gist options
  • Save asimzeeshan/c8a320ac4fbd64d4448eae52b3fe2aa4 to your computer and use it in GitHub Desktop.
Save asimzeeshan/c8a320ac4fbd64d4448eae52b3fe2aa4 to your computer and use it in GitHub Desktop.
Kernel tainted, find modules responsible for it
# more help? https://docs.kernel.org/admin-guide/tainted-kernels.html
#!/bin/bash
cat /proc/modules |
while read module rest
do
if [[ $(od -A n /sys/module/$module/taint) != " 000012" ]] ; then
echo $module
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment