fops read returns some data, busybox config frag for stat, bibliography start

This commit is contained in:
Ciro Santilli
2017-05-13 10:53:26 +01:00
parent 8616f6009b
commit bf3bb0cb18
6 changed files with 54 additions and 14 deletions

View File

@@ -6,14 +6,20 @@ mount -t debugfs none /fops
cd /fops/kernel_module_cheat
cat fops
# => open
# => read
# => len = [0-9]+
# => close
# => abcd
# dmesg => open
# dmesg => read
# dmesg => len = [0-9]+
# dmesg => close
printf a >fops
# => open
# => write
# => len = a
# => len = 1
# => close
# dmesg => open
# dmesg => write
# dmesg => len = 1
# dmesg => buf = a
# dmesg => close
cd /
umount /fops
rmdir /fops
rmmod fops