#1570·pwndbg

Label the TLS in vmmap

Author: gsingh93Created Feb 6, 2023Updated Sep 27, 2026
Labelsenhancementhelp wantedgood first issue

The tls command can find the TLS address, so we know where it is, but this doesn't show up in vmmap:

pwndbg> tls
Thread Local Storage (TLS) base: 0x7ffff7cb3800
pwndbg> vmmap
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
             Start                End Perm     Size Offset File
    0x555555554000     0x555555558000 r--p     4000      0 /usr/bin/ls
    0x555555558000     0x55555556c000 r-xp    14000   4000 /usr/bin/ls
    0x55555556c000     0x555555574000 r--p     8000  18000 /usr/bin/ls
    0x555555575000     0x555555576000 r--p     1000  20000 /usr/bin/ls
    0x555555576000     0x555555577000 rw-p     1000  21000 /usr/bin/ls
    0x555555577000     0x555555599000 rw-p    22000      0 [heap]
    0x7ffff7cb3000     0x7ffff7cb6000 rw-p     3000      0 [anon_7ffff7cb3]
    ...

It would be useful to add this information into vmmap.