42_little-penguin/ass07/proof

16 lines
573 B
Plaintext
Raw Permalink Normal View History

2024-08-07 06:33:08 -04:00
make -C /lib/modules/6.10.0-rc1-00027-g4a4be1ad3a6e/build M=/root/lp/ass07 modules
make[1]: Entering directory '/usr/src/linux'
make[1]: Leaving directory '/usr/src/linux'
rmmod -f main || true
insmod main.ko
cat /sys/kernel/debug/fortytwo/foo
echo "bozo" > /sys/kernel/debug/fortytwo/foo
cat /sys/kernel/debug/fortytwo/foo
bozo
cat /sys/kernel/debug/fortytwo/id
cchauvetecho -n cchauvet > /sys/kernel/debug/fortytwo/id
echo bozo > /sys/kernel/debug/fortytwo/id || true
/bin/sh: line 1: echo: write error: Invalid argument
cat /sys/kernel/debug/fortytwo/jiffies
4294891809