File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ if [ $enable_lkm_nuke = 1 ] && [ -f "$MODDIR/lkm/$lkm_filename" ] &&
332332 mnt=" $( realpath " $MNT_FOLDER /$FAKE_MOUNT_NAME " ) "
333333 kptr_set=$( cat /proc/sys/kernel/kptr_restrict)
334334 echo 1 > /proc/sys/kernel/kptr_restrict
335- ptr_address=$( grep ext4_unregister_sysfs /proc/kallsyms | awk {' print "0x"$1' })
335+ ptr_address=$( grep " ext4_unregister_sysfs$ " /proc/kallsyms | awk {' print "0x"$1' })
336336 echo " mountify/post-fs-data: loading LKM with mount_point=$mnt symaddr=$ptr_address " >> /dev/kmsg
337337 insmod " $MODDIR /lkm/$lkm_filename " mount_point=" $mnt " symaddr=" $ptr_address " > /dev/null 2>&1
338338 echo $kptr_set > /proc/sys/kernel/kptr_restrict
Original file line number Diff line number Diff line change 99
1010kptr_set=$( cat /proc/sys/kernel/kptr_restrict)
1111echo 1 > /proc/sys/kernel/kptr_restrict
12- ptr_address=$( grep ext4_unregister_sysfs /proc/kallsyms | awk {' print "0x"$1' })
12+ ptr_address=$( grep " ext4_unregister_sysfs$ " /proc/kallsyms | awk {' print "0x"$1' })
1313insmod nuke.ko mount_point=" /data/adb/modules" symaddr=" $ptr_address "
1414echo $kptr_set > /proc/sys/kernel/kptr_restrict
1515```
You can’t perform that action at this time.
0 commit comments