Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insmod lab1_vma.ko pid=1529
- cat /proc/1529/maps
- 00400000-004ef000 r-xp 00000000 fd:01 4194451 /bin/bash
- 006ef000-006f0000 r--p 000ef000 fd:01 4194451 /bin/bash
- 006f0000-006f9000 rw-p 000f0000 fd:01 4194451 /bin/bash
- 006f9000-006ff000 rw-p 00000000 00:00 0
- 0207b000-0226b000 rw-p 00000000 00:00 0 [heap]
- 7f4ef9569000-7f4ef9574000 r-xp 00000000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
- 7f4ef9574000-7f4ef9773000 ---p 0000b000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
- 7f4ef9773000-7f4ef9774000 r--p 0000a000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
- 7f4ef9774000-7f4ef9775000 rw-p 0000b000 fd:01 7341790 /lib/x86_64-linux-gnu/libnss_files-2.19.so
- 7f4ef9775000-7f4ef9780000 r-xp 00000000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
- 7f4ef9780000-7f4ef997f000 ---p 0000b000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
- 7f4ef997f000-7f4ef9980000 r--p 0000a000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
- 7f4ef9980000-7f4ef9981000 rw-p 0000b000 fd:01 7341810 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
- 7f4ef9981000-7f4ef9998000 r-xp 00000000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
- 7f4ef9998000-7f4ef9b97000 ---p 00017000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
- 7f4ef9b97000-7f4ef9b98000 r--p 00016000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
- 7f4ef9b98000-7f4ef9b99000 rw-p 00017000 fd:01 7341799 /lib/x86_64-linux-gnu/libnsl-2.19.so
- 7f4ef9b99000-7f4ef9b9b000 rw-p 00000000 00:00 0
- 7f4ef9b9b000-7f4ef9ba4000 r-xp 00000000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
- 7f4ef9ba4000-7f4ef9da3000 ---p 00009000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
- 7f4ef9da3000-7f4ef9da4000 r--p 00008000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
- 7f4ef9da4000-7f4ef9da5000 rw-p 00009000 fd:01 7341798 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
- 7f4ef9da5000-7f4efa06e000 r--p 00000000 fd:01 791037 /usr/lib/locale/locale-archive
- 7f4efa06e000-7f4efa229000 r-xp 00000000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
- 7f4efa229000-7f4efa428000 ---p 001bb000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
- 7f4efa428000-7f4efa42c000 r--p 001ba000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
- 7f4efa42c000-7f4efa42e000 rw-p 001be000 fd:01 7341804 /lib/x86_64-linux-gnu/libc-2.19.so
- 7f4efa42e000-7f4efa433000 rw-p 00000000 00:00 0
- 7f4efa433000-7f4efa436000 r-xp 00000000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
- 7f4efa436000-7f4efa635000 ---p 00003000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
- 7f4efa635000-7f4efa636000 r--p 00002000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
- 7f4efa636000-7f4efa637000 rw-p 00003000 fd:01 7341793 /lib/x86_64-linux-gnu/libdl-2.19.so
- 7f4efa637000-7f4efa65c000 r-xp 00000000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
- 7f4efa65c000-7f4efa85b000 ---p 00025000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
- 7f4efa85b000-7f4efa85f000 r--p 00024000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
- 7f4efa85f000-7f4efa860000 rw-p 00028000 fd:01 7340308 /lib/x86_64-linux-gnu/libtinfo.so.5.9
- 7f4efa860000-7f4efa883000 r-xp 00000000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
- 7f4efaa72000-7f4efaa75000 rw-p 00000000 00:00 0
- 7f4efaa79000-7f4efaa80000 r--s 00000000 fd:01 795763 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
- 7f4efaa80000-7f4efaa82000 rw-p 00000000 00:00 0
- 7f4efaa82000-7f4efaa83000 r--p 00022000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
- 7f4efaa83000-7f4efaa84000 rw-p 00023000 fd:01 7341801 /lib/x86_64-linux-gnu/ld-2.19.so
- 7f4efaa84000-7f4efaa85000 rw-p 00000000 00:00 0
- 7ffebd7c6000-7ffebd7e7000 rw-p 00000000 00:00 0 [stack]
- 7ffebd7f9000-7ffebd7fb000 r--p 00000000 00:00 0 [vvar]
- 7ffebd7fb000-7ffebd7fd000 r-xp 00000000 00:00 0 [vdso]
- ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
- pmap -d 1529
- 1529: /bin/bash
- Address Kbytes Mode Offset Device Mapping
- 0000000000400000 956 r-x-- 0000000000000000 0fd:00001 bash
- 00000000006ef000 4 r---- 00000000000ef000 0fd:00001 bash
- 00000000006f0000 36 rw--- 00000000000f0000 0fd:00001 bash
- 00000000006f9000 24 rw--- 0000000000000000 000:00000 [ anon ]
- 000000000207b000 1984 rw--- 0000000000000000 000:00000 [ anon ]
- 00007f4ef9569000 44 r-x-- 0000000000000000 0fd:00001 libnss_files-2.19.so
- 00007f4ef9574000 2044 ----- 000000000000b000 0fd:00001 libnss_files-2.19.so
- 00007f4ef9773000 4 r---- 000000000000a000 0fd:00001 libnss_files-2.19.so
- 00007f4ef9774000 4 rw--- 000000000000b000 0fd:00001 libnss_files-2.19.so
- 00007f4ef9775000 44 r-x-- 0000000000000000 0fd:00001 libnss_nis-2.19.so
- 00007f4ef9780000 2044 ----- 000000000000b000 0fd:00001 libnss_nis-2.19.so
- 00007f4ef997f000 4 r---- 000000000000a000 0fd:00001 libnss_nis-2.19.so
- 00007f4ef9980000 4 rw--- 000000000000b000 0fd:00001 libnss_nis-2.19.so
- 00007f4ef9981000 92 r-x-- 0000000000000000 0fd:00001 libnsl-2.19.so
- 00007f4ef9998000 2044 ----- 0000000000017000 0fd:00001 libnsl-2.19.so
- 00007f4ef9b97000 4 r---- 0000000000016000 0fd:00001 libnsl-2.19.so
- 00007f4ef9b98000 4 rw--- 0000000000017000 0fd:00001 libnsl-2.19.so
- 00007f4ef9b99000 8 rw--- 0000000000000000 000:00000 [ anon ]
- 00007f4ef9b9b000 36 r-x-- 0000000000000000 0fd:00001 libnss_compat-2.19.so
- 00007f4ef9ba4000 2044 ----- 0000000000009000 0fd:00001 libnss_compat-2.19.so
- 00007f4ef9da3000 4 r---- 0000000000008000 0fd:00001 libnss_compat-2.19.so
- 00007f4ef9da4000 4 rw--- 0000000000009000 0fd:00001 libnss_compat-2.19.so
- 00007f4ef9da5000 2852 r---- 0000000000000000 0fd:00001 locale-archive
- 00007f4efa06e000 1772 r-x-- 0000000000000000 0fd:00001 libc-2.19.so
- 00007f4efa229000 2044 ----- 00000000001bb000 0fd:00001 libc-2.19.so
- 00007f4efa428000 16 r---- 00000000001ba000 0fd:00001 libc-2.19.so
- 00007f4efa42c000 8 rw--- 00000000001be000 0fd:00001 libc-2.19.so
- 00007f4efa42e000 20 rw--- 0000000000000000 000:00000 [ anon ]
- 00007f4efa433000 12 r-x-- 0000000000000000 0fd:00001 libdl-2.19.so
- 00007f4efa436000 2044 ----- 0000000000003000 0fd:00001 libdl-2.19.so
- 00007f4efa635000 4 r---- 0000000000002000 0fd:00001 libdl-2.19.so
- 00007f4efa636000 4 rw--- 0000000000003000 0fd:00001 libdl-2.19.so
- 00007f4efa637000 148 r-x-- 0000000000000000 0fd:00001 libtinfo.so.5.9
- 00007f4efa65c000 2044 ----- 0000000000025000 0fd:00001 libtinfo.so.5.9
- 00007f4efa85b000 16 r---- 0000000000024000 0fd:00001 libtinfo.so.5.9
- 00007f4efa85f000 4 rw--- 0000000000028000 0fd:00001 libtinfo.so.5.9
- 00007f4efa860000 140 r-x-- 0000000000000000 0fd:00001 ld-2.19.so
- 00007f4efaa72000 12 rw--- 0000000000000000 000:00000 [ anon ]
- 00007f4efaa79000 28 r--s- 0000000000000000 0fd:00001 gconv-modules.cache
- 00007f4efaa80000 8 rw--- 0000000000000000 000:00000 [ anon ]
- 00007f4efaa82000 4 r---- 0000000000022000 0fd:00001 ld-2.19.so
- 00007f4efaa83000 4 rw--- 0000000000023000 0fd:00001 ld-2.19.so
- 00007f4efaa84000 4 rw--- 0000000000000000 000:00000 [ anon ]
- 00007ffebd7c6000 132 rw--- 0000000000000000 000:00000 [ stack ]
- 00007ffebd7f9000 8 r---- 0000000000000000 000:00000 [ anon ]
- 00007ffebd7fb000 8 r-x-- 0000000000000000 000:00000 [ anon ]
- ffffffffff600000 4 r-x-- 0000000000000000 000:00000 [ anon ]
- mapped: 22776K writeable/private: 2264K shared: 28K
- rmmod lab1_vma.ko
- from dmesg:
- [ 7088.307901] =======================================
- [ 7088.307905] Examining vma's for pid=1529, command=bash
- [ 7088.307906] mm = ffff880035bc8400
- [ 7088.307907] vmas: vma start end length
- [ 7088.307909] 1: ffff8802294eb210 400000 4ef000 ef000= 978944
- [ 7088.307911] 2: ffff8802294ebdc0 6ef000 6f0000 1000= 4096
- [ 7088.307913] 3: ffff880035ecf160 6f0000 6f9000 9000= 36864
- [ 7088.307914] 4: ffff8802294eb8f0 6f9000 6ff000 6000= 24576
- [ 7088.307916] 5: ffff880035ecf2c0 207b000 226b000 1f0000= 2031616
- [ 7088.307918] 6: ffff880035ecfdc0 7f4ef9569000 7f4ef9574000 b000= 45056
- [ 7088.307920] 7: ffff880035ecfd10 7f4ef9574000 7f4ef9773000 1ff000= 2093056
- [ 7088.307921] 8: ffff880035ecfe70 7f4ef9773000 7f4ef9774000 1000= 4096
- [ 7088.307923] 9: ffff880035ecff20 7f4ef9774000 7f4ef9775000 1000= 4096
- [ 7088.307925] 10: ffff880035ecfbb0 7f4ef9775000 7f4ef9780000 b000= 45056
- [ 7088.307941] 11: ffff880035ecfb00 7f4ef9780000 7f4ef997f000 1ff000= 2093056
- [ 7088.307943] 12: ffff880035ecfc60 7f4ef997f000 7f4ef9980000 1000= 4096
- [ 7088.307945] 13: ffff8802294eb4d0 7f4ef9980000 7f4ef9981000 1000= 4096
- [ 7088.307946] 14: ffff880035ecf790 7f4ef9981000 7f4ef9998000 17000= 94208
- [ 7088.307947] 15: ffff880035ecf6e0 7f4ef9998000 7f4ef9b97000 1ff000= 2093056
- [ 7088.307949] 16: ffff880035ecf8f0 7f4ef9b97000 7f4ef9b98000 1000= 4096
- [ 7088.307950] 17: ffff880035ecf9a0 7f4ef9b98000 7f4ef9b99000 1000= 4096
- [ 7088.307952] 18: ffff880035ecf840 7f4ef9b99000 7f4ef9b9b000 2000= 8192
- [ 7088.307953] 19: ffff880035ecf580 7f4ef9b9b000 7f4ef9ba4000 9000= 36864
- [ 7088.307955] 20: ffff880035ecf4d0 7f4ef9ba4000 7f4ef9da3000 1ff000= 2093056
- [ 7088.307956] 21: ffff880035ecf630 7f4ef9da3000 7f4ef9da4000 1000= 4096
- [ 7088.307958] 22: ffff880035ecfa50 7f4ef9da4000 7f4ef9da5000 1000= 4096
- [ 7088.307960] 23: ffff880035ecf370 7f4ef9da5000 7f4efa06e000 2c9000= 2920448
- [ 7088.307967] 24: ffff8802294eb0b0 7f4efa06e000 7f4efa229000 1bb000= 1814528
- [ 7088.307968] 25: ffff8802294eba50 7f4efa229000 7f4efa428000 1ff000= 2093056
- [ 7088.307970] 26: ffff8802294ebbb0 7f4efa428000 7f4efa42c000 4000= 16384
- [ 7088.307972] 27: ffff8802294ebb00 7f4efa42c000 7f4efa42e000 2000= 8192
- [ 7088.307973] 28: ffff8802294ebc60 7f4efa42e000 7f4efa433000 5000= 20480
- [ 7088.307975] 29: ffff8802294eb630 7f4efa433000 7f4efa436000 3000= 12288
- [ 7088.307976] 30: ffff8802294eb160 7f4efa436000 7f4efa635000 1ff000= 2093056
- [ 7088.307978] 31: ffff8802294eb420 7f4efa635000 7f4efa636000 1000= 4096
- [ 7088.307979] 32: ffff880035ecf000 7f4efa636000 7f4efa637000 1000= 4096
- [ 7088.307981] 33: ffff8802294eb580 7f4efa637000 7f4efa65c000 25000= 151552
- [ 7088.307983] 34: ffff8802294eb370 7f4efa65c000 7f4efa85b000 1ff000= 2093056
- [ 7088.307985] 35: ffff8802294eb790 7f4efa85b000 7f4efa85f000 4000= 16384
- [ 7088.307987] 36: ffff880035ecf0b0 7f4efa85f000 7f4efa860000 1000= 4096
- [ 7088.307988] 37: ffff8802294eb000 7f4efa860000 7f4efa883000 23000= 143360
- [ 7088.307990] 38: ffff8802294eb9a0 7f4efaa72000 7f4efaa75000 3000= 12288
- [ 7088.307991] 39: ffff880035ecf420 7f4efaa79000 7f4efaa80000 7000= 28672
- [ 7088.307993] 40: ffff8802294eb6e0 7f4efaa80000 7f4efaa82000 2000= 8192
- [ 7088.307995] 41: ffff8802294eb840 7f4efaa82000 7f4efaa83000 1000= 4096
- [ 7088.307996] 42: ffff880035ecf210 7f4efaa83000 7f4efaa84000 1000= 4096
- [ 7088.307998] 43: ffff8802294ebd10 7f4efaa84000 7f4efaa85000 1000= 4096
- [ 7088.307999] 44: ffff8802294ebe70 7ffebd7c5000 7ffebd7e7000 22000= 139264
- [ 7088.308025] 45: ffff8802294ebf20 7ffebd7f9000 7ffebd7fb000 2000= 8192
- [ 7088.308027] 46: ffff8802294eb2c0 7ffebd7fb000 7ffebd7fd000 2000= 8192
- [ 7088.318646] Module Unloading
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement