Bug 1585305 - Add bug 1524194 to the breakpad patches we apply locally to prevent updates from clobbering it r=sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D47766

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gabriele Svelto 2019-10-01 17:47:53 +00:00
Родитель caccd3a1d9
Коммит 549248a28a
1 изменённых файлов: 47 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,47 @@
changeset: 543157:f54952905cb1
user: Sylvestre Ledru <sledru@mozilla.com>
date: Fri Jun 14 07:14:08 2019 +0000
summary: Bug 1524194 - Do not add stack pointer to clobber list r=gsvelto
diff --git a/src/third_party/lss/linux_syscall_support.h b/src/third_party/lss/linux_syscall_support.h
--- a/src/third_party/lss/linux_syscall_support.h
+++ b/src/third_party/lss/linux_syscall_support.h
@@ -1959,17 +1959,17 @@ struct kernel_statfs {
LSS_RETURN(type,__res)
#undef _syscall0
#define _syscall0(type,name) \
type LSS_NAME(name)(void) { \
long __res; \
__asm__ volatile(LSS_ENTRYPOINT \
: "=a" (__res) \
: "0" (__NR_##name) \
- : "esp", "memory"); \
+ : "memory"); \
LSS_RETURN(type,__res); \
}
#undef _syscall1
#define _syscall1(type,name,type1,arg1) \
type LSS_NAME(name)(type1 arg1) { \
LSS_BODY(type, \
: "=a" (__res) \
: "0" (__NR_##name), "ri" ((long)(arg1))); \
@@ -2400,17 +2400,17 @@ struct kernel_statfs {
: "0"(-EINVAL), "i"(__NR_clone), "i"(__NR_exit),
"r"(LSS_SYSCALL_ARG(fn)),
"S"(LSS_SYSCALL_ARG(child_stack)),
"D"(LSS_SYSCALL_ARG(flags)),
"r"(LSS_SYSCALL_ARG(arg)),
"d"(LSS_SYSCALL_ARG(parent_tidptr)),
"r"(LSS_SYSCALL_ARG(newtls)),
"r"(LSS_SYSCALL_ARG(child_tidptr))
- : "rsp", "memory", "r8", "r10", "r11", "rcx");
+ : "memory", "r8", "r10", "r11", "rcx");
}
LSS_RETURN(int, __res);
}
LSS_INLINE _syscall2(int, arch_prctl, int, c, void *, a)
LSS_INLINE void (*LSS_NAME(restore_rt)(void))(void) {
/* On x86-64, the kernel does not know how to return from
* a signal handler. Instead, it relies on user space to provide a