opinion about fs and gs in linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

When I analyzed one coredump and read some assembly code, I encounter
one specific segment register : gs. I googled it and found the
following links:

[1] http://stackoverflow.com/questions/10810203/what-is-the-fs-gs-register-intended-for

[2] http://reverseengineering.stackexchange.com/questions/2006/how-are-the-segment-registers-fs-gs-cs-ss-ds-es-used-in-linux

[3] http://stackoverflow.com/questions/6611346/how-are-the-fs-gs-registers-used-in-linux-amd64

In IA32 FS is used by Windows and GS by glibc to reference TLS entry.
And in my 32bit linux, I found fs is 0 in my coredump and gs is 0x33.

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux