Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50280 Details for
Bug 76082
(toolchain) genkernel-3.1.0d doesn't compile udev-039 on hardened
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Update patch for ssp stub
klibc-ssp.patch (text/plain), 1.36 KB, created by
Mathias Gug
on 2005-02-03 13:50:58 UTC
(
hide
)
Description:
Update patch for ssp stub
Filename:
MIME Type:
Creator:
Mathias Gug
Created:
2005-02-03 13:50:58 UTC
Size:
1.36 KB
patch
obsolete
>diff -uNr udev-039.orig/klibc/klibc/Makefile udev-039/klibc/klibc/Makefile >--- udev-039.orig/klibc/klibc/Makefile 2004-10-15 18:08:29.000000000 -0400 >+++ udev-039/klibc/klibc/Makefile 2005-02-03 13:48:26.839850288 -0500 >@@ -46,7 +46,7 @@ > lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ > inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \ > inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \ >- send.o recv.o >+ send.o recv.o ssp.o > ifeq ($(ERRLIST),1) > LIBOBJS += errlist.o > endif >diff -uNr udev-039.orig/klibc/klibc/ssp.c udev-039/klibc/klibc/ssp.c >--- udev-039.orig/klibc/klibc/ssp.c 1969-12-31 19:00:00.000000000 -0500 >+++ udev-039/klibc/klibc/ssp.c 2005-02-03 14:04:45.727688432 -0500 >@@ -0,0 +1,15 @@ >+#include <syslog.h> >+#include <stdlib.h> >+#include <sys/param.h> >+ >+unsigned long __guard = 0UL; static void __guard_setup(void) __attribute__ ((constructor)); >+void __stack_smash_handler(char func[], int damaged __attribute__ ((unused))); >+static void __guard_setup(void) { if (__guard != 0UL) return; __guard = 0xFF0A0D00UL; } >+ >+void __stack_smash_handler(char func[], int damaged) { >+ syslog(LOG_CRIT, "stack overflow in function %s(); %s=%p __guard_setup=%p __guard=%p " \ >+ "PPID=%d PID=%d UID=%d EUID=%d GID=%d EGID=%d", >+ func, func, __guard_setup, __guard, >+ getppid(), getpid(), getuid(), geteuid(), getgid(), getegid()); >+ _exit(127); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 76082
:
47166
|
50177
| 50280 |
61128