]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/x86_64/stackguard-macros.h
BZ #15754: CVE-2013-4788
[thirdparty/glibc.git] / sysdeps / x86_64 / stackguard-macros.h
CommitLineData
a9538892
JM
1#include <stdint.h>
2
3#define STACK_CHK_GUARD \
4 ({ uintptr_t x; \
5 asm ("mov %%fs:%c1, %0" : "=r" (x) \
6 : "i" (offsetof (tcbhead_t, stack_guard))); x; })
c61b4d41
CD
7
8#define POINTER_CHK_GUARD \
9 ({ uintptr_t x; \
10 asm ("mov %%fs:%c1, %0" : "=r" (x) \
11 : "i" (offsetof (tcbhead_t, pointer_guard))); x; })