Advertisement
RobertBerger

vmas

Dec 1st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.35 KB | None | 0 0
  1. insmod lab1_vma.ko pid=1529
  2. cat /proc/1529/maps
  3. 00400000-004ef000 r-xp 00000000 fd:01 4194451 /bin/bash
  4. 006ef000-006f0000 r--p 000ef000 fd:01 4194451 /bin/bash
  5. 006f0000-006f9000 rw-p 000f0000 fd:01 4194451 /bin/bash
  6. 006f9000-006ff000 rw-p 00000000 00:00 0
  7. 0207b000-0226b000 rw-p 00000000 00:00 0 [heap]
  8. 7f4ef9569000-7f4ef9574000 r-xp 00000000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
  9. 7f4ef9574000-7f4ef9773000 ---p 0000b000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
  10. 7f4ef9773000-7f4ef9774000 r--p 0000a000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
  11. 7f4ef9774000-7f4ef9775000 rw-p 0000b000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
  12. 7f4ef9775000-7f4ef9780000 r-xp 00000000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
  13. 7f4ef9780000-7f4ef997f000 ---p 0000b000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
  14. 7f4ef997f000-7f4ef9980000 r--p 0000a000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
  15. 7f4ef9980000-7f4ef9981000 rw-p 0000b000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
  16. 7f4ef9981000-7f4ef9998000 r-xp 00000000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
  17. 7f4ef9998000-7f4ef9b97000 ---p 00017000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
  18. 7f4ef9b97000-7f4ef9b98000 r--p 00016000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
  19. 7f4ef9b98000-7f4ef9b99000 rw-p 00017000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
  20. 7f4ef9b99000-7f4ef9b9b000 rw-p 00000000 00:00 0
  21. 7f4ef9b9b000-7f4ef9ba4000 r-xp 00000000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
  22. 7f4ef9ba4000-7f4ef9da3000 ---p 00009000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
  23. 7f4ef9da3000-7f4ef9da4000 r--p 00008000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
  24. 7f4ef9da4000-7f4ef9da5000 rw-p 00009000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
  25. 7f4ef9da5000-7f4efa06e000 r--p 00000000 fd:01 791037 /usr/lib/locale/locale-archive
  26. 7f4efa06e000-7f4efa229000 r-xp 00000000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
  27. 7f4efa229000-7f4efa428000 ---p 001bb000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
  28. 7f4efa428000-7f4efa42c000 r--p 001ba000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
  29. 7f4efa42c000-7f4efa42e000 rw-p 001be000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
  30. 7f4efa42e000-7f4efa433000 rw-p 00000000 00:00 0
  31. 7f4efa433000-7f4efa436000 r-xp 00000000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
  32. 7f4efa436000-7f4efa635000 ---p 00003000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
  33. 7f4efa635000-7f4efa636000 r--p 00002000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
  34. 7f4efa636000-7f4efa637000 rw-p 00003000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
  35. 7f4efa637000-7f4efa65c000 r-xp 00000000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
  36. 7f4efa65c000-7f4efa85b000 ---p 00025000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
  37. 7f4efa85b000-7f4efa85f000 r--p 00024000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
  38. 7f4efa85f000-7f4efa860000 rw-p 00028000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
  39. 7f4efa860000-7f4efa883000 r-xp 00000000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
  40. 7f4efaa72000-7f4efaa75000 rw-p 00000000 00:00 0
  41. 7f4efaa79000-7f4efaa80000 r--s 00000000 fd:01 795763 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
  42. 7f4efaa80000-7f4efaa82000 rw-p 00000000 00:00 0
  43. 7f4efaa82000-7f4efaa83000 r--p 00022000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
  44. 7f4efaa83000-7f4efaa84000 rw-p 00023000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
  45. 7f4efaa84000-7f4efaa85000 rw-p 00000000 00:00 0
  46. 7ffebd7c6000-7ffebd7e7000 rw-p 00000000 00:00 0 [stack]
  47. 7ffebd7f9000-7ffebd7fb000 r--p 00000000 00:00 0 [vvar]
  48. 7ffebd7fb000-7ffebd7fd000 r-xp 00000000 00:00 0 [vdso]
  49. ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
  50. pmap -d 1529
  51. 1529: /bin/bash
  52. Address Kbytes Mode Offset Device Mapping
  53. 0000000000400000 956 r-x-- 0000000000000000 0fd:00001 bash
  54. 00000000006ef000 4 r---- 00000000000ef000 0fd:00001 bash
  55. 00000000006f0000 36 rw--- 00000000000f0000 0fd:00001 bash
  56. 00000000006f9000 24 rw--- 0000000000000000 000:00000 [ anon ]
  57. 000000000207b000 1984 rw--- 0000000000000000 000:00000 [ anon ]
  58. 00007f4ef9569000 44 r-x-- 0000000000000000 0fd:00001 libnss_files-2.19.so
  59. 00007f4ef9574000 2044 ----- 000000000000b000 0fd:00001 libnss_files-2.19.so
  60. 00007f4ef9773000 4 r---- 000000000000a000 0fd:00001 libnss_files-2.19.so
  61. 00007f4ef9774000 4 rw--- 000000000000b000 0fd:00001 libnss_files-2.19.so
  62. 00007f4ef9775000 44 r-x-- 0000000000000000 0fd:00001 libnss_nis-2.19.so
  63. 00007f4ef9780000 2044 ----- 000000000000b000 0fd:00001 libnss_nis-2.19.so
  64. 00007f4ef997f000 4 r---- 000000000000a000 0fd:00001 libnss_nis-2.19.so
  65. 00007f4ef9980000 4 rw--- 000000000000b000 0fd:00001 libnss_nis-2.19.so
  66. 00007f4ef9981000 92 r-x-- 0000000000000000 0fd:00001 libnsl-2.19.so
  67. 00007f4ef9998000 2044 ----- 0000000000017000 0fd:00001 libnsl-2.19.so
  68. 00007f4ef9b97000 4 r---- 0000000000016000 0fd:00001 libnsl-2.19.so
  69. 00007f4ef9b98000 4 rw--- 0000000000017000 0fd:00001 libnsl-2.19.so
  70. 00007f4ef9b99000 8 rw--- 0000000000000000 000:00000 [ anon ]
  71. 00007f4ef9b9b000 36 r-x-- 0000000000000000 0fd:00001 libnss_compat-2.19.so
  72. 00007f4ef9ba4000 2044 ----- 0000000000009000 0fd:00001 libnss_compat-2.19.so
  73. 00007f4ef9da3000 4 r---- 0000000000008000 0fd:00001 libnss_compat-2.19.so
  74. 00007f4ef9da4000 4 rw--- 0000000000009000 0fd:00001 libnss_compat-2.19.so
  75. 00007f4ef9da5000 2852 r---- 0000000000000000 0fd:00001 locale-archive
  76. 00007f4efa06e000 1772 r-x-- 0000000000000000 0fd:00001 libc-2.19.so
  77. 00007f4efa229000 2044 ----- 00000000001bb000 0fd:00001 libc-2.19.so
  78. 00007f4efa428000 16 r---- 00000000001ba000 0fd:00001 libc-2.19.so
  79. 00007f4efa42c000 8 rw--- 00000000001be000 0fd:00001 libc-2.19.so
  80. 00007f4efa42e000 20 rw--- 0000000000000000 000:00000 [ anon ]
  81. 00007f4efa433000 12 r-x-- 0000000000000000 0fd:00001 libdl-2.19.so
  82. 00007f4efa436000 2044 ----- 0000000000003000 0fd:00001 libdl-2.19.so
  83. 00007f4efa635000 4 r---- 0000000000002000 0fd:00001 libdl-2.19.so
  84. 00007f4efa636000 4 rw--- 0000000000003000 0fd:00001 libdl-2.19.so
  85. 00007f4efa637000 148 r-x-- 0000000000000000 0fd:00001 libtinfo.so.5.9
  86. 00007f4efa65c000 2044 ----- 0000000000025000 0fd:00001 libtinfo.so.5.9
  87. 00007f4efa85b000 16 r---- 0000000000024000 0fd:00001 libtinfo.so.5.9
  88. 00007f4efa85f000 4 rw--- 0000000000028000 0fd:00001 libtinfo.so.5.9
  89. 00007f4efa860000 140 r-x-- 0000000000000000 0fd:00001 ld-2.19.so
  90. 00007f4efaa72000 12 rw--- 0000000000000000 000:00000 [ anon ]
  91. 00007f4efaa79000 28 r--s- 0000000000000000 0fd:00001 gconv-modules.cache
  92. 00007f4efaa80000 8 rw--- 0000000000000000 000:00000 [ anon ]
  93. 00007f4efaa82000 4 r---- 0000000000022000 0fd:00001 ld-2.19.so
  94. 00007f4efaa83000 4 rw--- 0000000000023000 0fd:00001 ld-2.19.so
  95. 00007f4efaa84000 4 rw--- 0000000000000000 000:00000 [ anon ]
  96. 00007ffebd7c6000 132 rw--- 0000000000000000 000:00000 [ stack ]
  97. 00007ffebd7f9000 8 r---- 0000000000000000 000:00000 [ anon ]
  98. 00007ffebd7fb000 8 r-x-- 0000000000000000 000:00000 [ anon ]
  99. ffffffffff600000 4 r-x-- 0000000000000000 000:00000 [ anon ]
  100. mapped: 22776K writeable/private: 2264K shared: 28K
  101. rmmod lab1_vma.ko
  102.  
  103. from dmesg:
  104. [ 7088.307901] =======================================
  105. [ 7088.307905] Examining vma's for pid=1529, command=bash
  106. [ 7088.307906] mm = ffff880035bc8400
  107. [ 7088.307907] vmas: vma start end length
  108. [ 7088.307909] 1: ffff8802294eb210 400000 4ef000 ef000= 978944
  109. [ 7088.307911] 2: ffff8802294ebdc0 6ef000 6f0000 1000= 4096
  110. [ 7088.307913] 3: ffff880035ecf160 6f0000 6f9000 9000= 36864
  111. [ 7088.307914] 4: ffff8802294eb8f0 6f9000 6ff000 6000= 24576
  112. [ 7088.307916] 5: ffff880035ecf2c0 207b000 226b000 1f0000= 2031616
  113. [ 7088.307918] 6: ffff880035ecfdc0 7f4ef9569000 7f4ef9574000 b000= 45056
  114. [ 7088.307920] 7: ffff880035ecfd10 7f4ef9574000 7f4ef9773000 1ff000= 2093056
  115. [ 7088.307921] 8: ffff880035ecfe70 7f4ef9773000 7f4ef9774000 1000= 4096
  116. [ 7088.307923] 9: ffff880035ecff20 7f4ef9774000 7f4ef9775000 1000= 4096
  117. [ 7088.307925] 10: ffff880035ecfbb0 7f4ef9775000 7f4ef9780000 b000= 45056
  118. [ 7088.307941] 11: ffff880035ecfb00 7f4ef9780000 7f4ef997f000 1ff000= 2093056
  119. [ 7088.307943] 12: ffff880035ecfc60 7f4ef997f000 7f4ef9980000 1000= 4096
  120. [ 7088.307945] 13: ffff8802294eb4d0 7f4ef9980000 7f4ef9981000 1000= 4096
  121. [ 7088.307946] 14: ffff880035ecf790 7f4ef9981000 7f4ef9998000 17000= 94208
  122. [ 7088.307947] 15: ffff880035ecf6e0 7f4ef9998000 7f4ef9b97000 1ff000= 2093056
  123. [ 7088.307949] 16: ffff880035ecf8f0 7f4ef9b97000 7f4ef9b98000 1000= 4096
  124. [ 7088.307950] 17: ffff880035ecf9a0 7f4ef9b98000 7f4ef9b99000 1000= 4096
  125. [ 7088.307952] 18: ffff880035ecf840 7f4ef9b99000 7f4ef9b9b000 2000= 8192
  126. [ 7088.307953] 19: ffff880035ecf580 7f4ef9b9b000 7f4ef9ba4000 9000= 36864
  127. [ 7088.307955] 20: ffff880035ecf4d0 7f4ef9ba4000 7f4ef9da3000 1ff000= 2093056
  128. [ 7088.307956] 21: ffff880035ecf630 7f4ef9da3000 7f4ef9da4000 1000= 4096
  129. [ 7088.307958] 22: ffff880035ecfa50 7f4ef9da4000 7f4ef9da5000 1000= 4096
  130. [ 7088.307960] 23: ffff880035ecf370 7f4ef9da5000 7f4efa06e000 2c9000= 2920448
  131. [ 7088.307967] 24: ffff8802294eb0b0 7f4efa06e000 7f4efa229000 1bb000= 1814528
  132. [ 7088.307968] 25: ffff8802294eba50 7f4efa229000 7f4efa428000 1ff000= 2093056
  133. [ 7088.307970] 26: ffff8802294ebbb0 7f4efa428000 7f4efa42c000 4000= 16384
  134. [ 7088.307972] 27: ffff8802294ebb00 7f4efa42c000 7f4efa42e000 2000= 8192
  135. [ 7088.307973] 28: ffff8802294ebc60 7f4efa42e000 7f4efa433000 5000= 20480
  136. [ 7088.307975] 29: ffff8802294eb630 7f4efa433000 7f4efa436000 3000= 12288
  137. [ 7088.307976] 30: ffff8802294eb160 7f4efa436000 7f4efa635000 1ff000= 2093056
  138. [ 7088.307978] 31: ffff8802294eb420 7f4efa635000 7f4efa636000 1000= 4096
  139. [ 7088.307979] 32: ffff880035ecf000 7f4efa636000 7f4efa637000 1000= 4096
  140. [ 7088.307981] 33: ffff8802294eb580 7f4efa637000 7f4efa65c000 25000= 151552
  141. [ 7088.307983] 34: ffff8802294eb370 7f4efa65c000 7f4efa85b000 1ff000= 2093056
  142. [ 7088.307985] 35: ffff8802294eb790 7f4efa85b000 7f4efa85f000 4000= 16384
  143. [ 7088.307987] 36: ffff880035ecf0b0 7f4efa85f000 7f4efa860000 1000= 4096
  144. [ 7088.307988] 37: ffff8802294eb000 7f4efa860000 7f4efa883000 23000= 143360
  145. [ 7088.307990] 38: ffff8802294eb9a0 7f4efaa72000 7f4efaa75000 3000= 12288
  146. [ 7088.307991] 39: ffff880035ecf420 7f4efaa79000 7f4efaa80000 7000= 28672
  147. [ 7088.307993] 40: ffff8802294eb6e0 7f4efaa80000 7f4efaa82000 2000= 8192
  148. [ 7088.307995] 41: ffff8802294eb840 7f4efaa82000 7f4efaa83000 1000= 4096
  149. [ 7088.307996] 42: ffff880035ecf210 7f4efaa83000 7f4efaa84000 1000= 4096
  150. [ 7088.307998] 43: ffff8802294ebd10 7f4efaa84000 7f4efaa85000 1000= 4096
  151. [ 7088.307999] 44: ffff8802294ebe70 7ffebd7c5000 7ffebd7e7000 22000= 139264
  152. [ 7088.308025] 45: ffff8802294ebf20 7ffebd7f9000 7ffebd7fb000 2000= 8192
  153. [ 7088.308027] 46: ffff8802294eb2c0 7ffebd7fb000 7ffebd7fd000 2000= 8192
  154. [ 7088.318646] Module Unloading
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement