mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
fix wait_queue rmmod deadlock, wait_queue2, add insrm.sh that was used to test wait_queue lock, which obsoletes workqueue_cheat.sh
This commit is contained in:
13
rootfs_overlay/insrm.sh
Executable file
13
rootfs_overlay/insrm.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Insert and remove a module n times to check for spurious errors / deadlocks.
|
||||
set -e
|
||||
mod="$1"
|
||||
n="${2:-1}"
|
||||
i=0
|
||||
while [ $i -lt $n ]; do
|
||||
echo "insmod $i"
|
||||
insmod "/$mod.ko"
|
||||
echo "rmmod $i"
|
||||
rmmod "$mod"
|
||||
i=$(($i+1))
|
||||
done
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Got a few kernel crashes after insert / remove, so let's do this a few times.
|
||||
insmod /workqueue_cheat.ko
|
||||
rmmod workqueue_cheat
|
||||
insmod /workqueue_cheat.ko
|
||||
rmmod workqueue_cheat
|
||||
insmod /workqueue_cheat.ko
|
||||
rmmod workqueue_cheat
|
||||
Reference in New Issue
Block a user