Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


View file
namekmemleak_report_for_kmeleak_test_module.txt
height250
View file
namekmemleak-test.ko
height250


Testing kmemleak tool with testapp

...

in rpi3:

Note :  Here testapp is  FSCRYPT application program, when we run this test app with all functionalities, The corresponding kernel driver will invoke, if any memory leaks present in the kernel driver code will report kernel memory leaks in /sys/kernel/debug/kmemleak

...

        FSCRYPT DEMO APP
------------------------------
1:Open session
2:Read data
3:Write data
4:close session
5:Print session info
6:Delete data
7:Exit
------------------------------

Ex: Here memory leaks reported when we run testapp.
From below report we could see kmemleak happened from fscrypt_ioctl_write_data and fscrypt_ioctl_read_data while file_open.

View file
namekmemleak_report_for_testapp.txt
height250

...